mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-19 19:59:36 +00:00
First block models
This commit is contained in:
1 parent
56228446b8
commit
cff6120aaf
71 files changed
+793
-12
No files matched your search
+1
-1
@@ -28,4 +28,4 @@ sorry :/ The systems needed to dynamically switch out the textures like that is
|
||||
- Sub to texture stitch and bake our own model there to use?
|
||||
- This remains the largest portion of what is left
|
||||
- Where is the method to render an arbitrary baked model?
|
||||
* CRITICAL: All blockstates are done, but they appear to not be registered correctly (always have default variant)... is it the itemblock's fault??
|
||||
* ItemBlocks seem to merge subtypes (shift clicking storage blocks onto each other)
|
||||
@@ -0,0 +1,148 @@
|
||||
package vazkii.botania.client.core.handler;
|
||||
|
||||
import com.google.common.collect.ImmutableList;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.BlockFlower;
|
||||
import net.minecraft.block.BlockSlab;
|
||||
import net.minecraft.block.BlockWall;
|
||||
import net.minecraft.client.renderer.block.statemap.StateMap;
|
||||
import net.minecraft.client.resources.model.ModelResourceLocation;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.item.EnumDyeColor;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraftforge.client.model.ModelLoader;
|
||||
import net.minecraftforge.fml.common.registry.GameData;
|
||||
import vazkii.botania.api.state.enums.StorageVariant;
|
||||
import vazkii.botania.common.block.ModBlocks;
|
||||
import vazkii.botania.common.block.ModFluffBlocks;
|
||||
import vazkii.botania.common.block.decor.slabs.BlockModSlab;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public final class ModelHandler {
|
||||
|
||||
// Very hardocode-y right now. Will be refactored after things work.
|
||||
// In addition, many of the jsons currently use the vanilla format (simple and verified bug-free).
|
||||
// Once things settle down, we'll move to forge jsons, which will drastically cut down on the number of json files
|
||||
public static void registerModels() {
|
||||
/** Custom statemappers **/
|
||||
registerStateMappers();
|
||||
|
||||
/** ItemBlocks **/
|
||||
registerStorageItemBlocks();
|
||||
registerMushroomItemBlocks();
|
||||
registerFlowerItemBlocks();
|
||||
/** Normal Items **/
|
||||
|
||||
/** Special Item Meshers **/
|
||||
}
|
||||
|
||||
private static void registerStateMappers() {
|
||||
// Ignore vanilla variant in flowers
|
||||
ModelLoader.setCustomStateMapper(ModBlocks.flower, (new StateMap.Builder()).ignore(((BlockFlower) ModBlocks.flower).getTypeProperty()).build());
|
||||
ModelLoader.setCustomStateMapper(ModBlocks.shinyFlower, (new StateMap.Builder()).ignore(((BlockFlower) ModBlocks.shinyFlower).getTypeProperty()).build());
|
||||
ModelLoader.setCustomStateMapper(ModBlocks.buriedPetals, (new StateMap.Builder()).ignore(((BlockFlower) ModBlocks.buriedPetals).getTypeProperty()).build());
|
||||
ModelLoader.setCustomStateMapper(ModBlocks.specialFlower, (new StateMap.Builder()).ignore(((BlockFlower) ModBlocks.specialFlower).getTypeProperty()).build());
|
||||
|
||||
// Ignore vanilla variant in walls
|
||||
ModelLoader.setCustomStateMapper(ModFluffBlocks.biomeStoneWall, (new StateMap.Builder()).ignore(BlockWall.VARIANT).build());
|
||||
ModelLoader.setCustomStateMapper(ModFluffBlocks.dreamwoodWall, (new StateMap.Builder()).ignore(BlockWall.VARIANT).build());
|
||||
ModelLoader.setCustomStateMapper(ModFluffBlocks.livingrockWall, (new StateMap.Builder()).ignore(BlockWall.VARIANT).build());
|
||||
ModelLoader.setCustomStateMapper(ModFluffBlocks.livingwoodWall, (new StateMap.Builder()).ignore(BlockWall.VARIANT).build());
|
||||
ModelLoader.setCustomStateMapper(ModFluffBlocks.prismarineWall, (new StateMap.Builder()).ignore(BlockWall.VARIANT).build());
|
||||
ModelLoader.setCustomStateMapper(ModFluffBlocks.reedWall, (new StateMap.Builder()).ignore(BlockWall.VARIANT).build());
|
||||
ModelLoader.setCustomStateMapper(ModFluffBlocks.stoneWall, (new StateMap.Builder()).ignore(BlockWall.VARIANT).build());
|
||||
|
||||
// Ignore dummy variant in slabs
|
||||
for (Block b : ModFluffBlocks.biomeStoneSlabs) {
|
||||
ModelLoader.setCustomStateMapper(b, (new StateMap.Builder()).ignore(BlockModSlab.DUMMY).build());
|
||||
}
|
||||
|
||||
for (Block b : ModFluffBlocks.pavementSlabs) {
|
||||
ModelLoader.setCustomStateMapper(b, (new StateMap.Builder()).ignore(BlockModSlab.DUMMY).build());
|
||||
}
|
||||
|
||||
for (Block b : ModFluffBlocks.stoneSlabs) {
|
||||
ModelLoader.setCustomStateMapper(b, (new StateMap.Builder()).ignore(BlockModSlab.DUMMY).build());
|
||||
}
|
||||
|
||||
List<Block> otherSlabs = ImmutableList.copyOf(new Block[] {
|
||||
ModFluffBlocks.livingwoodSlab, ModFluffBlocks.livingrockSlab, ModFluffBlocks.dreamwoodSlab, ModFluffBlocks.livingrockBrickSlab,
|
||||
ModFluffBlocks.dreamwoodPlankSlab, ModFluffBlocks.prismarineSlab, ModFluffBlocks.prismarineBrickSlab, ModFluffBlocks.darkPrismarineSlab,
|
||||
ModFluffBlocks.reedSlab, ModFluffBlocks.thatchSlab, ModFluffBlocks.netherBrickSlab, ModFluffBlocks.soulBrickSlab, ModFluffBlocks.snowBrickSlab,
|
||||
ModFluffBlocks.tileSlab, ModFluffBlocks.darkQuartzSlab, ModFluffBlocks.manaQuartzSlab, ModFluffBlocks.blazeQuartzSlab,
|
||||
ModFluffBlocks.lavenderQuartzSlab, ModFluffBlocks.redQuartzSlab, ModFluffBlocks.elfQuartzSlab, ModFluffBlocks.sunnyQuartzSlab
|
||||
});
|
||||
|
||||
for (Block b : otherSlabs) {
|
||||
ModelLoader.setCustomStateMapper(b, (new StateMap.Builder()).ignore(BlockModSlab.DUMMY).build());
|
||||
}
|
||||
|
||||
// Ignore both dummy variant and half prop in full slabs
|
||||
for (Block b : ModFluffBlocks.biomeStoneFullSlabs) {
|
||||
ModelLoader.setCustomStateMapper(b, (new StateMap.Builder()).ignore(BlockModSlab.DUMMY, BlockSlab.HALF).build());
|
||||
}
|
||||
|
||||
for (Block b : ModFluffBlocks.pavementFullSlabs) {
|
||||
ModelLoader.setCustomStateMapper(b, (new StateMap.Builder()).ignore(BlockModSlab.DUMMY, BlockSlab.HALF).build());
|
||||
}
|
||||
|
||||
for (Block b : ModFluffBlocks.stoneFullSlabs) {
|
||||
ModelLoader.setCustomStateMapper(b, (new StateMap.Builder()).ignore(BlockModSlab.DUMMY, BlockSlab.HALF).build());
|
||||
}
|
||||
|
||||
List<Block> otherFullSlabs = ImmutableList.copyOf(new Block[] {
|
||||
ModFluffBlocks.livingwoodSlabFull, ModFluffBlocks.livingrockSlabFull, ModFluffBlocks.dreamwoodSlabFull, ModFluffBlocks.livingrockBrickSlabFull,
|
||||
ModFluffBlocks.dreamwoodPlankSlabFull, ModFluffBlocks.prismarineSlabFull, ModFluffBlocks.prismarineBrickSlabFull, ModFluffBlocks.darkPrismarineSlabFull,
|
||||
ModFluffBlocks.reedSlabFull, ModFluffBlocks.thatchSlabFull, ModFluffBlocks.netherBrickSlabFull, ModFluffBlocks.soulBrickSlabFull, ModFluffBlocks.snowBrickSlabFull,
|
||||
ModFluffBlocks.tileSlabFull, ModFluffBlocks.darkQuartzSlabFull, ModFluffBlocks.manaQuartzSlabFull, ModFluffBlocks.blazeQuartzSlabFull,
|
||||
ModFluffBlocks.lavenderQuartzSlabFull, ModFluffBlocks.redQuartzSlabFull, ModFluffBlocks.elfQuartzSlabFull, ModFluffBlocks.sunnyQuartzSlabFull
|
||||
});
|
||||
|
||||
for (Block b : otherFullSlabs) {
|
||||
ModelLoader.setCustomStateMapper(b, (new StateMap.Builder()).ignore(BlockModSlab.DUMMY, BlockSlab.HALF).build());
|
||||
}
|
||||
}
|
||||
|
||||
private static void registerStorageItemBlocks() {
|
||||
Item item = Item.getItemFromBlock(ModBlocks.storage);
|
||||
for (StorageVariant variant : StorageVariant.values()) {
|
||||
String name = "botania:" + variant.getName() + "_block";
|
||||
ModelLoader.addVariantName(item, name);
|
||||
ModelLoader.setCustomModelResourceLocation(item, variant.ordinal(), new ModelResourceLocation(name, "inventory"));
|
||||
}
|
||||
}
|
||||
|
||||
private static void registerMushroomItemBlocks() {
|
||||
Item item = Item.getItemFromBlock(ModBlocks.mushroom);
|
||||
for (EnumDyeColor color : EnumDyeColor.values()) {
|
||||
String name = "botania:" + color.getName() + "_mushroom";
|
||||
ModelLoader.addVariantName(item, name);
|
||||
ModelLoader.setCustomModelResourceLocation(item, color.getMetadata(), new ModelResourceLocation(name, "inventory"));
|
||||
}
|
||||
}
|
||||
|
||||
private static void registerFlowerItemBlocks() {
|
||||
Item item = Item.getItemFromBlock(ModBlocks.flower);
|
||||
for (EnumDyeColor color : EnumDyeColor.values()) {
|
||||
String name = "botania:" + color.getName() + "_flower";
|
||||
ModelLoader.addVariantName(item, name);
|
||||
ModelLoader.setCustomModelResourceLocation(item, color.getMetadata(), new ModelResourceLocation(name, "inventory"));
|
||||
}
|
||||
|
||||
item = Item.getItemFromBlock(ModBlocks.shinyFlower);
|
||||
for (EnumDyeColor color : EnumDyeColor.values()) {
|
||||
String name = "botania:" + color.getName() + "_shinyFlower";
|
||||
ModelLoader.addVariantName(item, name);
|
||||
ModelLoader.setCustomModelResourceLocation(item, color.getMetadata(), new ModelResourceLocation(name, "inventory"));
|
||||
}
|
||||
}
|
||||
|
||||
private static void registerItemModel(Item i) {
|
||||
ResourceLocation loc = GameData.getItemRegistry().getNameForObject(i);
|
||||
ModelLoader.setCustomModelResourceLocation(i, 0, new ModelResourceLocation(loc, "inventory"));
|
||||
}
|
||||
|
||||
private ModelHandler() {}
|
||||
}
|
||||
@@ -51,6 +51,7 @@ import vazkii.botania.client.core.handler.CorporeaAutoCompleteHandler;
|
||||
import vazkii.botania.client.core.handler.DebugHandler;
|
||||
import vazkii.botania.client.core.handler.HUDHandler;
|
||||
import vazkii.botania.client.core.handler.LightningHandler;
|
||||
import vazkii.botania.client.core.handler.ModelHandler;
|
||||
import vazkii.botania.client.core.handler.MultiblockRenderHandler;
|
||||
import vazkii.botania.client.core.handler.PersistentVariableHelper;
|
||||
import vazkii.botania.client.core.handler.SubTileRadiusRenderHandler;
|
||||
@@ -178,6 +179,8 @@ public class ClientProxy extends CommonProxy {
|
||||
}
|
||||
|
||||
super.preInit(event);
|
||||
|
||||
ModelHandler.registerModels();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -12,7 +12,7 @@ package vazkii.botania.client.lib;
|
||||
|
||||
public final class LibResources {
|
||||
|
||||
public static final String PREFIX_MOD = "botania:"; // todo 1.8 take out the colon?
|
||||
public static final String PREFIX_MOD = "botania:";
|
||||
|
||||
public static final String PREFIX_LANG = "/assets/botania/lang/";
|
||||
public static final String PREFIX_SHADER = "/assets/botania/shader/";
|
||||
|
||||
@@ -108,11 +108,6 @@ public class BlockModFlower extends BlockFlower implements ILexiconable, IPickup
|
||||
return super.setLightLevel(p_149715_1_);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getRenderType() {
|
||||
return LibRenderIDs.idSpecialFlower;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int damageDropped(IBlockState state) {
|
||||
return getMetaFromState(state);
|
||||
|
||||
@@ -28,7 +28,7 @@ public abstract class BlockModSlab extends BlockSlab implements ILexiconable {
|
||||
|
||||
String name;
|
||||
protected final boolean doubleSlab;
|
||||
public static final PropertyEnum DUMMY = PropertyEnum.create("dummy", DummyEnum.class); // todo 1.8.8 statemapper ignore this prop for everything
|
||||
public static final PropertyEnum DUMMY = PropertyEnum.create("dummy", DummyEnum.class);
|
||||
|
||||
public BlockModSlab(boolean full, Material mat, String name) {
|
||||
super(mat);
|
||||
@@ -39,22 +39,30 @@ public abstract class BlockModSlab extends BlockSlab implements ILexiconable {
|
||||
setCreativeTab(BotaniaCreativeTab.INSTANCE);
|
||||
useNeighborBrightness = true;
|
||||
}
|
||||
setDefaultState(blockState.getBaseState().withProperty(DUMMY, DummyEnum.SINGLETON));
|
||||
setDefaultState(blockState.getBaseState().withProperty(HALF, EnumBlockHalf.BOTTOM).withProperty(DUMMY, DummyEnum.SINGLETON));
|
||||
}
|
||||
|
||||
@Override
|
||||
public BlockState createBlockState() {
|
||||
return new BlockState(this, getVariantProperty());
|
||||
return new BlockState(this, HALF, getVariantProperty());
|
||||
}
|
||||
|
||||
@Override
|
||||
public IBlockState getStateFromMeta(int meta) {
|
||||
return getDefaultState();
|
||||
if (doubleSlab) {
|
||||
return getDefaultState();
|
||||
} else {
|
||||
return getDefaultState().withProperty(HALF, meta == 8 ? EnumBlockHalf.TOP : EnumBlockHalf.BOTTOM);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getMetaFromState(IBlockState state) {
|
||||
return 0;
|
||||
if (doubleSlab) {
|
||||
return 0;
|
||||
} else {
|
||||
return state.getValue(HALF) == EnumBlockHalf.TOP ? 8 : 0;
|
||||
}
|
||||
}
|
||||
|
||||
public abstract BlockSlab getFullBlock();
|
||||
|
||||
@@ -25,6 +25,7 @@ public class ItemBlockWithMetadataAndName extends ItemBlock implements IPickupAc
|
||||
|
||||
public ItemBlockWithMetadataAndName(Block par2Block) {
|
||||
super(par2Block);
|
||||
setHasSubtypes(true);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -47,4 +48,10 @@ public class ItemBlockWithMetadataAndName extends ItemBlock implements IPickupAc
|
||||
return block instanceof IPickupAchievement ? ((IPickupAchievement) block).getAchievementOnPickup(stack, player, item) : null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getMetadata(int damage)
|
||||
{
|
||||
return damage;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
{
|
||||
"forge_marker": 1,
|
||||
"variants": {
|
||||
"color": {
|
||||
"white": {
|
||||
"model": "minecraft:cross",
|
||||
"textures": { "cross": "botania:blocks/flower0" }
|
||||
},
|
||||
"orange": {
|
||||
"model": "minecraft:cross",
|
||||
"textures": { "cross": "botania:blocks/flower1" }
|
||||
},
|
||||
"magenta": {
|
||||
"model": "minecraft:cross",
|
||||
"textures": { "cross": "botania:blocks/flower2" }
|
||||
},
|
||||
"light_blue": {
|
||||
"model": "minecraft:cross",
|
||||
"textures": { "cross": "botania:blocks/flower3" }
|
||||
},
|
||||
"yellow": {
|
||||
"model": "minecraft:cross",
|
||||
"textures": { "cross": "botania:blocks/flower4" }
|
||||
},
|
||||
"lime": {
|
||||
"model": "minecraft:cross",
|
||||
"textures": { "cross": "botania:blocks/flower5" }
|
||||
},
|
||||
"pink": {
|
||||
"model": "minecraft:cross",
|
||||
"textures": { "cross": "botania:blocks/flower6" }
|
||||
},
|
||||
"gray": {
|
||||
"model": "minecraft:cross",
|
||||
"textures": { "cross": "botania:blocks/flower7" }
|
||||
},
|
||||
"silver": {
|
||||
"model": "minecraft:cross",
|
||||
"textures": { "cross": "botania:blocks/flower8" }
|
||||
},
|
||||
"cyan": {
|
||||
"model": "minecraft:cross",
|
||||
"textures": { "cross": "botania:blocks/flower9" }
|
||||
},
|
||||
"purple": {
|
||||
"model": "minecraft:cross",
|
||||
"textures": { "cross": "botania:blocks/flower10" }
|
||||
},
|
||||
"blue": {
|
||||
"model": "minecraft:cross",
|
||||
"textures": { "cross": "botania:blocks/flower11" }
|
||||
},
|
||||
"brown": {
|
||||
"model": "minecraft:cross",
|
||||
"textures": { "cross": "botania:blocks/flower12" }
|
||||
},
|
||||
"green": {
|
||||
"model": "minecraft:cross",
|
||||
"textures": { "cross": "botania:blocks/flower13" }
|
||||
},
|
||||
"red": {
|
||||
"model": "minecraft:cross",
|
||||
"textures": { "cross": "botania:blocks/flower14" }
|
||||
},
|
||||
"black": {
|
||||
"model": "minecraft:cross",
|
||||
"textures": { "cross": "botania:blocks/flower15" }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
{
|
||||
"forge_marker": 1,
|
||||
"variants": {
|
||||
"color": {
|
||||
"white": {
|
||||
"model": "minecraft:cross",
|
||||
"textures": { "cross": "botania:blocks/mushroom0" }
|
||||
},
|
||||
"orange": {
|
||||
"model": "minecraft:cross",
|
||||
"textures": { "cross": "botania:blocks/mushroom1" }
|
||||
},
|
||||
"magenta": {
|
||||
"model": "minecraft:cross",
|
||||
"textures": { "cross": "botania:blocks/mushroom2" }
|
||||
},
|
||||
"light_blue": {
|
||||
"model": "minecraft:cross",
|
||||
"textures": { "cross": "botania:blocks/mushroom3" }
|
||||
},
|
||||
"yellow": {
|
||||
"model": "minecraft:cross",
|
||||
"textures": { "cross": "botania:blocks/mushroom4" }
|
||||
},
|
||||
"lime": {
|
||||
"model": "minecraft:cross",
|
||||
"textures": { "cross": "botania:blocks/mushroom5" }
|
||||
},
|
||||
"pink": {
|
||||
"model": "minecraft:cross",
|
||||
"textures": { "cross": "botania:blocks/mushroom6" }
|
||||
},
|
||||
"gray": {
|
||||
"model": "minecraft:cross",
|
||||
"textures": { "cross": "botania:blocks/mushroom7" }
|
||||
},
|
||||
"silver": {
|
||||
"model": "minecraft:cross",
|
||||
"textures": { "cross": "botania:blocks/mushroom8" }
|
||||
},
|
||||
"cyan": {
|
||||
"model": "minecraft:cross",
|
||||
"textures": { "cross": "botania:blocks/mushroom9" }
|
||||
},
|
||||
"purple": {
|
||||
"model": "minecraft:cross",
|
||||
"textures": { "cross": "botania:blocks/mushroom10" }
|
||||
},
|
||||
"blue": {
|
||||
"model": "minecraft:cross",
|
||||
"textures": { "cross": "botania:blocks/mushroom11" }
|
||||
},
|
||||
"brown": {
|
||||
"model": "minecraft:cross",
|
||||
"textures": { "cross": "botania:blocks/mushroom12" }
|
||||
},
|
||||
"green": {
|
||||
"model": "minecraft:cross",
|
||||
"textures": { "cross": "botania:blocks/mushroom13" }
|
||||
},
|
||||
"red": {
|
||||
"model": "minecraft:cross",
|
||||
"textures": { "cross": "botania:blocks/mushroom14" }
|
||||
},
|
||||
"black": {
|
||||
"model": "minecraft:cross",
|
||||
"textures": { "cross": "botania:blocks/mushroom15" }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
{
|
||||
"forge_marker": 1,
|
||||
"variants": {
|
||||
"color": {
|
||||
"white": {
|
||||
"model": "minecraft:cross",
|
||||
"textures": { "cross": "botania:blocks/flowerGlimmering0" }
|
||||
},
|
||||
"orange": {
|
||||
"model": "minecraft:cross",
|
||||
"textures": { "cross": "botania:blocks/flowerGlimmering1" }
|
||||
},
|
||||
"magenta": {
|
||||
"model": "minecraft:cross",
|
||||
"textures": { "cross": "botania:blocks/flowerGlimmering2" }
|
||||
},
|
||||
"light_blue": {
|
||||
"model": "minecraft:cross",
|
||||
"textures": { "cross": "botania:blocks/flowerGlimmering3" }
|
||||
},
|
||||
"yellow": {
|
||||
"model": "minecraft:cross",
|
||||
"textures": { "cross": "botania:blocks/flowerGlimmering4" }
|
||||
},
|
||||
"lime": {
|
||||
"model": "minecraft:cross",
|
||||
"textures": { "cross": "botania:blocks/flowerGlimmering5" }
|
||||
},
|
||||
"pink": {
|
||||
"model": "minecraft:cross",
|
||||
"textures": { "cross": "botania:blocks/flowerGlimmering6" }
|
||||
},
|
||||
"gray": {
|
||||
"model": "minecraft:cross",
|
||||
"textures": { "cross": "botania:blocks/flowerGlimmering7" }
|
||||
},
|
||||
"silver": {
|
||||
"model": "minecraft:cross",
|
||||
"textures": { "cross": "botania:blocks/flowerGlimmering8" }
|
||||
},
|
||||
"cyan": {
|
||||
"model": "minecraft:cross",
|
||||
"textures": { "cross": "botania:blocks/flowerGlimmering9" }
|
||||
},
|
||||
"purple": {
|
||||
"model": "minecraft:cross",
|
||||
"textures": { "cross": "botania:blocks/flowerGlimmering10" }
|
||||
},
|
||||
"blue": {
|
||||
"model": "minecraft:cross",
|
||||
"textures": { "cross": "botania:blocks/flowerGlimmering11" }
|
||||
},
|
||||
"brown": {
|
||||
"model": "minecraft:cross",
|
||||
"textures": { "cross": "botania:blocks/flowerGlimmering12" }
|
||||
},
|
||||
"green": {
|
||||
"model": "minecraft:cross",
|
||||
"textures": { "cross": "botania:blocks/flowerGlimmering13" }
|
||||
},
|
||||
"red": {
|
||||
"model": "minecraft:cross",
|
||||
"textures": { "cross": "botania:blocks/flowerGlimmering14" }
|
||||
},
|
||||
"black": {
|
||||
"model": "minecraft:cross",
|
||||
"textures": { "cross": "botania:blocks/flowerGlimmering15" }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"variants": {
|
||||
"variant=manasteel": { "model": "botania:manasteel_block" },
|
||||
"variant=terrasteel": { "model": "botania:terrasteel_block" },
|
||||
"variant=elementium": { "model": "botania:elementium_block" },
|
||||
"variant=mana_diamond": { "model": "botania:mana_diamond_block" },
|
||||
"variant=dragonstone": { "model": "botania:dragonstone_block" }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/cube_all",
|
||||
"textures": {
|
||||
"all": "botania:blocks/storage4"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/cube_all",
|
||||
"textures": {
|
||||
"all": "botania:blocks/storage2"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/cube_all",
|
||||
"textures": {
|
||||
"all": "botania:blocks/storage3"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/cube_all",
|
||||
"textures": {
|
||||
"all": "botania:blocks/storage0"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/cube_all",
|
||||
"textures": {
|
||||
"all": "botania:blocks/storage1"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "botania:item/standard_item",
|
||||
"textures": {
|
||||
"layer0": "botania:blocks/flower15"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "botania:item/standard_item",
|
||||
"textures": {
|
||||
"layer0": "botania:blocks/mushroom15"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "botania:item/standard_item",
|
||||
"textures": {
|
||||
"layer0": "botania:blocks/flowerGlimmering15"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "botania:item/standard_item",
|
||||
"textures": {
|
||||
"layer0": "botania:blocks/flower11"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "botania:item/standard_item",
|
||||
"textures": {
|
||||
"layer0": "botania:blocks/mushroom11"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "botania:item/standard_item",
|
||||
"textures": {
|
||||
"layer0": "botania:blocks/flowerGlimmering11"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "botania:item/standard_item",
|
||||
"textures": {
|
||||
"layer0": "botania:blocks/flower12"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "botania:item/standard_item",
|
||||
"textures": {
|
||||
"layer0": "botania:blocks/mushroom12"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "botania:item/standard_item",
|
||||
"textures": {
|
||||
"layer0": "botania:blocks/flowerGlimmering12"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "botania:item/standard_item",
|
||||
"textures": {
|
||||
"layer0": "botania:blocks/flower9"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "botania:item/standard_item",
|
||||
"textures": {
|
||||
"layer0": "botania:blocks/mushroom9"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "botania:item/standard_item",
|
||||
"textures": {
|
||||
"layer0": "botania:blocks/flowerGlimmering9"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"parent": "botania:block/dragonstone_block",
|
||||
"display": {
|
||||
"thirdperson": {
|
||||
"rotation": [ 10, -45, 170 ],
|
||||
"translation": [ 0, 1.5, -2.75 ],
|
||||
"scale": [ 0.375, 0.375, 0.375 ]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"parent": "botania:block/elementium_block",
|
||||
"display": {
|
||||
"thirdperson": {
|
||||
"rotation": [ 10, -45, 170 ],
|
||||
"translation": [ 0, 1.5, -2.75 ],
|
||||
"scale": [ 0.375, 0.375, 0.375 ]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "botania:item/standard_item",
|
||||
"textures": {
|
||||
"layer0": "botania:blocks/flower7"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "botania:item/standard_item",
|
||||
"textures": {
|
||||
"layer0": "botania:blocks/mushroom7"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "botania:item/standard_item",
|
||||
"textures": {
|
||||
"layer0": "botania:blocks/flowerGlimmering7"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "botania:item/standard_item",
|
||||
"textures": {
|
||||
"layer0": "botania:blocks/flower13"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "botania:item/standard_item",
|
||||
"textures": {
|
||||
"layer0": "botania:blocks/mushroom13"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "botania:item/standard_item",
|
||||
"textures": {
|
||||
"layer0": "botania:blocks/flowerGlimmering13"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "botania:item/standard_item",
|
||||
"textures": {
|
||||
"layer0": "botania:blocks/flower3"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "botania:item/standard_item",
|
||||
"textures": {
|
||||
"layer0": "botania:blocks/mushroom3"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "botania:item/standard_item",
|
||||
"textures": {
|
||||
"layer0": "botania:blocks/flowerGlimmering3"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "botania:item/standard_item",
|
||||
"textures": {
|
||||
"layer0": "botania:blocks/flower5"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "botania:item/standard_item",
|
||||
"textures": {
|
||||
"layer0": "botania:blocks/mushroom5"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "botania:item/standard_item",
|
||||
"textures": {
|
||||
"layer0": "botania:blocks/flowerGlimmering5"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "botania:item/standard_item",
|
||||
"textures": {
|
||||
"layer0": "botania:blocks/flower2"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "botania:item/standard_item",
|
||||
"textures": {
|
||||
"layer0": "botania:blocks/mushroom2"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "botania:item/standard_item",
|
||||
"textures": {
|
||||
"layer0": "botania:blocks/flowerGlimmering2"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"parent": "botania:block/mana_diamond_block",
|
||||
"display": {
|
||||
"thirdperson": {
|
||||
"rotation": [ 10, -45, 170 ],
|
||||
"translation": [ 0, 1.5, -2.75 ],
|
||||
"scale": [ 0.375, 0.375, 0.375 ]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"parent": "botania:block/manasteel_block",
|
||||
"display": {
|
||||
"thirdperson": {
|
||||
"rotation": [ 10, -45, 170 ],
|
||||
"translation": [ 0, 1.5, -2.75 ],
|
||||
"scale": [ 0.375, 0.375, 0.375 ]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "botania:item/standard_item",
|
||||
"textures": {
|
||||
"layer0": "botania:blocks/flower1"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "botania:item/standard_item",
|
||||
"textures": {
|
||||
"layer0": "botania:blocks/mushroom1"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "botania:item/standard_item",
|
||||
"textures": {
|
||||
"layer0": "botania:blocks/flowerGlimmering1"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "botania:item/standard_item",
|
||||
"textures": {
|
||||
"layer0": "botania:blocks/flower6"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "botania:item/standard_item",
|
||||
"textures": {
|
||||
"layer0": "botania:blocks/mushroom6"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "botania:item/standard_item",
|
||||
"textures": {
|
||||
"layer0": "botania:blocks/flowerGlimmering6"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "botania:item/standard_item",
|
||||
"textures": {
|
||||
"layer0": "botania:blocks/flower10"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "botania:item/standard_item",
|
||||
"textures": {
|
||||
"layer0": "botania:blocks/mushroom10"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "botania:item/standard_item",
|
||||
"textures": {
|
||||
"layer0": "botania:blocks/flowerGlimmering10"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "botania:item/standard_item",
|
||||
"textures": {
|
||||
"layer0": "botania:blocks/flower14"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "botania:item/standard_item",
|
||||
"textures": {
|
||||
"layer0": "botania:blocks/mushroom14"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "botania:item/standard_item",
|
||||
"textures": {
|
||||
"layer0": "botania:blocks/flowerGlimmering14"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "botania:item/standard_item",
|
||||
"textures": {
|
||||
"layer0": "botania:blocks/flower8"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "botania:item/standard_item",
|
||||
"textures": {
|
||||
"layer0": "botania:blocks/mushroom8"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "botania:item/standard_item",
|
||||
"textures": {
|
||||
"layer0": "botania:blocks/flowerGlimmering7"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"parent": "builtin/generated",
|
||||
"display": {
|
||||
"thirdperson": {
|
||||
"rotation": [ -90, 0, 0 ],
|
||||
"translation": [ 0, 1, -3 ],
|
||||
"scale": [ 0.55, 0.55, 0.55 ]
|
||||
},
|
||||
"firstperson": {
|
||||
"rotation": [ 0, -135, 25 ],
|
||||
"translation": [ 0, 4, 2 ],
|
||||
"scale": [ 1.7, 1.7, 1.7 ]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"parent": "builtin/generated",
|
||||
"display": {
|
||||
"thirdperson": {
|
||||
"rotation": [ 0, 90, -35 ],
|
||||
"translation": [ 0, 1.25, -3.5 ],
|
||||
"scale": [ 0.85, 0.85, 0.85 ]
|
||||
},
|
||||
"firstperson": {
|
||||
"rotation": [ 0, -135, 25 ],
|
||||
"translation": [ 0, 4, 2 ],
|
||||
"scale": [ 1.7, 1.7, 1.7 ]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"parent": "botania:block/terrasteel_block",
|
||||
"display": {
|
||||
"thirdperson": {
|
||||
"rotation": [ 10, -45, 170 ],
|
||||
"translation": [ 0, 1.5, -2.75 ],
|
||||
"scale": [ 0.375, 0.375, 0.375 ]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "botania:item/standard_item",
|
||||
"textures": {
|
||||
"layer0": "botania:blocks/flower0"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "botania:item/standard_item",
|
||||
"textures": {
|
||||
"layer0": "botania:blocks/mushroom0"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "botania:item/standard_item",
|
||||
"textures": {
|
||||
"layer0": "botania:blocks/flowerGlimmering0"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "botania:item/standard_item",
|
||||
"textures": {
|
||||
"layer0": "botania:blocks/flower4"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "botania:item/standard_item",
|
||||
"textures": {
|
||||
"layer0": "botania:blocks/mushroom4"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "botania:item/standard_item",
|
||||
"textures": {
|
||||
"layer0": "botania:blocks/flowerGlimmering4"
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user