#Is it possible to replace an item inside the player's inventory without specifying its location?
1 messages · Page 1 of 1 (latest)
You can use /clear along with /give.
imma try that
You can use has item selector in the give command to test if the player has that item. Then, run the clear command with hasitem selector too.
@crude hazel ☝️
No, you can use the target selector in the @p of the give and clear command.
Please make sure to add r too so it doesn't runs the command on a player far away if the nearest player doesn't have it.
I mean r (radius) target selector.
copy that, I'm aware that is for the radius
I like the "copy that". It's like I'm talking to a aircraft pilot or someone from ISS.