interactions for custom items

This commit is contained in:
ForestOfLight
2025-06-07 20:48:41 -07:00
Unverified
parent 137100114a
commit 597e0c7d79
9 changed files with 132 additions and 37 deletions
@@ -25,12 +25,12 @@ export class BuilderOption {
}
setValue(playerId, value) {
if (value)
this.#onEnable(playerId);
else
this.#onDisable(playerId);
if (this.isEnabled(playerId) !== value) {
this.save(playerId, value);
if (value)
this.#onEnable(playerId);
else
this.#onDisable(playerId);
return value;
}
this.save(playerId, value);
@@ -3,7 +3,6 @@ import { MenuFormBuilder } from '../MenuFormBuilder';
import { StructureVerifier } from '../Verifier/StructureVerifier';
import { StructureStatistics } from '../Structure/StructureStatistics';
import { EntityComponentTypes, TicksPerSecond } from '@minecraft/server';
import { BlockVerificationLevel } from '../Enums/BlockVerificationLevel';
export class InstanceFormBuilder {
static structureVerifier;