Zelda Door Mechanics
ModLicenseRef-All-Rights-Reserved

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!

91
Downloads
0
Followers
4 months ago
Updated
📦
9
Versions

📖About 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

To place a door (you need OP), follow those 2 easy steps carefully:

  • 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

  • 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

To lock a door:

  • 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)