Jump to content

Otis Goodman

Members
  • Posts

    45
  • Joined

  • Last visited

Everything posted by Otis Goodman

  1. Ok, nearly working my last problem is when I right click on the book the shout cast's twice.
  2. Thanks that helped what is the best way to compare strings and item stacks?
  3. The NBT problem is fixed but I have another. I am not sure if my if statement that checks if the player is holding the shout book is working, can someone take a look and correct me if I am wrong. Shout Book Item Class : https://gist.github.com/OtisGoodman/96da24295c450bc02f4d58890ef60faf Shout Set Book Class: https://gist.github.com/OtisGoodman/57480c48b4dc516cb11bf4dad7a353a5
  4. Your right and I am sorry. I am trying to use ShoutSetBook code to change the NBT of the ShoutBook item so that it runs the shout by right-clicking but, I can't seem to get the shout to cast and I don't know what's wrong. I hope that explains that better.
  5. I am trying to make a command thing that edits NBT on an item and changes how the item functions. This is really hard to explain can someone take a look at this? https://gist.github.com/OtisGoodman/96da24295c450bc02f4d58890ef60faf https://gist.github.com/OtisGoodman/57480c48b4dc516cb11bf4dad7a353a5 https://gist.github.com/OtisGoodman/487e771261a107a451c20d97f7712504 https://gist.github.com/OtisGoodman/eededaa5f545629153278e8e58ce3027
  6. addSlotToContainer and I want to make a slot in order for something to extend slot the slot methods needs and Iinventory too.
  7. I was trying custom slots that only fit certain items and it says that requires an IInventory. Is there a better way to do slots that fit sertan items?
  8. What I am trying to make a gui but I need an Iinvintory when I register it and I am not sure what I should use. so I was wondering where this code is in valnilla src or if it even is there @Override public Object getClientGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) { if(ID == QCInfo.SMOKERID) return new GuiSmoker(player.inventory, (TileSmoker),INV, world.getTileEntity(new BlockPos(x,y,z))); return null; }
  9. What class are all the vanilla guis registered?
  10. Where Do I register my entity models so that they work on with a server? I currently have them in the preinit event but that crashes my test server. I have tried doing something like this but it makes the entities look like white soccer pylons when I play on a server. Can I get some help? @SideOnly(Side.CLIENT) public static void clientRegisters (){ RenderHandler.registerEntityRender(); } @Mod.EventHandler public static void preInit(FMLPreInitializationEvent event){ RenderHandler.registerEntityRender(); }
  11. also, It could just be that I don't know enough Java but I can't quite seem to get the classes thing to work.
  12. so how do I reference the stuff within the other mods using the ModProxyImpl?
  13. I did not completely get what he was saying. And had trouble understanding what cadiboo said.
  14. Is it pausable to check if a mod is installed if true then import x from other mod?
  15. Is there some sort of example for bolth of those?
  16. I am trying to do some integration with other mods but I ran into a problem. I don't know how to add integration with a mod without compiling it. What I am trying to do is check if the integrated mod is installed then run code referencing classes from the mod. Can I get some guidance? ~ Otis
  17. Does anyone know how to damage an Item instead of consuming it during crafting? Example: IC2 when you craft iron and a hammer you get plates and the hammer gets damaged. Thanks ~ Otis
×
×
  • Create New...

Important Information

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