Jump to content

perigrine3

Members
  • Posts

    55
  • Joined

  • Last visited

Converted

  • Personal Text
    I'm slow. Use examples. Examples are good.
    :|

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

perigrine3's Achievements

Stone Miner

Stone Miner (3/8)

0

Reputation

  1. Also, it's just the bottom part of a two-block unit. I'm attempting to recreate the 1.12.2 Cyberware mod for 1.16.5.
  2. I see. Big brain activated. what can i put in place of "fullCube"?
  3. I'm not really sure what I'm doing here, so here's my code: private static final VoxelShape INSIDE = makeCuboidShape(2.0D, 2.0D, 0.0D, 12.0D, 14.0D, 14.0D); protected static final VoxelShape SHAPE = VoxelShapes.combineAndSimplify(VoxelShapes.fullCube(), VoxelShapes.or(makeCuboidShape(0.0D, 2.0D, 0.0D, 2.0D, 14.0D, 16.0D), makeCuboidShape(14.0D, 2.0D, 0.0D, 2.0D, 14.0D, 16.0D), makeCuboidShape(2.0D, 2.0D, 14.0D, 12.0D, 14.0D, 2.0D), makeCuboidShape(0.0D, 0.0D, 0.0D, 16.0D, 2.0D, 16.0D), INSIDE), IBooleanFunction.ONLY_FIRST); @Override public VoxelShape getShape(BlockState state, IBlockReader worldIn, BlockPos pos, ISelectionContext context) { return SHAPE; } For some reason, the block is acting like a whole block.
  4. Is there some segment of code that would allow me to make the player climb walls when beside them?
  5. Not gonna lie, I'm new to this. How would I set up the block states?
  6. I'm trying to make a plant that grows over time, but I am unsure how to do that. In case you are unsure what I mean, I'm talking about stages of growth, like potatoes or carrots (although I'd like it to be shearable, so more like sweet berry bushes). I am also unsure how I am supposed to get it to call on the different textures for each stage.
  7. So I came up with an idea to make a custom golem (by building it with blocks), and so I started looking through the Minecraft code for that part, but then I realized I don't know where I would find that. How would I go about making a new golem?
  8. Ok thank you. are there any alternate ways to go about doing what I'm trying to do?
  9. I think the title was pretty self-explanatory, but just in case, I'm looking to have the Command Block GUI open when a player right-clicks on an entity. I came up with a way, looking at the Command Block GUI class, but it's returning with an error. Thoughts? Here's my code: public boolean rightClickEntity(EntityPlayer entity, EnumHand hand) { super.processInteract(entity, hand); if (entity instanceof EntityPlayer) playerIn.displayGuiCommandBlock((TileEntityCommandBlock)tileentity); } (P.S.: I am really bad with imports so it could just be that because the auto-import setup isn't working for me because for some reason the Minecraft Forge mdk thing isn't uploading and it's being a pain in the a**, so I've been adding the imports manually.)
  10. Is it possible to access some variable that defines the "Air" integer?
  11. Is there a way to change the jump height of a player when in another dimension?
  12. Sorry to bump, but I think it may have been overlooked. I really do need help with this. Thank you!
  13. I'm making a mars mod and I need a way to cause the player to suffocate unless wearing a specific helmet, and a way to make the player jump higher. I'm thinking maybe I can use the InitializationEvent to give the player Jump Boost when entering the new dimension and to take it away when leaving it. I have no idea how to do the suffocation though. Please take note that I am still very new to coding, so please try to explain what your suggestion does IN ENGLISH. P.S.: I have been looking at these mods so I can steal the code to accomplish BOTH of these, but I am having serious difficulty navigating the files to find what I need and isolate it for use in my own mod. If you can help with this, I would greatly appreciate it. Mars Mod: https://www.curseforge.com/minecraft/mc-mods/mars-mod-recreation Moon Mod: https://www.curseforge.com/minecraft/mc-mods/moon-mod Thank you in advance!
  14. This doesn't appear to be working, but I don't know why: //Removes existing recipes// @SubscribeEvent public void removeRecipes(FMLPostInitializationEvent event) { for(IRecipe recipe : ForgeRegistries.RECIPIES && Item item : ForgeRegistries.ITEMS) { if(recipe.getCraftingResult(new ResourceLocation(item)).equals("minecraft")) { IForgeRegistryModifiable.remove(recipe); } } } I don't see why it is wrong. Before, I hadn't put in the && Item item : ForgeRegistries.ITEMS, but now that I have it, ResourceLocation can work correctly, using the getCraftingResult method to get the item, and then connect it with ForgeRegistries, but it doesn't seem to be working. What could it be?
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.