#idk why this dosnt work

1 messages · Page 1 of 1 (latest)

brazen cradle
#

im a beginner so i dont really know why it dosnt work

command gui:
trigger:
create new gui with virtual chest named "&eTest Gui" with 1 row:
make gui slot 0 with feather named "&fSpeed Boost":
open last gui to player

on inventory click:
if event-item is feather named "&fSpeed Boost":
apply speed 1 to player for 999999 ticks

#

i also tried giving the player 1 diamond but that didnt work

formal falcon
#
  1. Format your code in a code block
  2. explainpls and likely debugit
  3. (for your 2nd message); send_code explainpls
brazen cradle
#
    trigger:
        create new gui with virtual chest named "&eTest Gui" with 1 row:
            make gui slot 0 with feather named "&fSpeed Boost":
        open last gui to player


on inventory click:
    if event-item is feather named "&fSpeed Boost":
        apply speed 1 to player for 999999 ticks 
brazen cradle
formal falcon
#

explainpls What do you mean your code "doesnt work"? That could mean a few things. Do you have errors? Does it simply not execute? Are there bugs/unintended sideffects or edge cases?
debugit If your code isnt fully working the way you expect it to, add broadcasts in it so you can see what conditions are passing/scopes are being run. Also you can send variables/expressions to double-check their valies

send_code you didnt send code that has anything to do with giving the player a diamond

brazen cradle
formal falcon
#

do you have warnings?

#

cause you should get an empty configuration section warning for the colon at the end of like 4

brazen cradle
formal falcon
#

yeah

brazen cradle
#

oh thats why?

formal falcon
#

so i dont think you intend for that to be a section

brazen cradle
# formal falcon so i dont think you intend for that to be a section

it still dosn't work

    trigger:
        create new gui with virtual chest named "&eTest Gui" with 1 row:
            make gui slot 0 with feather named "&fSpeed Boost"
        open last gui to player

on inventory click:
    if event-item is feather named "&fSpeed Boost":
        apply speed 1 to player for 999999 ticks
formal falcon
brazen cradle
#

there is no error or warnings it just simply dosnt give me speed

formal falcon
#

then debug

#

also try event-slot

brazen cradle
#

alr

feral shoal