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
- Skript dev36 (many other versions might work)
- Minecraft 1.12.x (many other versions might work)
- No add-ons
See these bad boys in action:
- Join "jay.lumine.io"
- You will find benches right next to where you spawn and throughout the server
Installation:
- Drop the script anywhere in your scripts folder and reload
How to create a seat/bench (by default):
- Place a redstone block
- Place any stair block above it
- Done! Right-click the stair block to take a seat. Chris Hansen approves.
The "check block" can easily be changed from a redstone block to be anything else in the script's code.
- If you want your players to work for their seats, make them diamond blocks.
- If only admins/operators should be able to create seats, make them bedrock or barrier blocks
But wait there's more!
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)
# your conditions here
benchCheck(block below event-entity's location) = true
benchSit(event-entity, block below event-entity's location)
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)
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)
Have fun!
If you like this resource, please consider buying me a coffee:
PayPal: https://www.paypal.me/langejulian
Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft version listed: 1.12
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Spigot — not every file is mirrored on our own servers.
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.