MagicTouch
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
-
View User Profile
-
Send Message
Posted Aug 6, 2014@RIPtli08
Stair corners are already taken care of - if you click a stair, which does not sit on a corner, it turns N-E-S-W, but if you have the stair on a corner, it does behave as a corner step.
-
View User Profile
-
Send Message
Posted Aug 4, 2014is there a way to add the stair corners to the plugin?
-
View User Profile
-
Send Message
Posted May 11, 2014@Spartan071
Thanks for the heads up, but your concern is not valid, as in the code, I am checking against the Material the user clicks. For whatever Material that isn't in my checks, the data won't change. So dirt and jukeboxes will be left alone :)
-
View User Profile
-
Send Message
Posted May 11, 2014I haven't used this plugin, just saw it while browsing, and i suspect that you're doing this with block data values, which means that if you use this on dirt, you can get podzol easily, and if you use this on a jukebox, you can create unlimited amounts of music discs of all types. If you're using this as a tool for normal players on a server, just be aware that this can be exploited.
-
View User Profile
-
Send Message
Posted May 6, 2014The annoying INFO message is now removed and a new version (v0.7) is on its way. My apologies again for a sloooooow response. Will try to set up my account so it gives me e-mail warning, when someone replies.
-
View User Profile
-
Send Message
Posted May 6, 2014FordRaptor@: my deepest apologies for not replying. My BukkitDev account is not properly set up to send me an e-mail heads up when someone comments on this thread (which does not happen often). I have seen your bug report and will fix it immediately!
-
View User Profile
-
Send Message
Posted Apr 24, 2014@Etsija
Awesome plugin however it is bugged and spams the server window with BlockBreakEvent messages on CB 1.7.2. Will this be fixed? I submitted a ticket 6 days ago about it and no response. I'm hoping you were just busy and will be able to get to it soon.
-
View User Profile
-
Send Message
Posted Feb 10, 2014Phew! Nice to see someone other than us is actually using this plugin! Thanks for your kind support. MagicTouch has saved so much frustrating effort on our server. I myself are using it quite a lot for the purpose of orienting hoppers correctly in complicated mechanics.
The source code for MagicTouch is very simple and I expect to be able to maintain it for a long time. The only blocks giving me trouble at the moment are pistons, sticky pistons and quartz blocks. For those, the same kind of data value handling doesn't apply than to the stairs for example, and this requires a new approach from me. I would expect to be able to include full support for those blocks as well in near future.
-
View User Profile
-
Send Message
Posted Jan 30, 2014Love this plugin! Its so original :D
I have done a showcase on it: https://www.youtube.com/watch?v=aBWBFfjTtvs
-
View User Profile
-
Send Message
Posted Jan 29, 2014I have wait long time on this plugin 5/5 stars cool plugin
-
View User Profile
-
Send Message
Posted May 7, 2013To explain: integrating with plugin X or Y is all the more difficult, when the plugin author doesn't use any of those plugins. This is the case for me - I do not use any of the plugins you listed, so integration would take lots of extra effort. For a plugin this small, the amount of extra code just to support the plugins X and Y and Z would mean considerably more effort than I am willing to spend on something as easy as this one.
But as I said, I will look into the matter and see what I can do. It all comes down to how good an API the plugin authors have provided for me to use. In case of LogBlock & WG, the APIs were simple and clear.
-
View User Profile
-
Send Message
Posted May 7, 2013If the corresponding plugins have a well-defined interface, then I will look into it, but not likely to happen anytime soon. It would be nice to know what exactly do you want me to take care of, regarding those plugins? Same stuff as with LogBlock & WG?
-
View User Profile
-
Send Message
Posted May 7, 2013LWC, Deadbolt, Lockette, factions, Griefprotection, Coreprotect integration?
-
View User Profile
-
Send Message
Posted Apr 27, 2013New version downloaded. Quartz blocks do work and so do trapped chests. Unfortunately hoppers do not. I need to investigate their data more; seems like they obey different logic than some easier blocks.
-
View User Profile
-
Send Message
Posted Apr 26, 2013I see you added hoppers and quartz in the latest source recently. I was just about to make those suggestions :P I'll wait for your next jar release to download cause I'm too lazy right now to compile it myself, especially since it's not mavenized.
-
View User Profile
-
Send Message
Posted Nov 23, 2012Just to note: this plugin is still very much alive. No changes or additions since version 0.2, since the new stairs work as they are with my code. The plugin is compatible with 1.4.5, anyway.
-
View User Profile
-
Send Message
Posted Sep 11, 2012I see 187 downloads but only one comment. From it, I'm judging the plugin works as should. Or what do you users think? Any ideas for improvements?
I am currently trying to get pistons and especially repeaters to work properly.
-
View User Profile
-
Send Message
Posted Aug 31, 2012We are not using PreciousStones, so do not know the plugin. What sort of integration are you looking for?
-
View User Profile
-
Send Message
Posted Aug 29, 2012@Etsija
Awesome, you think you can integrate with precious stones too?
-
View User Profile
-
Send Message
Posted Aug 23, 2012Yes, it is online. My first public plugin!