玻璃瓶,油罐,玻璃罐,碰撞箱修改,水槽播放声音

This commit is contained in:
wenhe committed 2026-09-30 15:22:22 +08:00
1 parent 7ee64b46ad
commit 97520502b7
4 files changed
+42 -36

No files matched your search

@@ -504,6 +504,18 @@ class FurnitureService(BlueFoxServerSystem):
elif _tgt == "rtdd:storage_buckets" and _src in ("rtdd:rubbish_bin_2", "rtdd:b_160"): elif _tgt == "rtdd:storage_buckets" and _src in ("rtdd:rubbish_bin_2", "rtdd:b_160"):
PlaySoundToAllClient((pos[0], pos[1], pos[2], dim), "block.barrel.close", 1.0) PlaySoundToAllClient((pos[0], pos[1], pos[2], dim), "block.barrel.close", 1.0)
# ---- 水槽注水/取水声音(任务五) ----
# 空手右键空槽加水 -> 倒水声
elif _src == "rtdd:flume_0" and _tgt == "rtdd:flume_1":
PlaySoundToAllClient((pos[0], pos[1], pos[2], dim), "bucket.empty_water", 1.0)
# 手持空水桶右键满水取水 -> 装水声(必须放在"倒水"判定之前)
elif _src == "rtdd:flume_1" and _tgt == "rtdd:flume_0" \
and recipe.get("item") == "minecraft:bucket":
PlaySoundToAllClient((pos[0], pos[1], pos[2], dim), "bucket.fill_water", 1.0)
# 空手右键满水直接倒掉 -> 倒水声
elif _src == "rtdd:flume_1" and _tgt == "rtdd:flume_0":
PlaySoundToAllClient((pos[0], pos[1], pos[2], dim), "bucket.empty_water", 1.0)
# ---- 替换后把堆栈写回新方块(此时写才不会被清掉) ---- # ---- 替换后把堆栈写回新方块(此时写才不会被清掉) ----
if bookStack is not None: if bookStack is not None:
if bookStack: if bookStack:
@@ -10,26 +10,26 @@
"netease:aabb": { "netease:aabb": {
"collision": { "collision": {
"min": [ "min": [
0.375,
0, 0,
0, 0.375
0.4
], ],
"max": [ "max": [
1, 0.6875,
0.4, 0.375,
0.7 0.6875
] ]
}, },
"clip": { "clip": {
"min": [ "min": [
0.375,
0, 0,
0, 0.375
0.4
], ],
"max": [ "max": [
1, 0.6875,
0.4, 0.375,
0.7 0.6875
] ]
} }
}, },
@@ -10,26 +10,26 @@
"netease:aabb": { "netease:aabb": {
"collision": { "collision": {
"min": [ "min": [
0.1875,
0, 0,
0, 0.1875
0.2
], ],
"max": [ "max": [
1, 0.8125,
0.85, 0.84375,
0.8 0.8125
] ]
}, },
"clip": { "clip": {
"min": [ "min": [
0.1875,
0, 0,
0, 0.1875
0.2
], ],
"max": [ "max": [
1, 0.8125,
0.85, 0.84375,
0.8 0.8125
] ]
} }
}, },
@@ -42,9 +42,6 @@
"netease:solid": { "netease:solid": {
"value": false "value": false
}, },
"netease:face_directional": {
"type": "direction"
},
"netease:block_entity": { "netease:block_entity": {
"client_tick": false, "client_tick": false,
"movable": false, "movable": false,
@@ -10,26 +10,26 @@
"netease:aabb": { "netease:aabb": {
"collision": { "collision": {
"min": [ "min": [
0.1875,
0, 0,
0, 0.1875
0.2
], ],
"max": [ "max": [
1, 0.8125,
0.85, 0.84375,
0.8 0.8125
] ]
}, },
"clip": { "clip": {
"min": [ "min": [
0.1875,
0, 0,
0, 0.1875
0.2
], ],
"max": [ "max": [
1, 0.8125,
0.85, 0.84375,
0.8 0.8125
] ]
} }
}, },
@@ -42,9 +42,6 @@
"netease:solid": { "netease:solid": {
"value": false "value": false
}, },
"netease:face_directional": {
"type": "direction"
},
"netease:block_entity": { "netease:block_entity": {
"client_tick": false, "client_tick": false,
"movable": false, "movable": false,