-
Posts
6157 -
Joined
-
Last visited
-
Days Won
59
Everything posted by Animefan8888
-
[1.12] [RESOLVED] Cannot bind coordinates to tile entity
Animefan8888 replied to That_Martin_Guy's topic in Modder Support
No problem. -
[1.12] [RESOLVED] Cannot bind coordinates to tile entity
Animefan8888 replied to That_Martin_Guy's topic in Modder Support
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. -
[1.11.2] [Solved] Structure Gen freezing the game
Animefan8888 replied to GooberGunter's topic in Modder Support
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. -
[1.12] [RESOLVED] Cannot bind coordinates to tile entity
Animefan8888 replied to That_Martin_Guy's topic in Modder Support
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. -
[1.12] [RESOLVED] Cannot bind coordinates to tile entity
Animefan8888 replied to That_Martin_Guy's topic in Modder Support
I was taking a shot in the dark...where are you appending that "X" at? -
[1.12] [RESOLVED] Cannot bind coordinates to tile entity
Animefan8888 replied to That_Martin_Guy's topic in Modder Support
Change this to return itemStack.getTagCompound(); -
[1.12] [RESOLVED] Cannot bind coordinates to tile entity
Animefan8888 replied to That_Martin_Guy's topic in Modder Support
This line. -
[1.12] [RESOLVED] Cannot bind coordinates to tile entity
Animefan8888 replied to That_Martin_Guy's topic in Modder Support
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. -
[1.12] [RESOLVED] Cannot bind coordinates to tile entity
Animefan8888 replied to That_Martin_Guy's topic in Modder Support
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? -
How to spawn structures in underground caves
Animefan8888 replied to TheRPGAdventurer's topic in Modder Support
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. -
How to spawn structures in underground caves
Animefan8888 replied to TheRPGAdventurer's topic in Modder Support
Post your new code, the whole class if it doesn't work. -
How to spawn structures in underground caves
Animefan8888 replied to TheRPGAdventurer's topic in Modder Support
Simple it is a matter of changing the y variable. ...before you create the y variable. -
How to spawn structures in underground caves
Animefan8888 replied to TheRPGAdventurer's topic in Modder Support
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 -
How to spawn structures in underground caves
Animefan8888 replied to TheRPGAdventurer's topic in Modder Support
That will significantly increase your chances. I already tested it myself and unless dragonNest.generate doesn't work it should generate for you. -
[1.12] Minecraft creating and registering items and blocks
Animefan8888 replied to Chuckinator's topic in Modder Support
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. -
How to spawn structures in underground caves
Animefan8888 replied to TheRPGAdventurer's topic in Modder Support
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. -
How to spawn structures in underground caves
Animefan8888 replied to TheRPGAdventurer's topic in Modder Support
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. -
[1.12] Minecraft creating and registering items and blocks
Animefan8888 replied to Chuckinator's topic in Modder Support
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. -
[1.12] Item Variants : NullPointerException at getUnlocalizedName
Animefan8888 replied to Dylem's topic in Modder Support
You never put any values in your EnumVariant.META_LOOKUP. You very well could use the EnumVariant#values() -
[1.12] Minecraft creating and registering items and blocks
Animefan8888 replied to Chuckinator's topic in Modder Support
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. -
[1.12] Minecraft creating and registering items and blocks
Animefan8888 replied to Chuckinator's topic in Modder Support
How much Java experience do you have? -
-
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.
-
Call Item#setContainerItem() in the constructor of your sandpaper's class. And make it your sandpaper item.