Jump to content

[1.15.2] Looking for tutorials on structure generation


peter1745

Recommended Posts

Hello! I'm looking for tutorials on structure generation for 1.14 or 1.15. I've found a few tutorials on the subject but none are up to date.

I've tried to look at how vanilla minecraft does it, but I can't figure out how to do it myself.

And I don't understand the concepts enough to do so.

 

if anyone knows how to do this, or has any pointers to tutorials it would be very much appreciated :)

Link to comment
Share on other sites

4 minutes ago, peter1745 said:

if anyone knows how to do this, or has any pointers to tutorials it would be very much appreciated

Seeing as how World Gen tutorials were pretty sparse even prior to 1.13 I doubt there are any or at least any good ones.

I would say look at the Buried Treasure structure/feature as it seems really basic. Basically look at where the constructors are called as well for the associated classes until a place looks like a registry or something to do with world generation. And use that to make a simple structure before you make your actual structure.

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Link to comment
Share on other sites

18 minutes ago, Animefan8888 said:

Seeing as how World Gen tutorials were pretty sparse even prior to 1.13 I doubt there are any or at least any good ones.

I would say look at the Buried Treasure structure/feature as it seems really basic. Basically look at where the constructors are called as well for the associated classes until a place looks like a registry or something to do with world generation. And use that to make a simple structure before you make your actual structure.

Thanks for the tip! It seems like the easiest structure to mimic is actually the fossil structure. It's the easiest to understand at least.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now


  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Hi, i want to add an item to player's inventory when specific event is fired, but i don't know how to do that
    • Try searching for the Shapeless Recipe in your workspace program's external libraries, which should have been downloaded along with the assets when you set up gradle for Forge. Looking at that file will show you how Minecraft sets it up and you can tinker with it in a custom file of your own from there. Additionally, take a look at how the crafting table handles the matching up of ingredients for shapeless recipes. You can also look at my two-slot fuel free furnace type that uses shapeless recipes. I did exactly as described above to design my custom recipe class and then built my entity class. https://github.com/toadie-odie/TodeCoins/blob/1.3.2/src/main/java/net/warrentode/todecoins/recipe/CoinPressRecipe.java https://github.com/toadie-odie/TodeCoins/blob/1.3.2/src/main/java/net/warrentode/todecoins/block/entity/CoinPressBlockEntity.java An alternative recipe check method can be looked at here:  https://github.com/toadie-odie/TodeVillagers/blob/master_03/src/main/java/net/warrentode/todevillagers/blocks/entity/GlassKilnBlockEntity.java I think maybe that the Glass Kiln one would be easier for you starting out, it was for me. In your case the points of interest are at lines 164 and 215.
    • I copied the Totem of Undying event for my coin charm, and as you can see in line 113 it has the method removeAllEffects in there, so if you're building a similar event, simply don't add the method to prevent it from removing effects. https://github.com/toadie-odie/TodeCoins/blob/1.3.2/src/main/java/net/warrentode/todecoins/event/ModEvents.java
    • Okay I got on the discord server and followed there steps and got it to start working, however the log is constantly being filled with this error code. It is creating additional copies of the config file, up to 5 copies.
    • I would like to force the pose of a living entity to a standing position (i.e. Pose.STANDING) when it is riding a certain vehicle. I have tried to call Entity#setPose every tick via LivingTickEvent, but the living entity remains in a sitting position. Here is my code: // I made it a low-priority event because I was wondering if the code should be executed at the end of each tick. @SubscribeEvent(priority = EventPriority.LOWEST) public static void livingTickEvent(LivingEvent.LivingTickEvent event) { LivingEntity livingEntity = event.getEntity(); if (!livingEntity.level.isClientSide && livingEntity.getVehicle() instanceof TheVehicle) { livingEntity.setPose(Pose.STANDING); } }   By the way, I am aware there is a setForcedPose method, but it's only for the Player class.
  • Topics

  • Who's Online (See full list)

    • There are no registered users currently online
×
×
  • Create New...

Important Information

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