Textures for auto crafting table
This commit is contained in:
parent
a3c4b9f3ed
commit
6bba67640c
2 changed files with 52 additions and 1 deletions
|
@ -24,21 +24,42 @@
|
||||||
|
|
||||||
package techreborn.blocks;
|
package techreborn.blocks;
|
||||||
|
|
||||||
|
import net.minecraft.block.state.BlockStateContainer;
|
||||||
|
import net.minecraft.block.state.IBlockState;
|
||||||
import net.minecraft.entity.player.EntityPlayer;
|
import net.minecraft.entity.player.EntityPlayer;
|
||||||
import net.minecraft.tileentity.TileEntity;
|
import net.minecraft.tileentity.TileEntity;
|
||||||
import net.minecraft.world.World;
|
import net.minecraft.world.World;
|
||||||
|
import prospector.shootingstar.ShootingStar;
|
||||||
|
import prospector.shootingstar.model.ModelCompound;
|
||||||
import reborncore.common.blocks.BlockMachineBase;
|
import reborncore.common.blocks.BlockMachineBase;
|
||||||
import techreborn.Core;
|
import techreborn.Core;
|
||||||
import techreborn.client.EGui;
|
import techreborn.client.EGui;
|
||||||
import techreborn.client.TechRebornCreativeTab;
|
import techreborn.client.TechRebornCreativeTab;
|
||||||
|
import techreborn.lib.ModInfo;
|
||||||
import techreborn.tiles.TileAutoCraftingTable;
|
import techreborn.tiles.TileAutoCraftingTable;
|
||||||
|
|
||||||
public class BlockAutoCraftingTable extends BlockMachineBase {
|
public class BlockAutoCraftingTable extends BlockMachineBase {
|
||||||
|
|
||||||
public BlockAutoCraftingTable() {
|
public BlockAutoCraftingTable() {
|
||||||
super();
|
super(true);
|
||||||
setUnlocalizedName("techreborn.electriccraftingtable");
|
setUnlocalizedName("techreborn.electriccraftingtable");
|
||||||
setCreativeTab(TechRebornCreativeTab.instance);
|
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
|
@Override
|
||||||
|
|
|
@ -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"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue