Posted February 23, 20205 yr Hi, recently I was looking for some Strucutre Generation Tutorial for 1.14.4, but sadly there is none. 1.14.4 Structure Generation is totally different from 1.12.2. Can You guys help me with this?
February 23, 20205 yr 1 hour ago, zenek1290 said: Hi, recently I was looking for some Strucutre Generation Tutorial for 1.14.4, but sadly there is none. 1.14.4 Structure Generation is totally different from 1.12.2. Can You guys help me with this? Try by see the Vanilla code. New in Modding? == Still learning!
February 26, 20205 yr Author Here is what i came up to, but my code isn't working, I started looking for some code examples on github but it's still wasn't enough. CubePiece.java CubeStructure.java ModStructureTypes.java ExampleMod.java Edited February 26, 20205 yr by zenek1290
February 27, 20205 yr Looking at your code, your structure piece does not add anything, and the chunks for your structure to spawn in is set to null. I suggest looking at vanilla structures as reference. As for your registries, the structures aren't registered in a valid way, I'd recommend looking at either event registries, deferred register, or object holder registries as a way to register your objects.
February 27, 20205 yr Try DeferredRegister, if this don‘t work then re-ask here. New in Modding? == Still learning!
February 27, 20205 yr Author Ok, this is what I came up to. ExampleMod.java ModStructureTypes.java ModStructurePieces.java CubePiece.java CubeStructure.java Good is that I finally was able to register my structure. Structure is still not generating in overworld. And I still got this Info in console, [16:54:30] [Client thread/DEBUG] [ne.mi.re.ObjectHolderRef/]: Unable to lookup examplemod:cube_structure for public static net.minecraft.world.gen.feature.structure.Structure com.example.examplemod.world.gen.ModStructureTypes.CUBE_STRUCTURE. This means the object wasn't registered. It's likely just mod options. Edited February 27, 20205 yr by zenek1290
February 28, 20205 yr Author Since that time I changed my code a lot so structure registration is finally working properly. Only things that I still have problem with are setting structure placing config and adding this structure to world. Here is my function where all those stuff are done.
February 28, 20205 yr Your still not even registering your structure correctly, you have your deferred register commented out...
February 28, 20205 yr Author I registered it In that way. I changed my code a lot since then, Your suggestion earlier on was really helpful. Edited February 28, 20205 yr by zenek1290
February 28, 20205 yr Author Ok, locate function is working with my structure, but no blocks are added to the world.
February 29, 20205 yr Author I have no clue what can I do to make it work... ExampleMod.java ModStructureTypes.java ModStructurePieces.java CubeStructure.java CubePiece.java
March 21, 20205 yr Did you work this out? From what I can tell, the main reason you aren't adding anything to the world, is that no code exists in your Piece to actually add blocks. Have a look at SwampHutPiece, or the IglooPieces (The later uses the TemplateStructurePiece)..
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.