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. Probably because the event has different fields. Look at the LivingDropsEvent class and see if you can trace your way back to a player. One exists. It's not hard to find.
  2. Do the check from pos.up() instead. The method looks at the block at pos and if it is not transparent, it return false.
  3. Do the check from pos.up() instead. The method looks at the block at pos and if it is not transparent, it return false.
  4. Look at the vanilla door.
  5. Look at the vanilla door.
  6. I said you need "This line equivalent" I didn't say "add this and only this, nothing else." I figured you were smart enough to go "oh hey, that holding variable, maybe I should copy that too."
  7. I said you need "This line equivalent" I didn't say "add this and only this, nothing else." I figured you were smart enough to go "oh hey, that holding variable, maybe I should copy that too."
  8. Not easily. The smooth lighting calculations are very complex and involve getting the light levels at each of the adjacent 26 blocks and doing some interpolation and setting the light value per-vertex.
  9. Not easily. The smooth lighting calculations are very complex and involve getting the light levels at each of the adjacent 26 blocks and doing some interpolation and setting the light value per-vertex.
  10. You can just create a new ItemStack of the ItemWritableBook instance (check the Items list) and apply the correct NBT tags. You can now clone and distribute this itemstack however.
  11. You can just create a new ItemStack of the ItemWritableBook instance (check the Items list) and apply the correct NBT tags. You can now clone and distribute this itemstack however.
  12. Cactus uses the onCollide method, which not all blocks override.
  13. Cactus uses the onCollide method, which not all blocks override.
  14. Actually an ItemEntity containing an ItemStack.
  15. Actually an ItemEntity containing an ItemStack.
  16. Put the addInfo method in MAItemSeeds and MAArrowMouldDurableTools.
  17. Put the addInfo method in MAItemSeeds and MAArrowMouldDurableTools.
  18. ...take the holding line from your ore drop event?
  19. ...take the holding line from your ore drop event?
  20. Attempts #1 and #3 look identical to me. By the way, you have an empty block: { } You can remove that. As for the desired behavior: Define "not working." What is it that the code does that you don't want or what is it that the code isn't doing that you do want?
  21. Attempts #1 and #3 look identical to me. By the way, you have an empty block: { } You can remove that. As for the desired behavior: Define "not working." What is it that the code does that you don't want or what is it that the code isn't doing that you do want?
  22. Oh you didn't check what sword the player is holding. This line equivalent: if (holding != null && holding.getItem() instanceof MABlazePickaxeTool) {
  23. Oh you didn't check what sword the player is holding. This line equivalent: if (holding != null && holding.getItem() instanceof MABlazePickaxeTool) {

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.