Wand stack#7
Conversation
Review Summary by QodoImplement stack command and fix wand NBT identification
WalkthroughsDescription• Implemented /stack command to clone selected areas in player direction • Fixed wand tool to use custom NBT tag instead of vanilla wooden axe • Enhanced wand item with display name, lore, and NBT verification • Updated wand detection logic to check NBT tag for proper identification • Added mcstructures path configuration for future implementation Diagramflowchart LR
A["Wand Command"] -->|"Add NBT Tag"| B["Custom Wand Item"]
B -->|"Verify NBT"| C["Block Break Handler"]
C -->|"Check worldedit Tag"| D["Set pos1"]
E["Player Interact"] -->|"Check NBT"| F["Set pos2"]
G["Stack Command"] -->|"Get Direction"| H["Calculate Offset"]
H -->|"Clone Blocks"| I["Async/Sync Operation"]
File Changes1. src/endstone_worldedit/commands/stack.py
|
Code Review by Qodo
1. Stack out-of-bounds crash
|
Fixes the main issue with the wand using the normal wooden axe instead a cutom NBT item.
I also added a /stack implementation (TODO: Adding multistack /stack )