Advertisement
Skylinerw

Loot table random chance examples

Oct 22nd, 2015
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 0.81 KB | None | 0 0
  1. Using compared weights with empty item:
  2.  
  3. {
  4.     "pools": [
  5.         {
  6.             "rolls": 1,
  7.             "items": [
  8.                 {
  9.                     "item": "minecraft:diamond",
  10.                     "weight": 1
  11.                 },
  12.                 {
  13.                     "weight": 1
  14.                 }
  15.             ]
  16.         }
  17.     ]
  18. }
  19.  
  20. Using random_chance:
  21.  
  22. {
  23.     "pools": [
  24.         {
  25.             "rolls": 1,
  26.             "items": [
  27.                 {
  28.                     "item": "minecraft:diamond",
  29.                     "weight": 1,
  30.                     "conditions": [
  31.                         {
  32.                             "condition": "random_chance",
  33.                             "chance": 0.5
  34.                         }
  35.                     ]
  36.                 }
  37.             ]
  38.         }
  39.     ]
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement