Advertisement
Guest User

datapack code

a guest
May 18th, 2025
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. tick.mcfuntion:
  2.  
  3. scoreboard players add @e[type=frog] more_frogs.frog_age 1
  4. execute if entity @e[type=frog, scores={more_frogs.frog_age=5}] run function more_frogs:rng6
  5. execute as @e[type=frog] if entity @e[type=frog, scores={more_frogs.frog_age=10}] as @s run scoreboard players operation @s more_frogs.base_color = asdfghjkl more_frogs.rng6
  6.  
  7.  
  8. load.mcfunction:
  9.  
  10. scoreboard objectives add more_frogs.frog_age dummy
  11. scoreboard objectives add more_frogs.base_color dummy
  12. scoreboard objectives add more_frogs.rng6 dummy
  13.  
  14.  
  15. rng6.mcfuntion:
  16.  
  17. execute store result score asdfghjkl more_frogs.rng6 run random roll 0..5
  18.  
  19.  
  20. frog_age.mcfunction:
  21.  
  22. scoreboard objectives add more_frogs.frog_age dummy
  23. execute as @e[type=frog] run execute store result score @s more_frogs.frog_age run data get entity @s Age
  24.  
  25.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement