#(norwaj) Using a boiler block with water level 3
1 messages · Page 1 of 1 (latest)
Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.
You can block this bot if you don't want to see these messages, I won't mind.
<@&525394568410038282>
!prop MaterialTag.level
Sets the current level for a Levelled material (like water, lava, and cauldrons), cake, beehives, snow, or farmland.
MaterialTag
ElementTag(Number)
<MaterialTag.level> Returns the current level for a Levelled material, cake, beehives, snow, or fa...
<MaterialTag.maximum_level> Returns the maximum level for a Levelled material (like water, lava, a...
<MaterialTag.minimum_level> Returns the minimum level for a Levelled material (like water, lava, a...
Sorry for dumb question. What is wrong when I write the condition??
sysCauldronOpen: type: world debug: false events: after player right clicks cauldron: - if <material[cauldron].level> == <material[cauldron].maximum_level>: - determine cancelled passively - inventory open destination:menBuildBlocks
Tag parse results for <material[cauldron]>: https://paste.denizenscript.com/View/111704
m@cauldron
you're just parsing a tag that returns the material of cauldron, you're not referencing the actual cauldron being clicked
you need the context tag to reference it
!event player clicks block
Player
this event may in some cases double-fire, requiring usage of the 'ratelimit' command (like 'ratelimit <player> 1t') to prevent doubling actions.
player (right|left) clicks <block>
with:<item> to only process the event if a specified item was held.
using:hand/off_hand/either_hand to only process the event if the specified hand was used to click.
type:<material> to only run if the block clicked matches the material input.
when a player clicks on a block or in the air.
Always. - this adds switches flagged:<flag name> + permission:<node>, in addition to the <player> link.
<context.item> returns the ItemTag the player is clicking with.
<context.location> returns the LocationTag the player is clicking on.
<context.relative> returns a LocationTag of the air block in front of the clicked block.
<context.click_type> returns an ElementTag of the Spigot API click type <@link url https://hub.spi...
<context.hand> returns an ElementTag of the used hand.
True - this adds switches in:<area> + location_flagged:<flag name>.
True - this adds <context.cancelled> and determines cancelled + cancelled:false.
context.location returns the location of the block the player is clicking on
Should this work?
`after player right clicks cauldron:
- if <context.location> == <material[cauldron].maximum_level>:
- ...`
no, your debug will show you that l@(something) does not equal 3
!tag locationtag.material
Returns the material of the block at the location.
world
MaterialTag
the context location's material's level
I'm VERY sorry for such questions, what did I do wrong now?
- if <context.location> == <player.location.material.maximum_level>:
Denizen reboots without problems and does not give any error, but the action simply does not work
If you need help with a script issue, one of the most powerful tools Denizen has to offer is full debug output. This is displaying in your console whenever scripts are running until you turn debug off. To share a debug log quickly and easily with helpers, simply run the command /denizen debug -r in-game to begin recording, then run through the part of the script you need help with, then run the command /denizen submit. This will give you a link to a paste of the debug log, which you can then copy/paste back to us!
And here I wrote everything correctly? Is the problem deeper?
yes, the problem is you aren't familiar with reading your debug, or aren't processing it correctly
if you share your debug, i'll explain the entire process step by step from what you currently have
I will first try to read the debug myself, then I will contact you, thanks!!
Just a quick note, cauldron with water becames water_cauldron, so level can be used only with water_cauldron, not the empty one. That's 2 different blocks
oh that's helpful
That's what I was looking for. Thank you!
Mojang for some reason messed with cauldrons so much :D
I did not find the ID of the boiler with water on the Internet, I thought that it was indicated only by the level
If this is resolved now then
Has your issue been resolved, or your question been answered?
If so, please use the </resolved:1028673926114594866> command to close your thread.
Or </invalid:1028673926898909185> if it's not possible to resolve.
If not yet resolved, please reply below to tell us what you still need.
(Note that if there is no reply for a few days, this thread will eventually close itself.)
@royal harness