Advertisement
Boomber123

Shulker Box Inventory Modification

May 9th, 2020
1,747
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 1.91 KB | None | 0 0
  1. {
  2.   "type": "minecraft:block",
  3.   "pools": [
  4.     {
  5.       "rolls": 1,
  6.       "entries": [
  7.         {
  8.           "type": "minecraft:alternatives",
  9.           "children": [
  10.             {
  11.               "type": "minecraft:dynamic",
  12.               "name": "minecraft:contents",
  13.               "conditions": [
  14.                 {
  15.                   "condition": "minecraft:match_tool",
  16.                   "predicate": {
  17.                     "nbt": "{drop_contents: 1b}"
  18.                   }
  19.                 }
  20.               ]
  21.             },
  22.             {
  23.               "type": "minecraft:item",
  24.               "functions": [
  25.                 {
  26.                   "function": "minecraft:copy_name",
  27.                   "source": "block_entity"
  28.                 },
  29.                 {
  30.                   "function": "minecraft:copy_nbt",
  31.                   "source": "block_entity",
  32.                   "ops": [
  33.                     {
  34.                       "source": "Lock",
  35.                       "target": "BlockEntityTag.Lock",
  36.                       "op": "replace"
  37.                     },
  38.                     {
  39.                       "source": "LootTable",
  40.                       "target": "BlockEntityTag.LootTable",
  41.                       "op": "replace"
  42.                     },
  43.                     {
  44.                       "source": "LootTableSeed",
  45.                       "target": "BlockEntityTag.LootTableSeed",
  46.                       "op": "replace"
  47.                     }
  48.                   ]
  49.                 },
  50.                 {
  51.                   "function": "minecraft:set_contents",
  52.                   "entries": [
  53.                     {
  54.                       "type": "minecraft:dynamic",
  55.                       "name": "minecraft:contents"
  56.                     }
  57.                   ]
  58.                 }
  59.               ],
  60.               "name": "minecraft:yellow_shulker_box"
  61.             }
  62.           ]
  63.         }
  64.       ]
  65.     }
  66.   ]
  67. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement