Flickering Lamps

Discussion in 'Archived: Plugin Requests' started by antikx, Oct 4, 2012.

  1. Offline

    antikx

    Plugin category: not sure

    Suggested name: Lamp Flicker

    What I want:
    Right clicking a redstone lamp will change it into a flickering redstone lamp. A config file will determine the frequency of OFF and ON states.

    The config file will will have a line that will say:
    ON: <LowerValue> <HigherValue>
    The values you put would be used to generate a random number between the LowerValue and HigherValue that the lamp would stay on for (number of ticks, or seconds depending on what you think would be best).

    The second line would be:
    OFF: <LowerValue> <HigherValue>
    ...and would function the same as above but instead for the off state of the lamp.

    Each time the state would change it would generate a new number for the delay (in the range specified in the config) till the next state change.

    Additionally it might be cool to have the lamp in the ON state provide power to nearby redstone. Then it could power a modded juke box that plays the florescent buzz sound. This is optional.

    My vision is to use this in a horror SCiFi map. This should create some nice ambiance.

    Ideas for commands: No commands needed for this plugin unless you would prefer to use a command to change a lamp to a flicker lamp by looking at and running that command.

    Ideas for permissions: lampflicker.create

    By default only ops can create.

    When I'd like it by: At your leisure.

    Edit1: Updated it with the range idea I mentioned below.
     
  2. Offline

    Hoolean

    The flickering would cause the Minecraft client to recheck the lighting for every time the state changes, causing fairly large fps lag!
     
    AndyMcB1 likes this.
  3. Offline

    antikx

    Thanks for the reply.
    ya, I figured as much. I wasn't planning using too many and they would tend to be used in small confined areas.
    perhaps the config file should have a range for each ON/OFF state. Like:
    ON: 3-7
    OFF: 5-10
    (above #'s are in seconds would obviously be large if it used ticks)
     
  4. Offline

    Woobie

    1. Redstone torch
    2. Solid block
    3. 2 repeaters
    4. 2 redstone wire
    5. A lamp
    6. A lever
    7. Profit?
     
  5. Offline

    Hoolean

    That's what I was going to say but then I saw he wanted random delays!
     
  6. Offline

    Woobie

    I'm too lazy to read the request, becouse it can be done without a plugin :D
     
  7. Offline

    antikx

    LOL.
    Ya, I want it to look like in the movies where you are walking through a damaged spaceship hallway and lights are flickering on and off to create a more tense and scary atmosphere.
     
  8. Offline

    Reptar_

    Have someone manually flicker the lights. :3
     
    AndyMcB1 likes this.
  9. Offline

    JjPwN1

    antikx
    You can still do some magic with this with redstone. Now, of course, I don't know how to do random delays between the redstone power being sent, but I'm sure Google knows.
     
  10. Offline

    antikx

    Ya, thank you. There is some stuff out there... like this:
    The problem is that it will take up a lot of room and will be quite challenging to get this circuit to all the locations where these lamps will be located.
     
  11. Offline

    Woobie

    This doesnt create random delays.
    It is possible to make random delays with redstone, but it will take quite alot of room.
     
  12. Offline

    newboyhun

    If you really need a plugin for this,i will make it tomorrow night GMT + 1.
     
  13. Offline

    antikx

    Thanks. No hurry.
    This is for my next project. I just want to line up all my ducks. :)
     
  14. Offline

    newboyhun

  15. Offline

    antikx

    Thank you! I will give it a try tonight.
    Appreciate the help!

    Hello.
    I'm struggling to get it to work.
    Could you kindly walk me through what I should be doing?
    I figured out that it requires vault. Is there anything else I need?
    I've tried putting a redstone torch on all six sides of the lamp, I've tried wiring it up to active red stone powder.
    Hmmmm... I hope I'm not missing something obvious

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 29, 2016
  16. Offline

    newboyhun

    Ohh sorry i forgot to tell you how it's works =S
    First you need permission: FlickeringLamps.create
    And a stone in your hand (changeable in the config)

    Right click on a redstone lamp with the stone and it will flick.

    Currently only works with redstone,so it's power the redstones around it in 4 direction.
     
  17. Offline

    antikx

    Ya1 it works! thanks.
    Good job.
    As an added bonus you can put one drop of redstone on the other side to power on something else when the light goes on. cool!
     

Share This Page