Jump to content

[1.16.1] Cauldron-like blocks


IDuckz_

Recommended Posts

Hey, so I am making a different cauldron type block and I am wondering how can I make it so whenever you right click the block with a water bucket, it will add the water inside the cauldron, so basically just changing the shape. Would be appreciated with ideas or answers.

Edited by IDuckz_
Link to comment
Share on other sites

The liquid you see inside the cauldron is just a textured cuboid (using still water texture) that is specified in the cauldron model jsons (depending on the level of the liquid contained inside). The model corresponding to the level of the liquid in the cauldron (0 to 3) is selected using the IntegerProperty LEVEL of the CauldronBlock. If you need your custom cauldron to have a similar behaviour (different levels of water inside) then you can go on and do what the vanilla cauldron does..if you just want it to be filled or not (so 2 states) you can use a BooleanProperty and select the models in your cauldron blockstate according to the value of the property.

Edited by Beethoven92

Check out the port of the BetterEnd fabric mod (WIP): https://www.curseforge.com/minecraft/mc-mods/betterend-forge-port

Link to comment
Share on other sites

setWaterLevel just sets a value for the integer property LEVEL of the cauldron block...this value is then used in the blockstate to select the appropriate model for the block: when the value is 0 the model shown will be the empty cauldron one, when the value is 1 the model will be the slightly filled cauldron (which, i remind, is just the normal cauldron model with the addition of a cuboid that represent the water inside), and so on for the values 2 and 3 of the LEVEL property...it seems like this would be a good and useful read for you: https://mcforge.readthedocs.io/en/latest/blocks/states/

Edited by Beethoven92
  • Thanks 1

Check out the port of the BetterEnd fabric mod (WIP): https://www.curseforge.com/minecraft/mc-mods/betterend-forge-port

Link to comment
Share on other sites

4 hours ago, IDuckz_ said:

is there any way that I could make it so it just makes a new cube with the texture inside the cauldron? Or is that not possible?

I am not sure i fully understand that question, could you explain better?

  • Confused 1

Check out the port of the BetterEnd fabric mod (WIP): https://www.curseforge.com/minecraft/mc-mods/betterend-forge-port

Link to comment
Share on other sites

  • 1 year later...

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.



×
×
  • Create New...

Important Information

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