Power a block without redstone.

Discussion in 'Plugin Development' started by MCMatters, Aug 1, 2015.

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

    MCMatters

    Is there a way with packets or something that I can make the block have the same behavior of a redstone block but be quartz.
     
  2. Offline

    mythbusterma

    @MCMatters

    You only need to change packets if you want to change what clients see. You can use NMS to unregister the default quartz block and replace it with your own, that has the same behavoiur as a redstone block.
     
  3. Offline

    MCMatters

    @mythbusterma how can i register/unregister it?

    @mythbusterma and i don't want all quartz blocks to have the same behavoiur, and i wanted to set it up that i put a sign on something and that makes that block the sign is on behave like a redstone block

    EDIT by Timtower: merged posts
     
    Last edited by a moderator: Aug 1, 2015
  4. Offline

    mythbusterma

  5. Offline

    teej107

    @MCMatters Turn the block that the sign is placed on into a redstone block and then send block changes to the clients faking the redstone block to a quartz one.
     
  6. Offline

    MCMatters

    @teej107 that was my idea but what event to use to send the block changes
     
  7. Offline

    teej107

    @MCMatters there is a convenient method in Player to send the changes. As for the event, you would probably have to go with the PlayerMoveEvent or use a scheduler to decide when to send those changes.
     
  8. Offline

    MCMatters

    @teej107 Ill see if there is some type of BlockRenderEvent
     
  9. Offline

    teej107

    I don't think there is. Rendering is done client side.
     
Thread Status:
Not open for further replies.

Share This Page