跳到正文

Simple Sit

作者:xjuunn

Simple Sit is a minimal Fabric mod focused on clean sitting interactions. It allows players to sit on common blocks with a right click or a command, without requiring OP for normal use.

收藏

截图

介绍

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

Simple Sit

Simple Sit is a minimal Fabric mod focused on clean sitting interactions. It allows players to sit on common blocks with a right click or a command, without requiring OP for normal use.

Features

  • Sit on carpets with right click
  • Sit on stairs with right click
  • Optional support for slabs and beds
  • Hidden seat entity implementation
  • Occupancy detection to prevent multiple players from sitting in the same spot
  • Stand up with Shift
  • Automatically stand up when moving or jumping
  • /sit command for sitting in place
  • Simple admin configuration through commands and config file
  • Server-first design for multiplayer servers

Dependencies

This mod requires:

  • Fabric API
  • Fabric Language Kotlin

Installation

Dedicated server

Place the following files into the server mods directory:

  • simple-sit-<version>-fabricmc<mc-version>.jar
  • fabric-api
  • fabric-language-kotlin

Clients usually do not need to install this mod to join and use it.

Single-player

Single-player runs an integrated server, so the mod and its dependencies must also be installed on the local client.

Usage

Player actions

  • Right click a supported block to sit
  • Press Shift to stand up
  • Move or jump to stand up automatically
  • Use /sit to sit in place

Supported blocks

Enabled by default:

  • Stairs
  • Carpets
  • Slabs
  • Beds

Each category can be enabled or disabled by the administrator.

Commands

Player command

| Command | Description |
| — | — |
| /sit | Sit at the current position |

Admin commands

| Command | Description |
| — | — |
| /sitadmin reload | Reload the configuration file |
| /sitadmin set enabled <true\|false> | Enable or disable the mod |
| /sitadmin set requireSneakRightClick <true\|false> | Require sneak + right click |
| /sitadmin set requireEmptyHand <true\|false> | Require an empty hand |
| /sitadmin set allowStairs <true\|false> | Toggle stair sitting |
| /sitadmin set allowCarpets <true\|false> | Toggle carpet sitting |
| /sitadmin set allowSlabs <true\|false> | Toggle slab sitting |
| /sitadmin set allowBeds <true\|false> | Toggle bed sitting |
| /sitadmin set allowCommandSit <true\|false> | Toggle /sit |

Configuration

Config file path:

config/simple-sit.json

Default content:

{
  "enabled": true,
  "requireSneakRightClick": false,
  "requireEmptyHand": true,
  "allowStairs": true,
  "allowCarpets": true,
  "allowSlabs": true,
  "allowBeds": true,
  "allowCommandSit": true
}

中文

Simple Sit 是一个面向 Fabric 的极简坐下模组,允许玩家通过右键或命令在常见方块上坐下,不需要复杂的界面,也不要求普通玩家拥有 OP 权限。

English documentation: README_EN.md

特性

  • 右键地毯坐下
  • 右键楼梯坐下
  • 可选支持台阶和床
  • 使用隐藏 Seat 实体实现坐下
  • 自动检测座位占用,避免多人重叠坐下
  • 按 Shift 起身
  • 玩家尝试移动或跳跃时自动起身
  • 提供 /sit 原地坐下命令
  • 管理员可通过命令和配置文件控制行为
  • 服务端优先设计,适合多人服务器使用

依赖

安装本模组时需要同时安装:

  • Fabric API
  • Fabric Language Kotlin

安装

多人服务器

将以下文件放入服务端 mods 目录:

  • simple-sit-<版本>-fabricmc<游戏版本>.jar
  • fabric-api
  • fabric-language-kotlin

客户端通常不需要安装本模组即可连接和使用。

单人游戏

单人模式本质上是内置服务器,因此需要在本地客户端同时安装本模组和依赖。

使用方式

玩家操作

  • 右键支持的方块坐下
  • 按 Shift 起身
  • 尝试移动或跳跃时自动起身
  • 输入 /sit 原地坐下

支持的方块

默认支持:

  • 楼梯
  • 地毯
  • 台阶
  • 床

管理员可以按需关闭其中任意一种。

命令

玩家命令

| 命令 | 说明 |
| — | — |
| /sit | 在当前位置坐下 |

管理员命令

| 命令 | 说明 |
| — | — |
| /sitadmin reload | 重新加载配置文件 |
| /sitadmin set enabled <true\|false> | 开启或关闭模组 |
| /sitadmin set requireSneakRightClick <true\|false> | 是否必须潜行右键才能坐下 |
| /sitadmin set requireEmptyHand <true\|false> | 是否必须空手右键 |
| /sitadmin set allowStairs <true\|false> | 是否允许楼梯坐下 |
| /sitadmin set allowCarpets <true\|false> | 是否允许地毯坐下 |
| /sitadmin set allowSlabs <true\|false> | 是否允许台阶坐下 |
| /sitadmin set allowBeds <true\|false> | 是否允许床坐下 |
| /sitadmin set allowCommandSit <true\|false> | 是否允许使用 /sit |

配置文件

配置文件路径:

config/simple-sit.json

默认内容:

{
  "enabled": true,
  "requireSneakRightClick": false,
  "requireEmptyHand": true,
  "allowStairs": true,
  "allowCarpets": true,
  "allowSlabs": true,
  "allowBeds": true,
  "allowCommandSit": true
}

常见问题

Simple Sit 支持哪些 Minecraft 版本?

Simple Sit 支持 Minecraft Java 版 1.21.11,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

Simple Sit 怎么安装?

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

评论

登录后评论和评分

xjuunn 的其他作品

查看全部 →