Generate fences, gates, elfglass, fix fel pumpkin
No files matched your search
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"variants": {
|
||||
"": {
|
||||
"model": "botania:block/fel_pumpkin"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/template_fence_gate",
|
||||
"parent": "block/template_fence_gate",
|
||||
"textures": {
|
||||
"texture": "botania:block/dreamwood_planks"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/template_fence_gate_open",
|
||||
"parent": "block/template_fence_gate_open",
|
||||
"textures": {
|
||||
"texture": "botania:block/dreamwood_planks"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/template_fence_gate_wall",
|
||||
"parent": "block/template_fence_gate_wall",
|
||||
"textures": {
|
||||
"texture": "botania:block/dreamwood_planks"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "block/template_fence_gate_wall_open",
|
||||
"textures": {
|
||||
"texture": "botania:block/dreamwood_planks"
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/fence_post",
|
||||
"parent": "block/fence_post",
|
||||
"textures": {
|
||||
"texture": "botania:block/dreamwood_planks"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/fence_side",
|
||||
"parent": "block/fence_side",
|
||||
"textures": {
|
||||
"texture": "botania:block/dreamwood_planks"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "block/cube_all",
|
||||
"textures": {
|
||||
"all": "botania:block/elf_glass_0"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "block/cube_all",
|
||||
"textures": {
|
||||
"all": "botania:block/elf_glass_1"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "block/cube_all",
|
||||
"textures": {
|
||||
"all": "botania:block/elf_glass_2"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "block/cube_all",
|
||||
"textures": {
|
||||
"all": "botania:block/elf_glass_3"
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/template_fence_gate",
|
||||
"parent": "block/template_fence_gate",
|
||||
"textures": {
|
||||
"texture": "botania:block/livingwood_planks"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/template_fence_gate_open",
|
||||
"parent": "block/template_fence_gate_open",
|
||||
"textures": {
|
||||
"texture": "botania:block/livingwood_planks"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/template_fence_gate_wall",
|
||||
"parent": "block/template_fence_gate_wall",
|
||||
"textures": {
|
||||
"texture": "botania:block/livingwood_planks"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "block/template_fence_gate_wall_open",
|
||||
"textures": {
|
||||
"texture": "botania:block/livingwood_planks"
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/fence_post",
|
||||
"parent": "block/fence_post",
|
||||
"textures": {
|
||||
"texture": "botania:block/livingwood_planks"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/fence_side",
|
||||
"parent": "block/fence_side",
|
||||
"textures": {
|
||||
"texture": "botania:block/livingwood_planks"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -42,6 +42,7 @@ import java.util.stream.Collectors;
|
||||
import java.util.stream.IntStream;
|
||||
|
||||
import static vazkii.botania.common.block.ModBlocks.*;
|
||||
import static vazkii.botania.common.block.ModFluffBlocks.*;
|
||||
import static vazkii.botania.common.lib.ResourceLocationHelper.prefix;
|
||||
|
||||
public class BlockstateProvider extends BlockStateProvider {
|
||||
@@ -73,7 +74,10 @@ public class BlockstateProvider extends BlockStateProvider {
|
||||
// Single blocks
|
||||
String elfGlassName = Registry.BLOCK.getKey(elfGlass).getPath();
|
||||
ConfiguredModel[] elfGlassFiles = IntStream.rangeClosed(0, 3)
|
||||
.mapToObj(i -> models().getExistingFile(prefix("block/" + elfGlassName + "_" + i)))
|
||||
.mapToObj(i -> {
|
||||
String varName = elfGlassName + "_" + i;
|
||||
return models().cubeAll(varName, prefix("block/" + varName));
|
||||
})
|
||||
.map(ConfiguredModel::new).toArray(ConfiguredModel[]::new);
|
||||
getVariantBuilder(elfGlass).partialState().setModels(elfGlassFiles);
|
||||
blocks.remove(elfGlass);
|
||||
@@ -90,9 +94,18 @@ public class BlockstateProvider extends BlockStateProvider {
|
||||
blocks.remove(ModFluffBlocks.livingrockWall);
|
||||
blocks.remove(ModFluffBlocks.livingwoodWall);
|
||||
|
||||
fenceBlock((FenceBlock) dreamwoodFence, prefix("block/dreamwood_planks"));
|
||||
fenceGateBlock((FenceGateBlock) dreamwoodFenceGate, prefix("block/dreamwood_planks"));
|
||||
fenceBlock((FenceBlock) livingwoodFence, prefix("block/livingwood_planks"));
|
||||
fenceGateBlock((FenceGateBlock) livingwoodFenceGate, prefix("block/livingwood_planks"));
|
||||
blocks.remove(dreamwoodFence);
|
||||
blocks.remove(dreamwoodFenceGate);
|
||||
blocks.remove(livingwoodFence);
|
||||
blocks.remove(livingwoodFenceGate);
|
||||
|
||||
String felName = Registry.BLOCK.getKey(felPumpkin).getPath();
|
||||
models().orientable(felName, new ResourceLocation("block/pumpkin_side"), prefix("block/" + felName),
|
||||
new ResourceLocation("block/pumpkin_top"));
|
||||
simpleBlock(felPumpkin, models().orientable(felName, new ResourceLocation("block/pumpkin_side"), prefix("block/" + felName),
|
||||
new ResourceLocation("block/pumpkin_top")));
|
||||
blocks.remove(felPumpkin);
|
||||
|
||||
// TESRs with only particles
|
||||
@@ -244,16 +257,6 @@ public class BlockstateProvider extends BlockStateProvider {
|
||||
.partialState().with(RotatedPillarBlock.AXIS, Direction.Axis.X).setModels(new ConfiguredModel(file, 90, 90, false))
|
||||
.partialState().with(RotatedPillarBlock.AXIS, Direction.Axis.Y).setModels(new ConfiguredModel(file))
|
||||
.partialState().with(RotatedPillarBlock.AXIS, Direction.Axis.Z).setModels(new ConfiguredModel(file, 90, 0, false));
|
||||
} else if (b instanceof FenceBlock) {
|
||||
ModelFile post = models().getExistingFile(prefix("block/" + name + "_post"));
|
||||
ModelFile side = models().getExistingFile(prefix("block/" + name + "_side"));
|
||||
fourWayBlock((FenceBlock) b, post, side);
|
||||
} else if (b instanceof FenceGateBlock) {
|
||||
ModelFile gate = models().getExistingFile(prefix("block/" + name));
|
||||
ModelFile gateOpen = models().getExistingFile(prefix("block/" + name + "_open"));
|
||||
ModelFile wall = models().getExistingFile(prefix("block/" + name + "_wall"));
|
||||
ModelFile wallOpen = models().getExistingFile(prefix("block/" + name + "_wall_open"));
|
||||
fenceGateBlock((FenceGateBlock) b, gate, gateOpen, wall, wallOpen);
|
||||
} else if (b instanceof PaneBlock) {
|
||||
ModelFile post = models().getExistingFile(prefix("block/" + name + "_post"));
|
||||
ModelFile side = models().getExistingFile(prefix("block/" + name + "_side"));
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
{
|
||||
"parent": "minecraft:block/template_fence_gate_wall_open",
|
||||
"textures": {
|
||||
"texture": "botania:block/dreamwood_planks"
|
||||
}
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
{
|
||||
"parent": "minecraft:block/cube_all",
|
||||
"textures": {
|
||||
"all": "botania:block/elfglass0"
|
||||
}
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
{
|
||||
"parent": "minecraft:block/cube_all",
|
||||
"textures": {
|
||||
"all": "botania:block/elfglass1"
|
||||
}
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
{
|
||||
"parent": "minecraft:block/cube_all",
|
||||
"textures": {
|
||||
"all": "botania:block/elfglass2"
|
||||
}
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
{
|
||||
"parent": "minecraft:block/cube_all",
|
||||
"textures": {
|
||||
"all": "botania:block/elfglass3"
|
||||
}
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
{
|
||||
"parent": "minecraft:block/template_fence_gate_wall_open",
|
||||
"textures": {
|
||||
"texture": "botania:block/livingwood_planks"
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 212 B After Width: | Height: | Size: 212 B |
|
Before Width: | Height: | Size: 243 B After Width: | Height: | Size: 243 B |
|
Before Width: | Height: | Size: 201 B After Width: | Height: | Size: 201 B |
|
Before Width: | Height: | Size: 231 B After Width: | Height: | Size: 231 B |