Started by
alex450
on
Topic category: Advanced modding
Good evening! I created this topic for one good reason.
I created a special mod for my friends and me for our own server.
I have created a class chair and would like my character to sit on the chair as in the CrayFish mod "furnitureMod", but I do not know how to make a command in the "procedure" tab?
If anyone finds out how to do it, I will be grateful.
I can think of 2 possible ways. One is to use commands (in procedures) to summon an invisible boat on the chair. The difficulty is that you could move the boat, which would be an issue.
The other is to teleport the player to the chair when it's right-clicked on and immobilize the player (you could do this with high levels of slowness. Then add a keybind to set a player logic nbt tag to true. Go back to your original procedure and add on the end - if the player logic nbt tag is true, the teleport the player 1 block upwards - on top of the chair, remove slowness from them, and set the nbt tag to false again. The only issue with this method is that the player appears to be standing in the chair - their legs are inside it.
Sir_cookie98 Sorry for my English. I'm through a translator. How can I actually do this? How to make an invisible trolley?