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 [2020/09/11 06:47] – 1.16.2 siglongtutorial:structures [2020/09/11 07:07] – Improve readability siglong
Line 1: Line 1:
-====== Generating Structures ======+====== Adding Structure Features ======
 We’re going to look at registering and placing structures in your world. We’re going to look at registering and placing structures in your world.
  
Line 57: Line 57:
 In this tutorial, we'll use a structure file. In this tutorial, we'll use a structure file.
 It doesn't need to override anything, but does require the following: It doesn't need to override anything, but does require the following:
-  * An Identifier that points to your structure file; use "igloo/top" if you need an example.+  * An identifier that points to your structure file; use ''"igloo/top"'' if you need an example.
   * Some sort of setup method - ''addPieces'' is a good name.   * Some sort of setup method - ''addPieces'' is a good name.
  
Line 103: Line 103:
   private void initializeStructureData(StructureManager structureManager) {   private void initializeStructureData(StructureManager structureManager) {
     Structure structure = structureManager.getStructureOrBlank(this.template);     Structure structure = structureManager.getStructureOrBlank(this.template);
-    StructurePlacementData placementData = (new StructurePlacementData()).setRotation(this.rotation).setMirror(BlockMirror.NONE) +    StructurePlacementData placementData = (new StructurePlacementData()) 
-        .addProcessor(BlockIgnoreStructureProcessor.IGNORE_STRUCTURE_BLOCKS);+      .setRotation(this.rotation) 
 +      .setMirror(BlockMirror.NONE) 
 +      .addProcessor(BlockIgnoreStructureProcessor.IGNORE_STRUCTURE_BLOCKS);
     this.setStructureData(structure, this.pos, placementData);     this.setStructureData(structure, this.pos, placementData);
   }   }
Line 130: Line 132:
  
   * structure   * structure
-  * pieces+  * piece
   * configured structure   * configured structure
  
tutorial/structures.txt · Last modified: 2022/11/05 12:06 by jab125