Current command syntax:
/loot <TARGET> <SOURCE>
Proposed command syntax:
/loot <TARGET> <SOURCE> [<count> [strict]] [expand [<depth>]
count
Behavior:
W/out strict: Same as count in /give - rolls the specified loot table (LT) specified number of times
W/ strict: Rolls the specified LT once, but multiplies the output by the specified amount
Before to get multiple LT rolls w/out creating a new LT would be to call /loot command that many times
Examples:
/loot give @p loot entities/skeleton 2
# 1st roll: 1 arrow and 2 bones
# 2nd roll: 1 bone
# Total: 1 arrow and 3 bones are given
/loot give @p loot entities/skeleton 2 strict
# 1st roll: 1 arrow and 2 bones
# The first roll is multiplied by 2
# Total: 2 arrow and 4 bones are given
Uses:
- In a command-block only map without data packs to get multiples of a loot table
- In a loot table generating unique items (e.g. explorer maps, colored equipment), with [strict] to get the exact copies of the items
expand
Behavior:
Depth is ∞ if not specified
Whenever a LT pool is rolled, disregard the rolls and instead give one of each possible results
If the LTs are nested, depth argument specifies how deep they should be expanded
Examples:
/loot give @p loot archaeology/desert_pyramid
# Randomly gives a TNT
/loot give @p loot archaeology/desert_pyramid expand
# Gives archer, miner, prize, skull pottery sherds, diamond, TNT, gunpowder, emerald
/loot give @p loot equipment/trial_chamber_ranged expand 1
# Gives all possible bow types, but only the normal amount of armor
Please sign in to leave a comment.
0 Comments