#(norwaj) Using a boiler block with water level 3

1 messages · Page 1 of 1 (latest)

royal harness
#

A simple question, what ID is used to search for a level:3 cauldron in the game? What's the right way to code this?

sysCauldronOpen: type: world debug: false events: after player right clicks cauldron: - determine cancelled passively - inventory open destination:menBuildBlocks

glad cragBOT
#

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>

dim socketBOT
# half cargo !prop MaterialTag.level

Sets the current level for a Levelled material (like water, lava, and cauldrons), cake, beehives, snow, or farmland.

Object

MaterialTag

Input

ElementTag(Number)

Tags

<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...

royal harness
# half cargo !prop MaterialTag.level

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

vocal ermineBOT
wind imp
#

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

dim socketBOT
# wind imp !event player clicks block
Group

Player

**WARNING**

this event may in some cases double-fire, requiring usage of the 'ratelimit' command (like 'ratelimit <player> 1t') to prevent doubling actions.

Event Lines

player (right|left) clicks <block>

Switches

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.

Triggers

when a player clicks on a block or in the air.

Has Player

Always. - this adds switches flagged:<flag name> + permission:<node>, in addition to the <player> link.

Context

<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.

Has Known Location

True - this adds switches in:<area> + location_flagged:<flag name>.

Cancellable

True - this adds <context.cancelled> and determines cancelled + cancelled:false.

wind imp
#

context.location returns the location of the block the player is clicking on

royal harness
wind imp
#

no, your debug will show you that l@(something) does not equal 3

#

!tag locationtag.material

dim socketBOT
wind imp
#

the context location's material's level

royal harness
# wind imp 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

wind imp
#

run this set of commands, ill help show you:

#

!debug

dim socketBOT
# wind imp !debug
Info: debug

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!

royal harness
wind imp
#

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

royal harness
tawny wolf
#

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

wind imp
#

oh that's helpful

royal harness
tawny wolf
#

Mojang for some reason messed with cauldrons so much :D

royal harness
#

I did not find the ID of the boiler with water on the Internet, I thought that it was indicated only by the level

half cargo
#

If this is resolved now then

chrome grottoBOT
#
Thread Closing Reminder

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