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.

Draco18s

Members
  • Joined

  • Last visited

Everything posted by Draco18s

  1. You aren't using the correct onBlockActivated method. Look at the Gui Handler tutorial again.
  2. Apparently not, just looked at the call stack for it. The only thing passed to the event is the player and the result stack.
  3. You can't. The number is not "how much experience to drop per smelt" it is "what is the probability of dropping 1 experience per smelt." You would need to use events to drop more.
  4. You can't. The number is not "how much experience to drop per smelt" it is "what is the probability of dropping 1 experience per smelt." You would need to use events to drop more.
  5. 1) generate a random number 2) do something with it
  6. 1) generate a random number 2) do something with it
  7. It gets called if the player is inside the 1x1x1 standard volume of the block (your block would need a bounding box smaller than 1x1x1 for this to occur). You would need to either: a) schedule tick updates (say, every 10 ticks) and check in updateTick (and reschedule the update) b) not schedule ticks and rely on random ticks (about once a minute) c) use a tile entity and check every tick A is the best solution.
  8. It gets called if the player is inside the 1x1x1 standard volume of the block (your block would need a bounding box smaller than 1x1x1 for this to occur). You would need to either: a) schedule tick updates (say, every 10 ticks) and check in updateTick (and reschedule the update) b) not schedule ticks and rely on random ticks (about once a minute) c) use a tile entity and check every tick A is the best solution.
  9. No no no, leave the collision box alone. You want to getEntitiesWithinAABB(thing I said)
  10. No no no, leave the collision box alone. You want to getEntitiesWithinAABB(thing I said)
  11. The only reason Mojang has two blocks for the furnace (redstone ore, redstone lamp, redstone torch....) is because they weren't clever enough to figure out how to get blockstates to change lighting.
  12. The only reason Mojang has two blocks for the furnace (redstone ore, redstone lamp, redstone torch....) is because they weren't clever enough to figure out how to get blockstates to change lighting.
  13. 1) spawn more particles per tick with horizontal offsets from each other. 2) make the block less than a full block on that side. 3) step 1: get the facing direction step 2: multiply that direction by 3 step 3: make an AABB from the block to this new position
  14. 1) spawn more particles per tick with horizontal offsets from each other. 2) make the block less than a full block on that side. 3) step 1: get the facing direction step 2: multiply that direction by 3 step 3: make an AABB from the block to this new position
  15. Don't register your renderers there. You must do it in your client proxy or you will crash the dedicated server. Do not use item.getUnlocalizedName().substring(5) this is awful awful awful, should never be done, and if you got it from a tutorial, go punch that person in the face for being an idiot. This is why setRegistryName and getRegistryName exist.
  16. Don't register your renderers there. You must do it in your client proxy or you will crash the dedicated server. Do not use item.getUnlocalizedName().substring(5) this is awful awful awful, should never be done, and if you got it from a tutorial, go punch that person in the face for being an idiot. This is why setRegistryName and getRegistryName exist.
  17. You need the reference inside the capability not the packet handler.
  18. You need the reference inside the capability not the packet handler.
  19. removeTask(new Task()) isn't going to do anything. It won't find the newly created object in the array, so it won't remove it from the array.
  20. removeTask(new Task()) isn't going to do anything. It won't find the newly created object in the array, so it won't remove it from the array.
  21. Well 90 degrees of rotation applied: 0% to the X axis, 0% to the Y axis, 0% to the Z axis would do precisely nothing.
  22. Well 90 degrees of rotation applied: 0% to the X axis, 0% to the Y axis, 0% to the Z axis would do precisely nothing.
  23. You started a new thread for this. Don't do that.
  24. You started a new thread for this. Don't do that.

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.