TrapdoorCabinet
![[IMG]](/proxy/image?url=https%3A%2F%2Fi.imgur.com%2Fz73WPpP.gif)
Plugin description
An extremely lightweight plugin that allows players to open trapdoors in a new way! Can be implemented in furnitures or even simply as a unique feature to make your server stand out. Works with Bukkit and Paper Minecraft servers.
Features
- Set your own hinge types
- Toggle sneak only mode
Configuration
Code (YAML):
# Restart the plugin or your server for changes to take effect!
# Toggles if cabinets will only open when you are sneaking
sneakonly
: false
# This plugin works by looking for hinges the trapdoor is attached to
# If a trapdoor is attached to 0 or 2 hinges, it will not function as a cabinet
# Sets the blacklisted materials for hinges. These will not be considered hinges
# Possible values can be found here https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Material.html
exempt
:
- chest
- trapped_chest
FAQ
How does the plugin work?
When a trapdoor is pressed, it searches the position of the green wools to see if there are any possible hinges. All non-passable blocks are possible hinges unless exempted in config.yml. If there is exactly one hinge, the trapdoor will rotate around that hinge. The trapdoor will work like in vanilla (not affected by this plugin) if there is 0 or 2 hinges.
Why does my trapdoor go up/down for a split second before opening?
That's a limitation of Minecraft. When you click a trapdoor, the client automatically assumes the trapdoor is toggled and will open/close it. This is normally a good idea as it makes the gameplay smoother.
However, in this case, when you click the trapdoor, the client will wrongly assume the trapdoor is opened/closed and show it on your screen. Then, the server sends your client the message "hey look this is now what the updated trapdoor looks like" and your client will fix the mistake. This is why in the short time (fraction of a second!) between clicking the trapdoor and the client getting the update from the server, the trapdoor will go up/down.
Support
If you found a bug or have a suggestion,
add a comment
Satisfied? Leave a review!