Datagenerate incense plate, pump, fel pumpkin, tiny potato

This commit is contained in:
Vincent Lee committed 2020-01-17 21:24:00 -06:00
1 parent f58a48c254
commit d75df9fa6a
15 files changed
+88 -41

No files matched your search

@@ -0,0 +1,19 @@
{
"variants": {
"facing=north": {
"model": "botania:block/fel_pumpkin"
},
"facing=south": {
"model": "botania:block/fel_pumpkin",
"y": 180
},
"facing=west": {
"model": "botania:block/fel_pumpkin",
"y": 270
},
"facing=east": {
"model": "botania:block/fel_pumpkin",
"y": 90
}
}
}
@@ -0,0 +1,19 @@
{
"variants": {
"facing=north": {
"model": "botania:block/incense_plate",
"y": 180
},
"facing=south": {
"model": "botania:block/incense_plate"
},
"facing=west": {
"model": "botania:block/incense_plate",
"y": 90
},
"facing=east": {
"model": "botania:block/incense_plate",
"y": 270
}
}
}
@@ -0,0 +1,19 @@
{
"variants": {
"facing=north": {
"model": "botania:block/pump"
},
"facing=south": {
"model": "botania:block/pump",
"y": 180
},
"facing=west": {
"model": "botania:block/pump",
"y": 270
},
"facing=east": {
"model": "botania:block/pump",
"y": 90
}
}
}
@@ -0,0 +1,19 @@
{
"variants": {
"facing=north": {
"model": "botania:block/tiny_potato"
},
"facing=south": {
"model": "botania:block/tiny_potato",
"y": 180
},
"facing=west": {
"model": "botania:block/tiny_potato",
"y": 270
},
"facing=east": {
"model": "botania:block/tiny_potato",
"y": 90
}
}
}
@@ -146,7 +146,7 @@ public class MiscellaneousIcons {
evt.getModelRegistry().put(key, new GunModel(evt.getModelLoader(), originalModel, originalModelClip));
RenderTileCorporeaCrystalCube.cubeModel = evt.getModelRegistry().get(prefix("block/corporea_crystal_cube_glass"));
RenderTilePump.headModel = evt.getModelRegistry().get(prefix("block/mana_pump_head"));
RenderTilePump.headModel = evt.getModelRegistry().get(prefix("block/pump_head"));
// Icons
goldfishModel = evt.getModelRegistry().get(prefix("icon/goldfish"));
@@ -103,7 +103,7 @@ public final class ModelHandler {
ModelLoader.addSpecialModel(new ModelResourceLocation(LibMisc.MOD_ID + ":desu_gun", "inventory"));
ModelLoader.addSpecialModel(new ModelResourceLocation(LibMisc.MOD_ID + ":desu_gun_clip", "inventory"));
ModelLoader.addSpecialModel(prefix("block/corporea_crystal_cube_glass"));
ModelLoader.addSpecialModel(prefix("block/mana_pump_head"));
ModelLoader.addSpecialModel(prefix("block/pump_head"));
registerSubtiles();
ClientRegistry.bindTileEntityRenderer(TileAltar.TYPE, RenderTileAltar::new);
@@ -1,6 +1,5 @@
package vazkii.botania.client.model;
import com.google.common.collect.ImmutableMap;
import com.google.gson.JsonDeserializationContext;
import com.google.gson.JsonObject;
import com.mojang.blaze3d.matrix.MatrixStack;
@@ -25,7 +24,6 @@ import net.minecraft.util.ResourceLocation;
import net.minecraftforge.client.model.BakedModelWrapper;
import net.minecraftforge.client.model.IModelConfiguration;
import net.minecraftforge.client.model.IModelLoader;
import net.minecraftforge.client.model.ModelLoaderRegistry;
import net.minecraftforge.client.model.ModelTransformComposition;
import net.minecraftforge.client.model.SimpleModelTransform;
import net.minecraftforge.client.model.data.EmptyModelData;
@@ -52,7 +50,7 @@ public class FloatingFlowerModel implements IModelGeometry<FloatingFlowerModel>
private IUnbakedModel unbakedFlower;
private final Map<IFloatingFlower.IslandType, IUnbakedModel> unbakedIslands = new HashMap<>();
private FloatingFlowerModel(@Nullable IUnbakedModel flower) {
private FloatingFlowerModel(IUnbakedModel flower) {
this.unbakedFlower = flower;
}
@@ -53,10 +53,9 @@ public class BlockstateProvider extends BlockStateProvider {
protected void registerStatesAndModels() {
Registry.BLOCK.stream().filter(b -> LibMisc.MOD_ID.equals(b.getRegistryName().getNamespace()))
.forEach(b -> {
if (b == ModBlocks.tinyPotato
|| b instanceof BlockRedString || b instanceof BlockFloatingFlower
if (b instanceof BlockRedString || b instanceof BlockFloatingFlower
|| b == ModBlocks.craftCrate || b == ModBlocks.ghostRail
|| b == ModBlocks.pump || b == ModBlocks.incensePlate || b == ModBlocks.felPumpkin || b == ModBlocks.solidVines)
|| b == ModBlocks.solidVines)
return;
String name = b.getRegistryName().getPath();
@@ -127,6 +126,12 @@ public class BlockstateProvider extends BlockStateProvider {
ModelFile onFile = models().getExistingFile(prefix("block/" + name + "_powered"));
getVariantBuilder(b).partialState().with(BotaniaStateProps.POWERED, false).setModels(new ConfiguredModel(offFile));
getVariantBuilder(b).partialState().with(BotaniaStateProps.POWERED, true).setModels(new ConfiguredModel(onFile));
} else if (b == ModBlocks.tinyPotato || b == ModBlocks.felPumpkin || b == ModBlocks.pump) {
ModelFile file = models().getExistingFile(prefix("block/" + name));
horizontalBlock(b, file);
} else if (b == ModBlocks.incensePlate) {
ModelFile file = models().getExistingFile(prefix("block/" + name));
horizontalBlock(b, file, 0);
} else {
simpleBlock(b, models().getExistingFile(prefix("block/" + name)));
}
@@ -1,8 +0,0 @@
{
"variants": {
"facing=north": { "model": "botania:block/fel_pumpkin" },
"facing=south": { "model": "botania:block/fel_pumpkin", "y": 180 },
"facing=west": { "model": "botania:block/fel_pumpkin", "y": 270 },
"facing=east": { "model": "botania:block/fel_pumpkin", "y": 90 }
}
}
@@ -1,8 +0,0 @@
{
"variants": {
"facing=north": { "model": "botania:block/incense_plate", "y": 180 },
"facing=south": { "model": "botania:block/incense_plate" },
"facing=west": { "model": "botania:block/incense_plate", "y": 90 },
"facing=east": { "model": "botania:block/incense_plate", "y": 270 }
}
}
@@ -1,8 +0,0 @@
{
"variants": {
"facing=north": { "model": "botania:block/mana_pump" },
"facing=south": { "model": "botania:block/mana_pump","y": 180 },
"facing=west": { "model": "botania:block/mana_pump","y": 270 },
"facing=east": { "model": "botania:block/mana_pump","y": 90 }
}
}
@@ -1,8 +0,0 @@
{
"variants": {
"facing=north": { "model": "botania:block/tiny_potato" },
"facing=south": { "model": "botania:block/tiny_potato", "y": 180 },
"facing=west": { "model": "botania:block/tiny_potato", "y": 270 },
"facing=east": { "model": "botania:block/tiny_potato", "y": 90 }
}
}
@@ -1,5 +1,5 @@
{
"Comment0": "Combination of block/mana_pump and block/mana_pump_head",
"Comment0": "Combination of block/pump and block/pump_head",
"Comment": "Designed by Wiiv with Cubik Studio - https://cubik.studio",
"parent": "minecraft:block/block",
"textures": {