MagicTorches
Wireless Redstone Torches
MagicTorches gives you a way to make wireless redstone torch connections. Each MagicTorch array has one transmitter and any number of receivers. When the transmitter changes its state (to on or off), that change is transmitted to all of the receiver torches.
Receiver Torch Types
Type | Description |
---|---|
Direct | matches the transmitter at all times |
Inverse | opposite of the transmitter at all times |
Toggle | changes state, and ignores all other transmits for a period of time. Can be used to make a torch that changes state when a button is pushed down, but doesn't change back when the button is released. |
Timer | changes state, waits some period of time (ignoring all other transmitted signals), then changes back. |
Delay | waits a period of time before processing the signal. It acts as if there are any number of repeaters between the transmitter and receiver. |
Tutorial Video
This is from the last version, but it shows you quickly how to set things up. Commands have changed slightly, and there are more options now.
German Tutorial (thanks Rogge88):
Commands
/mt create <name> [direct|inverse|toggle|delay|timer] - Creates a MagicTorch array. Receiver torches selected will be direct (default), inverse, toggle (was called delay in last version), delay, or timer.
/mt edit <name> - Edit an existing torch array.
/mt cancel - Cancels a torch creation or edit.
/mt finish - Finishes the creation or edit of a MagicTorch array, and names it <name>.
/mt direct - Sets the next receiver torches selected to be direct receivers.
/mt inverse - Sets the next receiver torches selected to be inverse receivers.
/mt toggle [time] - Sets the next receiver torches selected to be toggle receivers, with the time specified. Default time is specified in config.yml.
/mt delay [time] - Sets the next receiver torches selected to be delay receivers, with the time specified. Default time is specified in config.yml.
/mt timer [time] - Sets the next receiver torches selected to be timer receivers, with the time specified. Default time is specified in config.yml.
/mt delete <name> - Delete the named torch array.
/mt list [name] [page] - paged list torch arrays that you own, or admins can specify a player's name to list their arrays.
/mt info <name> - Shows info for the named torch array.
/mt price - Shows the current price of the array you're editing or creating. Requires economy (vault).
/mt rate - Shows the rates for creating and editing torches. Requires economy (vault).
/mt enable - Admin: Reenables all loaded MT Torch arrays, after they have been disabled.
/mt disable - Admin: Disables all loaded MT Torch arrays.
/mt reload - Admin: Reloads MagicTorches from the database.
/mt prune - Removes any non-loaded MagicTorch arrays from the database.
Permissions
Permission | Description |
---|---|
magictorches.access | basic access to the command. Needed for anyone who will create/edit torches. |
magictorches.create.direct | allows a user to create an array with direct receivers. |
magictorches.create.inverse | allows a user to create an array with inverse receivers. |
magictorches.create.toggle | allows a user to create an array with toggle receivers. |
magictorches.create.delay | allows a user to create an array with delay receivers. |
magictorches.create.timer | allows a user to create an array with timer receivers. |
magictorches.admin | allows a user to see, edit, list and delete all MagicTorch arrays. Also allows user to reload the MT db. |
magictorches.* | Gives all permissions |
magictorches.use | Gives all permissions, except for magictorches.admin |
Default config.yml
The default config.yml can be found here.
Basic Instructions
To begin the creation a MagicTorch array (i.e., a wireless transmitter torch connected to a variety of receiver torches), simply type /mt create <name>. Left clicking on a redstone torch will designate that torch as a wireless transmitter. Right clicking on a redstone torch will add/remove it from the receiver array.
Each receiver torch is assigned a type: direct, inverse, toggle, timer or delay. You can specify the type when you create the torches by typing /mt create [direct|inverse|toggle|delay|timer], or by typing /mt direct, /mt inverse, /mt toggle [time], /mt timer [time], or /mt delay [time] while creating the MagicTorch array. You can have multiple receivers of different types. Types only apply to those receivers selected after you specify the type.
When you've selected all of your torches, type /mt finish to finish creating the array, or /mt cancel to cancel the array creation. It is now active and the transmitter torch will transmit any power changes it receives to every receiver torch in its array.
Editing is similar. To edit, type /mt edit <name>. When reassigning torch types, you must first remove the receiver from the array, and then add it back again with the new type/settings. E.g., to change a direct receiver to an inverse, you would right click to remove the torch from the array, then type /mt inverse, then right click to add the torch back in to the array.
Discussion
Please see the forum for discussion on this plugin.
@sorklin
Please make a ticket, and post your log file and mt.mini file to pastebin (or http://dev.bukkit.org/paste/) and put the link to that in your ticket. I need the files, not screenshots.
@javierastaroth
Ok sorry my mistake. I solved it using /mt reload. But for some reason it keeps "unloading" all the arrays after I close and reload the server.
Also i found that when I unload the server and reload it (and also reload Magic Torches) it changes all my Delay torches with Timer torches.
Hey dude, the plugin seems to be broken in its last version. I mean, I have all my arrays in the mt.mini file but in-game it doesn't load any of them
Not sure what you mean.
Can I just copy and paste my old settings YML?
Problem was fixed in 1.0.2. (He knows, but I'm pasting for the benefit of anyone else reading this).
@sorklin
Hi there! thanks for updating the plugin... Its working fine on 1.2.3 with the exception of one thing.. I tried copying over my database of MT arrays that i had from my 1.1 server and tried to load them into the new server running 1.2.3, however nothing happens... I have tried reloading the database, restarting the server... Have i done something wrong or are they just not compatible?
Otherwise keep up the good work, and great plugin!!
@jkcclemens Fixed and fixed. New perms: magictorches.* for all of em, and magictorches.use for all the of them except for admin.
@sorklin
I'm loving this plugin so far. One of the most useful plugins there are.
I have one query/request. Would it be at all possible to have an actual lever or button act as a transmitter itself, or at least just the block that the the lever/button is attached to?
Would make it a little easier for tight areas that make it hard to hide a torch.
@javierastaroth
I thought about that, but decided against implementing it. It would be fairly trivial to fix though. I'll slate it for the next small revision.
[Bug];[Functionality];[Command]:
Hi! I found a bug of the mechanics of the plugin using version 1.0 in Minecraft 1.2.3:
When you delete an array that had a Redstone Torch set as receiver that was turned off (changed into a common Torch), this Torch is not changed into a Redstone Torch again as it was before set the array.
Thanks!
Thanks. The code is on github for anyone interested.
I created an account for this site solely to post on this comment box. I just want to say this is the absolute most necessary/best plugin I have seen so far. I spend 4 hours hiding all of the circuitry for my in-floor 6-piece trapdoor system with two levers originally. I installed this plugin ,wiped out all my circuitry, and set up wireless switches to control the trapdoor panels in about 5 minutes.
I'm going to be making so many more redstone contraptions now. Excellent job.
If you ever decide to stop supporting this, I will do whatever I can to keep the code going. I know c# and I know java isn't THAT much different. I'll learn what I need to keep this going.
Posted 1.0 with lots of changes. I'll be updating the pages later today, but perms have changed:
Please update to 1.2.3
Is that working on 1.2.3 for everyone? xx ~ Godamn
Ah, I see what you're saying. Okay, I'll add something to keep attachedblockface constant.
@sorklin
i use the build 2036
I'm going to make something awesome with this plugin =)) thx
I can't possibly tell you what's going on from the pictures. Can you tell me which torch is the transmitter, which torches are the receivers (and what type), and what they are doing?
Its working flawlessly on my test server, so I'm thinking it may be how you set it up?