Witam, generalnie moim problemem jest losowanie itemu przez CobbleX, standardowo mieliśmy do wyboru jedynie tam jakieś diamenty, jabłka, itd. - ja chciałem to rozwinąć i mam problem właściwie jedynie z give ....
Ktoś jest w stanie pomóc?
# ----------------<
# Skrypt CobbleX
# -----
# by Turas
# -----
# Version: v2.0
# -----
# Wersja Oryg.
# ----------------<
options:
nazwa: &7-&9CobbleX&7-
diamenty: 64 diamond
kilof: diamond pickaxe of unbreaking 3 and efficiency 3
zelazo: 5 iron block
jabka: 5 golden apple
zloto: 32 gold
kowadla: 3 anvil
miecz: diamond sword of unbreaking 3 and sharpness 3
helm: diamond helmet of unbreaking 3 and protection 3
buty: diamond boots of unbreaking 3 and protection 3
spodnie: diamond leggings of unbreaking 3 and protection 3
klata: diamond chestplate of unbreaking 3 and protection 3
craffting: crafting table named "&a/cx &7-" with lore "&8Tworzy CobbleX"
# 1-Trzcina
# 2-Chleb
# 3-Coal
# 4-String
# 5-Jabłko
# 6-Blok Zelaza
# 7-Slimeball
# 8-Ender Pearl
# 9-Stone
# 10-Diament
# 11-Skóra
# 12-Papier
on load:
new Recipe "CobbleX";
"CobbleX".Recipe.registerIngredient{1, 64 cobblestone};
"CobbleX".Recipe.registerIngredient{2, 64 cobblestone};
"CobbleX".Recipe.registerIngredient{3, 64 cobblestone};
"CobbleX".Recipe.registerIngredient{4, 64 cobblestone};
"CobbleX".Recipe.registerIngredient{5, 64 cobblestone};
"CobbleX".Recipe.registerIngredient{6, 64 cobblestone};
"CobbleX".Recipe.registerIngredient{7, 64 cobblestone};
"CobbleX".Recipe.registerIngredient{8, 64 cobblestone};
"CobbleX".Recipe.registerIngredient{9, 64 cobblestone};
"CobbleX".Recipe.registerResult{2 stone named "&9CobbleX"};
"CobbleX".Recipe.register{};
on rightclick with mossy cobblestone:
if name of player's tool is "&9CobbleX":
cancel event
give a {@diamenty} or {@kilof} or {@zelazo} or {@klata} or {@kowadla} or {@helm} or {@buty} or {@spodnie} or {@jabka} or {@zloto} or {@miecz} to player
send "&7Wylosowales przedmiot!"
wait a tick
remove 1 mossy cobblestone named "&9CobbleX" from player
command /cobblex [<text>]:
permission: cobblex.*
permission message: Nie masz uprawnien (cobblex.*)
description: Komenda dotyczaca CobbleX
trigger:
if arg 1 is not set:
send "&b/cx &8- &7Tworzy &7&lCobbleX"
send "&b/cobblex lista &8- &7Drop z &7&lCobbleX"
if arg 1 is "lista":
open chest with 4 rows named "&e&lCobbleX &5&lDrop:" to player
format slot 10 of player with paper named "&fPapier" to close
format slot 11 of player with leather named "&6Skora" to close
format slot 12 of player with string named "&fNitka" to close
format slot 13 of player with bread named "&6Chleb" to close
format slot 14 of player with coal named "&0Wegiel" to close
format slot 15 of player with stone named "&8Kamien" to close
format slot 16 of player with apple named "&4Jablko" to close
format slot 20 of player with sugar canes named "&aTrzcina" to close
format slot 21 of player with block of iron named "&7Blok Zelaza" to close
format slot 22 of player with diamond named "&bDiament" to close
format slot 23 of player with ender pearl named "&9Perla" to close
format slot 24 of player with slimeball named "&2Szlam" to close
format slot 35 of player with {@craffting} to close
command /cx:
permission: cobblex.*
permission message: Nie masz uprawnien (cobblex.*)
description: Tworzenie CobbleX
executable by: players
trigger:
if player has 576 cobblestone:
remove 576 cobblestone from player
wait a tick
give 2 mossy cobblestone named "&9CobbleX" to player
send "&3Otrzymales 2 &9CobbleX!"
else:
send "&f&lNie posiadasz 9 stakow CobbleStone'a! :("
# KONIEC #
Pytanie
kiroxtv 3
Witam, generalnie moim problemem jest losowanie itemu przez CobbleX, standardowo mieliśmy do wyboru jedynie tam jakieś diamenty, jabłka, itd. - ja chciałem to rozwinąć i mam problem właściwie jedynie z give ....
Ktoś jest w stanie pomóc?
Odnośnik do komentarza
Udostępnij na innych stronach
1 odpowiedź na to pytanie
Rekomendowane odpowiedzi