[HELP] Creating a new redstone power source block??

Discussion in 'Plugin Development' started by _Waffles_, Jan 18, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    _Waffles_

    This isn't really to do with bukkit but the best and most helpful modders are on bukkit forums so I thought I'd ask here :3
    My problem is creating a new block that gives off redstone power when activated, sort of like a button. I've looked through the button block's source code but whenever I try to use what I find it just does nothing.
    Thanks for your help,
    - Waffles.
     
  2. Offline

    fireblast709

    If you can wait for 1.5, you have the "Block of Redstone". If you can't, you can try this <writing code atm>

    [update] no luck yet
     
  3. Offline

    tommycake50

    listen onBlockClicked and change the state.
    so keep the state in metadata and then if it is in a state eg: 1
    return true in public boolean isProvidingStrongPower
    wait a few ticks and then invert the state
    basically thats what you do.
    in code...
    well i dont have the time to write it out.
     
  4. Offline

    _Waffles_

    I have done that but changing isProvidingStrongPower does nothing at all for me.
     
  5. Offline

    tommycake50

    maybe you need to update the surrounding blocks
     
  6. Offline

    _Waffles_

    tried that too Q_Q
     
  7. Offline

    eamon12

    Wait till 1.5 I guess
     
Thread Status:
Not open for further replies.

Share This Page