ByNeels
MC.KadimOyuncu.Network
- Katılım
- 15 Haziran 2019
- Mesajlar
- 220
- Elmaslar
- 59
- Puan
- 13.470
- Minecraft
- ByNeels
Discord:
ByNeels
JavaScript:
Options:
elmas: 50#Elmas fiyat
elmasblok: 100# Elmas blok fiyat
zumrut: 50#Zümrüt fiyat
zumrutblok: 75# Zümrüt blok fiyat
altin: 30#Altın fiyat
altinblok: 50#Altın blok fiyat
demir: 30#Demir fiyat
demirblok: 50#Demir blok fiyat
on join:
if {otosat::%player%} is not set:
set {otosat::%player%} to "Kapalı"
set {otosatdemir::%player%} to "Kapalı"
set {otosataltin::%player%} to "Kapalı"
set {otosatzumrut::%player%} to "Kapalı"
set {otosatelmas::%player%} to "Kapalı"
command /otosat [<text>]:
trigger:
if arg 1 is "açkapa" or "ackapa" or "açkapat" or "ackapat":
if {otosat::%player%} is "Kapalı":
set {otosat::%player%} to "Açık"
send " &6OTOSAT &8» &7Otomatik satış &aaçıldı." to player
else:
set {otosat::%player%} to "Kapalı"
send " &6OTOSAT &8» &7Otomatik satış &ckapandı." to player
else if arg 1 is "elmas":
if {otosatelmas::%player%} is "Kapalı":
set {otosatelmas::%player%} to "Açık"
send " &6OTOSAT &8» &7Elmas ve elmas bloğun otomatik satışı açıldı." to player
else:
set {otosatelmas::%player%} to "Kapalı"
send " &6OTOSAT &8» &7Elmas ve elmas bloğun otomatik satışı kapandı." to player
else if arg 1 is "zümrüt":
if {otosatzumrut::%player%} is "Kapalı":
set {otosatzumrut::%player%} to "Açık"
send " &6OTOSAT &8» &7Zümrüt ve zümrüt bloğun otomatik satışı açıldı." to player
else:
set {otosatzumrut::%player%} to "Kapalı"
send " &6OTOSAT &8» &7Zümrüt ve zümrüt bloğun otomatik satışı kapandı." to player
else if arg 1 is "altın":
if {otosataltin::%player%} is "Kapalı":
set {otosataltin::%player%} to "Açık"
send " &6OTOSAT &8» &7Altın ve altın bloğun otomatik satışı açıldı." to player
else:
set {otosataltin::%player%} to "Kapalı"
send " &6OTOSAT &8» &7Altın ve altın bloğun otomatik satışı kapandı." to player
else if arg 1 is "demir":
if {otosatdemir::%player%} is "Kapalı":
set {otosatdemir::%player%} to "Açık"
send " &6OTOSAT &8» &7Demir ve demir bloğun otomatik satışı açıldı." to player
else:
set {otosatdemir::%player%} to "Kapalı"
send " &6OTOSAT &8» &7Demir ve demir bloğun otomatik satışı kapandı." to player
else if arg 1 is "topluaç":
set {otosat::%player%} to "Açık"
set {otosatdemir::%player%} to "Açık"
set {otosataltin::%player%} to "Açık"
set {otosatzumrut::%player%} to "Açık"
set {otosatelmas::%player%} to "Açık"
send " &6OTOSAT &8» &7Tüm otosat ayarları açık hale getirildi." to player
else if arg 1 is "toplukapat":
set {otosat::%player%} to "Kapalı"
set {otosatdemir::%player%} to "Kapalı"
set {otosataltin::%player%} to "Kapalı"
set {otosatzumrut::%player%} to "Kapalı"
set {otosatelmas::%player%} to "Kapalı"
send " &6OTOSAT &8» &7Tüm otosat ayarları kapalı hale getirildi." to player
else:
open chest with 3 row named "&7Otosat Menüsü" to player
wait 1 tick
make gui slot 0 of player with torch named "&eBilgilendirme" with lore "||&fMadenlerin otosatını açtığın zaman||&fbloklarının da otosatı açılır.||||&fMadenlerin otosatını açsan bile||&ftuzak kancasına basıp otosatı||&façman gerekir." to nothing
make gui slot 8 of player with skull of player named "&7%player%: Otosat Durumları" with lore "||&fDemir: &e%{otosatdemir::%player%}%||&fAltın: &e%{otosataltin::%player%}%||&fZümrüt: &e%{otosatzumrut::%player%}%||&fElmas: &e%{otosatelmas::%player%}%||&fOtosat: &e%{otosat::%player%}%" to nothing
make gui slot 11 of player with tripwire hook named "&fOtosat" with lore "||&7Durum: &e%{otosat::%player%}%||&7Açıp kapatmak için tıkla." to run player command "/otosat açkapa"
make gui slot 12 of player with iron ingot named "&fDemir" with lore "||&7Durum: &e%{otosatdemir::%player%}%||&7Açıp kapatmak için tıkla." to run player command "/otosat demir"
make gui slot 13 of player with gold ingot named "&fAltın" with lore "||&7Durum: &e%{otosataltin::%player%}%||&7Açıp kapatmak için tıkla." to run player command "/otosat altın"
make gui slot 14 of player with emerald named "&fZümrüt" with lore "||&7Durum: &e%{otosatzumrut::%player%}%||&7Açıp kapatmak için tıkla." to run player command "/otosat zümrüt"
make gui slot 15 of player with diamond named "&fElmas" with lore "||&7Durum: &e%{otosatelmas::%player%}%||&7Açıp kapatmak için tıkla." to run player command "/otosat elmas"
make gui slot 18 of player with dye:10 named "&aToplu Açma" with lore "||&7Tüm otosat ayarlarını hızlıca||&7açmak için tıkla." to run player command "/otosat topluaç"
make gui slot 26 of player with red dye named "&cToplu Kapama" with lore "||&7Tüm otosat ayarlarını hızlıca||&7kapatmak için tıkla." to run player command "/otosat toplukapat"
on inventory click:
if inventory name of player's current inventory is "&7Otosat Menüsü":
if clicked slot is 11 or 12 or 13 or 14 or 15 or 18 or 26:
wait 1 tick
execute player command "/otosat"
on pickup:
if {otosat::%player%} is "Açık":
if event-item is diamond block or emerald block or gold block or iron block or diamond or emerald or gold ingot or iron ingot:
set {toplamkazanc::%player%} to 0
set {itemkazanc::%player%::*} to 0
wait 2 tick
if player has diamond block or emerald block or gold block or iron block or diamond or emerald or gold ingot or iron ingot:
if {otosatelmas::%player%} is "Açık":
set {itemkazanc::%player%::diamondblock} to {@elmasblok} * amount of diamond block in player's inventory
remove all diamond blocks from player
add {itemkazanc::%player%::diamondblock} to player's balance
add {itemkazanc::%player%::diamondblock} to {toplamkazanc::%player%}
set {itemkazanc::%player%::diamond} to {@elmas} * amount of diamond in player's inventory
remove all diamonds from player
add {itemkazanc::%player%::diamond} to player's balance
add {itemkazanc::%player%::diamond} to {toplamkazanc::%player%}
if {otosatzumrut::%player%} is "Açık":
set {itemkazanc::%player%::emeraldblock} to {@zumrutblok} * amount of emerald block in player's inventory
remove all emerald blocks from player
add {itemkazanc::%player%::emeraldblock} to player's balance
add {itemkazanc::%player%::emeraldblock} to {toplamkazanc::%player%}
set {itemkazanc::%player%::emerald} to {@zumrut} * amount of emerald in player's inventory
remove all emeralds from player
add {itemkazanc::%player%::emerald} to player's balance
add {itemkazanc::%player%::emerald} to {toplamkazanc::%player%}
if {otosataltin::%player%} is "Açık":
set {itemkazanc::%player%::goldblock} to {@altinblok} * amount of gold block in player's inventory
remove all gold blocks from player
add {itemkazanc::%player%::goldblock} to player's balance
add {itemkazanc::%player%::goldblock} to {toplamkazanc::%player%}
set {itemkazanc::%player%::gold} to {@altin} * amount of gold ingot in player's inventory
remove all gold ingots from player
add {itemkazanc::%player%::gold} to player's balance
add {itemkazanc::%player%::gold} to {toplamkazanc::%player%}
if {otosatdemir::%player%} is "Açık":
set {itemkazanc::%player%::ironblock} to {@demirblok} * amount of iron block in player's inventory
remove all iron blocks from player
add {itemkazanc::%player%::ironblock} to player's balance
add {itemkazanc::%player%::ironblock} to {toplamkazanc::%player%}
set {itemkazanc::%player%::iron} to {@demir} * amount of iron ingot in player's inventory
remove all iron ingots from player
add {itemkazanc::%player%::iron} to player's balance
add {itemkazanc::%player%::iron} to {toplamkazanc::%player%}
wait 10 tick
send " &6OTOSAT &8» &7Envanterindeki satılabilecek esyalar satıldı: &a%{toplamkazanc::%player%}%TL" to player
Şuan olmasını istediğim itemler;
Demir Blok
Altın Blok
Zümrüt Blok
Elmas Blok
Kaktüs
Tuğla (clay brick)
Şeker (sugar)
Elma
Yapana benden elmas ve sonsuz teşekkür.