#Skript Bug

1 messages · Page 1 of 1 (latest)

inland stone
#

Hellooo what are I'm doing wrong here?

on inventory click:
    if event-item is a beacon:
        broadcast "yup"

command /get:
    trigger:
        set slot 1 of current inventory of player to beacon named "&ctest" with lore "&9test"```
#

it doesnt say yup

#

eventhough its a beacon

#

(+ i dont want to use if "%event-item%" contains "beacon":)

dense sedge
#

because thats the wrong expression

#

its event-slot

inland stone
dense sedge
#

set slot 1 of current inventory of player to beacon named "&ctest" with lore "&9test"
What are you trying to do here? if this is a gui use vanilla guis

inland stone
dense sedge
#

set slot ... of player's inventory to ...

inland stone
#

My problem is, that I dont get the yup

#

when clicking on it

#

i guess because they are different types

#

broadcast "&1%event-item.getClass().getName()% &2%beacon.getClass().getName()% &3%event-slot.getClass().getName()%"

dense sedge
dense sedge
inland stone
#

not if its named xyz

dense sedge
#

then dont check the name

#

and turn off reply pings please

inland stone
#

I only want event-slot is a beacon

dense sedge
#

wdym "HOW?" thats literally the line.

#

unless for some reason its parsing as a block