Jump to content
  • Home
  • Files
  • Docs
Topics
  • All Content

  • This Topic
  • This Forum

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • Adding Fluids
Currently Supported: 1.16.X (Latest) and 1.15.X (LTS)
Sign in to follow this  
Followers 0
hijackster99

Adding Fluids

By hijackster99, January 20 in Modder Support

  • Reply to this topic
  • Start new topic

Recommended Posts

hijackster99    0

hijackster99

hijackster99    0

  • Tree Puncher
  • hijackster99
  • Members
  • 0
  • 8 posts
Posted January 20

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

  • Quote

Share this post


Link to post
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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.

    • Insert image from URL
×
  • Desktop
  • Tablet
  • Phone
Sign in to follow this  
Followers 0
Go To Topic Listing



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • ThisIsNotOriginal
      When I try to run my mod after I just added Deferred Registries it crashes

      By ThisIsNotOriginal · Posted 5 minutes ago

      I looked over my code and theres nowhere else im registering besides my BlockList and ItemsList. I will provide my debug.log in a moment
    • troublemaker_47
      Teleport player in same direction as where he looks

      By troublemaker_47 · Posted 8 minutes ago

      I found randomly th getlookvec method but i didnt know how to use it. BTW i dont know about the teleport command that you are talking about
    • ThisIsNotOriginal
      When I try to run my mod after I just added Deferred Registries it crashes

      By ThisIsNotOriginal · Posted 10 minutes ago

      ok  
    • diesieben07
      Teleport player in same direction as where he looks

      By diesieben07 · Posted 10 minutes ago

      Have you tried anything?
    • diesieben07
      When I try to run my mod after I just added Deferred Registries it crashes

      By diesieben07 · Posted 11 minutes ago

      Usually this happens if you have multiple registry entries with the same name. Make sure you are not registering stuff elsewhere in your code, too.
  • Topics

    • ThisIsNotOriginal
      11
      When I try to run my mod after I just added Deferred Registries it crashes

      By ThisIsNotOriginal
      Started 15 hours ago

    • troublemaker_47
      4
      Teleport player in same direction as where he looks

      By troublemaker_47
      Started 1 hour ago

    • hyperanimeboi
      1
      Help with drawing a string on Forge 1.16.5

      By hyperanimeboi
      Started Yesterday at 03:32 AM

    • DmitryLovin
      3
      To do something after all mods have been loaded

      By DmitryLovin
      Started Yesterday at 05:28 AM

    • Zemelua
      6
      [1.16] Simple Custom Chest

      By Zemelua
      Started February 20

  • Who's Online (See full list)

    • WindRunner7
    • <Gl33p_0r4nge>
    • Draco18s
    • Spacerulerwill
    • ThisIsNotOriginal
    • diesieben07
    • troublemaker_47
    • Tessa
    • brok4d
    • EnderiumSmith
    • squidlex
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • Adding Fluids
  • Theme

Copyright © 2019 ForgeDevelopment LLC · Ads by Longitude Ads LLC Powered by Invision Community