Skip to content

Commit

Permalink
✨ Add datagen.
Browse files Browse the repository at this point in the history
Signed-off-by: 秋雨落 <[email protected]>
  • Loading branch information
qyl27 committed Jun 27, 2024
1 parent c17934c commit cd3a050
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@
"ultramarine:small_table",
"ultramarine:small_ebony_table",
"ultramarine:large_table",
"ultramarine:long_table",
"ultramarine:ebony_chair",
"ultramarine:chair_with_yellow_cushion",
"ultramarine:painted_chair",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,53 @@ else if (block instanceof SixSideBlock sixSideBlock){
simpleBlock(BlockRegistry.HEMATITE_ORE.get());
simpleBlock(BlockRegistry.DEEPSLATE_HEMATITE_ORE.get());
simpleBlock(BlockRegistry.NETHER_COBALT_ORE.get());

getMultipartBuilder(BlockRegistry.LONG_TABLE.get())
.part()
.modelFile(models().getExistingFile(modLoc("block/long_table")))
.addModel()
.condition(LongTableBlock.AXIS, Direction.Axis.X)
.condition(LongTableBlock.LEFT, false)
.condition(LongTableBlock.RIGHT, false)
.end()
.part()
.modelFile(models().getExistingFile(modLoc("block/long_table_left")))
.addModel()
.condition(LongTableBlock.AXIS, Direction.Axis.X)
.condition(LongTableBlock.LEFT, false)
.condition(LongTableBlock.RIGHT, true)
.end()
.part()
.modelFile(models().getExistingFile(modLoc("block/long_table_right")))
.addModel()
.condition(LongTableBlock.AXIS, Direction.Axis.X)
.condition(LongTableBlock.LEFT, true)
.condition(LongTableBlock.RIGHT, false)
.end()
.part()
.modelFile(models().getExistingFile(modLoc("block/long_table")))
.rotationY(90)
.addModel()
.condition(LongTableBlock.AXIS, Direction.Axis.Z)
.condition(LongTableBlock.LEFT, false)
.condition(LongTableBlock.RIGHT, false)
.end()
.part()
.modelFile(models().getExistingFile(modLoc("block/long_table_left")))
.rotationY(90)
.addModel()
.condition(LongTableBlock.AXIS, Direction.Axis.Z)
.condition(LongTableBlock.LEFT, false)
.condition(LongTableBlock.RIGHT, true)
.end()
.part()
.modelFile(models().getExistingFile(modLoc("block/long_table_right")))
.rotationY(90)
.addModel()
.condition(LongTableBlock.AXIS, Direction.Axis.Z)
.condition(LongTableBlock.LEFT, true)
.condition(LongTableBlock.RIGHT, false)
.end();
}

private ResourceLocation blockLoc(Block block){
Expand Down

0 comments on commit cd3a050

Please sign in to comment.