Advertisement
RandomGuy32

use_up_stick.mcfunction

Jun 27th, 2023
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. # Stores the current stack size of the item entity in the scoreboard.
  2. execute as @s store result score @s item_stack_size run data get entity @s Item.Count
  3.  
  4. # The constant 1 is subtracted from the scoreboard value.
  5. scoreboard players operation @s item_stack_size -= 1 constants
  6.  
  7. # Stores the now decremented scoreboard value back into the stack size of the item entity.
  8. execute as @s store result entity @s Item.Count int 1 run scoreboard players get @s item_stack_size
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement