UNPKG

mdkjs

Version:

mdk is a framework for developing Datapacks for Minecraft. It uses the typescript language.

1 lines 125 kB
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.mdkjs=t():e.mdkjs=t()}(this,(function(){return(()=>{"use strict";var e={3300:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Bossbar=void 0;const n=r(6153),i=r(1113);class o extends n.ContextAbstract{constructor(e){super(e)}add(e,t){return this.context.add(i.bossbar.add(e,t)),this}list(){return this.context.add(i.bossbar.list()),this}get(e,t){return this.context.add(i.bossbar.get(e,t)),this}remove(e){return this.context.add(i.bossbar.remove(e)),this}setStyle(e,t){return this.context.add(i.bossbar.setStyle(e,t)),this}setValue(e,t){return this.context.add(i.bossbar.setValue(e,t)),this}setMax(e,t){return this.context.add(i.bossbar.setMax(e,t)),this}setVisible(e,t){return this.context.add(i.bossbar.setVisible(e,t)),this}setPlayers(e){return this.context.add(i.bossbar.setPlayers(e)),this}setColor(e,t){return this.context.add(i.bossbar.setColor(e,t)),this}}t.Bossbar=o},7295:function(e,t,r){var n,i,o=this&&this.__classPrivateFieldSet||function(e,t,r,n,i){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?i.call(e,r):i?i.value=r:t.set(e,r),r},a=this&&this.__classPrivateFieldGet||function(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)};Object.defineProperty(t,"__esModule",{value:!0}),t.Advancement=void 0;const s=r(6153);class c{constructor(e,t){n.set(this,void 0),i.set(this,void 0),o(this,n,e,"f"),o(this,i,t,"f")}eveything(e){return a(this,n,"f").context.add(`advancement ${a(this,i,"f")} ${e.toString()} everything`),a(this,n,"f")}only(e,t,r){return a(this,n,"f").context.add(`advancement ${a(this,i,"f")} ${e.toString()} only ${t}${r?" "+r:""}`),a(this,n,"f")}from(e,t){return a(this,n,"f").context.add(`advancement ${a(this,i,"f")} ${e.toString()} from ${t}`),a(this,n,"f")}through(e,t){return a(this,n,"f").context.add(`advancement ${a(this,i,"f")} ${e.toString()} througth ${t}`),a(this,n,"f")}until(e,t){return a(this,n,"f").context.add(`advancement ${a(this,i,"f")} ${e.toString()} until ${t}`),a(this,n,"f")}}n=new WeakMap,i=new WeakMap;class d extends s.ContextAbstract{constructor(e){super(e)}grant(e){return e(new c(this,"grant"))}revoke(e){return e(new c(this,"revoke"))}}t.Advancement=d},541:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Attribute=void 0;const n=r(6153),i=r(2704);class o extends n.ContextAbstract{constructor(e){super(e)}get(e,t,r=1){return this.context.add(i.default.get(e,t,r)),this}getBase(e,t,r=1){return this.context.add(i.default.getBase(e,t,r)),this}setBase(e,t,r){return this.context.add(i.default.setBase(e,t,r)),this}add(e,t,r,n,o,a="add"){return this.context.add(i.default.add(e,t,r,n,o,a)),this}remove(e,t,r){return this.context.add(i.default.remove(e,t,r)),this}getValue(e,t,r,n){return this.context.add(i.default.getValue(e,t,r,n)),this}}t.Attribute=o},7666:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Effect=void 0;const n=r(1113),i=r(6153);class o extends i.ContextAbstract{constructor(e){super(e)}clear(e,t){return this.context.add(n.effect.clear(e,t)),this}give(e,t,r,i,o){return this.context.add(n.effect.give(e,t,r,i,o)),this}}t.Effect=o},6875:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Execute=void 0;const n=r(6153),i=r(6887),o=r(1153),a=r(6153);class s extends a.CommandAbstract{constructor(e){super(e,"execute")}align(e="xyz"){return this.result.add(`align ${e}`),this}anchored(e="feet"){return this.result.add(e),this}as(e="@s"){return this.result.add(`as ${e.toString()}`),this}at(e="@s"){return this.result.add(`at ${e.toString()}`),this}facing(e="~ ~ ~"){return this.result.add(`facing ${e}`),this}facingEntity(e="@s",t="feet"){return this.result.add(`facing entity ${e.toString()} ${t}`),this}in(e="overworld"){return this.result.add(`in ${e}`),this}positioned(e="~ ~ ~"){return this.result.add(`positioned ${e}`),this}positionedEntity(e="@s"){return this.result.add(`positioned as ${e.toString()}`),this}rotated(e,t){return this.result.add(`rotated ${e} ${t}`),this}rotatedEntity(e="@s"){return this.result.add(`rotated as ${e.toString()}`),this}if(e){return this.result.add("if"),e(new i.Logic(this))}unless(e){return this.result.add("unless"),e(new i.Logic(this))}storeResult(e){return this.result.add("store result"),e(new o.StoreLogic(this))}storeSuccess(e){return this.result.add("store success"),e(new o.StoreLogic(this))}run(e){e instanceof n.ContextAbstract&&(e=this.context.list.pop().text),this.context.add(`${this.result} run ${e}`),this.result.clear(),this.result.add("execute")}}t.Execute=s},6887:function(e,t,r){var n,i=this&&this.__classPrivateFieldSet||function(e,t,r,n,i){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?i.call(e,r):i?i.value=r:t.set(e,r),r},o=this&&this.__classPrivateFieldGet||function(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)};Object.defineProperty(t,"__esModule",{value:!0}),t.Logic=void 0;const a=r(6153);t.Logic=class{constructor(e){n.set(this,void 0),i(this,n,e,"f")}block(e="air",t="~ ~ ~",r){return o(this,n,"f").getTextObject().add(`block ${t} ${e}[${(0,a.formatMCParams)(r)}]`),o(this,n,"f")}blocks(e,t,r,i="all"){return o(this,n,"f").getTextObject().add("blocks",e,t,r,i),o(this,n,"f")}dataBlock(e,t){return o(this,n,"f").getTextObject().add("data","block",e,t),o(this,n,"f")}dataEntity(e,t){return o(this,n,"f").getTextObject().add("data","entity",e.toString(),t),o(this,n,"f")}dataStorage(e,t){return o(this,n,"f").getTextObject().add("data","storage",e,t),o(this,n,"f")}entity(e="@s"){return o(this,n,"f").getTextObject().add(`entity ${e.toString()}`),o(this,n,"f")}predicate(e){return o(this,n,"f").getTextObject().add(`predicate ${e}`),o(this,n,"f")}score(e,t,r,i,a){return o(this,n,"f").getTextObject().add(`score ${e.toString()} ${t} ${a} ${r} ${i}`),o(this,n,"f")}scoreMatches(e,t){return o(this,n,"f").getTextObject().add(`score ${e.toString()} matches ${(0,a.formatScoreRange)(t)}`),o(this,n,"f")}},n=new WeakMap},1153:function(e,t){var r,n=this&&this.__classPrivateFieldSet||function(e,t,r,n,i){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?i.call(e,r):i?i.value=r:t.set(e,r),r},i=this&&this.__classPrivateFieldGet||function(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)};Object.defineProperty(t,"__esModule",{value:!0}),t.StoreLogic=void 0,t.StoreLogic=class{constructor(e){r.set(this,void 0),n(this,r,e,"f")}score(e,t="@s"){return i(this,r,"f").getTextObject().add(`score ${t} ${e}`),i(this,r,"f")}block(e,t="~ ~ ~",n,o){const a=i(this,r,"f").getTextObject();return a.add("block").add(`${t} ${e}`),n&&a.add(n),o&&a.add(o+""),i(this,r,"f")}entity(e,t="@s",n,o){const a=i(this,r,"f").getTextObject();return a.add("entity").add(t.toString()).add(e),n&&a.add(n),o&&a.add(o+""),i(this,r,"f")}bossbar(e,t="value"){return i(this,r,"f").getTextObject().add("bossbar").add(e).add(t),i(this,r,"f")}storage(e,t,n,o=1){return i(this,r,"f").getTextObject().add("storage",e.toString(),t,n,o),i(this,r,"f")}},r=new WeakMap},8029:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(6875),t)},8631:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Experience=void 0;const n=r(1737),i=r(6153);class o extends i.ContextAbstract{constructor(e){super(e)}add(e,t,r){return this.context.add(n.default.add(e,t,r)),this}set(e,t,r){return this.context.add(n.default.set(e,t,r)),this}query(e,t){return this.context.add(n.default.query(e,t)),this}}t.Experience=o},7837:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(326),t),i(r(7295),t),i(r(541),t),i(r(7666),t),i(r(8029),t),i(r(8631),t),i(r(1306),t),i(r(970),t),i(r(2876),t),i(r(1978),t),i(r(6810),t),i(r(8720),t),i(r(376),t),i(r(3910),t),i(r(9747),t)},1306:function(e,t,r){var n,i,o=this&&this.__classPrivateFieldSet||function(e,t,r,n,i){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?i.call(e,r):i?i.value=r:t.set(e,r),r},a=this&&this.__classPrivateFieldGet||function(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)};Object.defineProperty(t,"__esModule",{value:!0}),t.Loot=void 0;const s=r(6153);class c extends s.ContextAbstract{constructor(e){super(e)}spawn(e){return new d(this,`loot spawn ${e}`)}replaceEntity(e,t,r){return new d(this,`loot replace entity ${e.toString()} ${t}${r?" "+r:""}`)}replaceBlock(e,t,r){return new d(this,`loot replace block ${e} ${t}${r?" "+r:""}`)}give(e){return new d(this,`loot give ${e.toString()}`)}insert(e){return new d(this,`loot insert ${e}`)}}t.Loot=c;class d{constructor(e,t){n.set(this,void 0),i.set(this,void 0),o(this,i,e,"f"),o(this,n,t,"f")}fish(e,t,r){return a(this,i,"f").context.add(`${a(this,n,"f")} fish ${e} ${t}${r?" "+r:""}`),a(this,i,"f")}loot(e){return a(this,i,"f").context.add(`${a(this,n,"f")} loot ${e}`),a(this,i,"f")}kill(e){return a(this,i,"f").context.add(`${a(this,n,"f")} kill ${e.toString()}`),a(this,i,"f")}mine(e,t){return a(this,i,"f").context.add(`${a(this,n,"f")} mine ${e}${t?" "+t:""}`),a(this,i,"f")}}n=new WeakMap,i=new WeakMap},970:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Recipe=void 0;const n=r(6153),i=r(1113);class o extends n.ContextAbstract{constructor(e){super(e)}give(e,t="*"){return this.context.add(i.recipe.give(e,t)),this}take(e,t="*"){return this.context.add(i.recipe.take(e,t)),this}}t.Recipe=o},2876:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ReplaceItem=void 0;const n=r(1113),i=r(6153);class o extends i.ContextAbstract{constructor(e){super(e)}block(e,t,r,i){return this.context.add(n.replaceitem.block(e,t,r,i)),this}entity(e,t,r,i){return this.context.add(n.replaceitem.entity(e,t,r,i)),this}}t.ReplaceItem=o},1978:function(e,t,r){var n,i=this&&this.__classPrivateFieldSet||function(e,t,r,n,i){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?i.call(e,r):i?i.value=r:t.set(e,r),r},o=this&&this.__classPrivateFieldGet||function(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)};Object.defineProperty(t,"__esModule",{value:!0}),t.Scoreboard=void 0;const a=r(6153);class s extends a.ContextAbstract{constructor(e,t){super(e),n.set(this,void 0),i(this,n,t,"f")}get item(){return o(this,n,"f")}add(e,t){const r=`scoreboard players add ${e} ${o(this,n,"f").name} ${t}`;return this.context.add(r),this}enable(e){const t=`scoreboard players enable ${e} ${o(this,n,"f").name}`;return this.context.add(t),this}get(e){const t=`scoreboard players get ${e} ${o(this,n,"f").name}`;return this.context.add(t),this}list(e){const t=e?`scoreboard players list ${e}`:"scoreboard players list";return this.context.add(t),this}listObjectives(){return this.context.add("scoreboard objectives list"),this}operation(e,t,r,i){const a=`scoreboard players operation ${e} ${o(this,n,"f").name} ${t} ${r} ${i}`;return this.context.add(a),this}remove(e,t){const r=`scoreboard players remove ${e} ${o(this,n,"f").name} ${t}`;return this.context.add(r),this}reset(e){const t=`scoreboard players reset ${e} ${o(this,n,"f").name}`;return this.context.add(t),this}set(e,t){const r=`scoreboard players set ${e} ${o(this,n,"f").name} ${t}`;return this.context.add(r),this}setDisplay(e){const t=`scoreboard objectives setdisplay ${e} ${o(this,n,"f").name}`;return this.context.add(t),this}removeObjectives(){const e=`scoreboard objectives remove ${o(this,n,"f").name}`;return this.context.add(e),this}modify(e,t){let r="";return t&&(r=`scoreboard objectives modify ${o(this,n,"f").name} rendertype ${t}`),r=`scoreboard objectives modify ${o(this,n,"f").name} displayname ${e}`,this.context.add(r),this}}t.Scoreboard=s,n=new WeakMap},6810:function(e,t,r){var n,i,o=this&&this.__classPrivateFieldSet||function(e,t,r,n,i){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?i.call(e,r):i?i.value=r:t.set(e,r),r},a=this&&this.__classPrivateFieldGet||function(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)};Object.defineProperty(t,"__esModule",{value:!0}),t.Tag=void 0;const s=r(6153),c=r(1113),d=new Set;class u extends s.ContextAbstract{constructor(e,t){super(e),n.set(this,void 0),i.set(this,void 0),o(this,i,t,"f"),o(this,n,e.context.scope,"f")}add(e){const t=(0,s.useScope)(e);if(d.has(t))throw(0,s.ContainerExpection)("this `",t,"` tag has already existed");return d.add(t),this.context.add(c.tag.add(a(this,i,"f"),t)),this}remove(e){const t=(0,s.useScope)(e);return this.context.add(c.tag.remove(a(this,i,"f"),t)),this}list(e){return this.context.add(c.tag.list(e)),this}}t.Tag=u,n=new WeakMap,i=new WeakMap},8720:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Team=void 0;const n=r(6153),i=r(1113);class o extends n.ContextAbstract{constructor(e){super(e)}add(e,t){return this.context.add(i.team.add(e,t)),this}empty(e){return this.context.add(i.team.empty(e)),this}join(e,t){return this.context.add(i.team.join(e,t)),this}leave(e){return this.context.add(i.team.leave(e)),this}list(e){return this.context.add(i.team.list(e)),this}modify(e,t,r){return this.context.add(i.team.modify(e,t,r)),this}}t.Team=o},376:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Title=void 0;const n=r(6153),i=r(1113);class o extends n.ContextAbstract{constructor(e){super(e)}clear(e){return this.context.add(i.title.clear(e)),this}reset(e){return this.context.add(i.title.reset(e)),this}title(e,t){return this.context.add(i.title.title(e,t)),this}subtitle(e,t){return this.context.add(i.title.subtitle(e,t)),this}actionbar(e,t){return this.context.add(i.title.actionbar(e,t)),this}times(e,t,r,n){return this.context.add(i.title.times(e,t,r,n)),this}}t.Title=o},3910:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WhiteList=void 0;const n=r(6153),i=r(1113);class o extends n.ContextAbstract{constructor(e){super(e)}add(e){return this.context.add(i.whitelist.add(e)),this}remove(e){return this.context.add(i.whitelist.remove(e)),this}list(){return this.context.add(i.whitelist.list()),this}off(){return this.context.add(i.whitelist.off()),this}on(){return this.context.add(i.whitelist.on()),this}reload(){return this.context.add(i.whitelist.reload()),this}}t.WhiteList=o},9747:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Xp=void 0;const n=r(6153),i=r(1113);class o extends n.ContextAbstract{constructor(e){super(e)}add(e,t,r){return this.context.add(i.xp.add(e,t,r)),this}set(e,t,r){return this.context.add(i.xp.set(e,t,r)),this}query(e,t){return this.context.add(i.xp.query(e,t)),this}}t.Xp=o},9407:function(e,t,r){var n,i=this&&this.__classPrivateFieldSet||function(e,t,r,n,i){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?i.call(e,r):i?i.value=r:t.set(e,r),r},o=this&&this.__classPrivateFieldGet||function(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)};Object.defineProperty(t,"__esModule",{value:!0}),t.GetLogic=void 0;const a=r(1113);t.GetLogic=class{constructor(e){n.set(this,void 0),i(this,n,e,"f")}block(e,t,r){return o(this,n,"f").context.add(a.data.getBlock(e,t,r)),o(this,n,"f")}entity(e,t,r){return o(this,n,"f").context.add(a.data.getEntity(e,t,r)),o(this,n,"f")}storage(e,t,r){return o(this,n,"f").context.add(a.data.getStorage(e,t,r)),o(this,n,"f")}},n=new WeakMap},6336:function(e,t,r){var n,i=this&&this.__classPrivateFieldSet||function(e,t,r,n,i){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?i.call(e,r):i?i.value=r:t.set(e,r),r},o=this&&this.__classPrivateFieldGet||function(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)};Object.defineProperty(t,"__esModule",{value:!0}),t.MergeLogic=void 0;const a=r(1113);t.MergeLogic=class{constructor(e){n.set(this,void 0),i(this,n,e,"f")}block(e,t){return o(this,n,"f").context.add(a.data.mergeBlock(e,t)),o(this,n,"f")}entity(e,t){return o(this,n,"f").context.add(a.data.mergeEntity(e,t)),o(this,n,"f")}storage(e,t){return o(this,n,"f").context.add(a.data.mergeStorage(e,t)),o(this,n,"f")}},n=new WeakMap},2942:function(e,t){var r,n,i=this&&this.__classPrivateFieldSet||function(e,t,r,n,i){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?i.call(e,r):i?i.value=r:t.set(e,r),r},o=this&&this.__classPrivateFieldGet||function(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)};Object.defineProperty(t,"__esModule",{value:!0}),t.ModifyLogic=void 0,t.ModifyLogic=class{constructor(e){r.set(this,void 0),i(this,r,e,"f")}block(e,t,n){return o(this,r,"f").getTextObject().add("data modify block",e,t,n),new a(o(this,r,"f"))}entity(e,t,n){return o(this,r,"f").getTextObject().add("data modify entity",e,t,n),new a(o(this,r,"f"))}storage(e,t,n){return o(this,r,"f").getTextObject().add("data modify storage",e,t,n),new a(o(this,r,"f"))}},r=new WeakMap;class a{constructor(e){n.set(this,void 0),i(this,n,e,"f")}handle(...e){const t=o(this,n,"f").getTextObject();return t.add(...e),o(this,n,"f").context.add(t.toString()),t.clear(),o(this,n,"f")}fromBlock(e,t){return this.handle("from block",e,t)}fromEntity(e,t){return this.handle("from entity",e,t)}fromStorage(e,t){return this.handle("from storage",e,t)}value(e){return this.handle("value",e)}}n=new WeakMap},9190:function(e,t,r){var n,i=this&&this.__classPrivateFieldSet||function(e,t,r,n,i){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?i.call(e,r):i?i.value=r:t.set(e,r),r},o=this&&this.__classPrivateFieldGet||function(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)};Object.defineProperty(t,"__esModule",{value:!0}),t.RemoveLogic=void 0;const a=r(1113);t.RemoveLogic=class{constructor(e){n.set(this,void 0),i(this,n,e,"f")}block(e,t){return o(this,n,"f").context.add(a.data.removeBlock(e,t)),o(this,n,"f")}entity(e,t){return o(this,n,"f").context.add(a.data.removeEntity(e,t)),o(this,n,"f")}storage(e,t){return o(this,n,"f").context.add(a.data.removeStorage(e,t)),o(this,n,"f")}},n=new WeakMap},2576:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Data=void 0;const n=r(6153),i=r(9407),o=r(6336),a=r(2942),s=r(9190);class c extends n.CommandAbstract{constructor(e){super(e,"")}get(e){return e(new i.GetLogic(this))}merge(e){return e(new o.MergeLogic(this))}remove(e){return e(new s.RemoveLogic(this))}modify(e){return e(new a.ModifyLogic(this))}}t.Data=c},5087:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Datapack=void 0;const n=r(1113),i=r(6153);class o extends i.ContextAbstract{constructor(e){super(e)}disable(e){return this.context.add(n.datapack.disable(e)),this}enable(e){return this.context.add(n.datapack.enable(e)),this}list(){return this.context.add(n.datapack.list()),this}}t.Datapack=o},6672:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Forceload=void 0;const n=r(6153),i=r(1113);class o extends n.ContextAbstract{constructor(e){super(e)}add(e,t,r,n){return this.context.add(i.forceload.add(e,t,r,n)),this}remove(e,t,r,n){return this.context.add(i.forceload.add(e,t,r,n)),this}removeAll(){return this.context.add(i.forceload.removeAll()),this}query(e,t){return this.context.add(i.forceload.query(e,t)),this}}t.Forceload=o},7676:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GameRule=void 0;const n=r(1113),i=r(6153);class o extends i.ContextAbstract{constructor(e){super(e)}announceAdvancements(e=!0){return this.context.add(n.gamerule.announceAdvancements(e)),this}commandBlockOutput(e=!0){return this.context.add(n.gamerule.commandBlockOutput(e)),this}disableElytraMovementCheck(e=!1){return this.context.add(n.gamerule.disableElytraMovementCheck(e)),this}disableRaids(e=!1){return this.context.add(n.gamerule.disableRaids(e)),this}doDaylightCycle(e=!0){return this.context.add(n.gamerule.doDaylightCycle(e)),this}doEntityDrops(e=!0){return this.context.add(n.gamerule.doEntityDrops(e)),this}doFireTick(e=!0){return this.context.add(n.gamerule.doFireTick(e)),this}doInsomnia(e=!0){return this.context.add(n.gamerule.doInsomnia(e)),this}doImmediateRespawn(e=!1){return this.context.add(n.gamerule.doImmediateRespawn(e)),this}doLimitedCrafting(e=!1){return this.context.add(n.gamerule.doLimitedCrafting(e)),this}doMobLoot(e=!0){return this.context.add(n.gamerule.doMobLoot(e)),this}doMobSpawning(e=!0){return this.context.add(n.gamerule.doMobSpawning(e)),this}doPatrolSpawning(e=!0){return this.context.add(n.gamerule.doPatrolSpawning(e)),this}doTileDrops(e=!0){return this.context.add(n.gamerule.doTileDrops(e)),this}doTraderSpawning(e=!0){return this.context.add(n.gamerule.doTraderSpawning(e)),this}doWeatherCycle(e=!0){return this.context.add(n.gamerule.doWeatherCycle(e)),this}drowningdamage(e=!0){return this.context.add(n.gamerule.drowningdamage(e)),this}falldamage(e=!0){return this.context.add(n.gamerule.falldamage(e)),this}firedamage(e=!0){return this.context.add(n.gamerule.firedamage(e)),this}forgiveDeadPlayers(e=!0){return this.context.add(n.gamerule.forgiveDeadPlayers(e)),this}freezeDamage(e=!0){return this.context.add(n.gamerule.freezeDamage(e)),this}keepInventory(e=!1){return this.context.add(n.gamerule.keepInventory(e)),this}logAdminCommands(e=!0){return this.context.add(n.gamerule.logAdminCommands(e)),this}maxCommandChainLength(e=65536){return this.context.add(n.gamerule.maxCommandChainLength(e)),this}maxEntityCramming(e=24){return this.context.add(n.gamerule.maxEntityCramming(e)),this}mobGriefing(e=!0){return this.context.add(n.gamerule.mobGriefing(e)),this}naturalRegeneration(e=!0){return this.context.add(n.gamerule.naturalRegeneration(e)),this}playersSleepingPercentage(e=100){return this.context.add(n.gamerule.playersSleepingPercentage(e)),this}randomTickSpeed(e=3){return this.context.add(n.gamerule.randomTickSpeed(e)),this}reducedDebugInfo(e=!1){return this.context.add(n.gamerule.reducedDebugInfo(e)),this}sendCommandFeedback(e=!0){return this.context.add(n.gamerule.sendCommandFeedback(e)),this}showDeathMessages(e=!0){return this.context.add(n.gamerule.showDeathMessages(e)),this}spawnRadius(e=10){return this.context.add(n.gamerule.spawnRadius(e)),this}spectatorsGenerateChunks(e=!0){return this.context.add(n.gamerule.spectatorsGenerateChunks(e)),this}universalAnger(e=!1){return this.context.add(n.gamerule.universalAnger(e)),this}}t.GameRule=o},326:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(3300),t),i(r(2576),t),i(r(5087),t),i(r(6672),t),i(r(7676),t),i(r(1777),t),i(r(9480),t),i(r(4446),t),i(r(2586),t),i(r(3653),t)},1777:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Schedule=void 0;const n=r(6153),i=r(1113);class o extends n.ContextAbstract{constructor(e){super(e)}functionName(e,t,r="append"){return this.context.add(i.schedule.functionName(e.toString(),t,r)),this}clear(e){return this.context.add(i.schedule.clear(e.toString())),this}}t.Schedule=o},9480:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Time=void 0;const n=r(1113),i=r(6153);class o extends i.ContextAbstract{constructor(e){super(e)}add(e){return this.context.add(n.time.add(e)),this}query(e){return this.context.add(n.time.query(e)),this}set(e,t){return this.context.add(n.time.set(e,t)),this}}t.Time=o},4446:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Trigger=void 0;const n=r(6153),i=r(1113);class o extends n.ContextAbstract{constructor(e){super(e)}add(e,t){return this.context.add(i.trigger.add(e,t)),this}set(e,t){return this.context.add(i.trigger.set(e,t)),this}}t.Trigger=o},2586:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Weather=void 0;const n=r(1113),i=r(6153);class o extends i.ContextAbstract{constructor(e){super(e)}clear(e){return this.context.add(n.weather.clear(e)),this}rain(e){return this.context.add(n.weather.rain(e)),this}thunder(e){return this.context.add(n.weather.thunder(e)),this}}t.Weather=o},3653:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WorldBorder=void 0;const n=r(1113),i=r(6153);class o extends i.ContextAbstract{constructor(e){super(e)}get(){return this.context.add(n.worldborder.get()),this}add(e,t){return this.context.add(n.worldborder.add(e,t)),this}center(e){return this.context.add(n.worldborder.center(e)),this}set(e,t){return this.context.add(n.worldborder.set(e,t)),this}amount(e){return this.context.add(n.worldborder.damage.amount(e)),this}buffer(e){return this.context.add(n.worldborder.damage.buffer(e)),this}distance(e){return this.context.add(n.worldborder.warning.distance(e)),this}time(e){return this.context.add(n.worldborder.warning.time(e)),this}}t.WorldBorder=o},1635:function(e,t,r){var n,i=this&&this.__classPrivateFieldSet||function(e,t,r,n,i){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?i.call(e,r):i?i.value=r:t.set(e,r),r},o=this&&this.__classPrivateFieldGet||function(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)};Object.defineProperty(t,"__esModule",{value:!0}),t.Command=void 0;const a=r(7837),s=r(6153),c=r(1113),d=r(9016);class u extends s.ContextAbstract{constructor(e=new s.Selector){super((0,s.useFile)()),n.set(this,void 0),i(this,n,e,"f")}get tag(){return new a.Tag(this.context,o(this,n,"f"))}get attribute(){return new a.Attribute(this.context)}get loot(){return new a.Loot(this.context)}get forceload(){return new a.Forceload(this.context)}get advancement(){return new a.Advancement(this.context)}get execute(){return new a.Execute(this.context)}get worldborder(){return new a.WorldBorder(this.context)}get whitelist(){return new a.WhiteList(this.context)}get weather(){return new a.Weather(this.context)}get trigger(){return new a.Trigger(this.context)}get title(){return new a.Title(this.context)}get time(){return new a.Time(this.context)}get team(){return new a.Team(this.context)}get bossbar(){return new a.Bossbar(this.context)}get datapack(){return new a.Datapack(this.context)}get effect(){return new a.Effect(this.context)}get experience(){return new a.Experience(this.context)}get gamerule(){return new a.GameRule(this.context)}get recipe(){return new a.Recipe(this.context)}get replaceitem(){return new a.ReplaceItem(this.context)}get schedule(){return new a.Schedule(this.context)}get data(){return new a.Data(this.context)}scoreboard(e){return new a.Scoreboard(this.context,e)}objective(e,t="dummy",r){return new d.Objective({name:e,criterion:t,displayName:r},o(this,n,"f"))}clear(e,t){return this.context.add(c.clear(o(this,n,"f"),e,t)),this}clone(e,t,r,n,i){return this.context.add(c.clone(e,t,r,n,i)),this}debug(e){return this.context.add(c.debug(e)),this}defaultgamemode(e){return this.context.add(c.defaultgamemode(e)),this}deop(e){return this.context.add(c.deop(e)),this}difficulty(e){return this.context.add(c.difficulty(e)),this}enchant(e,t){return this.context.add(c.enchant(o(this,n,"f"),e,t)),this}fill(e,t,r,n){return this.context.add(c.fill(e,t,r,n)),this}gamemode(e){return this.context.add(c.gamemode(e,o(this,n,"f"))),this}kick(e){return this.context.add(c.kick(o(this,n,"f"),e)),this}kill(){return this.context.add(c.kill(o(this,n,"f"))),this}locate(e){return this.context.add(e),this}msg(e){return this.context.add(c.msg(o(this,n,"f"),e)),this}op(e){return this.context.add(c.op(e)),this}pardon(e){return this.context.add(c.pardon(e)),this}pardonIp(e){return this.context.add(c.pardonIp(e)),this}particle(e,t,r,i,a,s){return this.context.add(c.particle(e,t,r,i,a,s,o(this,n,"f"))),this}playsound(e,t,r,i,a,s){return this.context.add(c.playsound(e,t,o(this,n,"f"),r,i,a,s)),this}publish(e){return this.context.add(c.publish(e)),this}seed(){this.context.add(c.seed())}setblock(e,t,r){return this.context.add(c.setblock(e,t,r)),this}setidletimeout(e){return this.context.add(c.setidletimeout(e)),this}setworldspawn(e){return this.context.add(c.setworldspawn(e)),this}spawnpoint(e){return this.context.add(c.spawnpoint(o(this,n,"f"),e)),this}spreadplayers(e,t,r,i){return this.context.add(c.spreadplayers(e,t,r,i,o(this,n,"f"))),this}stop(){return this.context.add(c.stop()),this}stopsound(e,t){return this.context.add(c.stopsound(o(this,n,"f"),e,t)),this}summon(e,t="~ ~ ~"){return this.context.add(c.summon(e,t)),this}teammsg(e){return this.context.add(c.teammsg(e)),this}say(e){return this.context.add(c.say(e)),this}tm(e){return this.context.add(c.tm(e)),this}teleport(e,t){return this.context.add(c.teleport(o(this,n,"f"),e,t)),this}tell(e){this.context.add(c.tell(o(this,n,"f"),e))}tp(e,t){return this.context.add(c.tp(o(this,n,"f"),e,t)),this}w(e){return this.context.add(c.w(o(this,n,"f"),e)),this}$function(e){return this.context.add(c.$function(e)),this}ban(e){return this.context.add(c.ban(o(this,n,"f"),e)),this}banIp(e,t){return this.context.add(c.banIp(e,t)),this}banList(e){return this.context.add(c.banList(e)),this}list(e){return this.context.add(c.list(e)),this}locatebiome(e){return this.context.add(c.locatebiome(e)),this}me(e){return this.context.add(c.me(e)),this}reload(){return this.context.add(c.reload()),this}save(e){return this.context.add(c.save(e)),this}saveAll(){return this.context.add(c.saveAll()),this}saveOn(){return this.context.add(c.saveOn()),this}saveOff(){return this.context.add(c.saveOff()),this}tellraw(e){return this.context.add(c.tellraw(o(this,n,"f"),e)),this}spectate(e){return this.context.add(c.spectate(o(this,n,"f"),e)),this}}t.Command=u,n=new WeakMap},9016:function(e,t,r){var n,i,o,a,s=this&&this.__classPrivateFieldSet||function(e,t,r,n,i){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?i.call(e,r):i?i.value=r:t.set(e,r),r},c=this&&this.__classPrivateFieldGet||function(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)};Object.defineProperty(t,"__esModule",{value:!0}),t.Objective=void 0;const d=r(1113),u=r(6153),l=new Map,f=process.env.__DEV__;class h extends u.ContextAbstract{constructor(e,t=null){super((0,u.useFile)()),n.set(this,void 0),i.set(this,void 0),o.set(this,void 0),a.set(this,void 0);let{name:r,criterion:c,displayName:f}="string"==typeof e?{name:e,criterion:"dummy",displayName:""}:e;const p=(0,u.useFile)(),m=(0,u.useScope)(r);if(s(this,n,m,"f"),s(this,i,c,"f"),s(this,o,f,"f"),s(this,a,t,"f"),h.query(m))throw(0,u.ContainerExpection)("`"+m+"` has existed in objectives");l.set(m,this),p.add(d.scoreboard.objectives.add(m,c,f))}static list(){(0,u.useFile)().add(d.scoreboard.objectives.list())}static remove(e){const t="string"==typeof e?e:e.name;if(!f&&!h.query(t))throw(0,u.ContainerExpection)("this `",t,"` objective is not exist in objectives");(0,u.useFile)().add(d.scoreboard.objectives.remove(t))}static setdisplay(e,t){const r="string"==typeof t?t:t.name;if(!f&&!h.query(r))throw(0,u.ContainerExpection)(`${r} is not exist in objectives`);(0,u.useFile)().add(d.scoreboard.objectives.setdisplay(e,r))}static modify(e,t){const r="string"==typeof e?e:e.name;if(!f&&!h.query(r))throw(0,u.ContainerExpection)(`${r} is not exist in objectives`);(0,u.useFile)().add(d.scoreboard.objectives.modify(r,u.JText.format(t)))}static query(e){return l.get(e)}static add(e){l.set(e,new h(e))}get name(){return c(this,n,"f")}get criterion(){return c(this,i,"f")}get displayName(){return c(this,o,"f")}get selector(){return c(this,a,"f")}operation(e,t){const r=(0,u.useFile)();return t.forEach((t=>r.add(`scoreboard players operation ${this.toString()} ${e} ${t.toString()}`))),this}add(...e){return this.operation("+=",e)}remove(...e){return this.operation("-=",e)}multiple(...e){return this.operation("*=",e)}divide(...e){return this.operation("/=",e)}mod(...e){return this.operation("%=",e)}min(...e){return this.operation("<",e)}max(...e){return this.operation(">",e)}swap(...e){return this.operation("><",e)}toString(e=!1){return e&&c(this,a,"f").exacted(),`${c(this,a,"f").toString()} ${this.name}`}}t.Objective=h,n=new WeakMap,i=new WeakMap,o=new WeakMap,a=new WeakMap},2935:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default={grantEverything:function(e){return`advancement grant ${e.toString()} everything`},grantOnly:function(e,t,r){return r?`advancement grant ${e.toString()} only ${t} ${r}`:`advancement grant ${e.toString()} only ${t}`},grantFrom:function(e,t){return`advancement grant ${e.toString()} from ${t}`},grantThrough:function(e,t){return`advancement grant ${e.toString()} througth ${t}`},grantUntil:function(e,t){return`advancement grant ${e.toString()} until ${t}`},revokeEverything:function(e){return`advancement revoke ${e.toString()} everything`},revokeOnly:function(e,t,r){return r?`advancement revoke ${e.toString()} only ${t} ${r}`:`advancement revoke ${e.toString()} only ${t}`},revokeFrom:function(e,t){return`advancement revoke ${e.toString()} from ${t}`},revokeThrough:function(e,t){return`advancement revoke ${e.toString()} througth ${t}`},revokeUntil:function(e,t){return`advancement revoke ${e.toString()} until ${t}`}}},2704:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default={get:function(e,t,r){return`attribute ${e.toString()} ${t} get ${r}`},getBase:function(e,t,r){return`attribute ${e.toString()} ${t} base get ${r}`},setBase:function(e,t,r){return`attribute ${e.toString()} ${t} base set ${r}`},add:function(e,t,r,n,i,o="add"){return`attribute ${e.toString()} ${t} modifier add ${r} ${n} ${i} ${o}`},remove:function(e,t,r){return`attribute ${e.toString()} ${t} modifier remove ${r}`},getValue:function(e,t,r,n){return`attribute ${e.toString()} ${t} modifier value get ${r} ${n}`}}},1224:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.banList=t.banIp=t.ban=void 0,t.ban=function(e,t){return`ban ${e.toString()}${t?" "+t:""}`},t.banIp=function(e,t){return`ban-ip ${e}${t?" "+t:""}`},t.banList=function(e){return e?`banlist ${e}`:"banlist"}},713:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default={add:function(e,t){return`bossbar add ${e} ${t}`},setStyle:function(e,t){return`bossbar set ${e} style ${t}`},setValue:function(e,t){return`bossbar set ${e} value ${t}`},setMax:function(e,t){return`bossbar set ${e} max ${t}`},setVisible:function(e,t){return`bossbar set ${e} visible ${t}`},setPlayers:function(e,t){return t?`bossbar set ${e} players ${t.toString()}`:`bossbar set ${e} players`},setColor:function(e,t){return`bossbar set color ${e} ${t}`},list:function(){return"bossbar list"},get:function(e,t){return`bossbar get ${e} ${t}`},remove:function(e){return`bossbar remove ${e}`}}},7063:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){return r?`clear ${e.toString()} ${t} ${r}`:(t&&e.toString(),e?`clear ${e.toString()}`:"clear")}},1445:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r,n,i){if("object"==typeof e){const{from:t,to:r,dist:n,maskMode:i,cloneMode:o,blockId:a}=e;let s=`clone ${t} ${r} ${n}`;return i&&(s+=` ${i}`),o&&(s+=` ${o}`),a&&(s+=` ${a}`),s}return void 0===n?`clone ${e} ${t} ${r}`:n?`clone ${e} ${t} ${r} ${n}`:`clone ${e} ${t} ${r} replace ${n} ${i}`}},2701:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0});const n=r(6153),i={fromBlock:(e,t,r,i,o)=>(0,n.revise)(`data modify block ${e} ${t} ${r} from block ${i} ${o}`),fromEntity:(e,t,r,i,o)=>(0,n.revise)(`data modify block ${e} ${t} ${r} from entity ${i} ${o}`),fromStorage:(e,t,r,i,o)=>(0,n.revise)(`data modify block ${e} ${t} ${r} from storage ${i} ${o}`),value:(e,t,r,i)=>(0,n.revise)(`data modify block ${e} ${t} ${r} value ${i}`)},o={fromBlock:(e,t,r,i,o)=>(0,n.revise)(`data modify entity ${e} ${t} ${r} from block ${i} ${o}`),fromEntity:(e,t,r,i,o)=>(0,n.revise)(`data modify entity ${e} ${t} ${r} from entity ${i} ${o}`),fromStorage:(e,t,r,i,o)=>(0,n.revise)(`data modify entity ${e} ${t} ${r} from storage ${i} ${o}`),value:(e,t,r,i)=>(0,n.revise)(`data modify entity ${e} ${t} ${r} value ${i}`)},a={fromBlock:(e,t,r,i,o)=>(0,n.revise)(`data modify storage ${e} ${t} ${r} from block ${i} ${o}`),fromEntity:(e,t,r,i,o)=>(0,n.revise)(`data modify storage ${e} ${t} ${r} from entity ${i} ${o}`),fromStorage:(e,t,r,i,o)=>(0,n.revise)(`data modify storage ${e} ${t} ${r} from storage ${i} ${o}`),value:(e,t,r,i)=>(0,n.revise)(`data modify storage ${e} ${t} ${r} value ${i}`)};t.default={getBlock:function(e,t,r){return(0,n.revise)(`data get block ${e} ${t} ${r}`)},getEntity:function(e,t,r){return(0,n.revise)(`data get entity ${e} ${t} ${r}`)},getStorage:function(e,t,r){return(0,n.revise)(`data get storage ${e} ${t} ${r}`)},mergeBlock:function(e,t){return(0,n.revise)(`data merge block ${e} ${t}`)},mergeEntity:function(e,t){return(0,n.revise)(`data merge entity ${e} ${t}`)},mergeStorage:function(e,t){return(0,n.revise)(`data merge storage ${e} ${t}`)},removeStorage:function(e,t){return(0,n.revise)(`data remove storage ${e} ${t}`)},removeBlock:function(e,t){return(0,n.revise)(`data remove block ${e} ${t}`)},removeEntity:function(e,t){return(0,n.revise)(`data remove entity ${e} ${t}`)},modifyBlock:i,modifyEntity:o,modifyStorage:a}},8189:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default={disable:function(e){return`datapack disable ${e}`},enable:function(e,t,r){return t?`datapack enable ${e} ${t}`:t?`datapack enable ${e} ${t} ${r}`:`datapack enable ${e}`},list:function(e){return e?`datapack list ${e}`:"datapack list"}}},4029:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return`debug ${e}`}},335:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return`defaultgamemode ${e}`}},7987:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return`deop ${e.toString()}`}},6638:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return`difficulty ${e}`}},2133:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default={clear:function(e,t){return t?`effect clear ${e.toString()} ${t}`:`effect clear ${e.toString()}`},give:function(e,t,r,n,i){return i?`effect give ${e.toString()} ${t} ${r} ${n} ${i}`:n?`effect give ${e.toString()} ${t} ${r} ${n}`:r?`effect give ${e.toString()} ${t} ${r}`:`effect give ${e.toString()} ${t}`}}},4410:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){return r?`enchant ${e.toString()} ${t} ${r}`:`enchant ${e.toString()} ${t}`}},9714:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0});const n=r(7810),i=r(6153),o=r(4574),a=r(9016);class s extends i.CommandText{constructor(){super("execute")}ifBlock(e="air",t="~ ~ ~",r){return this.add("if"),new n.default(this).block(e,t,r)}unlessBlock(e="air",t="~ ~ ~",r){return this.add("unless"),new n.default(this).block(e,t,r)}ifBlocks(){return this.add("if"),new n.default(this).blocks()}unlessBlocks(){return this.add("unless"),new n.default(this).blocks()}ifScore(e,t,r,o,s){if(!a.Objective.query(t))throw(0,i.ContainerExpection)(`${t} is not exist in objectives`);return this.add("if"),new n.default(this).score(e.toString(),t,r,o,s)}unlessScore(e,t,r,o,s){if(!a.Objective.query(t))throw(0,i.ContainerExpection)(`${t} is not exist in objectives`);return this.add("unless"),new n.default(this).score(e.toString(),t,r,o,s)}ifScoreMatches(e,t){return this.add("if"),new n.default(this).scoreMatches(e,t)}unlessScoreMatches(e,t){return this.add("unless"),new n.default(this).scoreMatches(e,t)}in(e="overworld"){return this.add(`in ${e}`),this}store(e="result"){return this.add(`store ${e}`),new o.default(this)}rotatedEntity(e){return e?this.add(`rotated as ${e.toString()}`):this.add("rotated as @e"),this}rotated(e,t){return this.add(`rotated ${e} ${t}`),this}positioned(e){return this.add(`positioned ${e}`),this}positionedEntity(e){return e?this.add(`positioned as ${e.toString()}`):this.add("positioned as @s"),this}align(e="xyz"){return this.add(`align ${e}`),this}anchored(e="feet"){return this.add(e),this}as(e){return e?this.add(`as ${e.toString()}`):this.add("as @s"),this}at(e){return e?this.add(`at ${e.toString()}`):this.add("at @s"),this}facing(e){return this.add(`facing ${e}`),this}facingEntity(e,t="feet"){return e?this.add(`facing entity ${e.toString()} ${t}`):this.add(`facing entity @s ${t}`),this}run(e){this.add(`${this} run ${e}`),this.clear(),this.add("execute")}}t.default=s},7810:function(e,t,r){var n,i=this&&this.__classPrivateFieldSet||function(e,t,r,n,i){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?i.call(e,r):i?i.value=r:t.set(e,r),r},o=this&&this.__classPrivateFieldGet||function(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)};Object.defineProperty(t,"__esModule",{value:!0});const a=r(6153);t.default=class{constructor(e){n.set(this,void 0),i(this,n,e,"f")}block(e="air",t="~ ~ ~",r){return o(this,n,"f").add(`block ${t} ${e}[${(0,a.formatMCParams)(r)}]`),o(this,n,"f")}blocks(){return o(this,n,"f").add("blocks"),o(this,n,"f")}data(){return o(this,n,"f").add("data"),o(this,n,"f")}entity(e){return e?o(this,n,"f").add(`entity ${e}`):o(this,n,"f").add("entity @s"),o(this,n,"f")}score(e,t,r,i,a){return o(this,n,"f").add(`score ${e} ${t} ${a} ${r} ${i}`),o(this,n,"f")}scoreMatches(e,t){if(!t)throw(0,a.ArgumentExpection)("missing required parameters");return o(this,n,"f").add(`score ${e.toString()} matches ${(0,a.formatScoreRange)(t)}`),o(this,n,"f")}predicate(e){return o(this,n,"f").add(`predicate ${e}`),o(this,n,"f")}},n=new WeakMap},4574:function(e,t){var r,n=this&&this.__classPrivateFieldSet||function(e,t,r,n,i){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?i.call(e,r):i?i.value=r:t.set(e,r),r},i=this&&this.__classPrivateFieldGet||function(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)};Object.defineProperty(t,"__esModule",{value:!0}),t.default=class{constructor(e){r.set(this,void 0),n(this,r,e,"f")}score(e,t="@s"){return i(this,r,"f").add(`score ${t} ${e}`),i(this,r,"f")}block(e,t="~ ~ ~",n,o){const a=i(this,r,"f");return a.add("block").add(`${t} ${e}`),n&&a.add(n),o&&a.add(o+""),i(this,r,"f")}entity(e,t="@s",n,o){const a=i(this,r,"f");return a.add("entity").add(t).add(e),n&&a.add(n),o&&a.add(o+""),i(this,r,"f")}bossbar(e,t="value"){return i(this,r,"f").add("bossbar").add(e).add(t),i(this,r,"f")}storage(e,t,n,o=1){return i(this,r,"f").add("storage",e.toString(),t,n,o),i(this,r,"f")}},r=new WeakMap},2422:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0});const n=r(9714);t.default=function(){return new n.default}},1737:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default={add:function(e,t,r){return r?`experience add ${e.toString()} ${t} ${r}`:`experience add ${e.toString()} ${t}`},set:function(e,t,r){return r?`experience set ${e.toString()} ${t} ${r}`:`experience set ${e.toString()} ${t}`},query:function(e,t){return t?`experience query ${e.toString()} ${t}`:`experience query ${e.toString()}`}}},4347:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r,n){return void 0===n?`fill ${e} ${t} ${r}`:n?`fill ${e} ${t} ${r} ${n}`:`fill ${e} ${t} ${r} replace ${n}`}},9829:(e,t)=>{Object.defineProperty(t,"__es