sandstone 1.1.2 → 1.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_internal/index.d.ts +7 -15
- package/dist/_internal/index.d.ts.map +1 -1
- package/dist/_internal/index.js +43 -41
- package/dist/_internal/index.js.map +1 -1
- package/dist/_internal/types/arguments/coords.d.ts +6 -8
- package/dist/_internal/types/arguments/coords.d.ts.map +1 -1
- package/dist/_internal/types/arguments/generated/resources.d.ts +2 -2
- package/dist/_internal/types/arguments/generated/resources.d.ts.map +1 -1
- package/dist/_internal/types/commands/implementations/block/fill.d.ts +3 -2
- package/dist/_internal/types/commands/implementations/block/fill.d.ts.map +1 -1
- package/dist/_internal/types/commands/implementations/block/place.d.ts +1 -1
- package/dist/_internal/types/commands/implementations/block/place.d.ts.map +1 -1
- package/dist/_internal/types/commands/implementations/block/setblock.d.ts +34 -30
- package/dist/_internal/types/commands/implementations/block/setblock.d.ts.map +1 -1
- package/dist/_internal/types/commands/implementations/entity/execute.d.ts +3 -3
- package/dist/_internal/types/commands/implementations/entity/execute.d.ts.map +1 -1
- package/dist/_internal/types/commands/implementations/entity/summon.d.ts +2 -1
- package/dist/_internal/types/commands/implementations/entity/summon.d.ts.map +1 -1
- package/dist/_internal/types/commands/implementations/server/schedule.d.ts +1 -1
- package/dist/_internal/types/core/resources/index.d.ts +1 -1
- package/dist/_internal/types/core/resources/resourcepack/blockstate.d.ts +13 -13
- package/dist/_internal/types/core/resources/resourcepack/blockstate.d.ts.map +1 -1
- package/dist/_internal/types/flow/Flow.d.ts +11 -11
- package/dist/_internal/types/flow/loop.d.ts +1 -1
- package/dist/_internal/types/pack/index.d.ts +1 -1
- package/dist/_internal/types/pack/pack.d.ts +7 -7
- package/dist/_internal/types/pack/pack.d.ts.map +1 -1
- package/dist/_internal/types/utils.d.ts +1 -0
- package/dist/_internal/types/utils.d.ts.map +1 -1
- package/dist/_internal/types/variables/Data.d.ts +1 -1
- package/dist/_internal/types/variables/DataSets.d.ts +4 -4
- package/dist/_internal/types/variables/DataSets.d.ts.map +1 -1
- package/dist/_internal/types/variables/ResolveNBT.d.ts +2 -2
- package/dist/browser/sandstone.esm.js +43 -41
- package/dist/browser/sandstone.esm.js.map +1 -1
- package/dist/exports/core/index.d.ts +1 -1
- package/dist/exports/core/index.js +1 -1
- package/dist/exports/index.d.ts +1 -1
- package/dist/exports/index.js +1 -1
- package/dist/exports/variables/index.d.ts +1 -1
- package/dist/exports/variables/index.js +1 -1
- package/package.json +1 -1
- package/src/arguments/coords.ts +6 -12
- package/src/arguments/generated/resources.ts +2 -2
- package/src/commands/implementations/block/fill.ts +7 -3
- package/src/commands/implementations/block/place.ts +1 -1
- package/src/commands/implementations/block/setblock.ts +39 -32
- package/src/commands/implementations/entity/execute.ts +6 -4
- package/src/commands/implementations/entity/summon.ts +2 -1
- package/src/core/resources/datapack/itemModifier.ts +2 -2
- package/src/core/resources/resourcepack/blockstate.ts +32 -32
- package/src/pack/pack.ts +17 -37
- package/src/sandstone.ts +4 -20
- package/src/utils.ts +3 -1
- package/src/variables/DataSets.ts +4 -4
- package/src/core/resources/datapack/decoratedPotPattern.ts.disable +0 -47
- package/src/core/resources/datapack/slotSource.ts.disable +0 -47
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { JSONTextComponent } from "./types/arguments/jsonTextComponent.js";
|
|
2
2
|
import { SandstoneContext, setSandstoneContext, getSandstoneContext, hasContext, resetContext } from "./types/context.js";
|
|
3
3
|
import type { FillCommand, GiveCommand, SetBlockCommand, AdvancementCommand, AttributeOperationCommand, BossBarCommand, FinalCommandOutput, CloneOptionsCommand, CloneFromDimensionCommand, DamageSourceCommand, DataCommand, DataPackCommand, DebugCommand, DialogCommand, EffectCommand, ExecuteCommand, ExperienceCommand, ForceLoadCommand, ExtractNBTIntRange, LocateCommand, LootCommand, PerfCommand, PlaceCommand, RandomCommand, RecipeCommand, SandstoneCommands, RotateFacingArguments, RideArgumentsCommand, ItemCommand, JFRCommand, ScheduleCommand, ScoreboardCommand, StopwatchCommand, TagArgumentsCommand, TeamCommand, TeleportFacingCommand, TestCommand, TimeCommand, TitleArgumentsCommand, TriggerArgumentsCommand, WaypointCommand, WeatherCommand, WorldBorderCommand, StoreType } from "./types/commands/index.js";
|
|
4
|
-
import { AdvancementClassArguments, AtlasClassArguments, BannerPatternClassArguments,
|
|
4
|
+
import { AdvancementClassArguments, AtlasClassArguments, BannerPatternClassArguments, BlockStateDefinitionArguments, ChatTypeClassArguments, DamageTypeClassArguments, DialogClassArguments, EnchantmentClassArguments, EnchantmentProviderClassArguments, EquipmentClassArguments, FontArguments, InstrumentClassArguments, ItemModelDefinitionClassArguments, ItemModifierClassArguments, JukeboxSongClassArguments, LanguageArguments, LootTableClassArguments, MCFunctionClassArguments, ModelClassArguments, ParticleClassArguments, PlainTextArguments, PostEffectClassArguments, PredicateClassArguments, RecipeClassArguments, ShaderClassArguments, SoundEventArguments, SoundsIndexArguments, SulfurCubeArchetypeClassArguments, TagClassArguments, TestEnvironmentClassArguments, TestInstanceClassArguments, TextureArguments, TimelineClassArguments, TradeSetClassArguments, TrialSpawnerClassArguments, TrimMaterialClassArguments, TrimPatternClassArguments, VariantClassArguments, VillagerTradeClassArguments, WaypointStyleClassArguments, WorldClockClassArguments, MCFunctionClass, DataPointPickClass, CustomResourceClass, MacroArgument, TagValuesJSON, VariantType, BlockStateDefinitionJSON, BlockStateDefinitionType, ItemModelDefinitionInput, ShaderClass, PlainTextClass, MacroLiteral, SandstoneCore, ResourceClass } from "./types/core/index.js";
|
|
5
5
|
import { Flow, Condition } from "./types/flow/index.js";
|
|
6
6
|
import type { BASIC_CONFLICT_STRATEGIES, LiteralUnion, NamespacedLiteralUnion, SetType, AllKeys, MakeInstanceCallable } from "./types/utils.js";
|
|
7
|
-
import
|
|
8
|
-
import
|
|
7
|
+
import { ObjectiveClass, Score, SelectorClass, LabelClass, UUIDClass, DataPointClass, ItemPredicateClass, DATA_TYPES, TriggerHandler, TriggerClass, _RawLabelClass, TargetlessDataClass, TargetFor, DataClass, DATA_PATH, TargetlessDataPointClass, ResolveNBTClass, DataIndexMapType, DataArrayType, SelectorEntityType, SelectorProperties, UUIDinNumber, UUIDOptions, UUIDinScore, SelectorPickClass, ItemPredicateItem, SleepClass } from "./types/variables/index.js";
|
|
8
|
+
import { AdvancementClass, BannerPatternClass, ChatTypeClass, DamageTypeClass, DialogClass, EnchantmentClass, EnchantmentProviderClass, InstrumentClass, ItemModifierClass, JukeboxSongClass, LootTableClass, PredicateClass, RecipeClass, StructureClass, SulfurCubeArchetypeClass, TagClass, TestEnvironmentClass, TestInstanceClass, TimelineClass, TradeSetClass, TrialSpawnerClass, TrimMaterialClass, TrimPatternClass, VariantClass, VillagerTradeClass, WorldClockClass, AtlasClass, BlockStateDefinitionClass, EquipmentClass, FontClass, ItemModelDefinitionClass, LanguageClass, ModelClass, ParticleClass, PostEffectClass, SoundEventClass, SoundsIndexClass, TextureClass, WaypointStyleClass } from "./types/core/resources/index.js";
|
|
9
9
|
import type { SingleEntityArgumentOf, MultiplePlayersArgumentOf, Coordinates, GAMEMODES, DIFFICULTIES, MultipleEntitiesArgument, RootNBT, MessageOrSelector, AbsoluteCoordinates, SOUND_SOURCES, Rotation, SinglePlayerArgumentOf, ColumnCoordinates, ObjectiveArgument, MCDocToJSON, SymbolResource, RecipeJSON, REGISTRIES, SOUND_TYPES, TEXTURE_TYPES, OBJECTIVE_CRITERIA, NBTObject, TimeArgument } from "./types/arguments/index.js";
|
|
10
10
|
import type { ITEMS } from "./types/arguments/generated/_registry/items.js";
|
|
11
11
|
import type { DAMAGE_TYPES } from "./types/arguments/generated/_registry/damage_types.js";
|
|
@@ -2128,7 +2128,7 @@ export declare const RawResource: {
|
|
|
2128
2128
|
'minecraft:worldgen/world_preset': WorldPreset;
|
|
2129
2129
|
zombie_nautilus_variant: ZombieNautilusVariant;
|
|
2130
2130
|
'minecraft:zombie_nautilus_variant': ZombieNautilusVariant;
|
|
2131
|
-
}[`${T}_variant`]>, options?: Omit<Partial<VariantClassArguments<T>>, "variant"> | undefined) => VariantClass<T>, VillagerTrade: (name: string, villagerTrade: VillagerTradeClassArguments["json"], options?: Omit<Partial<VillagerTradeClassArguments>, "json">) => VillagerTradeClass, WorldClock: (name: string, worldClock: WorldClockClassArguments["json"], options?: Omit<Partial<WorldClockClassArguments>, "json">) => WorldClockClass, Atlas: (name: string, json: AtlasClassArguments["json"], options?: Omit<Partial<AtlasClassArguments>, "json">) => AtlasClass,
|
|
2131
|
+
}[`${T}_variant`]>, options?: Omit<Partial<VariantClassArguments<T>>, "variant"> | undefined) => VariantClass<T>, VillagerTrade: (name: string, villagerTrade: VillagerTradeClassArguments["json"], options?: Omit<Partial<VillagerTradeClassArguments>, "json">) => VillagerTradeClass, WorldClock: (name: string, worldClock: WorldClockClassArguments["json"], options?: Omit<Partial<WorldClockClassArguments>, "json">) => WorldClockClass, Atlas: (name: string, json: AtlasClassArguments["json"], options?: Omit<Partial<AtlasClassArguments>, "json">) => AtlasClass, BlockStateDefinition: <JSON extends BlockStateDefinitionJSON>(name: string, json: JSON, options?: Omit<Partial<BlockStateDefinitionArguments<JSON>>, "json"> | undefined) => BlockStateDefinitionClass<JSON, Extract<AllKeys<JSON>, BlockStateDefinitionType>>, Equipment: (name: string, json: EquipmentClassArguments["json"], options?: Omit<Partial<EquipmentClassArguments>, "json">) => EquipmentClass, Font: (name: string, providers: FontArguments["providers"], options?: Omit<Partial<FontArguments>, "providers">) => FontClass, ItemModelDefinition: (name: string, definition: ItemModelDefinitionInput, options?: Omit<Partial<ItemModelDefinitionClassArguments>, "definition">) => ItemModelDefinitionClass, Language: (name: string, language: LanguageArguments["language"], options?: Omit<Partial<LanguageArguments>, "language">) => LanguageClass, Model: <Type extends LiteralUnion<"block" | "item">>(type: Type, name: string, json: ModelClassArguments["json"], options?: Omit<Partial<ModelClassArguments>, "json">) => ModelClass<Type>, ParticleResource: (name: string, json: ParticleClassArguments["json"], options?: Omit<Partial<ParticleClassArguments>, "json">) => ParticleClass, PostEffect: (name: string, json: PostEffectClassArguments["json"], options?: Omit<Partial<PostEffectClassArguments>, "json">) => PostEffectClass, Shader: (name: string, json: ShaderClassArguments["json"], options?: Omit<Partial<ShaderClassArguments>, "json">) => ShaderClass, SoundEvent: <Type extends SOUND_TYPES>(type: Type, name: string, sound: SoundEventArguments["sound"], options?: Omit<Partial<SoundEventArguments>, "sound">) => SoundEventClass<Type>, SoundsIndex: (definitions: SoundsIndexArguments["definitions"], namespace?: string, options?: Omit<Partial<SoundsIndexArguments>, "definitions">) => SoundsIndexClass, PlainText: (name: string, text: PlainTextArguments["text"], options?: Partial<PlainTextArguments>) => PlainTextClass, Texture: <Type extends LiteralUnion<TEXTURE_TYPES>>(type: Type, name: string, texture: ArrayBuffer | Buffer<ArrayBufferLike> | Promise<ArrayBuffer | Buffer<ArrayBufferLike>> | undefined, options?: Partial<TextureArguments<Type>> | undefined) => TextureClass<Type>, WaypointStyle: (name: string, json: WaypointStyleClassArguments["json"], options?: Omit<Partial<WaypointStyleClassArguments>, "json">) => WaypointStyleClass, Objective: {
|
|
2132
2132
|
create: (name: string, criteria?: LiteralUnion<OBJECTIVE_CRITERIA>, display?: JSONTextComponent, options?: {
|
|
2133
2133
|
alreadyExists?: boolean;
|
|
2134
2134
|
useDefaultNamespace?: boolean;
|
|
@@ -2149,10 +2149,10 @@ export declare const RawResource: {
|
|
|
2149
2149
|
}, DataVariable: {
|
|
2150
2150
|
(initialValue?: NBTObject | DataPointClass<any> | DataPointPickClass, name?: string): DataPointClass<"storage">;
|
|
2151
2151
|
(score: Score, storeType?: StoreType, scale?: number, name?: string): DataPointClass<"storage">;
|
|
2152
|
-
}, getTempStorage: (name: string) => DataPointClass<"storage">, ResolveNBT: (nbt: NBTObject, dataPoint?: DataPointClass<"storage">) => ResolveNBTClass, DataIndexMap: <INITIAL extends RootNBT | Record<string, DataPointClass | DataPointPickClass>>(initialize: INITIAL, dataPoint?: DataPointClass<"storage">) =>
|
|
2152
|
+
}, getTempStorage: (name: string) => DataPointClass<"storage">, ResolveNBT: (nbt: NBTObject, dataPoint?: DataPointClass<"storage">) => ResolveNBTClass, DataIndexMap: <INITIAL extends RootNBT | Record<string, DataPointClass | DataPointPickClass>>(initialize: INITIAL, dataPoint?: DataPointClass<"storage">) => DataIndexMapType<INITIAL>, DataArray: <INITIAL extends readonly NBTObject[] | readonly [
|
|
2153
2153
|
string,
|
|
2154
2154
|
DataPointClass | DataPointPickClass
|
|
2155
|
-
]>(initialize: INITIAL, dataPoint?: DataPointClass<"storage">) =>
|
|
2155
|
+
]>(initialize: INITIAL, dataPoint?: DataPointClass<"storage">) => DataArrayType<INITIAL>, Selector: {
|
|
2156
2156
|
(target: "@e"): SelectorClass<false, false, false>;
|
|
2157
2157
|
(target: "@a"): SelectorClass<false, false, true>;
|
|
2158
2158
|
(target: "@s" | "@n"): SelectorClass<false, true, false>;
|
|
@@ -2394,10 +2394,6 @@ ContentStrategyKind<'default', BASIC_CONFLICT_STRATEGIES>
|
|
|
2394
2394
|
* Will override the defined `default` strategy.
|
|
2395
2395
|
*/
|
|
2396
2396
|
| ContentStrategyKind<'recipe', NonNullable<RecipeClassArguments['onConflict']>>
|
|
2397
|
-
/**
|
|
2398
|
-
* The conflict strategy to use for Slot sources.
|
|
2399
|
-
* Will override the defined `default` strategy.
|
|
2400
|
-
*/
|
|
2401
2397
|
/**
|
|
2402
2398
|
* The conflict strategy to use for Sulfur cube archetypes.
|
|
2403
2399
|
* Will override the defined `default` strategy.
|
|
@@ -2433,10 +2429,6 @@ ContentStrategyKind<'default', BASIC_CONFLICT_STRATEGIES>
|
|
|
2433
2429
|
* Will override the defined `default` strategy.
|
|
2434
2430
|
*/
|
|
2435
2431
|
| ContentStrategyKind<'chat_type', NonNullable<ChatTypeClassArguments['onConflict']>>
|
|
2436
|
-
/**
|
|
2437
|
-
* The conflict strategy to use for Decorated pot patterns.
|
|
2438
|
-
* Will override the defined `default` strategy.
|
|
2439
|
-
*/
|
|
2440
2432
|
/**
|
|
2441
2433
|
* The conflict strategy to use for Dialogs.
|
|
2442
2434
|
* Will override the defined `default` strategy.
|
|
@@ -2511,7 +2503,7 @@ ContentStrategyKind<'default', BASIC_CONFLICT_STRATEGIES>
|
|
|
2511
2503
|
* The conflict strategy to use for Block states.
|
|
2512
2504
|
* Will override the defined `default` strategy.
|
|
2513
2505
|
*/
|
|
2514
|
-
| ContentStrategyKind<'
|
|
2506
|
+
| ContentStrategyKind<'block_definition', NonNullable<BlockStateDefinitionArguments<any>['onConflict']>>
|
|
2515
2507
|
/**
|
|
2516
2508
|
* The conflict strategy to use for Fonts.
|
|
2517
2509
|
* Will override the defined `default` strategy.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/sandstone.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"sources":["../../src/sandstone.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBA6Da;;;;;;;;;;;;;;;;qBAkFX,wCACA,kIACA,gCACA;;;GACA;;;GACA,yDACA,+KACA,0BACA,2BACA,4BACA,8BACA,0DACA,+DACA,8BACA,sHACA,gCACA,sCACA;;;GACA;;;;;GACA,oCACA,oIACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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KACA,kKACA,6JACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kHACA,uKACA,wJAEA,8HACA,gQACA,8IACA,+HACA,iLACA,4IACA,6LACU,kJACV,kJACA,kIACA,uLACA,uKACA,sHACA,yQACA,8JAGA;;;;;;GACA,oIAEA;;;GACA,qBACA,0GACA,oIACA;;;;;;;;;GACA;;;GACA,6DACA,wFACA,wLACA;;;0FACA;;;;;;;;GACA;;;;;;GACA,oEACA;;;GACA,4CACA;;;;GACA;;qBAiEa,uCAAU,uCAAU;qBAEtB;qBACA;qBACA;qBAEE;;;;GAAoB;;;;;;GAAqB;qBAC3C","file":"index.d.ts"}
|
package/dist/_internal/index.js
CHANGED
|
@@ -2508,68 +2508,68 @@ AtlasClass = class AtlasClass extends ResourceClass {
|
|
|
2508
2508
|
}
|
|
2509
2509
|
}
|
|
2510
2510
|
};
|
|
2511
|
-
|
|
2511
|
+
BlockStateDefinitionNode = class BlockStateDefinitionNode extends ContainerNode {
|
|
2512
2512
|
resource;
|
|
2513
2513
|
constructor(sandstoneCore, resource) {
|
|
2514
2514
|
super(sandstoneCore);
|
|
2515
2515
|
this.resource = resource;
|
|
2516
2516
|
}
|
|
2517
|
-
getValue = () => jsonStringify(this.resource.
|
|
2517
|
+
getValue = () => jsonStringify(this.resource.blockStateDefinitionJSON, this.resource._resourceType);
|
|
2518
2518
|
};
|
|
2519
|
-
|
|
2519
|
+
BlockStateDefinitionClass = class BlockStateDefinitionClass extends ResourceClass {
|
|
2520
2520
|
static resourceType = "block_definition";
|
|
2521
|
-
|
|
2521
|
+
blockStateDefinitionJSON;
|
|
2522
2522
|
type;
|
|
2523
2523
|
constructor(core, name, args) {
|
|
2524
|
-
super(core, { packType: core.pack.resourcePack() },
|
|
2525
|
-
this.
|
|
2526
|
-
this.type = Object.keys(this.
|
|
2524
|
+
super(core, { packType: core.pack.resourcePack() }, BlockStateDefinitionNode, BlockStateDefinitionClass.resourceType, core.pack.resourceToPath(name, RESOURCE_PATHS[BlockStateDefinitionClass.resourceType].path), args);
|
|
2525
|
+
this.blockStateDefinitionJSON = args.json;
|
|
2526
|
+
this.type = Object.keys(this.blockStateDefinitionJSON)[0];
|
|
2527
2527
|
this.handleConflicts();
|
|
2528
2528
|
}
|
|
2529
2529
|
push(...states) {
|
|
2530
2530
|
if (this.type === "variants") {
|
|
2531
|
-
if (states[0] instanceof
|
|
2531
|
+
if (states[0] instanceof BlockStateDefinitionClass) {
|
|
2532
2532
|
for (const state of states) {
|
|
2533
|
-
this.
|
|
2533
|
+
this.blockStateDefinitionJSON.variants = { ...this.blockStateDefinitionJSON.variants, ...state.blockStateDefinitionJSON.variants };
|
|
2534
2534
|
}
|
|
2535
2535
|
} else {
|
|
2536
2536
|
for (const state of states) {
|
|
2537
|
-
this.
|
|
2537
|
+
this.blockStateDefinitionJSON.variants = { ...this.blockStateDefinitionJSON.variants, ...state.variants };
|
|
2538
2538
|
}
|
|
2539
2539
|
}
|
|
2540
2540
|
}
|
|
2541
2541
|
if (this.type === "multipart") {
|
|
2542
|
-
if (states[0] instanceof
|
|
2542
|
+
if (states[0] instanceof BlockStateDefinitionClass) {
|
|
2543
2543
|
for (const state of states) {
|
|
2544
|
-
this.
|
|
2544
|
+
this.blockStateDefinitionJSON.multipart.push(...state.blockStateDefinitionJSON.multipart);
|
|
2545
2545
|
}
|
|
2546
2546
|
} else {
|
|
2547
2547
|
for (const state of states) {
|
|
2548
|
-
this.
|
|
2548
|
+
this.blockStateDefinitionJSON.multipart.push(...state.multipart);
|
|
2549
2549
|
}
|
|
2550
2550
|
}
|
|
2551
2551
|
}
|
|
2552
2552
|
}
|
|
2553
2553
|
unshift(...states) {
|
|
2554
2554
|
if (this.type === "variants") {
|
|
2555
|
-
if (states[0] instanceof
|
|
2555
|
+
if (states[0] instanceof BlockStateDefinitionClass) {
|
|
2556
2556
|
for (const state of states) {
|
|
2557
|
-
this.
|
|
2557
|
+
this.blockStateDefinitionJSON.variants = { ...state.blockStateDefinitionJSON.variants, ...this.blockStateDefinitionJSON.variants };
|
|
2558
2558
|
}
|
|
2559
2559
|
} else {
|
|
2560
2560
|
for (const state of states) {
|
|
2561
|
-
this.
|
|
2561
|
+
this.blockStateDefinitionJSON.variants = { ...state.variants, ...this.blockStateDefinitionJSON.variants };
|
|
2562
2562
|
}
|
|
2563
2563
|
}
|
|
2564
2564
|
}
|
|
2565
2565
|
if (this.type === "multipart") {
|
|
2566
|
-
if (states[0] instanceof
|
|
2566
|
+
if (states[0] instanceof BlockStateDefinitionClass) {
|
|
2567
2567
|
for (const state of states) {
|
|
2568
|
-
this.
|
|
2568
|
+
this.blockStateDefinitionJSON.multipart.unshift(...state.blockStateDefinitionJSON.multipart);
|
|
2569
2569
|
}
|
|
2570
2570
|
} else {
|
|
2571
2571
|
for (const state of states) {
|
|
2572
|
-
this.
|
|
2572
|
+
this.blockStateDefinitionJSON.multipart.unshift(...state.multipart);
|
|
2573
2573
|
}
|
|
2574
2574
|
}
|
|
2575
2575
|
}
|
|
@@ -8216,7 +8216,7 @@ var init_atlas = __esm(() => {
|
|
|
8216
8216
|
});
|
|
8217
8217
|
|
|
8218
8218
|
// src/core/resources/resourcepack/blockstate.ts
|
|
8219
|
-
var
|
|
8219
|
+
var BlockStateDefinitionNode, BlockStateDefinitionClass;
|
|
8220
8220
|
var init_blockstate = __esm(() => {
|
|
8221
8221
|
init_arguments();
|
|
8222
8222
|
init_nodes();
|
|
@@ -10668,11 +10668,11 @@ class SandstonePack {
|
|
|
10668
10668
|
}
|
|
10669
10669
|
return {
|
|
10670
10670
|
datapack: {
|
|
10671
|
-
packFormat:
|
|
10671
|
+
packFormat: 111,
|
|
10672
10672
|
description: "A Sandstone datapack"
|
|
10673
10673
|
},
|
|
10674
10674
|
resourcepack: {
|
|
10675
|
-
packFormat:
|
|
10675
|
+
packFormat: 92,
|
|
10676
10676
|
description: "A Sandstone resource pack"
|
|
10677
10677
|
}
|
|
10678
10678
|
};
|
|
@@ -10749,7 +10749,7 @@ class SandstonePack {
|
|
|
10749
10749
|
dataPack() {
|
|
10750
10750
|
let pack = this.packTypes.get("datapack");
|
|
10751
10751
|
if (!pack) {
|
|
10752
|
-
const options = this.packOptions.datapack ?? { packFormat:
|
|
10752
|
+
const options = this.packOptions.datapack ?? { packFormat: 111, description: "A Sandstone datapack" };
|
|
10753
10753
|
pack = this.packTypes.set("datapack", new DataPack(false, options)).get("datapack");
|
|
10754
10754
|
}
|
|
10755
10755
|
return pack;
|
|
@@ -10757,7 +10757,7 @@ class SandstonePack {
|
|
|
10757
10757
|
resourcePack() {
|
|
10758
10758
|
let pack = this.packTypes.get("resourcepack");
|
|
10759
10759
|
if (!pack) {
|
|
10760
|
-
const options = this.packOptions.resourcepack ?? { packFormat:
|
|
10760
|
+
const options = this.packOptions.resourcepack ?? { packFormat: 92, description: "A Sandstone resource pack" };
|
|
10761
10761
|
pack = this.packTypes.set("resourcepack", new ResourcePack(options)).get("resourcepack");
|
|
10762
10762
|
}
|
|
10763
10763
|
return pack;
|
|
@@ -10903,10 +10903,10 @@ class SandstonePack {
|
|
|
10903
10903
|
return anonymousData;
|
|
10904
10904
|
}
|
|
10905
10905
|
DataIndexMap(initialize, dataPoint2) {
|
|
10906
|
-
return
|
|
10906
|
+
return DataIndexMapInternal(this, initialize, dataPoint2);
|
|
10907
10907
|
}
|
|
10908
10908
|
DataArray(initialize, dataPoint2) {
|
|
10909
|
-
return
|
|
10909
|
+
return DataArrayInternal(this, initialize, dataPoint2);
|
|
10910
10910
|
}
|
|
10911
10911
|
getTempStorage = (name) => {
|
|
10912
10912
|
if (tempStorage) {
|
|
@@ -11213,12 +11213,12 @@ class SandstonePack {
|
|
|
11213
11213
|
onConflict: conflictDefaults("atlas"),
|
|
11214
11214
|
...options
|
|
11215
11215
|
});
|
|
11216
|
-
|
|
11217
|
-
return new
|
|
11216
|
+
BlockStateDefinition(name, json, options) {
|
|
11217
|
+
return new BlockStateDefinitionClass(this.core, name, {
|
|
11218
11218
|
json,
|
|
11219
11219
|
creator: "user",
|
|
11220
11220
|
addToSandstoneCore: true,
|
|
11221
|
-
onConflict: conflictDefaults("
|
|
11221
|
+
onConflict: conflictDefaults("block_definition"),
|
|
11222
11222
|
...options
|
|
11223
11223
|
});
|
|
11224
11224
|
}
|
|
@@ -52523,7 +52523,7 @@ var init_resources3 = __esm(() => {
|
|
|
52523
52523
|
[VillagerTradeClass, "villager_trade"],
|
|
52524
52524
|
[WorldClockClass, "world_clock"],
|
|
52525
52525
|
[AtlasClass, "atlas"],
|
|
52526
|
-
[
|
|
52526
|
+
[BlockStateDefinitionClass, "block_definition"],
|
|
52527
52527
|
[EquipmentClass, "equipment"],
|
|
52528
52528
|
[FontClass, "font"],
|
|
52529
52529
|
[ItemModelDefinitionClass, "item_definition"],
|
|
@@ -52577,7 +52577,7 @@ var init_ItemPredicate = __esm(() => {
|
|
|
52577
52577
|
});
|
|
52578
52578
|
|
|
52579
52579
|
// src/variables/DataSets.ts
|
|
52580
|
-
function
|
|
52580
|
+
function DataIndexMapInternal(pack2, initialize, dataPoint2) {
|
|
52581
52581
|
const indexMap = new DataIndexMapClass(pack2, initialize, dataPoint2);
|
|
52582
52582
|
return new Proxy(indexMap, {
|
|
52583
52583
|
get(target, p, receiver) {
|
|
@@ -52595,7 +52595,7 @@ function DataIndexMap(pack2, initialize, dataPoint2) {
|
|
|
52595
52595
|
}
|
|
52596
52596
|
});
|
|
52597
52597
|
}
|
|
52598
|
-
function
|
|
52598
|
+
function DataArrayInternal(pack2, initialize, dataPoint2) {
|
|
52599
52599
|
const array = new DataArrayClass(pack2, initialize, dataPoint2);
|
|
52600
52600
|
return new Proxy(array, {
|
|
52601
52601
|
get(target, p, receiver) {
|
|
@@ -53286,7 +53286,7 @@ var {
|
|
|
53286
53286
|
VillagerTrade,
|
|
53287
53287
|
WorldClock,
|
|
53288
53288
|
Atlas,
|
|
53289
|
-
|
|
53289
|
+
BlockStateDefinition,
|
|
53290
53290
|
Equipment,
|
|
53291
53291
|
Font,
|
|
53292
53292
|
ItemModelDefinition,
|
|
@@ -53310,8 +53310,8 @@ var {
|
|
|
53310
53310
|
DataVariable,
|
|
53311
53311
|
getTempStorage,
|
|
53312
53312
|
ResolveNBT: ResolveNBT2,
|
|
53313
|
-
DataIndexMap
|
|
53314
|
-
DataArray
|
|
53313
|
+
DataIndexMap,
|
|
53314
|
+
DataArray,
|
|
53315
53315
|
Selector: Selector2,
|
|
53316
53316
|
UUID: UUID2,
|
|
53317
53317
|
ItemPredicate: ItemPredicate2,
|
|
@@ -53973,14 +53973,16 @@ export {
|
|
|
53973
53973
|
DataModifyFromCommand,
|
|
53974
53974
|
DataModifyCommand,
|
|
53975
53975
|
DataMergeCommand,
|
|
53976
|
+
DataIndexMapInternal,
|
|
53976
53977
|
DataIndexMapClass,
|
|
53977
|
-
|
|
53978
|
+
DataIndexMap,
|
|
53978
53979
|
DataGetCommand,
|
|
53979
53980
|
DataCommandNode,
|
|
53980
53981
|
DataCommand,
|
|
53981
53982
|
DataClass,
|
|
53983
|
+
DataArrayInternal,
|
|
53982
53984
|
DataArrayClass,
|
|
53983
|
-
|
|
53985
|
+
DataArray,
|
|
53984
53986
|
Data2 as Data,
|
|
53985
53987
|
DamageTypeNode,
|
|
53986
53988
|
DamageTypeClass,
|
|
@@ -54044,9 +54046,9 @@ export {
|
|
|
54044
54046
|
BossBarCommandNode,
|
|
54045
54047
|
BossBarCommand,
|
|
54046
54048
|
BlocksConditionNode,
|
|
54047
|
-
|
|
54048
|
-
|
|
54049
|
-
|
|
54049
|
+
BlockStateDefinitionNode,
|
|
54050
|
+
BlockStateDefinitionClass,
|
|
54051
|
+
BlockStateDefinition,
|
|
54050
54052
|
BlockConditionNode,
|
|
54051
54053
|
BiomeConditionNode,
|
|
54052
54054
|
BannerPatternNode,
|
|
@@ -54080,5 +54082,5 @@ export {
|
|
|
54080
54082
|
ACTIVITIES_SET
|
|
54081
54083
|
};
|
|
54082
54084
|
|
|
54083
|
-
//# debugId=
|
|
54085
|
+
//# debugId=C3B58667DCFE12B864756E2164756E21
|
|
54084
54086
|
//# sourceMappingURL=index.js.map
|