I haven't play with python that much so when it comes to writing a script in pyspades, I am kinda left in the dark. I am not sure where to begin. What I would like to see is a basic bare bones example of a complete script. Nothing fancy. I have looked over a few of the existing scripts. But, I don't know what is absolutely needed to communicate with pyspades.
Below is the code for placing a block and sending a message to the player telling them they placed a block. Could someone build a complete script around that code.
- Code: Select all
def on_block_build(self, x, y, z):
self.send_chat('You have placed a block')