ByNeels
MC.KadimOyuncu.Network
- Katılım
- 15 Haziran 2019
- Mesajlar
- 220
- Elmaslar
- 59
- Puan
- 13.470
- Minecraft
- ByNeels
Discord:
ByNeels
JavaScript:
options:
p: &4MineBlock > #Mesaj başlarındaki prefix
cubukismi: &cSandık Satar #Sandıktaki itemleri satmak için tıklanılacak çubuğun ismi
demirblok: 62500 #1 demirin satma fiyatı
altinblok: 156250 #1 altının satma fiyatı
zumrutblok: 312500 #1 elmasın satma fiyatı
elmasblok: 625000 #1 zümrütün satma fiyatı
kaktus: 1953125 #1 demir bloğunun satma fiyatı
tugla: 9375000 #1 altın bloğunun satma fiyatı
kemik: 15625000 #1 elmas bloğunun satma fiyatı
ay: 125000000 #1 zümrüt bloğunun satma fiyatı
command /sandıksatar:
trigger:
give 1 blaze rod named "{@cubukismi}" to player
on leftclick on chest with blaze rod:
if name of player's tool is "{@cubukismi}":
if {chests::%player%::*} contains location of clicked chest:
if clicked chest contains iron block:
set {_itemcounti} to number of all iron blocks in clicked chest
remove {_itemcounti} of iron blocks from clicked chest's inventory
add {@demirblok} * {_itemcounti} to the player's money
send "{@p} &a%{_itemcounti}% demir blok satıldı. Kazanılan para: &c%{@demirblok} * {_itemcounti}%"
if clicked chest contains gold block:
set {_itemcountg} to number of all gold blocks in clicked chest
remove {_itemcountg} of gold blocks from clicked chest's inventory
add {@altinblok} * {_itemcountg} to the player's money
send "{@p} &a%{_itemcountg}% altın blok satıldı. Kazanılan para: &c%{@altinblok} * {_itemcountg}%"
if clicked chest contains emerald block:
set {_itemcountd} to number of all emerald blocks in clicked chest
remove {_itemcountd} of emerald blocks from clicked chest's inventory
add {@zumrutblok} * {_itemcountd} to the player's money
send "{@p} &a%{_itemcountd}% zümrüt blok satıldı. Kazanılan para: &c%{@zumrutblok} * {_itemcountd}%"
if clicked chest contains diamond block:
set {_itemcounte} to number of all diamond blocks in clicked chest
remove {_itemcounte} of diamond blocks from clicked chest's inventory
add {@elmasblok} * {_itemcounte} to the player's money
send "{@p} &a%{_itemcounte}% elmas blok satıldı. Kazanılan para: &c%{@elmasblok} * {_itemcounte}%"
if clicked chest contains cactus:
set {_itemcountib} to number of all cactuses in clicked chest
remove {_itemcountib} of cactuses from clicked chest's inventory
add {@kaktus} * {_itemcountib} to the player's money
send "{@p} &a%{_itemcountib}% kaktüs satıldı. Kazanılan para: &c%{@kaktus} * {_itemcountib}%"
if clicked chest contains clay brick:
set {_itemcountgb} to number of all clay bricks in clicked chest
remove {_itemcountgb} of clay bricks from clicked chest's inventory
add {@tugla} * {_itemcountgb} to the player's money
send "{@p} &a%{_itemcountgb}% tuğla satıldı. Kazanılan para: &c%{@tugla} * {_itemcountgb}%"
if clicked chest contains bone:
set {_itemcountdb} to number of all bones in clicked chest
remove {_itemcountdb} of bones from clicked chest's inventory
add {@kemik} * {_itemcountdb} to the player's money
send "{@p} &a%{_itemcountdb}% kemik satıldı. Kazanılan para: &c%{@kemik} * {_itemcountdb}%"
if clicked chest contains sunflower:
set {_itemcounteb} to number of all sunflower in clicked chest
remove {_itemcounteb} of all sunflower from clicked chest's inventory
add {@ay} * {_itemcounteb} to the player's money
send "{@p} &a%{_itemcounteb}% ayçiçek satıldı. Kazanılan para: &c%{@ay} * {_itemcounteb}%"
else:
send "{@p} &aSadece kendi sandığındaki eşyaları satabilirsin."
on place of chest:
add event-block's location to {chests::%player%::*}
on break of chest:
if {chests::%player%::*} contains event-block's location:
remove event-block's location from {chests::%player%::*}
Yapana benden Elmas.
Gönderi otomatik olarak birleştirildi:
Güncel.
Gönderi otomatik olarak birleştirildi:
Yok mu yapabilen?
Son düzenleme: