Description
Do stairs and logs annoy you? Do you have much less hair after 1.3.1 came out, since building with logs is now just so irritating? MagicTouch is a simple plugin which enables you to rotate and flip those annoying blocks with a single click of a magical tool.
How it works
- hold a magical tool (default: workbench) in your hand
- left-click a block -> it rotates 90 degrees clockwise with each click
- shift-left click a block -> if it can, it flips upside down (like stairs, for example)
Clickable blocks
At the moment, these blocks can be flipped/rotated:
- logs (left-clicking cycles through up/down -> east/west -> north/south -> up/down...)
- stairs (left-clicking rotates 90 degrees clockwise, shift-leftclick flips stairs upside down and vice versa)
- pistons (left-clicking cycles through all 6 orientations. This is experimental and may not work perfectly with extended pistons!)
- chests, furnaces, dispensers (left-clicking rotates 90 degrees clockwise)
- slabs (left-clicking flips the slab)
Installing the plugin
Just throw the plugin into the /plugins folder, start your server, modify the config.yml file if needed and restart. That's it!
Configuration
Configuration is pretty much obvious. You can enable/disable handling of different block types, change your magical tool into something else and enable/disable WorldGuard and LogBlock integration.
general: magicaltool: 58 use_worldguard: true use_logblock: true debug: false blocks: logs: true stairs: true pistons: false chests: true slabs: true diodes: false
Note that if you don't have WorldGuard or LogBlock, the corresponding config parameters should be set to "false". chests = chests, enderchests, dispensers, furnaces.
WorldGuard and LogBlock integration
If configured, the plugin will hook itself into WorldGuard and LogBlock APIs, providing new functionality:
- if WorldGuard integration is enabled, the plugin checks whether you can actually build on the area, and informs you if you cannot
- if LogBlock integration is enabled, LogBlock registers your block rotations. Currently, it reports "block breaking", followed by an "unspecified action" whenever a player rotates a block, since there is no suitable action in LogBlock for modifying block's data directly
Known problems/bugs
- Rotating extended pistons doesn't work yet properly
- Diodes not yet working properly (sometimes they turn 90 degrees, sometimes 180 degrees with a single click)
What next?
- add more blocks