Jump to content

thebest108

Members
  • Posts

    503
  • Joined

  • Last visited

Everything posted by thebest108

  1. You could try checking the stack size with stack.stackSize, and check if it equals 1, otherwise subtract 1 from the stack, and add a new stack to the slot, then check if there is an empty slot and if there is, the repeat Hope this helps, I'm still newbish to modding
  2. Source please
  3. That's like saying a car is broken and you need help. Help with what, your not telling us anything!
  4. You're doing it the hard way, just use enum helper to register a new enum(in 1 line of code) in your mod files init
  5. Add the time variable as an nbt uniquely saved to the entity/whatever, otherwise it won't work with 2 or more objects
  6. You forgot to add the +256 to the .itemID, remember item are shifted
  7. What is this project about?
  8. The 1st website ever on the Internet was Info.cern.ch Nuff sed
  9. Why do you need to decompile optifine?
  10. My bad. There are 3 steps to spawning an entity. Step 1: declare the entity EntityChicken derp = new EntityChicken(world); Step 2: set the position and stuff (I don't know the exact name but it's something like) derp.setPostionAndSomethingElse() Step 3: now all the data has been set, so just do world.spawnEntityInWorld(derp); NOTE: before spawning the entity, do if(!world.isRemote) otherwise it'll spawn 2 entities. 1 that behaves normally, and 1 that doesn't move Took me a couple hours to figure this out so I hope I saved you some time
  11. How would I write/read an nbt to an item?
  12. world.spawnEntity(entity, other stuff)
  13. par1ItemStack.Id = somethingElse +256; Also, is this.isFull just a standard Boolean, because that would cause multiplayer issues
  14. I don't exactly remember the methods to use but it is possible
  15. Register the mob rendering in a client proxy, servers don't render
  16. I'm pretty sure there's an onUpdate method for blocks. You could check if there are any nearby blocks and then spawn an explosion. You could also try using a forge event
  17. Look into forge events, they should give you what you need
  18. YOU DON'T USE MC PATCHER!!!!
  19. It's universal by defualt
  20. Why not world.setBlock() ?
  21. Don't use the buckets code for reference, it's overcomplicated. Instead, add the method itemInteractionForEntity() in your bucket class, and then do ItemStack.id = filledgoldenbucket.id+256
  22. I'm using getArmorTexture(ItemStack itemstack) but that's all it gives
  23. Is there something like ItemStack.getEntityHoldingStack ?
×
×
  • Create New...

Important Information

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