Minecraft Data Packs / Challenge

Random Item - ScatterPlayz

  • check_circle Functions
  • 2,030 views, 16 today
  • 261 downloads, 0 today
  • 3
  • 1
Scatter_Playz's Avatar Scatter_Playz
Level 28 : Expert System
2
Use:
/function ranitem:start
#To Start

/function ranitem:stop
#To Stop

/function ranitem:uninstall
#Run Before Removing

/function ranitem:zcommands/resetdata
#Resets the Datapack

tag @s add spec
#Player with tag spec don't receive item.



Customizations:
scoreboard players set cooldown dataRainItem (integer)
#Sets the cooldown for giving random item. By Default set to 60


scoreboard players set mode dataRainItem (integer)
# Modes
# 1 = give all player
# 2 = give random player

Extra:
Random: Adds a way to get pseudo random number

/function random:uninstall
#Before removing
CompatibilityMinecraft 1.13
toMinecraft 1.19
Tags

Create an account or sign in to comment.

Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome