From b1a542e9e8c718dfa1ee049a0e25de7420d030f7 Mon Sep 17 00:00:00 2001 From: DaanV2 Date: Tue, 25 Oct 2022 21:25:01 +0200 Subject: [PATCH] Added /loot replace block --- src/Lib/Data/Vanilla/loot.ts | 141 +++++++++++++++++++++++++++++++++++ 1 file changed, 141 insertions(+) diff --git a/src/Lib/Data/Vanilla/loot.ts b/src/Lib/Data/Vanilla/loot.ts index bdf43d9..1ef98c7 100644 --- a/src/Lib/Data/Vanilla/loot.ts +++ b/src/Lib/Data/Vanilla/loot.ts @@ -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",