Jump to content

Adding Fluids


hijackster99

Recommended Posts

I am attempting to make a fluid for my mod in 1.16.4, but I cannot find any help online for how this is done. I have tried looking at how other mods do it and so far I have a Fluid class, a Fluid Block class, and a Bucket class. So far my fluid seems to exist in some capacity, but the bucket doesn't work, and when I try setblock, it does not work with the fluid block, but it does work with the still version of the fluid, except the fluid state still shows as empty, it just now has the falling boolean property. At this point I am pretty much stuck. I assume I am missing something (probably obvious), but I can't figure out what it is.

Fluid class:

https://github.com/hijackster99/Ancient-Relics-1.16/blob/master/src/main/java/com/hijackster99/ancientrelics/blocks/VoidGas.java

 

Fluid Block class:

https://github.com/hijackster99/Ancient-Relics-1.16/blob/master/src/main/java/com/hijackster99/ancientrelics/blocks/VoidGasBlock.java

 

Bucket class:

https://github.com/hijackster99/Ancient-Relics-1.16/blob/master/src/main/java/com/hijackster99/ancientrelics/items/VoidGasBucket.java

 

Main class with registries:

https://github.com/hijackster99/Ancient-Relics-1.16/blob/master/src/main/java/com/hijackster99/ancientrelics/core/ARBase.java

Link to comment
Share on other sites

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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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