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.

[1.16.5] Help with custom GameRule function / CreateFluidSourceEvent

Featured Replies

Posted

I've added a few new rules to minecraft and now I'm creating the functions.

But some of my functions not work / they don't work as they should.

ย 

Enable lava fluid source

- if the gamerule is true lava source are enabled but it dont work but why this is the code i use (BlockEvent.CreateFluidSourceEvent)

https://github.com/Luis-st/Forge-1.16.5-36.0.1-mdk/blob/main/forge-1.16.5-36.0.1-mdk/src/main/java/net/luis/cave/events/world/block/OnCreateFluidSourceEvent.java

error: no matter if true or false lava can always creat source

  • Author
24 minutes ago, diesieben07 said:

If that is not what you want - what do you want instead?

that's how it should work

true: can creat source

false can't creat source

ย 

when i set the gamrule to true/false lava always creat source but why

  • Author
9 minutes ago, diesieben07 said:

This is not what I observed when I cloned our repository.

i remove the complete event and lava will create source

- i export the mod and check it outside of the ide again

  • Author
1 hour ago, diesieben07 said:

Then something is seriously messed up about your game. Normally you cannot create Lava like this

This is currently an error in my IDE but i dont know why

Edited by Luis_ST

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.