diff --git a/README.md b/README.md index a9a20ca..9bbb99c 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ This project is currently being rewritten. This document should be changed to in ## TODO The following things still have to be done. - [X] Equipment -- [ ] Equipment locking +- [X] Equipment locking - [ ] Can we scrape the MC wiki for a searchable dropdown list? https://minecraft.fandom.com/api.php ? * Only items that are available in a given minecraft version should show up - [ ] Colors for leather pieces diff --git a/public/slot_chestplate.png b/public/slot_chestplate.png new file mode 100644 index 0000000..ef42347 Binary files /dev/null and b/public/slot_chestplate.png differ diff --git a/public/slot_helmet.png b/public/slot_helmet.png new file mode 100644 index 0000000..088c7a3 Binary files /dev/null and b/public/slot_helmet.png differ diff --git a/public/slot_leggings.png b/public/slot_leggings.png new file mode 100644 index 0000000..b69b106 Binary files /dev/null and b/public/slot_leggings.png differ diff --git a/public/slot_shield.png b/public/slot_shield.png new file mode 100644 index 0000000..788d583 Binary files /dev/null and b/public/slot_shield.png differ diff --git a/public/slot_shoes.png b/public/slot_shoes.png new file mode 100644 index 0000000..c330c8c Binary files /dev/null and b/public/slot_shoes.png differ diff --git a/public/slot_sword.png b/public/slot_sword.png new file mode 100644 index 0000000..3807048 Binary files /dev/null and b/public/slot_sword.png differ diff --git a/src/App.vue b/src/App.vue index 3eeb8ae..9975ad4 100644 --- a/src/App.vue +++ b/src/App.vue @@ -68,7 +68,49 @@
- + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
HelmetChestplateLeggingsShoesRight HandLeft Hand
Remove
Replace
Place
+ +
+
@@ -111,7 +153,8 @@ diff --git a/src/armorstand.js b/src/armorstand.js index ffc8db2..76823b4 100644 --- a/src/armorstand.js +++ b/src/armorstand.js @@ -1,7 +1,6 @@ import {generateIntArray, generateUUID, isXYZZero, xyzToTextArray} from "./util.js" // The Armorstand will hold all attributes for an armor stand. -// TODO Move this to a different file export class Armorstand { constructor() { // Rotation values for the body parts @@ -45,6 +44,9 @@ export class Armorstand { this.customNameObfuscated = false this.customNameStrikethrough = false + // Slot interaction + this.lockSlots = false + this.lockFlags = 0 } getScale() { @@ -179,10 +181,10 @@ export class Armorstand { tags.push("CustomNameVisible:1b") } - // DisabledSlots // TODO - // if(useDisabledSlots){ - // tags.push("DisabledSlots:"+calculateDisabledSlotsFlag()) - // } + // DisabledSlots + if(this.lockSlots){ + tags.push("DisabledSlots:"+this.lockFlags) + } // Now the pose let pose = [] diff --git a/src/components/LockSlotCheckBox.vue b/src/components/LockSlotCheckBox.vue new file mode 100644 index 0000000..4cddfd5 --- /dev/null +++ b/src/components/LockSlotCheckBox.vue @@ -0,0 +1,11 @@ + + + \ No newline at end of file diff --git a/src/RotationSliderRow.vue b/src/components/RotationSliderRow.vue similarity index 100% rename from src/RotationSliderRow.vue rename to src/components/RotationSliderRow.vue