#Detect if Blaze Burner is Heated on RightClickEvent

31 messages · Page 1 of 1 (latest)

digital edge
#

about as the message says

loud kayakBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

slender lichen
#

looks like the blaze burner has 3 designated types in the blaze block property

#

under the blaze block property, they are smouldering, kindled, and seething, from least heated to most heated respectively

digital edge
#

ty!

slender lichen
#

yeeee

#

it should be simple enough to reference its block property in the code

digital edge
#

sooo smth like this yea?

slender lichen
#

hold on one sec

digital edge
#

nod

slender lichen
#

I believe it would probably be like

#

something like this... maybe:

const { target: block } = event
const { properties } = block

if (block.id != 'create:blaze_burner') return
if (properties.get('blaze') != 'kindled' || properties.get('blaze') != 'seething') {
    ...
}
#

sorry if that took long

digital edge
#

tyy!! ill test it now!

slender lichen
#

what's your full code block?

#

knowing the code makes it easier to find out what yer trying to achieve

digital edge
#

well with the code u just made its

#

but it doesnt appear to be working

slender lichen
#

oh ok hold on

digital edge
#

nodnod, take ur time!

slender lichen
#

the blaze burner is already being referenced in that

#

so no need for the block check

digital edge
#

gotcha

#

still nothin :p

slender lichen
#
BlockEvents.rightClicked('create:blaze_burner', event => {
    const { block } = event
    const { properties } = block

    if (properties.get('blaze') != 'kindled' || properties.get('blaze') != 'seething') {
        ...
    }
})
#

this should work

#

albeit I can't 100% guarantee because I haven't really worked with this stuff in depth

#

but it is code that I've used prior

digital edge
#

it works!! tysm!!!

slender lichen
#

👍