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.

Featured Replies

Posted

I'd like to add a chance of a block spawning every time a water source turns into ice. I check but there is no event to listen to this in the current version.

 

Does anyone know if this would be possible?

7 hours ago, crischu said:

Does anyone know if this would be possible?

you can overwrite the ice block and add your chance

you then have to register the block with the minecraft id

 

Another way would be with the BlockEvent NeighborNotifyEvent,

but I'm not sure when this event is triggered exactly

(i don't know if it is triggered when the ice is converted into water).

If you want to try that, first use the debbuger to determine whether the event is triggered

  • Author

 

8 hours ago, Luis_ST said:

 

you can overwrite the ice block and add your chance

Interesting, what's the method to overwrite?

 

8 hours ago, Luis_ST said:

Another way would be with the BlockEvent NeighborNotifyEvent

 

6 hours ago, diesieben07 said:

NeighborNotifyEvent should work.

I didn't find much documentation about how to check events, for example, how does one check if the event is water freezing versus for example a player placing an ice block on a water source? or an ice block generating on a water source in other way?

15 hours ago, crischu said:

Interesting, what's the method to overwrite?

you have to overwrite the method IceBlock#turnIntoWater

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

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.