#hey how can i make a datapack that gives a player a special item using a command in survival no OP
1 messages · Page 1 of 1 (latest)
You will need to use a trigger command. Using different variations of the scoreboard command, create a trigger scoreboard and constantly enable it for all players. Then, you can have a ticking command that detects whether any players have a score greater than 0 (for example) and runs a function on them that gives them the item and resets their score.
You can use the /trigger command in survival to activate your function ^^