Redstone Lamps

Discussion in 'Archived: Plugin Requests' started by MinecraftSped, Jan 7, 2013.

  1. Offline

    MinecraftSped I steal plugins as my own

    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).
     
  2. Offline

    Ne0nx3r0

    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.
     
  3. Offline

    LexLaiden

    VariableTriggers
     
    MrMontor likes this.
  4. Offline

    MinecraftSped I steal plugins as my own

    I'd rather have a plugin that is just for this.
     
  5. Offline

    MrMontor

    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.
     
  6. Offline

    Ne0nx3r0

    MrMontor LexLaiden Will VT really account for the redstone ticks which automatically turn off redstone lamps that aren't actively receiving power?
     
  7. Offline

    MrMontor

    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.
     
  8. Offline

    LexLaiden

    toggle a redstone torch under lamp or in apropriate place
     
  9. Offline

    MrMontor

    That would work, but it doesnt look good on a street lamp i think...
     
  10. Offline

    MinecraftSped I steal plugins as my own

    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.
     
  11. Offline

    MinecraftSped I steal plugins as my own

  12. Offline

    MinecraftSped I steal plugins as my own

  13. Offline

    MinecraftSped I steal plugins as my own

    I shall bump forever!

    Bump

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 8, 2016
  14. Offline

    Rockon999

Share This Page