Jump to content

Animefan8888

Forge Modder
  • Posts

    6157
  • Joined

  • Last visited

  • Days Won

    59

Everything posted by Animefan8888

  1. If it returns true it believes you did something and the onItemRighClick/onItemUse shouldn't be called. Edit: It also tells the client to play the animation of the player moving their hand when true is returned.
  2. Ok....so you registered a world generator that possibly generates a house 10 times per every chunk that gets loaded. In the exact same place as it was the first time it generated in that chunk. Also i think your house is a 9 * 9 * 6 prism of stone brick. Try Not generating it 10 times every chunk and instead make it only appear in 1/50 chunks by removing the for loop in NeemWorldGenerator#generateOverWorld.
  3. Sorry I miss the small details a lot, have you tried stepping through it with the debugger because it is not popping out at me.
  4. I was taking a shot in the dark...where are you appending that "X" at?
  5. It depends on what the box does exactly. This could be used for building a map. Then again I don't know exactly what this box will do.
  6. ItemNBTHelper.getBlockPos(usedMicrophone, "BoxPos") Will always return BlockPos.ORIGIN because when you call ItemNBTHelper.setBlockPos it doesn't set a tag with the key you send it, and if you look at ItemNBTHelper.getBlockPos it checks for that key. Also Draco is right what if they wanted to put it at the ORIGIN?
  7. It is your topic/thread and the problem hasn't been confirmed solved, I know I won't have a problem after a week and a couple days. And if you feel uncomfortable doing it you can always make a new topic/thread.
  8. Post your new code, the whole class if it doesn't work.
  9. Simple it is a matter of changing the y variable. ...before you create the y variable.
  10. When I said I didn't mean that it would increase your chances of it working, but that it would increase the chance of you finding it. Also where are you calling this method from? Because it needs to be called from an IWorldGenerator and that IWorldGenerator needs to be registered via GameRegistry.registerWorldGenerator
  11. That will significantly increase your chances. I already tested it myself and unless dragonNest.generate doesn't work it should generate for you.
  12. This is slightly outdated for this, but the ModelLoader.setCustomModelResourceLocation method is still the same. You will just want to call it in the ModelRegistryEvent which is setup similar to the way you register Items. This is a tutorial I made for 1.10.2 and I plan on continuing in 1.12, 1.11, and 1.10 soon since it is summer break where I am at.
  13. Basically everything is correct if you want it to generate above ground. And as rare as I said. With the variable "height" you get the height of the chunk, or the average height. To put it simply it is typically above ground. To make it generate underground subtract some from the "height" variable. You might also want to remove the Because this serves only to make sure the Block is air and underground that is not very likely to happen. The 1 in 120 chance is not that bad, but it does make it hard to debug and make sure that it is generating so i suggest lowering it to something like 1 in 25 while testing.
  14. This does not generate underground due to these lines. This line makes the chance of it spawning 1 in 120. This line makes the chance harder if it was underground, but since it is above ground this works.
  15. A ModelResourceLocation is a type/class/Object, etc. To create one you need to create a new instance of it. It will want a ResourceLocation which is another type/class/Object, etc. If you call itemVar.getRegistryName() you get a ResourceLocation which can then be passed on to your new instance of ModelResourceLocation. So if you pass in an Item as a parameter into your registerItemModels method you can create a new ModelResourceLocation. In doing so you can pass that into the ModelLoader.setCustomModelResourceLocation method as a parameter.
  16. You never put any values in your EnumVariant.META_LOOKUP. You very well could use the EnumVariant#values()
  17. Then you should see what is causing those errors. And if you are using eclipse or Idea then it should tell you what is wrong.
  18. Does your sandpaper get damaged? If so in your sandpaper's class override getContainerItem if nothing happens after it is used then If you don't know what a constructor is or what override means then look it up and learn the Java programming language.
  19. Call Item#setContainerItem() in the constructor of your sandpaper's class. And make it your sandpaper item.
×
×
  • Create New...

Important Information

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