on leftclick using a paper: targeted block is anvil if {enchant.stage.%player%} is not set: if name of the held item is "&5Iron Sword Enchant Scroll": set {enchant.stage.%player%} to "Iron Sword" remove 1 of held item from player's inventory message "Silahkan klik item yang ingin di enchant. Klik kanan untuk membatalkan tahap enchant." stop message "Anda masih dalam tahap mengenchant %{enchant.stage.%player%}%" every 1 second: loop all players: if {enchant.stage.%loop-player%} is set: wait for 10 seconds if {enchant.stage.%loop-player%} is set: if {enchant.stage.%loop-player%} is "Iron Sword": delete {enchant.stage.%loop-player%} give a paper named "&5Iron Sword Enchant Scroll" to the loop-player send "Limit waktu untuk meng enchant telah habis. Silahkan mengulang proses enchant kembali." to loop-player on rightclick: if {enchant.stage.%player%} is set: if {enchant.stage.%player%} is "Iron Sword": delete {enchant.stage.%player%} give a paper named "&5Iron Sword Enchant Scroll" to the player message "Berhasil membatalkan proses enchant." stop on leftclick using a wooden sword or stone sword or iron sword or diamond sword: targeted block is anvil if {enchant.stage.%player%} is "Iron Sword": if player is not holding an iron sword: message "&cAnda hanya dapat meng enchant Iron Sword menggunakan scroll ini, enchant dibatalkan." give a paper named "&5Iron Sword Enchant Scroll" to the player delete {enchant.stage.%player%} stop if name of held item of the player is "&8Scimitar": chance of 100%: wait for 1 tick make player execute command "/nbt item display.Name = ""&4[+1] &8Scimitar"" " wait for 1 tick make player execute command "/nbt item display.Lore rem" wait for 1 tick make player execute command "/nbt item display.Lore[0] = ""&c32-57 DMG"" " delete {enchant.stage.%player%} #chance of 6%: # make player execute command "/nbtitem name &4[+4] &8Scimitar" # make player execute command "/nbtitem lore delall" # make player execute command "/nbtitem lore add &c57-123 DMG" # send "&2Upgrade sukses! ke level 4" to player stop