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.
I'm reviewing our mods to migrate to Forge (and possibly Sponge). I know Sorklin has not been around but I wanted to verify if this was going to be migrated to one or the other, or if we should make other plans for 1.8. Thanks to anyone who can provide any information.
@Durand1w
The system itself -works- still on the new Spigot-Craftbukkit 1.8 builds, but no, it still saves it under the players name, not their UUID.
Made an array, then ran a "cat mt.mini" (the MT database file) on the server box, and it shows: test owner:MyUserName data:Name{test};Transmitter{Location{world=CraftWorld{name=world},x=353.0,y=71.0,z=-127.0,pitch=0.0,yaw=0.0}};Receiver{Location{world=CraftWorld{name=world},x=357.0,y=70.0,z=-127.0,pitch=0.0,yaw=0.0}:Type{1}};
This still works on 1.7.2, but has anyone been able to test yet to see if this is compatible with 1.7.10 and UUID changes?
Hi, I have an issue with this plugin. I made a transmitter and receiver, but while I was selecting receivers I was holding a torch and accidentally placed one down. When I went to delete it, it turned it into a transmitter. Unfortunately you can't click on a transmitter again to remove it, so I thought, ok, I'll just do /mt finish and then delete the torch. When I did that, it deleted the entire array. I had 100+ receivers set up so that was frustrating. Please add a way to remove transmitters, maybe make it so you can't place any blocks while selecting transmitters and receivers, and also make it so when you delete a transmitter it doesn't delete the entire array >_>
Other than that it's a good plugin, thank you for making it.
Hi,
Bit late, Didn't see what you said before :o
But I use MyWorlds (http://dev.bukkit.org/server-mods/my-worlds/) and I've confirmed the torches are in the correct place.
(If you've forgotton what I said, I was having multiple errors with NPE's and you said if I've confirmed they're in the correct place, Tell you my multiworld plugin so that you can add it to the SoftDepend list)
@Daikenkaiking
But you couldn't have a direct torch then which is hard for if you're in small spaces and can't fit a clunky inverse piece of redstone in...
Also, What about things like a delay and a timer?
@harryjamesuk
Just make a delay/timer, and then put an inverse switch after it. It's basic redstone, no need to make it harder. Lol
Would be nice if you could add multiple extension things (IDK what you call them)
Like an inverse receiver that also has a 10 second delay for example.
Is it possible to have 2 transmitters and 1 reciever? I am trying to make a "3-way" switch, like a 2 light switches in a room that turns on same light no matter what the other switch is doing.
Sorry for the delay. Updated for 1.4.x. (when file is approved you can download MT 1.1.0)
@Durand1w
me too!
I can confirm as well that the torches will pop off on 1.4.6.
Problem with 1.4.6: When creating an array, Torches will not keep to the side of the block they are fixed on. This causes the torches to break onto the floor when changed.
-Begs for update-
Can you please update this amazing plugin for 1.4.6.The arrays is no longer working in my world!
NPE is a NullPointerError. If you're seeing these on load, it means that the MT plugin can't find the magic torch it lists. Either the torch is missing, or the multiworld plugin you are using is loading after the MT plugin. If you're sure the transmitter torches for those arrays are where they are supposed to be, then give me the name of your Multiworld manager and I'll add it to the softdepend.
What's an NPE?
2012-12-08 08:34:43 [WARNING] [MagicTorches] NPE on torch:
ARRAY NAME
And this appears on all of my torches (P.S: I put the
ARRAY NAME
in as that's where the name of the torch/array goes).@sorklin
Good point: Rogasmo, that made no sense
I have a annoying problem trying to add receivers if there is no block below the torch it won't let me right click on torch to make it a receiver. I have my torches set just like in your demo video but it doesn't let me add them as receivers. If i put torch on side of block then it lets me add it.