first im korean sorry to my english is bad
command /test:
trigger:
set {_a} to a chest inventory with 1 row named "just mapleeeee"
set slot 8 of {_a} to an anvil named "let's mapleeeee"
open {_a} to player
# when player try to move chest inventory item make it cancel
on inventory click:
if event-item is anvil:
cancel event
this works fine. But I also want to strengthen the item in slot 0 when I click on the anvil.
If a cancel event occurs when I click on the anvil, I can't strengthen it when I click on the anvil.
So I used on inventory drag syntax but this doesn't work
+ Thank you for reading my poor English.
command /test:
trigger:
set {_a} to a chest inventory with 1 row named "just mapleeeee"
set slot 8 of {_a} to an anvil named "let's mapleeeee"
open {_a} to player
# when player try to move chest inventory item make it cancel
on inventory click:
if event-item is anvil:
cancel event
this works fine. But I also want to strengthen the item in slot 0 when I click on the anvil.
If a cancel event occurs when I click on the anvil, I can't strengthen it when I click on the anvil.
So I used on inventory drag syntax but this doesn't work
+ Thank you for reading my poor English.