Kod:
options:
item:Stone
name:Stone
lore:a
on drop:
if event-item is {@item} named "{@name}" with lore "{@lore}":
cancel event
on death:
loop drops:
if loop-item is {@item} named "{@name}" with lore "{@lore}":
remove loop-item from drops
on inventory click:
if item is {@item} named "{@name}" with lore "{@lore}":
if type of player's current inventory is not crafting table inventory: #player inventory or chest inventory or dispenser inventory or dropper inventory or furnace inventory or workbench inventory or enchanting table inventory or brewing stand inventory or merchant inventory or ender chest inventory or anvil inventory or smithing inventory or beacon inventory or hopper inventory or shulker box inventory or barrel inventory or blast furnace inventory or lectern inventory or smoker inventory or loom inventory or cartography table inventory or grindstone inventory or stonecutter inventory:
cancel event
command itemver:
executable by: players
trigger:
give {@item} named "{@name}" with lore "{@lore}" to player
Oyuncu envanteri yerine crafting table envanteri yazmamamın sebebi anlamadığım bir şekilde böyle yazınca çalışması ama sürüme bağlı bir hata ise sağ taraftan player inventory olan kısmı kopyala-yapıştır yaparak düzeltebilirsin. Eşyanın özelliklerini options olarak gir, en alttaki komut işine yaramıyorsa silebilirsin.