Zelda Door Mechanics

This datapack adds big doors that can smoothly be opened up and down when getting close, just like in Zelda! You can also add a lock to them. No resource pack required!

266

Quick challenge

How far can you run before the mobs catch you?

Zelda Door Mechanics

Features of the door

- No resource pack required - Has sounds - Has collision when closed - Get open when getting close - Will be placed facing north/south by default, you can rotate to 90° - Possibility to lock door and to get a key - Peebles animation on the ground when the door is closing - Model for locked door - Once a locked door is unlocked, the key from the player inventory get deleted - Animation inspired from Zelda: Twilight Princess when a locked door is unlocked

If you don't want to read all this, just do /function door:help in-game and read the step-by-step documentation in-game!

How to place & remove a door

It's done! - Go where you wanna place the door, and check for your position (X,Y,Z). Then, go in spectator mode and do /teleport [your coordinates, but It's done! .5 after each number] (example: if your coordinates are x 12, y 64 and z -100, run /teleport 12.5 64.5 -99.5 - Run /function door:_/create - It's done!

- To remove a door, stand on it and run /function door:remove_current_door

How to lock & unlock a door

add - Go where you wanna place the door, and check for your position (X,Y,Z). Then, go in spectator mode and do /teleport [your coordinates, but add .5 after each number] (example: if your coordinates are x 12, y 64 and z -100, run /teleport 12.5 64.5 -99.5 do the teleport - Run /function door:lock_door whilst standing on the door

- To unlock it, get a key with /function door:give_key

How to rotate a door

To rotate a door: - Stand at the door position and check for the coordinates, then run /gamemode spectator and /teleport x.5 y.5 z.5 as for the other steps - If you want to rotate a locked door, lock it before the next step (see above) - Run /function door:rotate_door_90

For in-game help and additional commands, run /function door:help

This datapack has a known issue:

- Collisions don't work for rotated locked door (currently, it's better to only locks doors facing north/south, but you can create non-locked doors facing east/west if you want)

ADS