-
Posts
6157 -
Joined
-
Last visited
-
Days Won
59
Everything posted by Animefan8888
-
[1.11.2] Custom armor model not showing properly
Animefan8888 replied to Daring Do's topic in Modder Support
A breakpoint and a break are two different things. Look up how to set a breakpoint in eclipse. -
[1.11.2] Custom armor model not showing properly
Animefan8888 replied to Daring Do's topic in Modder Support
Could you show me in a picture? -
[1.11.2] Custom armor model not showing properly
Animefan8888 replied to Daring Do's topic in Modder Support
I suggest stepping through your code in the debugger set a breakpoint at the top of getArmorModel. -
[1.11.2] Custom armor model not showing properly
Animefan8888 replied to Daring Do's topic in Modder Support
I'm pretty sure it is the fact that your Collar uses ArmorMaterial.LEATHER. Make a custom one and use that instead. -
[1.12] How to open a GUI with parameters
Animefan8888 replied to That_Martin_Guy's topic in Modder Support
This is also very vital. -
[1.12] How to open a GUI with parameters
Animefan8888 replied to That_Martin_Guy's topic in Modder Support
You will need to use a Capabilty and attach it to the player to store the card they are supposed to get. And how is the player opening the gui, right clicking on a block? If so you can get the TileEntity from there and get the initial card. -
Where did you declare the variable.
-
[1.12] How to open a GUI with parameters
Animefan8888 replied to That_Martin_Guy's topic in Modder Support
Where is the ItemStack stored? -
How much Java experience do you have?
-
Yes that method of registry is outdated. That is correct if your changed the Block in Register<Block> to Item
-
How to spawn structures in underground caves
Animefan8888 replied to TheRPGAdventurer's topic in Modder Support
Could you post your DragonNest class? I'm pretty sure you are going to need that BlockPos. -
Anywhere in your project. It doesn't really matter where.
-
It is really simple and if I get anything wrong I really want someone to correct me. Make a class that has the @Mod.EventBusSubscriber and in that class put the method in the documentation. @SubscribeEvent public void registerBlocks(RegistryEvent.Register<Block> event) { event.getRegistry().registerAll(block1, block2, ...); } And where it says Register<Block> you can change Block to any class that extends IForgeRegistryEntry.Impl. This includes Item. Then event.getRegistry().register... is how you register your Items, Blocks, etc.
-
How to spawn structures in underground caves
Animefan8888 replied to TheRPGAdventurer's topic in Modder Support
That piece of code is entirely useless for your means. You are checking if a 9x6x11 space is AIR. You don't want to do that. -
This is documentation on the new registration system.
-
How to spawn structures in underground caves
Animefan8888 replied to TheRPGAdventurer's topic in Modder Support
This part checks to see if a 9x11xHeight space is AIR. Which will almost never happen underground. -
How to spawn structures in underground caves
Animefan8888 replied to TheRPGAdventurer's topic in Modder Support
Random#nextInt(78 - 65) + 65 Will give you a random number between 65 and 78. -
[1.11.2] [Solved] Structure Gen freezing the game
Animefan8888 replied to GooberGunter's topic in Modder Support
Pretty much. At most your structure of 30x30 could belong in 4 chunks. Which means 3 extra chunks are possible when the world is generating, but the problem with that is when it loads those chunks it is possible that, that chunk will also want to generate it there to. There is almost nothing you can do about it taking up four chunks and those chunks generating. -
How to spawn structures in underground caves
Animefan8888 replied to TheRPGAdventurer's topic in Modder Support
Yes, now it will spawn 78 blocks below the top of the ground, which could be negative, which is out of bounds so you will want to check for that. -
How to spawn structures in underground caves
Animefan8888 replied to TheRPGAdventurer's topic in Modder Support
To make it generate underground you just need to make the y variable smaller. -
How to spawn structures in underground caves
Animefan8888 replied to TheRPGAdventurer's topic in Modder Support
Then problem solved, right? -
[1.11.2] [Solved] Structure Gen freezing the game
Animefan8888 replied to GooberGunter's topic in Modder Support
What you will want to do is make a List of ChunkPos that it has generated in. And if the position is to close to one in the list don't generate. -
[1.12] Player not drinking the item [Solved]
Animefan8888 replied to YellowMilk2's topic in Modder Support
You also need to override getMaxItemUseDuration- 1 reply
-
- 1
-
[1.11.2] [Solved] Structure Gen freezing the game
Animefan8888 replied to GooberGunter's topic in Modder Support
You will have to make a method to do it, I would not necessarily do it before because then you will have to call World#setBlockState more times than necessary. Instead place your building in the world and then clear the area above it. Also do take into account what jeffryfisher said because what he said can and will happen which causes world gen lag because it can spiral out of control. It is called Runaway Chunk Generation. -
[1.11.2] [Solved] Structure Gen freezing the game
Animefan8888 replied to GooberGunter's topic in Modder Support
If I am not mistaken you do not need a ChunkProvider for Structure Generation. I think the biggest problem you have is that you check if the block is replaceable, why? Instead you should get the first ground block at the x, z position you get, and then tell the game to generate your structure. If there are air blocks or plants underneath then simply replace them with a foundation type of block. Kinda like what Minecraft does with it's village buildings, and then clear above your structure by replacing with air. Not all the way up to build height mind you, maybe a couple blocks if the structure is huge and if not clear until there is nothing connected above it.