Jump to content

tattyseal

Forge Modder
  • Posts

    194
  • Joined

  • Last visited

Everything posted by tattyseal

  1. diesieben07 has said before, we need those crash reports to help you...
  2. Look at onBlockActivated and this DO NOT COPY CODE
  3. I just put a PullRequest[1] into Forge adding a new PushEvent after I seen this topic as I thought it was interesting one did not already exist. It has not been merge, if it is I will let you know. [1] https://github.com/MinecraftForge/MinecraftForge/pull/1238
  4. You have done the register wrong, for example GameRegistry.registerShapedRecipe(new ItemStack(MyModClass.coalOnAStick, 1), "XOX", "OXO", "XOX", 'X', new ItemStack(Items.coal, 1), 'O', new ItemStack(Items.stick, 1)); Where 'X' represents X in "XOX" and "OXO" and 'O' represents O in "XOX" and "OXO", and adding more items just do the identifier first then then itemstack like I show eg: 'A', new ItemStack(Items.apple, 1) Would look like GameRegistry.registerShapedRecipe(new ItemStack(MyModClass.coalOnAStick, 1), "XOX", "OXO", "XOX", 'X', new ItemStack(Items.coal, 1), 'O', new ItemStack(Items.stick, 1), 'A', new ItemStack(Items.apple, 1));
  5. ItemStacks can store NBT, I would suggest passing the ItemStack to the classes where you need to store NBT, and then stack.stackTagCompound = new NBTTagCompound(); and edit it from there
  6. You will need ItemBlocks for it to work properly, I recommend Wuppys tutorials.
  7. Please use puush or Gyazo for screenshots so we can help.
  8. Like I said before Post your code, or we literally CANNOT HELP YOU!
  9. TickEvent is an FML Event and has to be registered with FMLCommonHandler.instance().bus().register(new EventClass());
  10. Rerun gradlew.bat setUpDecompWorkspace --refresh-dependencies
  11. You can use this custom method that does not need a 256x Texture public static void drawTexturedQuadFit(double x, double y, double width, double height, double zLevel) { Tessellator tessellator = Tessellator.instance; tessellator.startDrawingQuads(); tessellator.addVertexWithUV(x + 0, y + height, zLevel, 0,1); tessellator.addVertexWithUV(x + width, y + height, zLevel, 1, 1); tessellator.addVertexWithUV(x + width, y + 0, zLevel, 1,0); tessellator.addVertexWithUV(x + 0, y + 0, zLevel, 0, 0); tessellator.draw(); }
  12. When you lock it do TileEntityDoor ted = (TileEntityDoor) worldObj.getTileEntity(xCoord, yCoord, zCoord); //change yCoord to +1 or -1 depending on whether its the top or bottom ted.locked = true; //or false
  13. You have to install the Java JDK http://www.oracle.com/technetwork/java/javase/downloads/index.html?ssSourceSiteId=otnjp
  14. Make a class that implements IRecipe and register it with GameRegistry
  15. First of all, I would defiantly recommend using Eclipse, it does not take up that much memory. Second of all, I would recommend going here http://www.wuppy29.com/minecraft/modding-tutorials/forge-modding-1-7/#sthash.cce4kN9Y.dpbs, they are tutorials by a modder called Wuppy, they are great for beginners and even advanced modders! I hope I can help and if you need any more help just let me know!
  16. You have to use the installer unless you want to have to do all the library stuff yourself, its the easiest way.
  17. In BasicMachine in breakBlock you commented out super.breakBlock uncomment that,
  18. I know my sig says sometimes not nice, but I am sometimes. Don't worry about it, everyone started somewhere. I am pretty sure I asked questions like this when I started out.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.