Fusion Coils now use jsons
This commit is contained in:
parent
7379e32a17
commit
e6ba58eb45
3 changed files with 22 additions and 14 deletions
|
@ -1,23 +1,17 @@
|
||||||
package techreborn.blocks;
|
package techreborn.blocks;
|
||||||
|
|
||||||
|
import net.minecraft.block.Block;
|
||||||
|
import net.minecraft.block.SoundType;
|
||||||
import net.minecraft.block.material.Material;
|
import net.minecraft.block.material.Material;
|
||||||
import net.minecraft.block.state.IBlockState;
|
|
||||||
import net.minecraft.util.EnumFacing;
|
|
||||||
import reborncore.common.blocks.BlockMachineBase;
|
|
||||||
import techreborn.client.TechRebornCreativeTab;
|
import techreborn.client.TechRebornCreativeTab;
|
||||||
|
|
||||||
public class BlockFusionCoil extends BlockMachineBase {
|
public class BlockFusionCoil extends Block {
|
||||||
|
|
||||||
private final String prefix = "techreborn:blocks/machine/greg_machines/";
|
|
||||||
|
|
||||||
public BlockFusionCoil(Material material) {
|
public BlockFusionCoil(Material material) {
|
||||||
super();
|
super(Material.IRON);
|
||||||
|
setHardness(2f);
|
||||||
|
setSoundType(SoundType.METAL);
|
||||||
setUnlocalizedName("techreborn.fusioncoil");
|
setUnlocalizedName("techreborn.fusioncoil");
|
||||||
setCreativeTab(TechRebornCreativeTab.instance);
|
setCreativeTab(TechRebornCreativeTab.instance);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public String getTextureNameFromState(IBlockState BlockStateContainer, EnumFacing facing) {
|
|
||||||
return prefix + "fusion_coil";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -41,8 +41,6 @@ public class RegisterItemJsons {
|
||||||
register(ModItems.diamondJackhammer, "tool/diamond_jackhammer");
|
register(ModItems.diamondJackhammer, "tool/diamond_jackhammer");
|
||||||
register(ModItems.advancedJackhammer, "tool/advanced_jackhammer");
|
register(ModItems.advancedJackhammer, "tool/advanced_jackhammer");
|
||||||
register(ModBlocks.rubberSapling, "misc/rubber_sapling");
|
register(ModBlocks.rubberSapling, "misc/rubber_sapling");
|
||||||
register(ModBlocks.ore, "techreborn.ore");
|
|
||||||
register(ModBlocks.ore2, "techreborn.ore2");
|
|
||||||
|
|
||||||
for (int i = 0; i < ItemIngots.types.length; ++i) {
|
for (int i = 0; i < ItemIngots.types.length; ++i) {
|
||||||
String[] name = ItemIngots.types.clone();
|
String[] name = ItemIngots.types.clone();
|
||||||
|
|
|
@ -0,0 +1,16 @@
|
||||||
|
{
|
||||||
|
"forge_marker": 1,
|
||||||
|
"defaults": {
|
||||||
|
"transform": "forge:default-block",
|
||||||
|
"model": "cube",
|
||||||
|
"textures": {
|
||||||
|
"particle": "techreborn:blocks/machine/greg_machines/fusion_coil_side",
|
||||||
|
"down": "techreborn:blocks/machine/greg_machines/fusion_coil_heart",
|
||||||
|
"up": "techreborn:blocks/machine/greg_machines/fusion_coil_heart",
|
||||||
|
"north": "techreborn:blocks/machine/greg_machines/fusion_coil_side",
|
||||||
|
"south": "techreborn:blocks/machine/greg_machines/fusion_coil_side",
|
||||||
|
"west": "techreborn:blocks/machine/greg_machines/fusion_coil_side",
|
||||||
|
"east": "techreborn:blocks/machine/greg_machines/fusion_coil_side"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue