提供物品放置方块功能
This commit is contained in:
1 parent
e65cebaec1
commit
43c1859aad
8 files changed
+190
-6
No files matched your search
+7
-1
@@ -198,7 +198,13 @@ class ChaoguoService(BlueFoxServerSystem):
|
||||
self.consumeItem(playerId, itemDict, consume)
|
||||
|
||||
# 替换被右键的表面方块(米饭变盖饭 / 菜品变盖饭 / 蛋炒饭变熟)
|
||||
self.replaceBlock(pos, dim, recipe["target"], playerId)
|
||||
# giveItem: 新成品菜体系 —— 被点方块消失, 改为给玩家"成品菜物品"(可再放置出对应方块)
|
||||
giveItem = recipe.get("giveItem")
|
||||
if giveItem:
|
||||
self.replaceBlock(pos, dim, "minecraft:air", playerId)
|
||||
self.giveItemToPlayer(playerId, giveItem, 1, pos, dim)
|
||||
else:
|
||||
self.replaceBlock(pos, dim, recipe["target"], playerId)
|
||||
self._clearWokData(dim, pos)
|
||||
|
||||
return True
|
||||
|
||||
Reference in new issue
Block a user