HomeJavaModsTake a Seat [No add-ons]
[​IMG]

This script allows players in survival or adventure mode to take a seat anywhere they like to. The script is quite lightweight and will under no circumstances lag your server.


Requirements

See these bad boys in action:

Installation:

How to create a seat/bench (by default):
[​IMG]

The "check block" can easily be changed from a redstone block to be anything else in the script's code.
You can also very easily set in the script's code, in which worlds of your server the seats should be functional, if you want to. By default, they will work in all worlds.

But wait there's more!
[​IMG]
You can also make mobs/NPCs take a seat!

If you want to do that, you must apply some code on your own - it depends on your NPCs, naturally.
Code (SKRIPT):
on spawn of villager:
    # your conditions here
    benchCheck(block below event-entity's location) = true
    benchSit(event-entity, block below event-entity's location)
Or something like this, if you wanna go funky (not actually recommended):
Code (SKRIPT):
every second:
    loop all zombies:
        loop-entity's vehicle is not set
        benchCheck(block below loop-entity's location) = true
        benchSit(loop-entity, block below loop-entity's location)
Please note that how you make your NPCs use the seats is your own business and not a subject of support - unless you encounter issues with my code.

Have fun!

If you like this resource, please consider buying me a coffee:
PayPal: https://www.paypal.me/langejulian
Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Take a Seat [No add-ons] is a free Minecraft Java mod. Compatible with Minecraft 1.12. Downloaded 327 times (via Spigot). Download it and open it directly in the game.

Explore more