#How do i fix this
1 messages · Page 1 of 1 (latest)
player's inventory
the full code?
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
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
lemme try that rq
put else to check if it's false
idk minecraft wiki says 103
when i just put else it says i also have to put another if but now i get this error
- why if else just put else
I don't think it's like other languages in that way
- Isn't player's inventory the player's inventory instead of player's current inventory?
ye i did that and i got that error
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```
alr it said test
can you send the link to the source were you found slot 103 to be player's head?
im not sure
ye one second
well since it sent test. Do you have the player head on your head when you executed it?
Yep
change the slot then
to what
https://tryitands.ee i guess
funny
mhm
ah
bruh
it
worked
no way
Thanks man
but if i remove the command thingy this happens
when do you want that to execute?
i can put it to 1 day so it should execute everytime i log on
then use on join: event
alr
you need to have an event before an if statement
