Skip to content

Commit

Permalink
Added /loot replace block
Browse files Browse the repository at this point in the history
  • Loading branch information
DaanV2 committed Oct 25, 2022
1 parent 6f78678 commit b1a542e
Showing 1 changed file with 141 additions and 0 deletions.
141 changes: 141 additions & 0 deletions src/Lib/Data/Vanilla/loot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,147 @@ export const loot: CommandInfo[] = [
{ text: "tool", type: ParameterType.handType, required: false },
],
},
/**replace block */
{
name: "loot",
documentation: "Drops the given loot table into the world",
parameters: [
{ text: "loot", type: ParameterType.keyword, required: true },
{ text: "replace", type: ParameterType.keyword, required: true },
{ text: "block", type: ParameterType.keyword, required: true },
{ text: "x", type: ParameterType.coordinate, required: true },
{ text: "y", type: ParameterType.coordinate, required: true },
{ text: "z", type: ParameterType.coordinate, required: true },
{ text: "slot type", type: ParameterType.slotType, required: true, options:{acceptedValues:["slot.container"]} },
{ text: "slot id", type: ParameterType.slotID, required: true },
{ text: "kill", type: ParameterType.keyword, required: true },
{ text: "entity target", type: ParameterType.selector, required: true },
{ text: "item", type: ParameterType.item, required: false },
],
},
{
name: "loot",
documentation: "Drops the given loot table into the world",
parameters: [
{ text: "loot", type: ParameterType.keyword, required: true },
{ text: "replace", type: ParameterType.keyword, required: true },
{ text: "block", type: ParameterType.keyword, required: true },
{ text: "x", type: ParameterType.coordinate, required: true },
{ text: "y", type: ParameterType.coordinate, required: true },
{ text: "z", type: ParameterType.coordinate, required: true },
{ text: "slot type", type: ParameterType.slotType, required: true, options:{acceptedValues:["slot.container"]} },
{ text: "slot id", type: ParameterType.slotID, required: true },
{ text: "kill", type: ParameterType.keyword, required: true },
{ text: "entity target", type: ParameterType.selector, required: true },
{ text: "tool", type: ParameterType.handType, required: false },
],
},
{
name: "loot",
documentation: "Drops the given loot table into the world",
parameters: [
{ text: "loot", type: ParameterType.keyword, required: true },
{ text: "replace", type: ParameterType.keyword, required: true },
{ text: "block", type: ParameterType.keyword, required: true },
{ text: "x", type: ParameterType.coordinate, required: true },
{ text: "y", type: ParameterType.coordinate, required: true },
{ text: "z", type: ParameterType.coordinate, required: true },
{ text: "slot type", type: ParameterType.slotType, required: true, options:{acceptedValues:["slot.container"]} },
{ text: "slot id", type: ParameterType.slotID, required: true },
{ text: "count", type: ParameterType.integer, required: true },
{ text: "kill", type: ParameterType.keyword, required: true },
{ text: "entity target", type: ParameterType.selector, required: true },
{ text: "item", type: ParameterType.item, required: false },
],
},
{
name: "loot",
documentation: "Drops the given loot table into the world",
parameters: [
{ text: "loot", type: ParameterType.keyword, required: true },
{ text: "replace", type: ParameterType.keyword, required: true },
{ text: "block", type: ParameterType.keyword, required: true },
{ text: "x", type: ParameterType.coordinate, required: true },
{ text: "y", type: ParameterType.coordinate, required: true },
{ text: "z", type: ParameterType.coordinate, required: true },
{ text: "slot type", type: ParameterType.slotType, required: true, options:{acceptedValues:["slot.container"]} },
{ text: "slot id", type: ParameterType.slotID, required: true },
{ text: "count", type: ParameterType.integer, required: true },
{ text: "kill", type: ParameterType.keyword, required: true },
{ text: "entity target", type: ParameterType.selector, required: true },
{ text: "tool", type: ParameterType.handType, required: false },
],
},
{
name: "loot",
documentation: "Drops the given loot table into the world",
parameters: [
{ text: "loot", type: ParameterType.keyword, required: true },
{ text: "replace", type: ParameterType.keyword, required: true },
{ text: "block", type: ParameterType.keyword, required: true },
{ text: "x", type: ParameterType.coordinate, required: true },
{ text: "y", type: ParameterType.coordinate, required: true },
{ text: "z", type: ParameterType.coordinate, required: true },
{ text: "slot type", type: ParameterType.slotType, required: true, options:{acceptedValues:["slot.container"]} },
{ text: "slot id", type: ParameterType.slotID, required: true },
{ text: "loot", type: ParameterType.keyword, required: true },
{ text: "loot table", type: ParameterType.lootTable, required: true },
{ text: "item", type: ParameterType.item, required: false },
],
},
{
name: "loot",
documentation: "Drops the given loot table into the world",
parameters: [
{ text: "loot", type: ParameterType.keyword, required: true },
{ text: "replace", type: ParameterType.keyword, required: true },
{ text: "block", type: ParameterType.keyword, required: true },
{ text: "x", type: ParameterType.coordinate, required: true },
{ text: "y", type: ParameterType.coordinate, required: true },
{ text: "z", type: ParameterType.coordinate, required: true },
{ text: "slot type", type: ParameterType.slotType, required: true, options:{acceptedValues:["slot.container"]} },
{ text: "slot id", type: ParameterType.slotID, required: true },
{ text: "loot", type: ParameterType.keyword, required: true },
{ text: "loot table", type: ParameterType.lootTable, required: true },
{ text: "tool", type: ParameterType.handType, required: false },
],
},
{
name: "loot",
documentation: "Drops the given loot table into the world",
parameters: [
{ text: "loot", type: ParameterType.keyword, required: true },
{ text: "replace", type: ParameterType.keyword, required: true },
{ text: "block", type: ParameterType.keyword, required: true },
{ text: "x", type: ParameterType.coordinate, required: true },
{ text: "y", type: ParameterType.coordinate, required: true },
{ text: "z", type: ParameterType.coordinate, required: true },
{ text: "slot type", type: ParameterType.slotType, required: true, options:{acceptedValues:["slot.container"]} },
{ text: "slot id", type: ParameterType.slotID, required: true },
{ text: "count", type: ParameterType.integer, required: true },
{ text: "loot", type: ParameterType.keyword, required: true },
{ text: "loot table", type: ParameterType.lootTable, required: true },
{ text: "item", type: ParameterType.item, required: false },
],
},
{
name: "loot",
documentation: "Drops the given loot table into the world",
parameters: [
{ text: "loot", type: ParameterType.keyword, required: true },
{ text: "replace", type: ParameterType.keyword, required: true },
{ text: "block", type: ParameterType.keyword, required: true },
{ text: "x", type: ParameterType.coordinate, required: true },
{ text: "y", type: ParameterType.coordinate, required: true },
{ text: "z", type: ParameterType.coordinate, required: true },
{ text: "slot type", type: ParameterType.slotType, required: true, options:{acceptedValues:["slot.container"]} },
{ text: "slot id", type: ParameterType.slotID, required: true },
{ text: "count", type: ParameterType.integer, required: true },
{ text: "loot", type: ParameterType.keyword, required: true },
{ text: "loot table", type: ParameterType.lootTable, required: true },
{ text: "tool", type: ParameterType.handType, required: false },
],
},
/**replace entity */
{
name: "loot",
Expand Down

0 comments on commit b1a542e

Please sign in to comment.