How do I stop block updates

Discussion in 'Plugin Development' started by ZephaniahNoah, Sep 10, 2017.

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

    ZephaniahNoah

    How can I place a block in the world without causing a block update? For instance how can I place sand in the air without making it fall?
    MC: 1.12
     
  2. Offline

    Zombie_Striker

  3. Offline

    ZephaniahNoah

    I'm developing a plugin. I need to set a block in the world without causing a block update.
     
  4. Offline

    Zombie_Striker

    @ZephaniahNoah
    Then you will need to force a block state change:
    1. Get the block state's instance using Block#getState()
    2. Change is type using that stataye (State#setType)
    3. Call an update, force it, but do not apply gravity. Do this by using State#update(true,false);
     
Thread Status:
Not open for further replies.

Share This Page