Advertisement
skylinerw_loot_table

EXAMPLE: Multiple fishing "tables"

Feb 25th, 2016
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 2.46 KB | None | 0 0
  1. /**
  2. *
  3. * A specific pool becomes available based on the player's "generic.luck" value. If the player has no luck, no items are provided. If the player has 1 luck, only stone is provided. If the player has 2 luck, only cobblestone is provided. If the player has 3 luck, only grass is provided. If the player has 4 luck, only pumpkin is provided.
  4. *
  5. * Replace the "item" entries with "loot_table" entries to branch off into more complex item selection. Pattern can be repeated as much as possible.
  6. *
  7. * Intended to be used for fishing loot tables, which are currently restricted to only being replaced via default tables. The table here can be used to extend capabilities further to avoid this limitation, though the self-imposed limitation is the reliance on "generic.luck", and thus cannot feasibly be used alongside an actual luck value.
  8. *
  9. * Example item to provide (removes all "generic.luck" from player and provides Luck of the Sea enchantment as the luck usage, which bypasses the 100% "generic.luck" removal):
  10. *
  11. * /give @p fishing_rod 1 0 {AttributeModifiers:[{AttributeName:"generic.luck",Name:"100% Reduction",Amount:-1.0,Operation:2,Slot:"mainhand",UUIDLeast:1l,UUIDMost:1l}],ench:[{id:61s,lvl:1s}]}
  12. *
  13. */
  14.  
  15. {
  16.     "pools": [
  17.         {
  18.             "rolls": 2,
  19.             "bonus_rolls": -1,
  20.             "entries": [
  21.                 {
  22.                     "type": "item",
  23.                     "name": "minecraft:stone",
  24.                     "weight": 0,
  25.                     "quality": 1
  26.                 }
  27.             ]
  28.         },
  29.         {
  30.             "rolls": 3,
  31.             "bonus_rolls": -1,
  32.             "entries": [
  33.                 {
  34.                     "type": "item",
  35.                     "name": "minecraft:cobblestone",
  36.                     "weight": -1,
  37.                     "quality": 1
  38.                 }
  39.             ]
  40.         },
  41.         {
  42.             "rolls": 4,
  43.             "bonus_rolls": -1,
  44.             "entries": [
  45.                 {
  46.                     "type": "item",
  47.                     "name": "minecraft:grass",
  48.                     "weight": -2,
  49.                     "quality": 1
  50.                 }
  51.             ]
  52.         },
  53.         {
  54.             "rolls": 5,
  55.             "bonus_rolls": -1,
  56.             "entries": [
  57.                 {
  58.                     "type": "item",
  59.                     "name": "minecraft:pumpkin",
  60.                     "weight": -3,
  61.                     "quality": 1
  62.                 }
  63.             ]
  64.         }
  65.     ]
  66. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement