#How do i fix this

1 messages · Page 1 of 1 (latest)

lethal pulsar
analog shoal
#

player's inventory

lethal pulsar
#

ye still not working same rrror

#

error

analog shoal
#

the full code?

lethal pulsar
daring zephyr
#

there

#

isn't a slot 103 is there?

#

Player's inventory means their in-game inventory that they store their items in

#

in vanilla mc

analog shoal
# lethal pulsar

can't you try and put a command before that?

command test:
    trigger:
        if slot 103 of player's inventory is a player head:
            apply strength 1 to player for 6 seconds```
#

And I think player head slot is 5

lethal pulsar
analog shoal
#

put else to check if it's false

lethal pulsar
#

when i just put else it says i also have to put another if but now i get this error

daring zephyr
#
  1. why if else just put else
#

I don't think it's like other languages in that way

#
  1. Isn't player's inventory the player's inventory instead of player's current inventory?
lethal pulsar
analog shoal
#
    trigger:
        if slot 103 of player's inventory is a player head:
            apply strength 1 to player for 6 seconds
        else:
            send "test" to player```
daring zephyr
#

br

#

bru

#

lol

#

player's helmet I think

#

Isn't it?

analog shoal
#

can you send the link to the source were you found slot 103 to be player's head?

lethal pulsar
lethal pulsar
analog shoal
#

well since it sent test. Do you have the player head on your head when you executed it?

analog shoal
#

change the slot then

lethal pulsar
daring zephyr
lethal pulsar
daring zephyr
#

mhm

lethal pulsar
#

also no its player head

#

or are you talking about the slot

daring zephyr
#

No the helmet slot

#

yes

#

the slot

lethal pulsar
#

ah

#

bruh

#

it

#

worked

#

no way

#

Thanks man

#

but if i remove the command thingy this happens

analog shoal
#

when do you want that to execute?

lethal pulsar
analog shoal
lethal pulsar
analog shoal
#

you need to have an event before an if statement

lethal pulsar
#

and is there a way to remove the effect if i take the helmet off

#

is it possible like this?