Help me please

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

KhoaMiTom

Member
Mar 24, 2024
2
0
1
23
Could someone kindly assist me with crafting a script tailored for Minecraft version 1.18.2? The aim is to create a scenario where, upon a player's demise, there's a chance for their entire inventory to gracefully scatter and drop all its contents.
 
Could someone kindly assist me with crafting a script tailored for Minecraft version 1.18.2? The aim is to create a scenario where, upon a player's demise, there's a chance for their entire inventory to gracefully scatter and drop all its contents.
Sure.
Code:
on death of player:
   set {_n} to random number between 0 and 100 # Sets up a RNG
   if {_n} is between 0 and 89: # Basically 90% Chance
      cancel drops
   else: # 100-90 = 10% Chance
      # Nothing here since drops will not be cancelled
 
  • Love
Reactions: KhoaMiTom
Sure.
Code:
on death of player:
   set {_n} to random number between 0 and 100 # Sets up a RNG
   if {_n} is between 0 and 89: # Basically 90% Chance
      cancel drops
   else: # 100-90 = 10% Chance
      # Nothing here since drops will not be cancelled
Thank you so much <3