Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

thebest108

Members
  • 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. That's like saying a car is broken and you need help. Help with what, your not telling us anything!
  3. 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
  4. Add the time variable as an nbt uniquely saved to the entity/whatever, otherwise it won't work with 2 or more objects
  5. You forgot to add the +256 to the .itemID, remember item are shifted
  6. What is this project about?
  7. The 1st website ever on the Internet was Info.cern.ch Nuff sed
  8. Why do you need to decompile optifine?
  9. 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
  10. How would I write/read an nbt to an item?
  11. world.spawnEntity(entity, other stuff)
  12. par1ItemStack.Id = somethingElse +256; Also, is this.isFull just a standard Boolean, because that would cause multiplayer issues
  13. I don't exactly remember the methods to use but it is possible
  14. Register the mob rendering in a client proxy, servers don't render
  15. 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
  16. Look into forge events, they should give you what you need
  17. Why not world.setBlock() ?
  18. 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
  19. I'm using getArmorTexture(ItemStack itemstack) but that's all it gives
  20. Is there something like ItemStack.getEntityHoldingStack ?

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.