supersaiyansubtlety

polar_bear.json

Oct 28th, 2020 (edited)
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 1.90 KB | None | 0 0
  1. {
  2.   "type": "minecraft:entity",
  3.   "pools": [
  4.     {
  5.       "rolls": 1,
  6.       "entries": [
  7.         {
  8.           "type": "item",
  9.           "name": "minecraft:heart_of_the_sea",
  10.           "weight": 1,
  11.           "functions": [
  12.             {
  13.               "function": "set_count",
  14.               "count": 1,
  15.               "conditions": [
  16.                 {
  17.                   "condition": "random_chance_with_looting",
  18.                   "chance": 1,
  19.                   "looting_multiplier": 0.25
  20.                 },
  21.                 {
  22.                   "condition": "entity_properties",
  23.                   "entity": "polar_bear",
  24.                   "flags": [
  25.                     {"is_baby": true}
  26.                   ],
  27.                   "predicate": {
  28.                     "nbt": "{Air:0s}"
  29.                   }
  30.                 },
  31.                 {
  32.                   "condition": "damage_source_properties",
  33.                   "predicate": {
  34.                     "bypasses_armor": true,
  35.                     "bypasses_invulnerability": false,
  36.                     "bypasses_magic": false,
  37.                     "source_entity": {
  38.                       "entity": null
  39.                     }
  40.                   }
  41.                 },
  42.                 {
  43.                   "condition": "alternative",
  44.                   "terms": [
  45.                     {
  46.                       "condition": "location_check",
  47.                       "predicate": {
  48.                         "state": {
  49.                           "waterlogged": true
  50.                         }
  51.                       }
  52.                     },
  53.                     {
  54.                       "condition": "location_check",
  55.                       "predicate": {
  56.                         "block": "minecraft:water"
  57.                       }
  58.                     }
  59.                   ]
  60.                 }
  61.               ]
  62.             }
  63.           ]
  64.         }
  65.       ]
  66.     }
  67.   ]
  68. }
  69.  
Add Comment
Please, Sign In to add comment