McWeb
Kızıltaş Madencisi
- En iyi cevaplar
- 0
Bugün bir skript yazdım fakat şöyle bir problem var tabelaya sadece Kılıçlar veya Yay ile tıklayınca hazırladığım menü açılıyor elimle veya farklı bir eşya ile tıklarsam menüde hiçbir eşya gözükmüyor sadece tepede menünün adı yazıyor.
Yazdığım kod
cabukesyaal0 ve cabukesyaal1 komutları düzgün bir şekilde çalışıyor
Yazdığım kod
Kod:
on right click on sign:
if line 1 is "1":
if line 2 is "2":
if player have permission "%{pperm}%":
set line 1 to "&61"
set line 2 to "&62"
set line 3 to "&63"
set line 4 to "&64"
set {sptlshop} to location of clicked block
on break of a sign:
if {sptlshop} is location of event-block:
delete {sptlshop}
on right click on sign:
if {sptlshop} is location of event-block:
execute player command "/mcshoptl"
command /mcshoptl:
trigger:
open chest with 3 rows named "&c&l%{pbirim}% Market" to player
format slot 0 of player with 160:14 named "" to close
format slot 1 of player with 160:14 named "" to close
format slot 2 of player with 160:14 named "" to close
format slot 3 of player with 160:14 named "" to close
format slot 4 of player with 160:14 named "" to close
format slot 5 of player with 160:14 named "" to close
format slot 6 of player with 160:14 named "" to close
format slot 7 of player with 160:14 named "" to close
format slot 8 of player with 160:14 named "" to close
format slot 9 of player with {ek} to close then run "cabukesyaal0"
format slot 17 of player with {vk} to close then run "cabukesyaal1"
format slot 18 of player with 160:14 named "" to close then run ""
format slot 19 of player with 160:14 named "" to close then run ""
format slot 20 of player with 160:14 named "" to close then run ""
format slot 21 of player with 160:14 named "" to close then run ""
format slot 22 of player with 160:14 named "" to close then run ""
format slot 23 of player with 160:14 named "" to close then run ""
format slot 24 of player with 160:14 named "" to close then run ""
format slot 25 of player with 160:14 named "" to close then run ""
format slot 26 of player with 160:14 named "" to close then run ""
on script load:
set {ek} to 276 named "&6&lEfsanevi Kılıç"
enchant {ek} with sharpness 5 and unbreaking 4
on script load:
set {vk} to 276 named "&6&lVIP Kılıç"
enchant {vk} with sharpness 6 and unbreaking 7
command /cabukesyaal0:
trigger:
if {para.miktar.%player%} is higher than 10:
subtract 10 from {para.miktar.%player%}
give {ek} to player
command /cabukesyaal1:
trigger:
if {para.miktar.%player%} is higher than 10:
subtract 10 from {para.miktar.%player%}
give {vk} to player