Basically I need a plugin that when you right click a redstone lamp after using a command, it would turn into the on redstone lamp. Commands: /lamp Permissions: lamp.create If, whoever attempts this, could send me the source code, I would love you forever :3 Side Note: If this plugin already exists, could you please link me to it. I do not want one that doesn't use permissions (or if it doesn't, doesn't have source code available either).
This could be done by saving a list of all the clicked redstone lamps, and then in the BlockRedstoneEvent do event.setNewCurrent(15) if the block is in that list. I do a very similar thing in my QuantumConnectors plugin. It's fairly straightforward, but would also require a check onstartup and blockbreak to remove blocks that should no longer be kept alive... And storage to keep the list between resets.
You can set up VT for this and nothing else. Its like exactly the same (altough you need a brain for it) LexLaiden A simple klick trigger with the toggleblock scriptline would be enough right? No enormous amounts of code in an extra file needed for something like that. MinecraftSped Just install VT, play and learn a bit about the /vtclick command and you will have it done in about 10 minutes.
MrMontor LexLaiden Will VT really account for the redstone ticks which automatically turn off redstone lamps that aren't actively receiving power?
Hmmm i see whats the problem.... Gonna try it out now with @TOGGLEBLOCK. I will reply here if it works or not. //Edit: My bad, toggleblock only turns it on for about half a second. It should be possible though, but i dont think everyone can do it. At least i cant do it.
I just need a separate plugin because I need standalone lamps that have all 6 sides visible. I don't exactly want a lever or torch showing.
I shall bump forever! Bump EDIT by Moderator: merged posts, please use the edit button instead of double posting.