Skip to content

Commit

Permalink
Update /loot for mine
Browse files Browse the repository at this point in the history
  • Loading branch information
Xterionix authored Dec 9, 2024
1 parent cf8a7b8 commit 47d3c0c
Showing 1 changed file with 249 additions and 9 deletions.
258 changes: 249 additions & 9 deletions src/lib/data/vanilla/loot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,34 @@ export const loot: CommandInfo[] = [
{ 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: "give", type: ParameterType.keyword, required: true },
{ text: "players", type: ParameterType.selector, required: true, options: { playerOnly: true } },
{ text: "mine", type: ParameterType.keyword, required: true },
{ text: "position x", type: ParameterType.coordinate, required: true },
{ text: "position y", type: ParameterType.coordinate, required: true },
{ text: "position z", type: ParameterType.coordinate, 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: "give", type: ParameterType.keyword, required: true },
{ text: "players", type: ParameterType.selector, required: true, options: { playerOnly: true } },
{ text: "mine", type: ParameterType.keyword, required: true },
{ text: "position x", type: ParameterType.coordinate, required: true },
{ text: "position y", type: ParameterType.coordinate, required: true },
{ text: "position z", type: ParameterType.coordinate, required: true },
{ text: "tool", type: ParameterType.handType, required: false },
],
},
/**insert */
{
name: "loot",
Expand Down Expand Up @@ -109,6 +137,38 @@ export const loot: CommandInfo[] = [
{ 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: "insert", type: ParameterType.keyword, required: true },
{ text: "position x", type: ParameterType.coordinate, required: true },
{ text: "position y", type: ParameterType.coordinate, required: true },
{ text: "position z", type: ParameterType.coordinate, required: true },
{ text: "mine", type: ParameterType.keyword, required: true },
{ text: "position x", type: ParameterType.coordinate, required: true },
{ text: "position y", type: ParameterType.coordinate, required: true },
{ text: "position z", type: ParameterType.coordinate, 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: "insert", type: ParameterType.keyword, required: true },
{ text: "position x", type: ParameterType.coordinate, required: true },
{ text: "position y", type: ParameterType.coordinate, required: true },
{ text: "position z", type: ParameterType.coordinate, required: true },
{ text: "mine", type: ParameterType.keyword, required: true },
{ text: "position x", type: ParameterType.coordinate, required: true },
{ text: "position y", type: ParameterType.coordinate, required: true },
{ text: "position z", type: ParameterType.coordinate, required: true },
{ text: "tool", type: ParameterType.handType, required: false },
],
},
/**replace block */
{
name: "loot",
Expand All @@ -120,7 +180,7 @@ export const loot: CommandInfo[] = [
{ 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 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 },
Expand All @@ -137,7 +197,7 @@ export const loot: CommandInfo[] = [
{ 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 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 },
Expand All @@ -154,7 +214,7 @@ export const loot: CommandInfo[] = [
{ 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 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 },
Expand All @@ -172,7 +232,7 @@ export const loot: CommandInfo[] = [
{ 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 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 },
Expand All @@ -190,7 +250,7 @@ export const loot: CommandInfo[] = [
{ 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 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 },
Expand All @@ -207,7 +267,7 @@ export const loot: CommandInfo[] = [
{ 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 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 },
Expand All @@ -224,7 +284,7 @@ export const loot: CommandInfo[] = [
{ 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 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 },
Expand All @@ -242,14 +302,92 @@ export const loot: CommandInfo[] = [
{ 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 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 },
],
},
{
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: "mine", type: ParameterType.keyword, required: true },
{ text: "position x", type: ParameterType.coordinate, required: true },
{ text: "position y", type: ParameterType.coordinate, required: true },
{ text: "position z", type: ParameterType.coordinate, 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: "mine", type: ParameterType.keyword, required: true },
{ text: "position x", type: ParameterType.coordinate, required: true },
{ text: "position y", type: ParameterType.coordinate, required: true },
{ text: "position z", type: ParameterType.coordinate, 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: "mine", type: ParameterType.keyword, required: true },
{ text: "position x", type: ParameterType.coordinate, required: true },
{ text: "position y", type: ParameterType.coordinate, required: true },
{ text: "position z", type: ParameterType.coordinate, 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: "mine", type: ParameterType.keyword, required: true },
{ text: "position x", type: ParameterType.coordinate, required: true },
{ text: "position y", type: ParameterType.coordinate, required: true },
{ text: "position z", type: ParameterType.coordinate, required: true },
{ text: "tool", type: ParameterType.handType, required: false },
],
},
/**replace entity */
{
name: "loot",
Expand Down Expand Up @@ -375,6 +513,76 @@ export const loot: CommandInfo[] = [
{ 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: "entity", type: ParameterType.keyword, required: true },
{ text: "target", type: ParameterType.selector, required: true },
{ text: "slot type", type: ParameterType.slotType, required: true },
{ text: "slot id", type: ParameterType.slotID, required: true },
{ text: "mine", type: ParameterType.keyword, required: true },
{ text: "position x", type: ParameterType.coordinate, required: true },
{ text: "position y", type: ParameterType.coordinate, required: true },
{ text: "position z", type: ParameterType.coordinate, 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: "entity", type: ParameterType.keyword, required: true },
{ text: "target", type: ParameterType.selector, required: true },
{ text: "slot type", type: ParameterType.slotType, required: true },
{ text: "slot id", type: ParameterType.slotID, required: true },
{ text: "mine", type: ParameterType.keyword, required: true },
{ text: "position x", type: ParameterType.coordinate, required: true },
{ text: "position y", type: ParameterType.coordinate, required: true },
{ text: "position z", type: ParameterType.coordinate, 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: "entity", type: ParameterType.keyword, required: true },
{ text: "target", type: ParameterType.selector, required: true },
{ text: "slot type", type: ParameterType.slotType, required: true },
{ text: "slot id", type: ParameterType.slotID, required: true },
{ text: "count", type: ParameterType.integer, required: true },
{ text: "mine", type: ParameterType.keyword, required: true },
{ text: "position x", type: ParameterType.coordinate, required: true },
{ text: "position y", type: ParameterType.coordinate, required: true },
{ text: "position z", type: ParameterType.coordinate, 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: "entity", type: ParameterType.keyword, required: true },
{ text: "target", type: ParameterType.selector, required: true },
{ text: "slot type", type: ParameterType.slotType, required: true },
{ text: "slot id", type: ParameterType.slotID, required: true },
{ text: "count", type: ParameterType.integer, required: true },
{ text: "mine", type: ParameterType.keyword, required: true },
{ text: "position x", type: ParameterType.coordinate, required: true },
{ text: "position y", type: ParameterType.coordinate, required: true },
{ text: "position z", type: ParameterType.coordinate, required: true },
{ text: "tool", type: ParameterType.handType, required: false },
],
},
/** spawn */
{
name: "loot",
Expand Down Expand Up @@ -432,4 +640,36 @@ export const loot: CommandInfo[] = [
{ 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: "spawn", type: ParameterType.keyword, required: true },
{ text: "position x", type: ParameterType.coordinate, required: true },
{ text: "position y", type: ParameterType.coordinate, required: true },
{ text: "position z", type: ParameterType.coordinate, required: true },
{ text: "mine", type: ParameterType.keyword, required: true },
{ text: "position x", type: ParameterType.coordinate, required: true },
{ text: "position y", type: ParameterType.coordinate, required: true },
{ text: "position z", type: ParameterType.coordinate, 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: "spawn", type: ParameterType.keyword, required: true },
{ text: "position x", type: ParameterType.coordinate, required: true },
{ text: "position y", type: ParameterType.coordinate, required: true },
{ text: "position z", type: ParameterType.coordinate, required: true },
{ text: "mine", type: ParameterType.keyword, required: true },
{ text: "position x", type: ParameterType.coordinate, required: true },
{ text: "position y", type: ParameterType.coordinate, required: true },
{ text: "position z", type: ParameterType.coordinate, required: true },
{ text: "tool", type: ParameterType.handType, required: false },
],
},
];

0 comments on commit 47d3c0c

Please sign in to comment.