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

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

      By diesieben07 · Posted 3 minutes ago

      You need to change one of them, yes.
    • ThisIsNotOriginal
      When I try to run my mod after I just added Deferred Registries it crashes

      By ThisIsNotOriginal · Posted 11 minutes ago

      so do i change the name in my ItemsList?
    • diesieben07
      [1.16.5] Help with custom Backpack (slot background and mouse wheel move)

      By diesieben07 · Posted 21 minutes ago

      I do not understand. How is the offhand slot relevant regarding the background color of your slot?   Assuming you want a keyboard key to open the GUI: Make a KeyBinding. Use ClientTickEvent to check if its pressed. If it is, send a packet to the server, which then calls NetworkHooks#openGui. You can preemptively also open it on the client to hide the latency of the two network roundtrips.
    • diesieben07
      When I try to run my mod after I just added Deferred Registries it crashes

      By diesieben07 · Posted 23 minutes ago

      That is not how you make a Git repo. At all.   This creates a BlockItem for all of your blocks. One of your blocks has the registry name "copper_ore", hence this will create a BlockItem with registry name "copper_ore". This then creates another Item with registry name "copper_ore". This is not allowed, registry names must be unique.
    • Extrupt
      Forge won't fully download

      By Extrupt · Posted 25 minutes ago

      thanks for the help! it worked!
  • Topics

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

      By ThisIsNotOriginal
      Started 16 hours ago

    • Luis_ST
      3
      [1.16.5] Help with custom Backpack (slot background and mouse wheel move)

      By Luis_ST
      Started Yesterday at 07:47 AM

    • Extrupt
      5
      Forge won't fully download

      By Extrupt
      Started 57 minutes ago

    • HDMI_Steckdose
      1
      Forge error Forge won't open

      By HDMI_Steckdose
      Started 32 minutes ago

    • Retsal
      7
      [1.16.x] Custom block as a shop

      By Retsal
      Started Yesterday at 01:04 PM

  • Who's Online (See full list)

    • We Random
    • diesieben07
    • -MCS_Gaming-
    • Moohoy
    • PlasmaPig13
    • WooBoo
    • Katie328
    • ThisIsNotOriginal
    • reu_24
    • troublemaker_47
    • CAS_ual_TY
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • Adding Fluids
  • Theme

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