文档重写 厨具功能实现

This commit is contained in:
wenhe committed 2026-09-07 15:08:32 +08:00
1 parent f55386659b
commit 262b91ba08
28 files changed
+1039 -31

No files matched your search

@@ -255,7 +255,10 @@ class AnimalService(BlueFoxServerSystem):
playerId 可为 None(计时回调时没有玩家),用 LevelId 创建组件。
"""
creator = playerId if playerId is not None else LevelId
if aux is None:
if newBlockName == "minecraft:air":
# 空气没有方向变体,aux 必须强制为 0,否则方向方块(如粪便)无法被正常清空
aux = 0
elif aux is None:
try:
oldBlock = comp.CreateBlockInfo(creator).GetBlockNew(pos, dim)
aux = oldBlock.get("aux", 0)