mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-21 04:32:23 +00:00
Incense plate converted to json
This commit is contained in:
1 parent
20b5743221
commit
cd77b41d31
6 files changed
+62
-7
No files matched your search
@@ -420,6 +420,7 @@ public final class ModelHandler {
|
||||
registerItemModel(ModBlocks.spawnerClaw);
|
||||
registerItemModel(ModBlocks.turntable);
|
||||
registerItemModel(ModBlocks.manaFlame);
|
||||
registerItemModel(ModBlocks.incensePlate);
|
||||
|
||||
// Register all metas to variant inventory, so the smartmodel can take over from there. See RenderEventHandler
|
||||
registerItemModelAllMeta(Item.getItemFromBlock(ModBlocks.pylon), PylonVariant.values().length);
|
||||
|
||||
@@ -51,11 +51,11 @@ public class RenderTileIncensePlate extends TileEntitySpecialRenderer<TileIncens
|
||||
GlStateManager.blendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
|
||||
GlStateManager.color(1F, 1F, 1F, 1F);
|
||||
GlStateManager.translate(d0, d1, d2);
|
||||
Minecraft.getMinecraft().renderEngine.bindTexture(texture);
|
||||
// Minecraft.getMinecraft().renderEngine.bindTexture(texture);
|
||||
GlStateManager.translate(0.5F, 1.5F, 0.5F);
|
||||
GlStateManager.scale(1F, -1F, -1F);
|
||||
GlStateManager.rotate(ROTATIONS[Math.max(Math.min(ROTATIONS.length, facing.getIndex() - 2), 0)], 0F, 1F, 0F);
|
||||
model.render();
|
||||
// model.render();
|
||||
GlStateManager.scale(1F, -1F, -1F);
|
||||
|
||||
ItemStack stack = plate.getStackInSlot(0);
|
||||
|
||||
@@ -136,11 +136,6 @@ public class BlockIncensePlate extends BlockModContainer implements ILexiconable
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getRenderType() {
|
||||
return 2;
|
||||
}
|
||||
|
||||
@Override
|
||||
public TileEntity createNewTileEntity(World world, int meta) {
|
||||
return new TileIncensePlate();
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"forge_marker": 1,
|
||||
"defaults": {
|
||||
"model": "botania:incense_plate",
|
||||
"textures": {
|
||||
"all": "botania:model/incensePlate"
|
||||
},
|
||||
"transform": "forge:default-block"
|
||||
},
|
||||
"variants": {
|
||||
"facing": {
|
||||
"north": { "y": 180 },
|
||||
"south": {},
|
||||
"west": { "y": 90 },
|
||||
"east": { "y": 270 }
|
||||
},
|
||||
"inventory": [{
|
||||
"transform": {
|
||||
"firstperson": {
|
||||
"translation": [ 0, 0.35, 0 ]
|
||||
}
|
||||
}
|
||||
}]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
{
|
||||
"__comment": "Model generated using MrCrayfish's Model Creator (http://mrcrayfish.com/modelcreator/)",
|
||||
"textures": {
|
||||
"particle": "#all"
|
||||
},
|
||||
"elements": [
|
||||
{
|
||||
"name": "Plate",
|
||||
"from": [ 2.0, 0.0, 6.0 ],
|
||||
"to": [ 14.0, 1.0, 10.0 ],
|
||||
"faces": {
|
||||
"west": { "texture": "#all", "uv": [ 0.0, 2.0, 2.0, 2.5 ] },
|
||||
"north": { "texture": "#all", "uv": [ 2.0, 2.0, 8.0, 2.5 ] },
|
||||
"south": { "texture": "#all", "uv": [ 8.0, 2.0, 14.0, 2.5 ] },
|
||||
"east": { "texture": "#all", "uv": [ 14.0, 2.0, 16.0, 2.5 ] },
|
||||
"up": { "texture": "#all", "uv": [ 2.0, 0.0, 8.0, 2.0 ] },
|
||||
"down": { "texture": "#all", "uv": [ 8.0, 0.0, 14.0, 2.0 ], "cullface": "down" }
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "High",
|
||||
"from": [ 2.0, 1.0, 6.0 ],
|
||||
"to": [ 5.0, 2.0, 10.0 ],
|
||||
"faces": {
|
||||
"west": { "texture": "#all", "uv": [ 0.0, 5.0, 2.0, 5.5 ] },
|
||||
"north": { "texture": "#all", "uv": [ 2.0, 5.0, 3.5, 5.5 ] },
|
||||
"south": { "texture": "#all", "uv": [ 3.5, 5.0, 5.0, 5.5 ] },
|
||||
"east": { "texture": "#all", "uv": [ 5.0, 5.0, 7.0, 5.5 ] },
|
||||
"up": { "texture": "#all", "uv": [ 2.0, 3.0, 3.5, 5.0 ] },
|
||||
"down": { "texture": "#all", "uv": [ 3.5, 3.0, 5.0, 5.0 ] }
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 453 B |
Reference in new issue
Block a user