跳到正文

TakeASeat

作者:AmberFrost

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

收藏

截图

介绍

中文介绍正在准备中,下面暂时显示原文。

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.

Works 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
1×1 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!

常见问题

TakeASeat 支持哪些 Minecraft 版本?

TakeASeat 支持 Minecraft Java 版 1.19–26.3,共 29 个版本,可用的加载器:Fabric / Quilt。下载时注意选择和你游戏版本一致的文件。

TakeASeat 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric / Quilt,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅服务端。

评论

登录后评论和评分

AmberFrost 的其他作品

查看全部 →