玻璃瓶,油罐,玻璃罐,碰撞箱修改,水槽播放声音
This commit is contained in:
1 parent
7ee64b46ad
commit
97520502b7
4 files changed
+42
-36
No files matched your search
+12
@@ -504,6 +504,18 @@ class FurnitureService(BlueFoxServerSystem):
|
||||
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)
|
||||
|
||||
# ---- 水槽注水/取水声音(任务五) ----
|
||||
# 空手右键空槽加水 -> 倒水声
|
||||
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:
|
||||
|
||||
Reference in new issue
Block a user