Separate names with a comma.
Comments in 'Plugin Development' started by Hotshot_9930, Jul 10, 2015.
Hi, how would i make something happen as a player steps on a block?
When player move check the block beneath him...
If i knew how to do that i wouldnt have made this thread
What do you want to do with this?
Give the player an effect as they step on a certain block.
Please search before asking.
I already made that. Have a look. You can edit the config for new effects and new blocks.
It will be soon approved on the forums. At least, I hope!
He is asking how to make it. This is not the plugin request forum.
He can use your tools to unphar it, if he wants to get the code and look at it.
(Do not submit it again to the forums. You will get banned.)
PlayerMoveEvent... Is that the only way?
No. Save the player's last position and use a scheduled task to check less frequently. But too complicated for some of our friends here.
Why would you choose that path? I don't understand why anyone would use a task to check if the player have a block beneath it. I could do that if we are going to do a massive thing(Like generate a hole new world) when you have a specific block beneath, but for simple task....
Because it may lag to check things per ticks as in PlayerMoveEvent.