Язык

TakeASeat

TakeASeat

Modrinth

Server-side sitting mod, with customizable block list and conditions for sitting

7.6k загрузок 19 подписчиков обновлено 2mo ago
последняя v1.1.2+26.1 Modrinth
Fabric Quilt 1.19 – 26.1.2 Game-mechanicsUtility

TakeASeat

This is a Minecraft mod that allows you to sit on a (customizable list of) block by right-clicking, and it also allows you to set various restrictions as for whether the player can sit.

Supports Minecraft 1.19 - 1.20 with the Fabric/Quilt modloader, can work purely server-side.

Features

  • Customizable list of blocks you can sit on, including modded blocks.
  • You can prevent the player from sitting if:
    • The player would suffocate
    • The player's hand is not empty
    • The player is too far away (Configurable distance)
    • The seat block is higher than the player (Yes, no more teleporting to the village house ceiling)
    • A block is in the way between the player and the seat. (Useful for exhibition server to prevent people clipping into areas)

These can all be manually turned on/off or changed by editing the config file.

Config

The config file is located in config/takeaseat.json, editable value as follows:

Full config list (Click to Open)

| Key | Description | Default Value | Type |
|----------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------|--------------|
| allowedBlockId | A list of block id that player can right click and sit on | [] (Empty) | String Array |
| allowedBlockTag | A list of block tags that player can right click and sit on, see here for list | ["minecraft:stairs", "minecraft:slabs"] | String Array |
| stairsOffset | Whether to put a offset to the player when sitting on a stairs so that they sits slightly more forward, does not work well with 90 degree turn stairs. | false | boolean |
| ensurePlayerWontSuffocate | Do not allow player to sit if there's a suffocatable block on top.

Note that this only applies to suffocatable block, usually a full
1x1 block and not other non-suffocatable/solid block like stairs
or light block. | true | boolean |
| mustBeEmptyHandToSit | Whether the player must not be holding any item on both hand to sit. | true | boolean |
| blockMustBeLowerThanPlayer | This ensures the block (seat) the player clicked must not be higher
than the player by at most 0.5 meter.

Useful to prevent player from climbing to house ceiling made with stairs. | true | boolean |
| mustNotBeObstructed | This further restricts player by ensuring no solid block exist between the
player and the seat. (Solid block implies the block must not have a collidable area)

This could create false positives,
sometimes requiring player to get closer to the seat before being able to sit, but is
useful on exhibition server that don't want visitors to sit on otherwise inaccessible areas. | false | boolean |
| maxDistance | Distance in block/meter that the player must get closer to before being able to sit

Value less than or equals to 0 means there's no max distance. | 0 | double |

Bugs/Suggestions

If you have any suggestions or bug report, don't hesitate to open an GitHub issue here!

License

This project is licensed under the MIT License.

You may also want to check out SvrUtil for some server commands and slight tweaks!

Версии

Beta
1.1.2+26.1
fabric · 26.1, 26.1.1, 26.1.2 · 2mo ago
Preliminary update to Minecraft 26.1. Currently does a workaround around Minecraft's code for a build limit message, which I would prefer not to, but…
271
Release
1.1.1+1.21.11
fabric · 1.21.11 · 6mo ago
Update to Minecraft 1.21.11
673
Release
1.1.1+1.21.6
fabric · 1.21.6, 1.21.7, 1.21.8 · 12mo ago
Updated for Minecraft 1.21.6!
812
Release
1.1.1+mc1.21.1
fabric · 1.21, 1.21.1 · 13mo ago
- Fix inappropriate default config, causing the mod to not work out of the box
314
Release
1.1.1+mc1.21.5
fabric · 1.21.4, 1.21.5 · 13mo ago
- Fix inappropriate default config, causing the mod to not work out of the box (This build also works on 1.21.4)
304
Release
1.1.0+mc1.21.4
fabric · 1.21.4, 1.21.5 · 15mo ago
- Add LuckPerms support - Add `requiredOpLevel` to require the player to have a certain op level in order to sit.
111
Release
1.1.0+mc1.21.1
fabric · 1.21, 1.21.1 · 15mo ago
- Add LuckPerms support - Add `requiredOpLevel` to require the player to have a certain op level in order to sit.
115
Release
1.0.4+mc1.21.2-pre3
fabric · 1.21.2, 1.21.3, 1.21.4 · 20mo ago
Update to Minecraft 1.21.2
353
Release
1.0.3+mc1.21
fabric, quilt · 1.21, 1.21.1 · 24mo ago
Update to Minecraft 1.21
1.5k
Release
1.0.2+mc1.20.1
fabric, quilt · 1.20, 1.20.1, 1.20.2 · 31mo ago
- [Critical] Hopefully fixes a possible crash when multiple player are sitting, bringing the entire server down - Player will no longer continue to sit mid-air…
1.6k
Release
1.0.2+mc1.19.3
fabric, quilt · 1.19.3, 1.19.4 · 31mo ago
- [Critical] Hopefully fixes a possible crash when multiple player are sitting, bringing the entire server down - Player will no longer continue to sit mid-air…
176
Release
1.0.2+mc1.19.2
fabric, quilt · 1.19, 1.19.1, 1.19.2 · 31mo ago
- [Critical] Hopefully fixes a possible crash when multiple player are sitting, bringing the entire server down - Player will no longer continue to sit mid-air…
435

Комментарии 0

Пока нет комментариев. Будь первым, кто поделится мнением.