炒锅上油播放兹拉声; 修复黑椒牛排翻炒缺少方块实体不计数
This commit is contained in:
1 parent
eb78790043
commit
88b5591d1e
2 files changed
+10
No files matched your search
+5
@@ -55,6 +55,9 @@ from ..ChujuData import (
|
||||
# ---- 统一分发器 ----
|
||||
from ...service.FeatureDispatcher import FeatureDispatcher
|
||||
|
||||
# ---- 炒锅上油音效(兹拉声 random.fizz, 与炒锅翻炒同款) ----
|
||||
from ....ModUtil.ServerUtil import PlaySoundToAllClient
|
||||
|
||||
|
||||
class ChujuService(BlueFoxServerSystem):
|
||||
"""
|
||||
@@ -232,6 +235,8 @@ class ChujuService(BlueFoxServerSystem):
|
||||
return True
|
||||
self._setCarriedItem(playerId, SPATULA, False) # 替换手持为锅铲
|
||||
self.replaceBlock(pos, dim, OIL_PAN, playerId)
|
||||
# 上油时播放一次"兹拉"声(random.fizz, 速率1.4, 与炒锅翻炒同款)
|
||||
PlaySoundToAllClient((pos[0], pos[1], pos[2], dim), "random.fizz", 1.4)
|
||||
return True
|
||||
|
||||
def _setCarriedItem(self, playerId, itemName, enchanted):
|
||||
|
||||
@@ -44,6 +44,11 @@
|
||||
},
|
||||
"netease:face_directional": {
|
||||
"type": "direction"
|
||||
},
|
||||
"netease:block_entity": {
|
||||
"client_tick": false,
|
||||
"movable": false,
|
||||
"tick": false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user