Giter VIP home page Giter VIP logo

fabsit's Introduction

FabSit: Sit mod for Fabric

Ever wanted to use /sit on a fabric server? This mod is for you!

Required server-side, but is optional client-side - currently allows for client-side translation if installed. New client features may be added later.

The mod currently implements /sit, /lay and /spin.

The mod eventually aims to provide near-feature parity to the GSit mod for Spigot however implementation is ongoing. Exact behaviour matching is not guaranteed.

Available on Github, Modrinth and CurseForge

Requires the Fabric API

Usage

Simply add the jar file to your server mods directory, and optionally to the client directory.

Players can then use /sit to sit, /lay to lie down or /spin to start spinning.

Players can also right-click on a slab or stair with an empty hand to sit on it; this is disabled by default but can be enabled in the config file.

Permissions

Permissions to pose are granted to all players by default.

fabsit.commands node

sit, lay, spin: specific permission to use appropriate poses

fabsit.reload

Permission to use /fabsit reload to reload the config file from disk. Requires op level 2 by default

Configuration

Use /fabsit reload to reload the config file on-the-fly.

Configuration file with default values is as follows:

{
  // Locale to use for server-side translation
  // Currently only supports en_us
  "locale": "en_us",
  
  // Allow poses underwater?
  "allow_posing_underwater": false,
  
  // Allow poses midair? Note that this will likely
  // interfere with fall damage if enabled
  "allow_posing_midair": false,
  
  // Force players to sit in the centre of a block
  "centre_on_blocks": false,
  
  // Allow players to sit on a stair or slab by right-clicking
  "right_click_sit": false,
  
  // adjusts the behaviour when hiding players using /lay and /spin
  // try disabling this if there is erratic behaviour using these commands
  "strongly_remove_players": true,
  
  // server-enabled poses. If LuckPerms is installed,
  // prefer using permissions instead as they are dynamic
  "allow_poses": {
    "sit": true,
    "lay": true,
    "spin": true
  },
  
  // enable/disable update messages
  "messages": {
    // send a custom message to the action bar
    "action_bar": true,
    // send an error message in chat if the player can't pose
    "pose_errors": true
  }
}

Internationalization

FabSit supports both server-side and client-side translation.

If the mod is installed on the client, the server will send a translation key for the client to translate into its own locale, assuming the mod has support for it.

If not, the server will translate into the locale set in the config file.

Currently the mod is english-only - if you would like to contribute a translation feel free to open an issue or a pull request.

fabsit's People

Contributors

fill1890 avatar

Stargazers

 avatar zlc_3 avatar Benjamin avatar  avatar Narbeh Malekian avatar Diamond avatar Ruslan Mykhailenko avatar Hm Elius Hossain Himel avatar Juan Astudillo avatar  avatar Zekiu_ avatar

Watchers

 avatar

fabsit's Issues

Failure to pose at the same XYZ position multiple times

Description

Attempting to sit in the same block multiple times- as in sitting, shifting to leave, then sitting again -will lead to the incorrect error of "Someone is already sitting here!" when nobody is sitting there. Presumably, this is caused by the Shift event not actually removing the player from that pose in memory.

Solution

The simplest solution to fixing the bug is removing the player's pose on that XYZ block from how you store it in memory. Though, what I believe to be the correct solution to this issue is to have a dictionary/hashmap of the player's GUID and the XYZ position they're in. This way, the player can only be in one pose at a time preventing "ghost poses" of what we're experiencing now.

Notes

Possibly caused by #8? Depending on the complexity of your mod, I might submit an untested PR.

Перевод

Здравствуйте, я бы хотел поменять язык. Как - мне это сделать?

1.19.3 beta bug

When install on both client and server the mod will sit you down the block below the block you are standing on

Its like you sit twice

/sit, /lay or /spin not working under certain conditions

Hey there! Been using this mod for a few months on an SMP, but I've encountered an issue with it:
doing any of the commands doesn't work in certain cases - e.g. when under a stair roof. Atleast that's the only common factor I've been able to find..
There's no console error, no config options affect it (tried most of those). Any ideas?
Using Fabric 1.19.2 with latest FabricAPI and FabSit

1.19.4

Please add support for version 1.19.4

no check for repeated /sit, /lay, /spin

Repeated usage of /sit, /lay, /spin will clip the player underneath the block they're standing on.

suggestion -- There should be an error message telling the player that they're already sitting/laying down etc. so they can't execute the commands again.

player invis not working

for /lay and /spin, the original player's model does not turn invisible like it should.
this is on the latest 1.19 version for fabric

[Bug] Cannot hear users in voice chat when spinning/laying

Not sure if this goes to you or the Simple Voice Chat creator, but I think it might be for you.

Minecraft version:
Minecraft 1.19

Mod Version:
fabric-api-0.56.0+1.19.jar
fabsit-1.4.1+1.19.jar
voicechat-fabric-1.19-2.2.52.jar

Description of the issue:
When a player is laying or spinning, other players are unable to hear them through Simple Voice Chat. Sitting works perfectly fine but spinning and laying does not.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.