You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I want to remove 1 item from a player's inventory in a function using "{_p}'s tool" doesn't work, but "tool of {_p}" does.
Steps to Reproduce
function test(p: player):
remove 1 of tool of {_p} from {_p}'s inventory ← Work
#-----
remove 1 of {_p}'s tool from {_p}'s inventory ← Doesn't work
on rightclick holding red dye:
cancel event
test(player)
Expected Behavior
This should remove the item from the inventory, regardless of the expression used.
Duplicate of #3814 (closing this one as #3814 contains more information). For that code you can use remove 1 of ({_p}'s tool) from {_p}'s inventory, which should temporarily fix it (or just the first version you wrote).
Description
When I want to remove 1 item from a player's inventory in a function using "{_p}'s tool" doesn't work, but "tool of {_p}" does.
Steps to Reproduce
Expected Behavior
This should remove the item from the inventory, regardless of the expression used.
Errors / Screenshots
https://pastebin.com/F0mnancm
Server Information
Additional Context
In alpha6 it also happens and with worse errors, like this #3185 .
The text was updated successfully, but these errors were encountered: