Skip to content

Commit 4b52306

Browse files
committed
Other changes
1 parent 5bf54c7 commit 4b52306

File tree

4 files changed

+5
-16
lines changed

4 files changed

+5
-16
lines changed
Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1 @@
1-
((new Object() {
2-
public Direction getDirection(BlockPos pos) {
3-
try {
4-
BlockState _bs = world.getBlockState(pos);
5-
DirectionProperty property = (DirectionProperty) _bs.getBlock().getStateContainer().getProperty("facing");
6-
if (property != null)
7-
return _bs.get(property);
8-
return Direction.getFacingFromAxisDirection(_bs.get((EnumProperty<Direction.Axis>) _bs.getBlock().getStateContainer().getProperty("axis")), Direction.AxisDirection.POSITIVE);
9-
} catch (Exception e) {
10-
return Direction.NORTH;
11-
}
12-
}
13-
}.getDirection(new BlockPos(placePos.getX() + (${field$x}), placePos.getY() + (${field$y}), placePos.getZ() + (${field$z})))) == ${generator.map(field$direction, "directions")})
1+
world.getBlockState(origin<#if (field$x != "0")||(field$y != "0")||(field$z != "0")>.add(${field$x}, ${field$y}, ${field$z})</#if>).func_224755_d(world, origin<#if (field$x != "0")||(field$y != "0")||(field$z != "0")>.add(${field$x}, ${field$y}, ${field$z})</#if>, ${generator.map(field$direction, "directions")})
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
/Count(${input$count}^)/
1+
$for (int i = 0; i < ${input$count}; i++)
2+
FEATURE.place(world, generator, random, origin, config);$
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
placePos = placePos.add(random.nextInt(16), random.nextInt((${input$max} + ${input$min}) / 2) + random.nextInt((${input$max} + ${input$min}) / 2) - ((${input$max} + ${input$min}) / 2) + (${input$max} + ${input$min}) / 2), random.nextInt(16));
1+
$origin = origin.add(origin.getX(), random.nextInt((${input$min} + ${input$max}) / 2) + random.nextInt((${input$min} + ${input$max}) / 2) - ((${input$min} + ${input$max}) / 2) + ((${input$max} - ${input$min} + 2) / 2), origin.getZ());$
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
placePos = placePos.add(random.nextInt(16), random.nextInt(${input$max}) + ${input$min}, random.nextInt(16));
1+
$origin = origin.add(origin.getX(), random.nextInt(${input$max} - (<#if input$min == input$max> ${input$max} - 1<#else>${input$max} - ${input$min}</#if>)) + ${input$min}, origin.getZ());$

0 commit comments

Comments
 (0)