forked from virt-mirrors/Sit
Merge branch '1.20.4' into 1.20.1
# Conflicts: # gradle.properties
This commit is contained in:
commit
6c3607f515
6 changed files with 95 additions and 3 deletions
38
.github/ISSUE_TEMPLATE/bug_report.yml
vendored
Normal file
38
.github/ISSUE_TEMPLATE/bug_report.yml
vendored
Normal file
|
@ -0,0 +1,38 @@
|
|||
name: Bug Report
|
||||
description: Report a bug
|
||||
labels: ["bug"]
|
||||
body:
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: |
|
||||
Please fill out the sections below to help identify and fix the bug
|
||||
- type: textarea
|
||||
id: description
|
||||
attributes:
|
||||
label: Describe your issue
|
||||
placeholder: When I type a command an error appears
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: steps
|
||||
attributes:
|
||||
label: Steps to reproduce
|
||||
placeholder: |
|
||||
1. Go to config
|
||||
2. Enter the text "blah blah"
|
||||
3. Click done
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: expected
|
||||
attributes:
|
||||
label: What was the expected result?
|
||||
placeholder: I expected this to happen
|
||||
- type: textarea
|
||||
id: screenshots
|
||||
attributes:
|
||||
label: Put here any screenshots or videos (optional)
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: |
|
||||
Thanks for reporting this issue!
|
|
@ -9,7 +9,7 @@ yarn_mappings=1.20.1+build.10
|
|||
loader_version=0.14.24
|
||||
|
||||
# Mod Properties
|
||||
mod_version=1.1.8+1.20.1
|
||||
mod_version=1.1.10+1.20.1
|
||||
maven_group=one.oth3r
|
||||
archives_base_name=sit!
|
||||
|
||||
|
|
|
@ -11,6 +11,7 @@ import net.minecraft.block.enums.SlabType;
|
|||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.EntityType;
|
||||
import net.minecraft.entity.decoration.DisplayEntity;
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import net.minecraft.item.BlockItem;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.registry.Registries;
|
||||
|
@ -210,6 +211,8 @@ public class Events {
|
|||
Sit.commandManager = s.getCommandManager();
|
||||
UseBlockCallback.EVENT.register((pl, world, hand, hitResult) -> {
|
||||
if (!Config.handSitting) return ActionResult.PASS;
|
||||
// make sure its a server player
|
||||
if (pl.getClass() != ServerPlayerEntity.class) return ActionResult.PASS;
|
||||
ServerPlayerEntity player = Sit.server.getPlayerManager().getPlayer(pl.getUuid());
|
||||
if (player == null) return ActionResult.PASS;
|
||||
if (hand == net.minecraft.util.Hand.MAIN_HAND && hitResult.getType() == HitResult.Type.BLOCK) {
|
||||
|
|
|
@ -177,7 +177,7 @@ public class Config {
|
|||
Gson gson = new GsonBuilder().disableHtmlEscaping().create();
|
||||
file.write("# Sit! Config\n");
|
||||
file.write("\nversion="+defaults.version);
|
||||
file.write("\n# all available languages: en_us, ru_ru, es_es");
|
||||
file.write("\n# all available languages: en_us, ru_ru, es_es, zh_tw");
|
||||
file.write("\nlang=" + lang);
|
||||
file.write("\n\n# "+lang("general.keep_active.description"));
|
||||
file.write("\nkeep-active=" + keepActive);
|
||||
|
|
51
src/main/resources/assets/sit/lang/zh_tw.json
Normal file
51
src/main/resources/assets/sit/lang/zh_tw.json
Normal file
|
@ -0,0 +1,51 @@
|
|||
{
|
||||
"config.sit.empty": "空",
|
||||
"config.sit.restrictive": "限制",
|
||||
"config.sit.none": "無",
|
||||
"config.sit.category.general": "一般",
|
||||
"config.sit.category.general.tooltip": "一般設定",
|
||||
"config.sit.category.main_hand": "慣用手",
|
||||
"config.sit.category.main_hand.tooltip": "慣用手設定",
|
||||
"config.sit.category.off_hand": "非慣用手",
|
||||
"config.sit.category.off_hand.tooltip": "非慣用手設定",
|
||||
"config.sit.general.keep_active": "保持活躍",
|
||||
"config.sit.general.keep_active.description": "即使在登出/關閉時,也保持實體處於活躍狀態",
|
||||
"config.sit.general.sittable": "可坐的方塊",
|
||||
"config.sit.general.sittable.description": "切換坐在不同方塊類型上的能力。",
|
||||
"config.sit.general.sit_while_seated": "坐下時坐下",
|
||||
"config.sit.general.sit_while_seated.description": "切換已經坐在一個方塊上時,坐在其他方塊上的能力。",
|
||||
"config.sit.general.sittable.stairs": "階梯",
|
||||
"config.sit.general.sittable.slabs": "半磚",
|
||||
"config.sit.general.sittable.carpets": "地毯",
|
||||
"config.sit.general.sittable.full_blocks": "完整方塊",
|
||||
"config.sit.general.sittable.custom": "自訂",
|
||||
"config.sit.general.sittable.custom.description": "啟用新增自訂方塊以供坐下。",
|
||||
"config.sit.general.sittable_blocks": "自訂可坐方塊",
|
||||
"config.sit.general.sittable_blocks.description": "新增自訂可坐方塊!",
|
||||
"config.sit.general.sittable_blocks.description_2": "範例:%s",
|
||||
"config.sit.general.sittable_blocks.description_4": "第一個條目:自訂方塊",
|
||||
"config.sit.general.sittable_blocks.description_5": "第二個條目:坐姿高度(0-1 之間的數字,例如 0.52)",
|
||||
"config.sit.general.sittable_blocks.description_6": "第三個條目:碰撞箱大小(玩家下馬時在實體上方生成的位置)",
|
||||
"config.sit.general.sittable_blocks.description_7": "第四個條目(可選):坐下的必要方塊狀態(輸入「!」排除方塊狀態)",
|
||||
"config.sit.general.sittable_blocks.description_8": "使用「|」分隔不同的條目!",
|
||||
"config.sit.hand": "手部設定",
|
||||
"config.sit.hand.requirements": "需求",
|
||||
"config.sit.hand.requirements.description": "坐下的手部需求。",
|
||||
"config.sit.hand.requirements.description_2": "空 = 手必須是空的",
|
||||
"config.sit.hand.requirements.description_3": "限制 = 為手部狀態設定限制",
|
||||
"config.sit.hand.requirements.description_4": "無 = 隨時可以坐下",
|
||||
"config.sit.hand.restrictions": "限制",
|
||||
"config.sit.hand.restrictions.description": "切換預設的手部限制以供坐下。",
|
||||
"config.sit.hand.restrictions.blocks": "方塊",
|
||||
"config.sit.hand.restrictions.food": "食物",
|
||||
"config.sit.hand.restrictions.usable": "可使用的",
|
||||
"config.sit.hand.restrictions.usable.description": "例如:弓、三叉戟、盾牌",
|
||||
"config.sit.hand.whitelist": "白名單",
|
||||
"config.sit.hand.whitelist.description": "為玩家可以用來坐下的物品建立自訂白名單。",
|
||||
"config.sit.hand.blacklist": "黑名單",
|
||||
"config.sit.hand.blacklist.description": "為玩家無法用來坐下的物品建立自訂黑名單。",
|
||||
"config.sit.hand.list.description": "範例:",
|
||||
"config.sit.hand.list.description_2": "「minecraft:torch」",
|
||||
"key.sit.command.reloaded": "已重新載入設定!",
|
||||
"key.sit.command.purged": "已清除所有活躍的椅子實體!"
|
||||
}
|
|
@ -27,7 +27,7 @@
|
|||
},
|
||||
"depends": {
|
||||
"fabricloader": ">=0.14.21",
|
||||
"minecraft": "=${minecraft_version}",
|
||||
"minecraft": ">=1.21 <=${minecraft_version}",
|
||||
"java": ">=17",
|
||||
"fabric-api": "*"
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue