Is there a way to place a block (Level->setBlock()) without causing the player being inside the block?
When Level->setBlock() is called, a block will be placed/replaced. If a block is placed/replaced where a player is located, the player will be inside the block. How to prevent the player from being inside the block when calling Level->setBlock()?
You can make the player jump in top of the block using PHP: $player->jump(); Edit: Or teleport the player in top of the block
Uh...just have a check if player is in that place you want to setBlock() at? Or just simply do what erik said..
I would suggest minijaham idea, it’s better to check rather than make the player jump while it’s not on the block position.