https://github.com/igentuman/multi-builder-tool
Minecraft java mod to build structures with one click
https://github.com/igentuman/multi-builder-tool
java minecraft mod
Last synced: about 2 months ago
JSON representation
Minecraft java mod to build structures with one click
- Host: GitHub
- URL: https://github.com/igentuman/multi-builder-tool
- Owner: igentuman
- License: mit
- Created: 2023-02-12T23:54:17.000Z (over 3 years ago)
- Default Branch: 1.20
- Last Pushed: 2026-05-06T02:39:25.000Z (2 months ago)
- Last Synced: 2026-05-06T04:36:38.160Z (2 months ago)
- Topics: java, minecraft, mod
- Language: Java
- Homepage:
- Size: 888 KB
- Stars: 6
- Watchers: 1
- Forks: 3
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Mbtool
This mod adding new tool to build multiblock structures with one click
1. Select what you want to build
2. Put needed items in Mbtool inventory and charge it
3. Click and Build
## KubeJs Support - server script
```javascript
MbtoolKJSEvents.InitMbtoolStructures(event => {
for(let i = 0; i < event.structures.length; i++) {
console.log(event.structures[i].getId());
console.log(event.structures[i].getName());
console.log(event.structures[i].getStructureNbt());
event.structures[i].setStructureNbt(CompoundTag.fromJSON({})); // set structure nbt (you can use this to change the structure, but be careful!)
var nbt = event.structures[i].getStructureNbt(); // get structure nbt
nbt.palette[0].Name = 'minecraft:iron_block'; // change first block in palette to iron block
event.structures[i].setStructureNbt(nbt); // set structure nbt again
//if you wish to remove structure, then set some non existing block
nbt.palette[0].Name = 'minecraft:not_existing_block';
event.structures[i].setStructureNbt(nbt); // set structure nbt again
}
});
```