diff --git a/config/fsit.yml b/config/fsit.yml new file mode 100644 index 0000000..45b4993 --- /dev/null +++ b/config/fsit.yml @@ -0,0 +1,41 @@ +version: 4 +# Whether to use the server-side configuration. +use_server: false +sitting: + # Controls sitting behaviour. Possible values: nothing, discard (if no block underneath sitting player), gravity. + behaviour: "gravity" + # Places seat in the center of the block + should_center: true +on_use: + # Allows to start sitting on specific blocks by interacting with them. + sitting: true + # Allows to start riding other players by interaction with them. + riding: true + # The maximum distance to a target to interact. + range: 1 + # Prevents players from sitting in places where they would suffocate. + check_suffocation: true + # Activate only when interacting with an empty main hand. + require_empty_main_hand: true + # List of blocks or block types (e.g., "oak_log", "#logs") that are available to sit on by interacting with them. + blocks: + - "#minecraft:slabs" + - "#minecraft:stairs" + - "#minecraft:logs" + - "minecraft:dried_ghast" +on_sneak: + # Allows to start sitting by double sneaking while looking down. + sitting: true + # Allows to start crawling by double sneaking near a one-block gap. + crawling: true + # The minimum angle must be looking down (in degrees) with double sneak. + min_pitch: 70.0 + # The window between sneaks to sit down (in milliseconds). + delay: 500 +commands: + # Whether to register /fsit command. Requires restart + root: true + # Whether to register /sit command. Requires restart + sit: true + # Whether to register /crawl command. Requires restart + crawl: true diff --git a/index.toml b/index.toml index 5ffc63a..3ef55da 100644 --- a/index.toml +++ b/index.toml @@ -32,6 +32,10 @@ hash = "e9055190bfa374acdacc0d91e15236c809a4e5fdcdc09f901d64ca0c2ede4b7c" file = "config/ferritecore.mixin.properties" hash = "5c39746c2be5b7eabe3cf2fa6b02af9ef80d805bab1c1c5207330a79c7306e4c" +[[files]] +file = "config/fsit.yml" +hash = "9698bf9ab895f40e10f8072f8f4b0b764e7f6265e91a85e6e80266cac3839da3" + [[files]] file = "config/image2map.json" hash = "ba5e873da04a8ed4751c9cfb2135b8ea0b903da994de16e0944ca769988b1c7d" diff --git a/pack.toml b/pack.toml index aff9f74..c2ab6e0 100644 --- a/pack.toml +++ b/pack.toml @@ -6,7 +6,7 @@ pack-format = "packwiz:1.1.0" [index] file = "index.toml" hash-format = "sha256" -hash = "da3f0546fff2936599b4ac3876277ff59c9ea6929540e2b348443d58217afd91" +hash = "45330df51e7a4b5be6eb6b7379ca386bbe2e3fb7418b1417f96e7390a10c27f3" [versions] fabric = "0.18.4"