箭袋 退出游戏后 无法获取 bug
This commit is contained in:
1 parent
e8a22d8cb3
commit
e38c2b4b38
2 files changed
+150
-7
No files matched your search
@@ -22,25 +22,34 @@ CookingService 启动时会自动把两边的数据合并成一份字典,O(1)
|
||||
maxCount: 记录型最多存多少(箭桶32只、盘子架5个等)
|
||||
time: 计时型转换需要多少秒
|
||||
tool: 特定工具要求(如"剑")
|
||||
arrowMode: 箭桶专用,"store"=存箭模式,"retrieve"=取箭模式
|
||||
存箭:批量存入手中所有箭(至多maxCount),支持普通箭+药水箭
|
||||
取箭:一次性取回方块记录的所有箭
|
||||
"""
|
||||
|
||||
BLOCK_SWITCHES = [
|
||||
|
||||
# 一、箭桶
|
||||
# ============================================================
|
||||
# 【放箭】箭桶_0 → 箭桶_1
|
||||
# 【存箭】箭桶_0 → 箭桶_1
|
||||
# 支持所有箭类型:minecraft:arrow(普通箭)、minecraft:tipped_arrow(药水箭)
|
||||
# 批量存入手中所有箭(至多 maxCount 只),记录箭类型(itemName + auxValue)
|
||||
# 例如:手持 64 只中毒之箭右键 → 存 32 只,手上剩 32 只
|
||||
# 手持 31 只中毒之箭右键 → 存 31 只,手上清空
|
||||
{
|
||||
"source": "rtdd:arrowbarrel_0",
|
||||
"item": "minecraft:arrow",
|
||||
"item": None,
|
||||
"target": "rtdd:arrowbarrel_1",
|
||||
"consume": 1,
|
||||
"consume": 0,
|
||||
"type": "switch",
|
||||
"record": True,
|
||||
"recordType": "count",
|
||||
"maxCount": 32,
|
||||
"giveItem": None,
|
||||
"arrowMode": "store",
|
||||
},
|
||||
# 【取箭】箭桶_1 → 箭桶_0
|
||||
# 一次性取回方块内记录的所有箭(数量、类型按记录来)
|
||||
{
|
||||
"source": "rtdd:arrowbarrel_1",
|
||||
"item": None,
|
||||
@@ -50,6 +59,7 @@ BLOCK_SWITCHES = [
|
||||
"record": True,
|
||||
"recordType": "count",
|
||||
"giveItem": None,
|
||||
"arrowMode": "retrieve",
|
||||
},
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user