Merhaba dostlar maden skripti sunuyorum buyrun.
Kod:
on block break:
if event-block is iron ore:
cancel event
set event-block to air
give iron ingot named "&3Titanyum" to player
wait 20 seconds
set event-block to iron ore
on block break:
if event-block is stained clay:
cancel event
on block break:
if event-block is gold ore:
cancel event
set event-block to air
give gold ingot named "&2Bakir" to player
wait 20 seconds
set event-block to gold ore
on block break:
if event-block is oak log:
wait 5 seconds
set event-block to oak log
command /uzaymarket:
trigger:
create a gui with id "Market" with virtual chest named "Market" with 1 rows:
make gui slot 0 to iron ore named "&aTitanyum" with lore "&7Sol Tikla Ve Sat!||||&7Fiyat: &e200 TL":
if player has 64 iron ingot:
remove 64 iron ingot from player
make console execute command "eco give %player% 200"
send "&a+200 TL"
else:
close player's inventory
send player title "&cHATA" with subtitle "&7Yetersiz Esya(En Az 64)" for 3 seconds
make gui slot 1 to gold ore named "&2Bakir" with lore "&7Sol Tikla Ve Sat!||||&7Fiyat: &e300 TL":
if player has 64 gold ingot:
make console execute command "eco give %player% 300"
send "&a+300 TL"
else:
close player's inventory
send player title "&cHATA" with subtitle "&7Yetersiz Esya(En Az 64)" for 3 seconds
open last gui to player
command /odunmarket:
trigger:
create a gui with id "Market" with virtual chest named "Market" with 1 rows:
make gui slot 4 to oak log named "&aOdun" with lore "&7Sol Tikla Ve Sat!||||&7Fiyat: &e101 TL":
if player has 64 oak log:
remove 64 oak log from player
make console execute command "eco give %player% 101"
send "&a+101 TL"
else:
close player's inventory
send player title "&cHATA" with subtitle "&7Yetersiz Esya(En Az 64)" for 3 seconds
open last gui to player