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.

Featured Replies

Posted

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_

  • Author

I have but I don't really understand since it probably has something to do with levels of the block or whatever.

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

  • Author

Eh after checking setWaterLevel code multiple times and trying to understand it, I think I understood how it works.

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

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

  • Author

Okay so the explanation was fantastic and I understood how that works. I did set everything up but 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?

  • 1 year later...

What he means is that the cauldron is hardcoded to Minecraft, e.g. no matter what you do in the blockstate files, it will change back to cauldron.

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.