Advertisement
ClassyElm

Loot Table with CanPlaceOn Tag for Wheat Seeds

Jul 8th, 2019
2,108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 1.26 KB | None | 0 0
  1. {
  2.     "type": "minecraft:block",
  3.     "pools":
  4.     [
  5.         {
  6.             "rolls": 1.0,
  7.             "entries":
  8.             [
  9.                 {
  10.                     "type": "minecraft:alternatives",
  11.                     "children":
  12.                     [
  13.                         {
  14.                             "type": "minecraft:item",
  15.                             "conditions":
  16.                             [
  17.                                 {
  18.                                     "condition": "minecraft:block_state_property",
  19.                                     "block": "minecraft:wheat",
  20.                                     "properties": {
  21.                                         "age": "7"
  22.                                     }
  23.                                 }
  24.                             ],
  25.                             "name": "minecraft:wheat"
  26.                         },
  27.                         {
  28.                             "type": "minecraft:item",
  29.                             "name": "minecraft:wheat_seeds",
  30.                             "functions":
  31.                             [
  32.                                 {
  33.                                     "function": "set_nbt",
  34.                                     "tag": "{CanPlaceOn:[\"minecraft:farmland\"]}"
  35.                                 }
  36.                             ]
  37.                         }
  38.                     ]
  39.                 }
  40.             ]
  41.         },
  42.         {
  43.             "rolls": 1.0,
  44.             "entries":
  45.             [
  46.                 {
  47.                     "type": "minecraft:alternatives",
  48.                     "children":
  49.                     [
  50.                         {
  51.                             "type": "minecraft:item",
  52.                             "conditions":
  53.                             [
  54.                                 {
  55.                                     "condition": "minecraft:block_state_property",
  56.                                     "block": "minecraft:wheat",
  57.                                     "properties":
  58.                                     {
  59.                                         "age": "7"
  60.                                     }
  61.                                 }
  62.                             ],
  63.                             "name": "minecraft:wheat"
  64.                         },
  65.                         {
  66.                             "type": "minecraft:item",
  67.                             "name": "minecraft:wheat"
  68.                         }
  69.                     ]
  70.                 }
  71.             ]
  72.         }
  73.     ]
  74. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement