
DuckCreeper
Forge Modder-
Posts
48 -
Joined
-
Last visited
Everything posted by DuckCreeper
-
So now the GUI works. But I cannot place anything inside of the slots... rip Time to figure this out
-
SOLVED I HAVE FIGURED IT OUT!!!!! With in my main class.. I wasnt registering my instance right. Here is the right code for that: @Instance(Reference.MOD_ID) public static SteelMain instance;
-
Ugghhhh.... Still cant figure this out. I've tried using different code... diferent everything. Just gotta keep trying i guess..
-
What do you mean by YOURCONTAINERANDGUIID? So ContainerSCTileEntity0: My gui id is 0....
-
The gui id is the integer 1 in the opengui call.that other method is badly named as does not do what it is called, nor have you shown what you use it for. Draco I have figured that out now. I now need help on figureing out why the GUI wont show ingame... Tell me if code is needed.
-
So I thought it would be helpful if i posted another update .... Playing around more I finally understand that. But still the GUI wont open. I get that right arm punching animation like when you open a furnace etc. But nothing happens when i do so.... rip
-
So in the onBlockActivated Method. I'm using player.openGui(SteelMain.instance, 1, world, pos.getX(), pos.getY(), pos.getZ()); But When looking at the openGui its self. The second parameter is the GuiID for the gui. Here is what its set to in my code. : @Override public String getGuiID() { return Reference.SteelCraftBlocks.BASIC_REBAR_MACHINE.getRegistryName() + ":Basic"; } But what do I do? I'm a bit confused on this. An explanation would be helpful
-
So I've been playing around. Now I get this in my console and my game crashes. I mean now i know its trying to make one. But I dont know what to do. Invalid attempt to create a GUI during mod construction. Use an EventHandler instead at net.minecraftforge.fml.common.network.NetworkRegistry.registerGuiHandler(NetworkRegistry.java:219) Here is my main class @EventHandler public void load(FMLInitializationEvent event) { NetworkRegistry.INSTANCE.registerGuiHandler(instance, proxy); } NOTE I changed the part that says NetworkRegistry.INSTANCE.registerGuiHandler(instance, proxy); to NetworkRegistry.INSTANCE.registerGuiHandler(this, proxy); and now my game loads.... and when i right click it... nothing pops up but my hand moves... just like when you open a chest or something. So basically my GUI is not showing ingame now... What do i do!?!?!!?
-
https://github.com/DuckCreeper/SteelCraftFiles There ya go
-
Still cant figure it out.....
-
LOL I've been playing around and I figured that out after i posted it. Now I'm testing a thing. Didnt work. I have to go. Ill play around more with it
-
player.openGui(1, SteelMain.instance, world, x, y, z); I tried this but its says that SteelMain.instance "Instance" should be changed to int but i dont know what to do lol
-
GUI Handler package com.duckcreeper.steelcraft.gui; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.tileentity.TileEntity; import net.minecraft.util.BlockPos; import net.minecraft.world.World; import net.minecraftforge.fml.common.network.IGuiHandler; import com.duckcreeper.steelcraft.gui.containers.ContainerSCTileEntity; import com.duckcreeper.steelcraft.tileentity.SCTileEntity; public class SCGuiHandler implements IGuiHandler { @Override public Object getServerGuiElement(int id, EntityPlayer player, World world, int x, int y, int z) { TileEntity tile_entity = world.getTileEntity(new BlockPos(x, y, z)); if (tile_entity instanceof SCTileEntity) { return new ContainerSCTileEntity(player.inventory, (SCTileEntity) tile_entity); } return null; } @Override public Object getClientGuiElement(int id, EntityPlayer player, World world, int x, int y, int z) { TileEntity tile_entity = world.getTileEntity(new BlockPos(x, y, z)); if (tile_entity instanceof SCTileEntity) { return new GuiSCTileEntity(player.inventory, (SCTileEntity) tile_entity); } return null; } } GUI package com.duckcreeper.steelcraft.gui; import net.minecraft.client.gui.inventory.GuiContainer; import net.minecraft.inventory.IInventory; import net.minecraft.util.ResourceLocation; import com.duckcreeper.steelcraft.gui.containers.ContainerSCTileEntity; import com.duckcreeper.steelcraft.tileentity.SCTileEntity; public class GuiSCTileEntity extends GuiContainer { private static final ResourceLocation gui = new ResourceLocation("sc:textures/gui/basic_machine.png"); public GuiSCTileEntity(IInventory playerInv, SCTileEntity te){ super(new ContainerSCTileEntity(playerInv, te)); this.xSize = 176; this.ySize = 166; } @Override protected void drawGuiContainerBackgroundLayer(float partialTicks, int mouseX, int mouseY) { } } Block package com.duckcreeper.steelcraft.blocks; import com.duckcreeper.steelcraft.tileentity.SCTileEntity; import net.minecraft.block.BlockContainer; import net.minecraft.block.material.Material; import net.minecraft.tileentity.TileEntity; import net.minecraft.util.EnumWorldBlockLayer; import net.minecraft.world.World; public class basic_rebar_machine extends BlockContainer{ public basic_rebar_machine(Material materialIn) { super(materialIn); } @Override public int getRenderType() { return 3; } @Override public boolean isOpaqueCube() { return false; } @Override public EnumWorldBlockLayer getBlockLayer() { return EnumWorldBlockLayer.CUTOUT; } @Override public TileEntity createNewTileEntity(World worldIn, int meta) { return new SCTileEntity(); } } Hope that helps?
-
So I've been learning Tile entities and adding gui to them. I've created a tile entity with a simple gui but when i right click the block. Nothing happens.. Its a fare bit of code. But I will include some. I can post more if needed. Main class: package com.duckcreeper.steelcraft; import net.minecraft.init.Items; import net.minecraft.item.ItemStack; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.common.Mod.EventHandler; import net.minecraftforge.fml.common.Mod.Instance; import net.minecraftforge.fml.common.SidedProxy; import net.minecraftforge.fml.common.event.FMLInitializationEvent; import net.minecraftforge.fml.common.event.FMLPostInitializationEvent; import net.minecraftforge.fml.common.event.FMLPreInitializationEvent; import net.minecraftforge.fml.common.network.NetworkRegistry; import net.minecraftforge.fml.common.registry.GameRegistry; import com.duckcreeper.steelcraft.gui.SCGuiHandler; import com.duckcreeper.steelcraft.init.SteelAchievements; import com.duckcreeper.steelcraft.init.SteelCraftBlocks; import com.duckcreeper.steelcraft.init.SteelCraftItems; import com.duckcreeper.steelcraft.init.SteelTileEntities; import com.duckcreeper.steelcraft.proxy.CommonProxy; import com.duckcreeper.steelcraft.tileentity.SCTileEntities; @Mod(modid = Reference.MOD_ID, name = Reference.MOD_NAME, version = Reference.VERISION) public class SteelMain { @SidedProxy(clientSide = Reference.CLIENT_PROXY_CLASS, serverSide = Reference.SERVER_PROXY_CLASS) public static CommonProxy proxy; public static final SteelTab tabSteel = new SteelTab("tabSteel"); @Instance public static SteelMain instance = new SteelMain(); @EventHandler public void preInit(FMLPreInitializationEvent event) { SteelCraftBlocks.init(); SteelCraftBlocks.register(); SteelCraftItems.init(); SteelCraftItems.register(); /** Achievement Registering */ SteelAchievements.loadAchievements(); SteelAchievements.registerPage(); /** Tile Entites*/ SCTileEntities.init(); } @EventHandler public void init(FMLInitializationEvent event) { proxy.registerRenders(); GameRegistry.addRecipe(new ItemStack(SteelCraftBlocks.block_turbine, 4), "SIS", "IBI", "SIS", 'I', Items.iron_ingot, 'S', SteelCraftItems.steel_ingot, 'B', new ItemStack(Items.dye, 1, 15) ); GameRegistry.addRecipe(new ItemStack(SteelCraftItems.duck_bill_float), "SIR", "SIS", " S ", 'S', SteelCraftItems.steel_ingot, 'I', Items.iron_ingot, 'R', new ItemStack(Items.dye, 1, 1) ); /** GUI Registering*/ NetworkRegistry.INSTANCE.registerGuiHandler(this, new SCGuiHandler()); /** TileEntity Registering */ SteelTileEntities.register(); } @EventHandler public void postInit(FMLPostInitializationEvent event) { } } Tile Entity package com.duckcreeper.steelcraft.tileentity; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.entity.player.InventoryPlayer; import net.minecraft.inventory.Container; import net.minecraft.inventory.ISidedInventory; import net.minecraft.item.ItemFood; import net.minecraft.item.ItemStack; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.nbt.NBTTagList; import net.minecraft.network.NetworkManager; import net.minecraft.network.Packet; import net.minecraft.network.play.server.S35PacketUpdateTileEntity; import net.minecraft.tileentity.TileEntityLockable; import net.minecraft.util.ChatComponentText; import net.minecraft.util.EnumFacing; import net.minecraft.util.IChatComponent; import com.duckcreeper.steelcraft.gui.containers.ContainerSCTileEntity; public class SCTileEntity extends TileEntityLockable implements ISidedInventory { private static final int[] slots = new int[] { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; private ItemStack[] inventory = new ItemStack[15]; private String customName; public int getSizeInventory() { return 15; } @Override public ItemStack getStackInSlot(int par1) { return this.inventory[par1]; } @Override public ItemStack decrStackSize(int par1, int par2) { if (this.inventory[par1] != null) { ItemStack var3; if (this.inventory[par1].stackSize <= par2) { var3 = this.inventory[par1]; this.inventory[par1] = null; this.markDirty(); return var3; } var3 = this.inventory[par1].splitStack(par2); if (this.inventory[par1].stackSize == 0) { this.inventory[par1] = null; } this.markDirty(); return var3; } return null; } @Override public ItemStack getStackInSlotOnClosing(int par1) { if (this.inventory[par1] != null) { ItemStack var2 = this.inventory[par1]; this.inventory[par1] = null; return var2; } return null; } @Override public void setInventorySlotContents(int par1, ItemStack par2ItemStack) { this.inventory[par1] = par2ItemStack; if (par2ItemStack != null && par2ItemStack.stackSize > this.getInventoryStackLimit()) { par2ItemStack.stackSize = this.getInventoryStackLimit(); } this.markDirty(); } /** * Reads a tile entity from NBT. */ public void readFromNBT(NBTTagCompound tagCompound) { super.readFromNBT(tagCompound); NBTTagList tagList = (NBTTagList) tagCompound.getTag("Items"); this.inventory = new ItemStack[this.getSizeInventory()]; for (int count = 0; count < tagList.tagCount(); ++count) { NBTTagCompound nbt = (NBTTagCompound) tagList.getCompoundTagAt(count); int slot = nbt.getByte("Slot") & 255; if (slot >= 0 && slot < this.inventory.length) { this.inventory[slot] = ItemStack.loadItemStackFromNBT(nbt); } } if (tagCompound.hasKey("CustomName", ) { this.customName = tagCompound.getString("CustomName"); } } @Override public void writeToNBT(NBTTagCompound par1NBTTagCompound) { super.writeToNBT(par1NBTTagCompound); NBTTagList var2 = new NBTTagList(); for (int var3 = 0; var3 < this.inventory.length; ++var3) { if (this.inventory[var3] != null) { NBTTagCompound var4 = new NBTTagCompound(); var4.setByte("Slot", (byte) var3); this.inventory[var3].writeToNBT(var4); var2.appendTag(var4); } } par1NBTTagCompound.setTag("Items", var2); } @Override public void onDataPacket(NetworkManager net, S35PacketUpdateTileEntity pkt) { NBTTagCompound tagCom = pkt.getNbtCompound(); this.readFromNBT(tagCom); } @Override public Packet getDescriptionPacket() { NBTTagCompound tagCom = new NBTTagCompound(); this.writeToNBT(tagCom); return new S35PacketUpdateTileEntity(pos, getBlockMetadata(), tagCom); } @Override public int getInventoryStackLimit() { return 64; } @Override public boolean isUseableByPlayer(EntityPlayer par1EntityPlayer) { return this.worldObj.getTileEntity(pos) != this ? false : par1EntityPlayer.getDistanceSq(this.pos.getX() + 0.5D, this.pos.getY() + 0.5D, this.pos.getZ() + 0.5D) <= 64.0D; } @Override public void invalidate() { this.updateContainingBlockInfo(); super.invalidate(); } @Override public boolean isItemValidForSlot(int par1, ItemStack par2ItemStack) { return true; } @Override public String getName() { return this.hasCustomName() ? this.customName : "container.fridge"; } @Override public boolean hasCustomName() { return this.customName != null && this.customName.length() > 0; } @Override public IChatComponent getDisplayName() { return new ChatComponentText(getName()); } @Override public void openInventory(EntityPlayer playerIn) { } @Override public void closeInventory(EntityPlayer playerIn) { } @Override public int getField(int id) { return 0; } @Override public void setField(int id, int value) { } @Override public int getFieldCount() { return 0; } @Override public void clear() { for (int i = 0; i < inventory.length; i++) { inventory[i] = null; } } @Override public Container createContainer(InventoryPlayer playerInventory, EntityPlayer playerIn) { return new ContainerSCTileEntity(playerInventory, this); } @Override public String getGuiID() { return "0"; } @Override public int[] getSlotsForFace(EnumFacing side) { return slots; } @Override public boolean canInsertItem(int index, ItemStack stack, EnumFacing direction) { return stack.getItem() instanceof ItemFood && !isLocked(); } @Override public boolean canExtractItem(int index, ItemStack stack, EnumFacing direction) { return !isLocked(); } } Tile Entities Class package com.duckcreeper.steelcraft.tileentity; import net.minecraftforge.fml.common.registry.GameRegistry; public class SCTileEntities { public static void init(){ GameRegistry.registerTileEntity(SCTileEntity.class, "test_tile_entity"); } } Container For Tile Entity package com.duckcreeper.steelcraft.gui.containers; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.inventory.Container; import net.minecraft.inventory.IInventory; import net.minecraft.inventory.Slot; import net.minecraft.item.ItemFood; import net.minecraft.item.ItemStack; import com.duckcreeper.steelcraft.gui.GuiSCTileEntity; import com.duckcreeper.steelcraft.gui.slots.SlotSCTile; import com.duckcreeper.steelcraft.tileentity.SCTileEntity; public class ContainerSCTileEntity extends Container { private IInventory lowerChestInventory; private int numRows; public ContainerSCTileEntity(IInventory playerInventory, IInventory SCTileEntityInventory) { this.lowerChestInventory = playerInventory; SCTileEntityInventory.openInventory(null); int var4, var5; int count = 0; for (int i = 0; i < 3; i++) { for (int j = 0; j < 5; j++) { this.addSlotToContainer(new SlotSCTile(SCTileEntityInventory, count, j * 18 + 44, i * 18 + 18)); count++; } } for (int i = 0; i < 3; i++) { for (int j = 0; j < 9; ++j) { this.addSlotToContainer(new Slot(playerInventory, j + i * 9 + 9, j * 18 + 8, i * 18 + 85)); } } for (int i = 0; i < 9; i++) { this.addSlotToContainer(new Slot(playerInventory, i, i * 18 + 8, 143)); } } public boolean canInteractWith(EntityPlayer par1EntityPlayer) { return this.lowerChestInventory.isUseableByPlayer(par1EntityPlayer); } public ItemStack transferStackInSlot(EntityPlayer par1EntityPlayer, int par2) { ItemStack var3 = null; Slot var4 = (Slot) this.inventorySlots.get(par2); if (var4 != null && var4.getHasStack()) { ItemStack var5 = var4.getStack(); var3 = var5.copy(); if (!(var5.getItem() instanceof ItemFood)) return null; if (par2 < 16) { if (!this.mergeItemStack(var5, 16, this.inventorySlots.size(), true)) { return null; } } else if (!this.mergeItemStack(var5, 0, 16, false)) { return null; } if (var5.stackSize == 0) { var4.putStack((ItemStack) null); } else { var4.onSlotChanged(); } } return var3; } /** * Callback for when the crafting gui is closed. */ public void onContainerClosed(EntityPlayer par1EntityPlayer) { super.onContainerClosed(par1EntityPlayer); this.lowerChestInventory.closeInventory(par1EntityPlayer); } public IInventory func_85151_d() { return this.lowerChestInventory; } }
-
Don't know how to convert <BlockModel> back into data.
DuckCreeper replied to DuckCreeper's topic in Modder Support
public static final PropertyBool UP = PropertyBool.create("up"); public static final PropertyBool DOWN = PropertyBool.create("down"); public static final PropertyBool NORTH = PropertyBool.create("north"); public static final PropertyBool EAST = PropertyBool.create("east"); public static final PropertyBool SOUTH = PropertyBool.create("south"); public static final PropertyBool WEST = PropertyBool.create("west"); like that? -
Don't know how to convert <BlockModel> back into data.
DuckCreeper replied to DuckCreeper's topic in Modder Support
How so? -
Don't know how to convert <BlockModel> back into data.
DuckCreeper replied to DuckCreeper's topic in Modder Support
public int getMetaFromState(IBlockState state) { return 0; } public IBlockState getStateFromMeta(int meta) { return this.getDefaultState(); } I've put these two lines of code it. Game loaded... Get in game. Block is there. But no textures are being loaded. And its only one part of the 2 block item. Also if i place 2 together in certain places.. they just break. Also in console it said the following : [11:52:34] [Client thread/WARN]: Missing model for: sc:rebar_maker#facing=east,part=foot [11:52:34] [Client thread/WARN]: Missing model for: sc:rebar_maker#facing=east,part=head [11:52:34] [Client thread/WARN]: Missing model for: sc:rebar_maker#facing=north,part=foot [11:52:34] [Client thread/WARN]: Missing model for: sc:rebar_maker#facing=north,part=head [11:52:34] [Client thread/WARN]: Missing model for: sc:rebar_maker#facing=south,part=foot [11:52:34] [Client thread/WARN]: Missing model for: sc:rebar_maker#facing=south,part=head [11:52:34] [Client thread/WARN]: Missing model for: sc:rebar_maker#facing=west,part=foot [11:52:34] [Client thread/WARN]: Missing model for: sc:rebar_maker#facing=west,part=head and [11:52:35] [Client thread/WARN]: Missing model for: sc:rebar_maker#facing=east,part=foot [11:52:35] [Client thread/WARN]: No weighted models for: sc:rebar_maker#facing=east,part=foot [11:52:35] [Client thread/WARN]: Missing model for: sc:rebar_maker#facing=north,part=head [11:52:35] [Client thread/WARN]: No weighted models for: sc:rebar_maker#facing=north,part=head [11:52:35] [Client thread/WARN]: Missing model for: sc:rebar_maker#facing=north,part=foot [11:52:35] [Client thread/WARN]: No weighted models for: sc:rebar_maker#facing=north,part=foot [11:52:35] [Client thread/WARN]: Missing model for: sc:rebar_maker#facing=west,part=foot [11:52:35] [Client thread/WARN]: No weighted models for: sc:rebar_maker#facing=west,part=foot [11:52:35] [Client thread/WARN]: Missing model for: sc:rebar_maker#facing=south,part=foot [11:52:35] [Client thread/WARN]: No weighted models for: sc:rebar_maker#facing=south,part=foot [11:52:35] [Client thread/WARN]: Missing model for: sc:rebar_maker#facing=east,part=head [11:52:35] [Client thread/WARN]: No weighted models for: sc:rebar_maker#facing=east,part=head [11:52:35] [Client thread/WARN]: Missing model for: sc:rebar_maker#facing=west,part=head [11:52:35] [Client thread/WARN]: No weighted models for: sc:rebar_maker#facing=west,part=head [11:52:35] [Client thread/WARN]: Missing model for: sc:rebar_maker#facing=south,part=head [11:52:35] [Client thread/WARN]: No weighted models for: sc:rebar_maker#facing=south,part=head What do i do? -
Don't know how to convert <BlockModel> back into data.
DuckCreeper replied to DuckCreeper's topic in Modder Support
And Im guessing that would be placed inside my block class... in this case the rebar_maker.java class? -
So I'm trying to add a 2 block item to my mod. Like a bed. So I've looked around in the bed code and used some of it. Also with the json files too. I've gotten so far. But all my console says is Description: There was a severe problem during mod loading that has caused the game to fail net.minecraftforge.fml.common.LoaderException: java.lang.IllegalArgumentException: Don't know how to convert sc:rebar_maker[facing=north,part=head] back into data... So on. Here is my code.... package com.duckcreeper.steelcraft.init; import net.minecraft.block.Block; import net.minecraft.block.BlockBed; import net.minecraft.block.BlockDirectional; import net.minecraft.block.material.Material; import net.minecraft.block.properties.IProperty; import net.minecraft.block.properties.PropertyEnum; import net.minecraft.block.state.BlockState; import net.minecraft.block.state.IBlockState; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.init.Items; import net.minecraft.item.Item; import net.minecraft.util.BlockPos; import net.minecraft.util.EnumFacing; import net.minecraft.util.IStringSerializable; import net.minecraft.world.IBlockAccess; import net.minecraft.world.World; import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.SideOnly; public class rebar_maker extends BlockDirectional { public static final PropertyEnum PART = PropertyEnum.create("part",rebar_maker.EnumPartType.class); public rebar_maker() { super(Material.cloth); this.setDefaultState(this.blockState.getBaseState().withProperty(PART, rebar_maker.EnumPartType.FOOT)); } public void onNeighborBlockChange(World worldIn, BlockPos pos, IBlockState state, Block neighborBlock) { EnumFacing enumfacing = (EnumFacing)state.getValue(FACING); if (state.getValue(PART) == rebar_maker.EnumPartType.HEAD) { if (worldIn.getBlockState(pos.offset(enumfacing.getOpposite())).getBlock() != this) { worldIn.setBlockToAir(pos); } } else if (worldIn.getBlockState(pos.offset(enumfacing)).getBlock() != this) { worldIn.setBlockToAir(pos); if (!worldIn.isRemote) { this.dropBlockAsItem(worldIn, pos, state, 0); } } } public void onBlockHarvested(World worldIn, BlockPos pos, IBlockState state, EntityPlayer player) { if (player.capabilities.isCreativeMode && state.getValue(PART) == BlockBed.EnumPartType.HEAD) { BlockPos blockpos1 = pos.offset(((EnumFacing)state.getValue(FACING)).getOpposite()); if (worldIn.getBlockState(blockpos1).getBlock() == this) { worldIn.setBlockToAir(blockpos1); } } } public IBlockState getActualState(IBlockState state, IBlockAccess worldIn, BlockPos pos) { if (state.getValue(PART) == BlockBed.EnumPartType.FOOT) { IBlockState iblockstate1 = worldIn.getBlockState(pos.offset((EnumFacing)state.getValue(FACING))); } return state; } protected BlockState createBlockState() { return new BlockState(this, new IProperty[] {FACING, PART}); } public static enum EnumPartType implements IStringSerializable { HEAD("head"), FOOT("foot"); private final String name; private EnumPartType(String name) { this.name = name; } public String toString() { return this.name; } public String getName() { return this.name; } } } .json files now BlockStates : { "variants": { "facing=north,part=foot": { "model": "rebar_maker_foot", "y": 180 }, "facing=east,part=foot": { "model": "rebar_maker_foot", "y": 270 }, "facing=south,part=foot": { "model": "rebar_maker_foot" }, "facing=west,part=foot": { "model": "rebar_maker_foot", "y": 90 }, "facing=north,part=head": { "model": "rebar_maker_head", "y": 180 }, "facing=east,part=head": { "model": "rebar_maker_head", "y": 270 }, "facing=south,part=head": { "model": "rebar_maker_head" }, "facing=west,part=head": { "model": "rebar_maker_head", "y": 90 } } } Block Models: { "__comment": "Model generated using MrCrayfish's Model Creator (http://mrcrayfish.com/modelcreator/)", "textures": { "0": "blocks/top", "1": "blocks/null" }, "elements": [ { "name": "Cube", "from": [ 0.0, 6.0, 0.0 ], "to": [ 16.0, 7.0, 16.0 ], "faces": { "north": { "texture": "#0", "uv": [ 0.0, 0.0, 16.0, 1.0 ] }, "east": { "texture": "#0", "uv": [ 0.0, 0.0, 16.0, 1.0 ] }, "south": { "texture": "#0", "uv": [ 0.0, 0.0, 16.0, 1.0 ] }, "west": { "texture": "#0", "uv": [ 0.0, 0.0, 16.0, 1.0 ] }, "up": { "texture": "#0", "uv": [ 0.0, 0.0, 16.0, 16.0 ] }, "down": { "texture": "#0", "uv": [ 0.0, 0.0, 16.0, 16.0 ] } } }, { "name": "Cube", "from": [ 0.5000000074505806, 7.0, 1.0 ], "to": [ 14.50000000745058, 13.0, 15.0 ], "faces": { "north": { "texture": "#0", "uv": [ 0.0, 0.0, 14.0, 6.0 ] }, "east": { "texture": "#0", "uv": [ 0.0, 0.0, 14.0, 6.0 ] }, "south": { "texture": "#0", "uv": [ 0.0, 0.0, 14.0, 6.0 ] }, "west": { "texture": "#0", "uv": [ 0.0, 0.0, 14.0, 6.0 ] }, "up": { "texture": "#0", "uv": [ 0.0, 0.0, 14.0, 14.0 ] } } }, { "name": "Cube", "from": [ 0.0, 9.0, 6.0 ], "to": [ 0.4999999925494194, 10.0, 6.499999992549419 ], "faces": { "north": { "texture": "#0", "uv": [ 0.0, 0.0, 0.4999999925494194, 1.0 ] }, "east": { "texture": "#1", "uv": [ 0.0, 0.0, 0.4999999925494194, 1.0 ] }, "south": { "texture": "#0", "uv": [ 0.0, 0.0, 0.4999999925494194, 1.0 ] }, "west": { "texture": "#0", "uv": [ 0.0, 0.0, 0.4999999925494194, 1.0 ] }, "up": { "texture": "#0", "uv": [ 0.0, 0.0, 0.4999999925494194, 0.4999999925494194 ] }, "down": { "texture": "#0", "uv": [ 0.0, 0.0, 0.4999999925494194, 0.4999999925494194 ] } } }, { "name": "Cube", "from": [ 0.0, 9.0, 9.0 ], "to": [ 0.4999999925494194, 10.0, 9.49999999254942 ], "faces": { "north": { "texture": "#0", "uv": [ 0.0, 0.0, 0.4999999925494194, 1.0 ] }, "east": { "texture": "#1", "uv": [ 0.0, 0.0, 0.4999999925494194, 1.0 ] }, "south": { "texture": "#0", "uv": [ 0.0, 0.0, 0.4999999925494194, 1.0 ] }, "west": { "texture": "#0", "uv": [ 0.0, 0.0, 0.4999999925494194, 1.0 ] }, "up": { "texture": "#0", "uv": [ 0.0, 0.0, 0.4999999925494194, 0.4999999925494194 ] }, "down": { "texture": "#1", "uv": [ 0.0, 0.0, 0.4999999925494194, 0.4999999925494194 ] } } }, { "name": "Cube", "from": [ 0.0, 10.0, 6.0 ], "to": [ 0.4999999925494194, 11.0, 9.49999999254942 ], "faces": { "north": { "texture": "#0", "uv": [ 0.0, 0.0, 0.4999999925494194, 1.0 ] }, "east": { "texture": "#1", "uv": [ 0.0, 0.0, 3.4999999925494194, 1.0 ] }, "south": { "texture": "#0", "uv": [ 0.0, 0.0, 0.4999999925494194, 1.0 ] }, "west": { "texture": "#0", "uv": [ 0.0, 0.0, 3.4999999925494194, 1.0 ] }, "up": { "texture": "#0", "uv": [ 0.0, 0.0, 0.4999999925494194, 3.4999999925494194 ] }, "down": { "texture": "#0", "uv": [ 0.0, 0.0, 0.4999999925494194, 3.4999999925494194 ] } } }, { "name": "Cube", "from": [ 0.0, 8.0, 6.0 ], "to": [ 0.4999999925494194, 9.0, 9.49999999254942 ], "faces": { "north": { "texture": "#0", "uv": [ 0.0, 0.0, 0.4999999925494194, 1.0 ] }, "east": { "texture": "#1", "uv": [ 0.0, 0.0, 3.4999999925494194, 1.0 ] }, "south": { "texture": "#0", "uv": [ 0.0, 0.0, 0.4999999925494194, 1.0 ] }, "west": { "texture": "#0", "uv": [ 0.0, 0.0, 3.4999999925494194, 1.0 ] }, "up": { "texture": "#0", "uv": [ 0.0, 0.0, 0.4999999925494194, 3.4999999925494194 ] }, "down": { "texture": "#0", "uv": [ 0.0, 0.0, 0.4999999925494194, 3.4999999925494194 ] } } }, { "name": "Cube", "from": [ 14.50000000745058, 0.0, 0.5000000074505806 ], "to": [ 15.50000000745058, 6.0, 1.5000000074505806 ], "faces": { "north": { "texture": "#0", "uv": [ 0.0, 0.0, 5.0, 6.0 ] }, "east": { "texture": "#0", "uv": [ 0.0, 0.0, 5.0, 6.0 ] }, "south": { "texture": "#0", "uv": [ 0.0, 0.0, 5.0, 6.0 ] }, "west": { "texture": "#0", "uv": [ 0.0, 0.0, 5.0, 6.0 ] }, "up": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 1.0 ] }, "down": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 1.0 ] } } }, { "name": "Cube", "from": [ 0.5000000074505806, 0.0, 0.5000000074505806 ], "to": [ 1.5000000074505806, 6.0, 1.5000000074505806 ], "faces": { "north": { "texture": "#0", "uv": [ 0.0, 0.0, 5.0, 6.0 ] }, "east": { "texture": "#0", "uv": [ 0.0, 0.0, 5.0, 6.0 ] }, "south": { "texture": "#0", "uv": [ 0.0, 0.0, 5.0, 6.0 ] }, "west": { "texture": "#0", "uv": [ 0.0, 0.0, 5.0, 6.0 ] }, "up": { "texture": "#1", "uv": [ 0.0, 0.0, 1.0, 1.0 ] }, "down": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 1.0 ] } } }, { "name": "Cube", "from": [ 0.5000000074505806, 0.0, 14.50000000745058 ], "to": [ 1.5000000074505806, 6.0, 15.50000000745058 ], "faces": { "north": { "texture": "#0", "uv": [ 0.0, 0.0, 5.0, 6.0 ] }, "east": { "texture": "#0", "uv": [ 0.0, 0.0, 5.0, 6.0 ] }, "south": { "texture": "#0", "uv": [ 0.0, 0.0, 5.0, 6.0 ] }, "west": { "texture": "#0", "uv": [ 0.0, 0.0, 5.0, 6.0 ] }, "up": { "texture": "#1", "uv": [ 0.0, 0.0, 1.0, 1.0 ] }, "down": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 1.0 ] } } }, { "name": "Cube", "from": [ 13.50000000745058, 0.0, 14.50000000745058 ], "to": [ 14.50000000745058, 6.0, 15.50000000745058 ], "faces": { "north": { "texture": "#0", "uv": [ 0.0, 0.0, 5.0, 6.0 ] }, "east": { "texture": "#0", "uv": [ 0.0, 0.0, 5.0, 6.0 ] }, "south": { "texture": "#0", "uv": [ 0.0, 0.0, 5.0, 6.0 ] }, "west": { "texture": "#0", "uv": [ 0.0, 0.0, 5.0, 6.0 ] }, "up": { "texture": "#1", "uv": [ 0.0, 0.0, 1.0, 1.0 ] }, "down": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 1.0 ] } } } ] } ^ Thats the head Here is the foot: { "__comment": "Model generated using MrCrayfish's Model Creator (http://mrcrayfish.com/modelcreator/)", "textures": { "0": "blocks/top", "1": "blocks/null", "2": "blocks/rebar" }, "elements": [ { "name": "Cube", "from": [ 3.0, 0.0, 1.0 ], "to": [ 4.0, 6.0, 2.0 ], "faces": { "north": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 6.0 ] }, "east": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 6.0 ] }, "south": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 6.0 ] }, "west": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 6.0 ] }, "up": { "texture": "#1", "uv": [ 0.0, 0.0, 1.0, 1.0 ] }, "down": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 1.0 ] } } }, { "name": "Cube", "from": [ 3.0, 0.0, 14.0 ], "to": [ 4.0, 6.0, 15.0 ], "faces": { "north": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 6.0 ] }, "east": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 6.0 ] }, "south": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 6.0 ] }, "west": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 6.0 ] }, "up": { "texture": "#1", "uv": [ 0.0, 0.0, 1.0, 1.0 ] }, "down": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 1.0 ] } } }, { "name": "Cube", "from": [ 2.5000000074505806, 6.0, 0.4999999925494194 ], "to": [ 16.00000001490116, 7.0, 15.49999999254942 ], "faces": { "north": { "texture": "#0", "uv": [ 0.0, 0.0, 13.50000000745058, 1.0 ] }, "east": { "texture": "#0", "uv": [ 0.0, 0.0, 15.0, 1.0 ] }, "south": { "texture": "#0", "uv": [ 0.0, 0.0, 13.50000000745058, 1.0 ] }, "west": { "texture": "#0", "uv": [ 0.0, 0.0, 15.0, 1.0 ] }, "up": { "texture": "#0", "uv": [ 0.0, 0.0, 16.00000000745058, 16.0 ] }, "down": { "texture": "#0", "uv": [ 0.0, 0.0, 16.00000000745058, 16.0 ] } } }, { "name": "Cube", "from": [ 11.0, 7.0, 2.0 ], "to": [ 12.0, 8.0, 13.0 ], "rotation": { "origin": [ 8.0, 8.0, 8.0 ], "axis": "y", "angle": 45.0 }, "faces": { "north": { "texture": "#2", "uv": [ 0.0, 0.0, 7.0, 4.0 ] }, "east": { "texture": "#2", "uv": [ 0.0, 0.0, 5.0, 6.0 ] }, "south": { "texture": "#2", "uv": [ 0.0, 0.0, 7.0, 4.0 ] }, "west": { "texture": "#2", "uv": [ 0.0, 0.0, 5.0, 6.0 ] }, "up": { "texture": "#2", "uv": [ 0.0, 0.0, 5.0, 11.0 ] }, "down": { "texture": "#1", "uv": [ 0.0, 0.0, 1.0, 11.0 ] } } }, { "name": "Cube", "from": [ 5.0, 7.0, 4.0 ], "to": [ 6.0, 8.0, 15.0 ], "rotation": { "origin": [ 8.0, 8.0, 8.0 ], "axis": "y", "angle": 22.5 }, "faces": { "north": { "texture": "#2", "uv": [ 0.0, 0.0, 7.0, 4.0 ] }, "east": { "texture": "#2", "uv": [ 0.0, 0.0, 5.0, 6.0 ] }, "south": { "texture": "#2", "uv": [ 0.0, 0.0, 7.0, 4.0 ] }, "west": { "texture": "#2", "uv": [ 0.0, 0.0, 5.0, 6.0 ] }, "up": { "texture": "#2", "uv": [ 0.0, 0.0, 5.0, 11.0 ] }, "down": { "texture": "#1", "uv": [ 0.0, 0.0, 1.0, 11.0 ] } } } ] } Item . json { "parent": "sc:block/rebar_maker_foot", "display": { "thirdperson": { "rotation": [ 10, -45, 170 ], "translation": [ 0, 1.5, -2.75 ], "scale": [ 0.375, 0.375, 0.375 ] } } } Console: [11:33:50] [main/INFO] [GradleStart]: Extra: [] [11:33:50] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/<MY Personal Name>/.gradle/caches/minecraft/assets, --assetIndex, 1.8, --accessToken, {REDACTED}, --version, 1.8, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker] [11:33:50] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker [11:33:50] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker [11:33:50] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker [11:33:50] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker [11:33:50] [main/INFO] [FML]: Forge Mod Loader version 8.0.14.1274 for Minecraft 1.8 loading [11:33:50] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_66, running on Windows 7:amd64:6.1, installed at C:\Program Files\Java\jre1.8.0_66 [11:33:50] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation [11:33:50] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker [11:33:50] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin [11:33:50] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin [11:33:50] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [11:33:50] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker [11:33:50] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker [11:33:50] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [11:33:50] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [11:33:50] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper [11:33:50] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work! [11:33:53] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing [11:33:53] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper [11:33:53] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker [11:33:53] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker [11:33:53] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker [11:33:53] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker [11:33:53] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main} [11:33:54] [Client thread/INFO]: Setting user: Player102 [11:33:57] [Client thread/INFO]: LWJGL Version: 2.9.1 [11:33:58] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization [11:33:58] [Client thread/INFO] [FML]: MinecraftForge v11.14.0.1274 Initialized [11:33:58] [Client thread/INFO] [FML]: Replaced 215 ore recipies [11:33:58] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization [11:33:58] [Client thread/INFO] [FML]: Searching C:\Users\Colin\Desktop\SteelCraft pls work\eclipse\mods for mods [11:34:02] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load [11:34:02] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, sc] at CLIENT [11:34:02] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, sc] at SERVER [11:34:02] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Steel Craft [11:34:02] [Client thread/INFO] [FML]: Processing ObjectHolder annotations [11:34:02] [Client thread/INFO] [FML]: Found 384 ObjectHolder annotations [11:34:02] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0 [11:34:02] [Client thread/ERROR] [FML]: Caught an exception during block registration java.lang.IllegalArgumentException: Don't know how to convert sc:rebar_maker[facing=north,part=head] back into data... at net.minecraft.block.Block.getMetaFromState(Block.java:225) ~[block.class:?] at net.minecraftforge.fml.common.registry.GameData.registerBlock(GameData.java:805) ~[GameData.class:?] at net.minecraftforge.fml.common.registry.GameData.registerBlock(GameData.java:767) ~[GameData.class:?] at net.minecraftforge.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:214) [GameRegistry.class:?] at net.minecraftforge.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:182) [GameRegistry.class:?] at net.minecraftforge.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:171) [GameRegistry.class:?] at com.duckcreeper.steelcraft.init.SteelCraftBlocks.register(SteelCraftBlocks.java:38) [steelCraftBlocks.class:?] at com.duckcreeper.steelcraft.SteelMain.preInit(SteelMain.java:32) [steelMain.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_66] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_66] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_66] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_66] at net.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:515) [FMLModContainer.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_66] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_66] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_66] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_66] at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) [guava-17.0.jar:?] at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) [guava-17.0.jar:?] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) [guava-17.0.jar:?] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) [guava-17.0.jar:?] at com.google.common.eventbus.EventBus.post(EventBus.java:275) [guava-17.0.jar:?] at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:208) [LoadController.class:?] at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:187) [LoadController.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_66] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_66] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_66] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_66] at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) [guava-17.0.jar:?] at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) [guava-17.0.jar:?] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) [guava-17.0.jar:?] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) [guava-17.0.jar:?] at com.google.common.eventbus.EventBus.post(EventBus.java:275) [guava-17.0.jar:?] at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:118) [LoadController.class:?] at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:514) [Loader.class:?] at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:243) [FMLClientHandler.class:?] at net.minecraft.client.Minecraft.startGame(Minecraft.java:412) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:325) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:117) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_66] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_66] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_66] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_66] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?] at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) [start/:?] at GradleStart.main(Unknown Source) [start/:?] [11:34:02] [Client thread/INFO] [FML]: Applying holder lookups [11:34:02] [Client thread/INFO] [FML]: Holder lookups applied [11:34:02] [Client thread/ERROR] [FML]: Fatal errors were detected during the transition from PREINITIALIZATION to INITIALIZATION. Loading cannot continue [11:34:02] [Client thread/ERROR] [FML]: mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized FML{8.0.14.1274} [Forge Mod Loader] (forgeSrc-1.8-11.14.0.1274-1.8.jar) Unloaded->Constructed->Pre-initialized Forge{11.14.0.1274} [Minecraft Forge] (forgeSrc-1.8-11.14.0.1274-1.8.jar) Unloaded->Constructed->Pre-initialized sc{1.0} [steel Craft] (bin) Unloaded->Constructed->Errored [11:34:02] [Client thread/ERROR] [FML]: The following problems were captured during this phase [11:34:02] [Client thread/ERROR] [FML]: Caught exception from sc net.minecraftforge.fml.common.LoaderException: java.lang.IllegalArgumentException: Don't know how to convert sc:rebar_maker[facing=north,part=head] back into data... at net.minecraftforge.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:225) ~[forgeSrc-1.8-11.14.0.1274-1.8.jar:?] at net.minecraftforge.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:182) ~[forgeSrc-1.8-11.14.0.1274-1.8.jar:?] at net.minecraftforge.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:171) ~[forgeSrc-1.8-11.14.0.1274-1.8.jar:?] at com.duckcreeper.steelcraft.init.SteelCraftBlocks.register(SteelCraftBlocks.java:38) ~[bin/:?] at com.duckcreeper.steelcraft.SteelMain.preInit(SteelMain.java:32) ~[bin/:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_66] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_66] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_66] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_66] at net.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:515) ~[forgeSrc-1.8-11.14.0.1274-1.8.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_66] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_66] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_66] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_66] at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?] at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?] at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:208) ~[forgeSrc-1.8-11.14.0.1274-1.8.jar:?] at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:187) ~[forgeSrc-1.8-11.14.0.1274-1.8.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_66] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_66] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_66] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_66] at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?] at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?] at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:118) [LoadController.class:?] at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:514) [Loader.class:?] at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:243) [FMLClientHandler.class:?] at net.minecraft.client.Minecraft.startGame(Minecraft.java:412) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:325) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:117) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_66] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_66] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_66] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_66] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?] at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) [start/:?] at GradleStart.main(Unknown Source) [start/:?] Caused by: java.lang.IllegalArgumentException: Don't know how to convert sc:rebar_maker[facing=north,part=head] back into data... at net.minecraft.block.Block.getMetaFromState(Block.java:225) ~[forgeSrc-1.8-11.14.0.1274-1.8.jar:?] at net.minecraftforge.fml.common.registry.GameData.registerBlock(GameData.java:805) ~[forgeSrc-1.8-11.14.0.1274-1.8.jar:?] at net.minecraftforge.fml.common.registry.GameData.registerBlock(GameData.java:767) ~[forgeSrc-1.8-11.14.0.1274-1.8.jar:?] at net.minecraftforge.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:214) ~[forgeSrc-1.8-11.14.0.1274-1.8.jar:?] ... 43 more [11:34:02] [Client thread/INFO] [sTDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:568]: ---- Minecraft Crash Report ---- // I'm sorry, Dave. Time: 1/30/16 11:34 AM Description: There was a severe problem during mod loading that has caused the game to fail net.minecraftforge.fml.common.LoaderException: java.lang.IllegalArgumentException: Don't know how to convert sc:rebar_maker[facing=north,part=head] back into data... at net.minecraftforge.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:225) at net.minecraftforge.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:182) at net.minecraftforge.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:171) at com.duckcreeper.steelcraft.init.SteelCraftBlocks.register(SteelCraftBlocks.java:38) at com.duckcreeper.steelcraft.SteelMain.preInit(SteelMain.java:32) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:515) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) at com.google.common.eventbus.EventBus.post(EventBus.java:275) at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:208) at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:187) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) at com.google.common.eventbus.EventBus.post(EventBus.java:275) at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:118) at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:514) at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:243) at net.minecraft.client.Minecraft.startGame(Minecraft.java:412) at net.minecraft.client.Minecraft.run(Minecraft.java:325) at net.minecraft.client.main.Main.main(Main.java:117) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) at GradleStart.main(Unknown Source) Caused by: java.lang.IllegalArgumentException: Don't know how to convert sc:rebar_maker[facing=north,part=head] back into data... at net.minecraft.block.Block.getMetaFromState(Block.java:225) at net.minecraftforge.fml.common.registry.GameData.registerBlock(GameData.java:805) at net.minecraftforge.fml.common.registry.GameData.registerBlock(GameData.java:767) at net.minecraftforge.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:214) ... 43 more A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- System Details -- Details: Minecraft Version: 1.8 Operating System: Windows 7 (amd64) version 6.1 Java Version: 1.8.0_66, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 827110424 bytes (788 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB) JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: MCP v9.10 FML v8.0.14.1274 Minecraft Forge 11.14.0.1274 4 mods loaded, 4 mods active mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized FML{8.0.14.1274} [Forge Mod Loader] (forgeSrc-1.8-11.14.0.1274-1.8.jar) Unloaded->Constructed->Pre-initialized Forge{11.14.0.1274} [Minecraft Forge] (forgeSrc-1.8-11.14.0.1274-1.8.jar) Unloaded->Constructed->Pre-initialized sc{1.0} [steel Craft] (bin) Unloaded->Constructed->Errored Help would be appreciated!!!
-
Minecraft 1.8 Structure Generation Help
DuckCreeper replied to DuckCreeper's topic in Modder Support
So would it be : Block checkID = world.setBlockState(new BlockPos(i, j, k), IBlockState.getBlock, checkID); I simply cant figure it out. IBlockState#getBlock means that getBlock is an instance method of IBlockState . Call it on an instance of IBlockState to get its Block . Use World#getBlockState to get the IBlockState at the specified position. You can think of an IBlockState as a combination of a Block and its metadata value. Use GameRegistry.registerWorldGenerator to register an IWorldGenerator . GameRegistry.registerWorldGenerator would be put in the main class? Or the village class? -
Minecraft 1.8 Structure Generation Help
DuckCreeper replied to DuckCreeper's topic in Modder Support
Note: I've found a 1.8 tutorial on creating a structure. But it doesn't help much. My structure isn't loading within the world. How does one register and initialize it within the main class? -
Minecraft 1.8 Structure Generation Help
DuckCreeper replied to DuckCreeper's topic in Modder Support
So would it be : Block checkID = world.setBlockState(new BlockPos(i, j, k), IBlockState.getBlock, checkID); I simply cant figure it out. -
So I've been recently coding. Creating a new 1.8 Minecraft Mod. I've been looking for tutorials and what not on how to create the files and actually have something generate. I've got most of it working. But I'm having a bit of trouble. The parts I'm having trouble with are the IBlockState checkID = world.setDefaultState(new BlockPos(i, j, k) (IBlockState)); while (checkID != 0){ if (distanceToAir > 3){ return false; } if(b1.isAir(world, x, y, z) || b1.isLeaves(world, x, y, z)) and if (checkID != 0){ return false; } Any help is greatly appreciated Here is my code