How to write a chair plug-in

w2333333

Member
Hey all friends, I’m trying to learn code here, but I can’t understand how can I write a chair plug-in which I only need if you touch the block twice and you can sit on the chair, I see a function here
Event.setseatposition( )
How can I use this? What do I fill in ( )?A36A7F4D-F529-45AE-A501-D4BE1249FB2A.jpeg
 

PetteriM1

Resource Mod
Staff member
Hey all friends, I’m trying to learn code here, but I can’t understand how can I write a chair plug-in which I only need if you touch the block twice and you can sit on the chair, I see a function here
Event.setseatposition( )
How can I use this? What do I fill in ( )?View attachment 2513
First I suggest you to lean Java properly. When you have done that use the help of your IDE's suggestions and the Javadocs.
One example of a chair plugin can be found from here: https://github.com/Nukkit-coders/PmChair/blob/master/src/main/java/maru/PmChair.java
 
Top