1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Setblock issue

Discussion in 'Facepalm' started by Khome, Jul 1, 2017.

  1. Khome

    Khome Spider Jockey

    Messages:
    44
    Hi. So I am setting a specific block forexample stone to the players position on move and setting the old block to air. But the glitch I am getting is that even if the player is stationary, the block keeps moving back and forth. That is what can be seen but in reality a block is being set behind the player, then set to air and set in front of the player. and this keeps running continuously. The set block is meant to stay still as the player is still but it acts as if the player is moving up and down.. This is the code I am using.

    What could be causing this issue and how can I solve it?
     
    Last edited: Jul 1, 2017
  2. Khome

    Khome Spider Jockey

    Messages:
    44
    making it set the block at player->x-1 instead of player-x solved the issue
     
  3. Khome

    Khome Spider Jockey

    Messages:
    44
    The issue I'm getting by moving the setblock to behind the player however is that if the player wants to turn around and walk the other direction, the block comes in the way and doesn't let the player go past
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.