User Tools

Site Tools


tutorial:structures

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
tutorial:structures [2019/05/26 16:34] – Syntax highlighting, more consistent formatting jamieswhiteshirttutorial:structures [2019/07/02 00:50] draylar
Line 19: Line 19:
   * shouldStartAt: return true for testing purposes.   * shouldStartAt: return true for testing purposes.
   * getName: name of your structure   * getName: name of your structure
-  * method_14021 [getRadius]: radius of your structure, used for placement +  * getRadius: radius of your structure, used for placement 
-  * method_13774 [getSeed]: a seed to use for generation, put 0 for testing+  * getSeeedModifier
  
 You can pass DefaultFeatureConfig::deserialize into your constructor for testing. You can pass DefaultFeatureConfig::deserialize into your constructor for testing.
Line 48: Line 48:
 This is where structure files and generating straight from a generate method part ways. There are two ways to go about this: This is where structure files and generating straight from a generate method part ways. There are two ways to go about this:
  
-* If you want, you can simply override generate in your Feature class and use setBlockState to place blocks directly in the world. This is a valid option and was popular pre-1.13. +  * If you want, you can simply override generate in your Feature class and use setBlockState to place blocks directly in the world. This is a valid option and was popular pre-1.13. 
-* Use structure files and a Generator. These are rather powerful at this point and are highly recommended.+  * Use structure files and a Generator. These are rather powerful at this point and are highly recommended.
  
 ==== Creating a Generator ==== ==== Creating a Generator ====
tutorial/structures.txt · Last modified: 2022/11/05 12:06 by jab125