Textures for auto crafting table

This commit is contained in:
modmuss50 2017-06-21 15:51:31 +01:00
parent a3c4b9f3ed
commit 6bba67640c
No known key found for this signature in database
GPG key ID: 203A5ED4D3E48BEA
2 changed files with 52 additions and 1 deletions

View file

@ -24,21 +24,42 @@
package techreborn.blocks;
import net.minecraft.block.state.BlockStateContainer;
import net.minecraft.block.state.IBlockState;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.World;
import prospector.shootingstar.ShootingStar;
import prospector.shootingstar.model.ModelCompound;
import reborncore.common.blocks.BlockMachineBase;
import techreborn.Core;
import techreborn.client.EGui;
import techreborn.client.TechRebornCreativeTab;
import techreborn.lib.ModInfo;
import techreborn.tiles.TileAutoCraftingTable;
public class BlockAutoCraftingTable extends BlockMachineBase {
public BlockAutoCraftingTable() {
super();
super(true);
setUnlocalizedName("techreborn.electriccraftingtable");
setCreativeTab(TechRebornCreativeTab.instance);
ShootingStar.registerModel(new ModelCompound(ModInfo.MOD_ID, this, "machines/tier1_machines"));
}
@Override
protected BlockStateContainer createBlockState() {
return new BlockStateContainer(this);
}
@Override
public int getMetaFromState(IBlockState state) {
return 0;
}
@Override
public IBlockState getStateFromMeta(int meta) {
return getDefaultState();
}
@Override

View file

@ -0,0 +1,30 @@
{
"forge_marker": 1,
"defaults": {
"transform": "forge:default-block",
"model": "cube_bottom_top",
"textures": {
"particle": "techreborn:blocks/machines/tier1_machines/electric_crafting_table_side",
"top": "techreborn:blocks/machines/tier1_machines/electric_crafting_table_top",
"down": "techreborn:blocks/machines/tier1_machines/machine_bottom",
"side": "techreborn:blocks/machines/tier1_machines/electric_crafting_table_side"
}
},
"variants": {
"inventory": {
"transform": "forge:default-block",
"model": "cube_bottom_top",
"textures": {
"side": "techreborn:blocks/machines/tier1_machines/electric_crafting_table_side"
}
},
"normal": {
"transform": "forge:default-block",
"model": "cube_bottom_top",
"textures": {
"side": "techreborn:blocks/machines/tier1_machines/electric_crafting_table_side"
}
}
}
}