Changing a blocks type without triggering a block update

Discussion in 'Plugin Development' started by SoThatsIt, May 29, 2013.

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

    SoThatsIt

    hey is there a way to change a block type without triggering a block update. I dont really mind if it involves nms code because i can just use refelection to get to it.
     
  2. Offline

    Jogy34

    block.setTypeIdAndData(id (int), data (byte), applyPhysics(boolean));

    If the last variable if false it won't update the block of the blocks around it.
     
  3. Offline

    SoThatsIt

    cheers! i will try it out

    Damn, seems like it doesnt want to work, if it makes it clearer what i am trying to do, i am trying to change a redstone torch on to redstone torch off but it almost immediately returns to on state :p

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 1, 2016
  4. Offline

    Jogy34

    Try using a BlockRedstoneEvent, I know that fires for redstone lamps so I would assume it would fire for redstone torches as well.
     
  5. Offline

    SoThatsIt

    yeah thats what i was using before but it was just very glitchy
     
Thread Status:
Not open for further replies.

Share This Page