#How to stop everything on inventory close event?
1 messages · Page 1 of 1 (latest)
could you please show it by an example?
You meant sth like this?
stop```
because i dont know I understand it well
i wanna stop the animation and sound, but give player reward
stop
give {_P} {_var}```
so it should look like this?
aaa fine, you're right
where should it put it in my code?
after
on inventory close:
I'm still learning, so that's why I ask those silly questions
This doesn't work:
if name of player's current inventory is not "&5&l&nOtwieranie Skrzynki":
give {_P} {_var}
stop```
huh
why do u check if not
when u close inv the minecraft sees the player's inventory as the one before closing
oh, that makes sense
i did that, and it doesnt work
if name of player's current inventory is "&5&l&nOtwieranie Skrzynki":
give {_P} {_var}
stop```
{_p} is player
I wanna stop this function crate(player)
u need to put it inside the function
can i stop function
so if i cannot stop the function, how can i stop the animation which is the part of the function
idk my head is gonna blow up
thanks for your aid
im gonna try
you stop the function by putting "stop" INSIDE the function
okay I know to put in inside the function, but now it's time to understand where exactly hahaha