Advertisement
Skylinerw

Loot table example (Spider skull)

Mar 20th, 2016
331
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 2.55 KB | None | 0 0
  1. {
  2.     "pools": [
  3.         {
  4.             "rolls": 1,
  5.             "entries": [
  6.                 {
  7.                     "type": "item",
  8.                     "name": "minecraft:string",
  9.                     "weight": 1,
  10.                     "functions": [
  11.                         {
  12.                             "function": "set_count",
  13.                             "count": {
  14.                                 "min": 0,
  15.                                 "max": 2
  16.                             }
  17.                         },
  18.                         {
  19.                             "function": "looting_enchant",
  20.                             "count": {
  21.                                 "min": 0,
  22.                                 "max": 1
  23.                             }
  24.                         }
  25.                     ]
  26.                 }
  27.             ]
  28.         },
  29.         {
  30.             "rolls": 1,
  31.             "entries": [
  32.                 {
  33.                     "type": "item",
  34.                     "name": "minecraft:spider_eye",
  35.                     "weight": 1,
  36.                     "functions": [
  37.                         {
  38.                             "function": "set_count",
  39.                             "count": {
  40.                                 "min": -1,
  41.                                 "max": 1
  42.                             }
  43.                         },
  44.                         {
  45.                             "function": "looting_enchant",
  46.                             "count": {
  47.                                 "min": 0,
  48.                                 "max": 1
  49.                             }
  50.                         }
  51.                     ]
  52.                 }
  53.             ],
  54.             "conditions": [
  55.                 {
  56.                     "condition": "killed_by_player"
  57.                 }
  58.             ]
  59.         },
  60.         {
  61.             "rolls": 1,
  62.             "entries": [
  63.                 {
  64.                     "type": "item",
  65.                     "name": "minecraft:skull",
  66.                     "weight": 1,
  67.                     "functions": [
  68.                         {
  69.                             "function": "set_data",
  70.                             "data": 3
  71.                         },
  72.                         {
  73.                             "function": "set_nbt",
  74.                             "tag": "{SkullOwner:\"MHF_Spider\"}"
  75.                         }
  76.                     ]
  77.                 }
  78.             ],
  79.             "conditions": [
  80.                 {
  81.                     "condition": "killed_by_player"
  82.                 }
  83.             ]
  84.         }
  85.     ]
  86. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement