- En iyi cevaplar
- 1
Kodda hata olmuş bunu dener misin:@bartuceylan gelen çubukla seçiyorum fakat herhangi bir şey çıkmıyor
Kod:
command /ağaçseçici:
permission: agac.sec
trigger:
give 1 of stick with name "&a&lAğaç Seçici" to player
stop
command /ağaçsilici:
permission: agac.sil
trigger:
give 1 of stick with name "&c&lAğaç Silici" to player
stop
on rightclick with stick:
if name of held item is "&a&lAğaç Seçici":
if event-block is 17 or leaves:
if {agac.%location of event-block%} is not set:
set {agac.%location of event-block%} to location of event-block
send "&aBu blok artık yenilenecek!"
stop
send "&cBu blok zaten kaydedilmiş!"
stop
send "&cSadece odun ve yaprakları seçebilirsin!"
stop
if name of held item is "&c&lAğaç Silici":
if event-block is 17 or leaves:
if {agac.%location of event-block%} is set:
delete {agac.%location of event-block%}
send "&aBu blok artık yenilenmeyecek."
stop
send "&cBu blok zaten yenilenmiyor!"
stop
send "&cSadece odun ve yaprakları seçebilirsin!"
stop
on break of 17:
if {agac.%location of event-block%} is set:
wait 3 second
set block at location of event-block to 17
on break of leaves:
if {agac.%location of event-block%} is set:
wait 3 second
set block at location of event-block to leaves