Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

Problem z skryptem na zliczanie jedzenia koxów oraz prośba o dopisanie paru linijek.


TerriorPL

Rekomendowane odpowiedzi

Opublikowano

Witam mam problem z skryptem TAKI jest problem że gdy zjem koxa to też mi nalicza się do zjedzenia refila {mam zjedzone koxy i refile 0 zjem 1 koxa i staty nabjają się że zjadłem 1 koxa i 1 refila} NAPRAWI ktoś to

I jeszcze prośiłbym dopisać więcej stat chodzi o:

żeby liczyło nam ilośc damage jaką zadaliśmy {innym graczą,mobom} żeby była do tego zmiena np. {damage.%player%} ,bo chce ją dodać do gui

I żeby liczyło nam ile straciliśmy ogólnie zdrowia też z zmienną

I żeby sprawdzało nam ile mamy blaze rod aktualnie w ekwipunku

 

 

Variables:
    {kill.%player%} = 0
    {smierci.%player%) = 0
    {zjedzone.koxy.%player%} = 0
    {zjedzone.refy.%player%} = 0
on death:
    attacker is a player
    victim is a player
    add 1 to {kill.%attacker%}
on death of player:
    add 1 to {smierci.%victim%}
on eat enchanted golden apple:
    add 1 to {zjedzone.koxy.%player%}
on eat golden apple:
    add 1 to {zjedzone.refy.%player%}
     
command /statystyki:
    aliases: staty
    trigger:
        open chest with 1 rows named "&7Statystyki gracza &6%player%" to player
        format slot 0 of player with diamond sword named "&cZabicia" with lore "&8» &6%{kill.%player%}%" to be unstealable
        format slot 1 of player with skeleton head named "&cZgony" with lore "&8» &6%{smierci.%player%}%" to be unstealable
        format slot 2 of player with enchanted golden apple named "&cZjedzone koxy" with lore "&8» &6%{zjedzone.koxy.%player%}%" to be unstealable
        format slot 3 of player with golden apple named "&cZjedzone refile" with lore "&8» &6%{zjedzone.refy.%player%}%" to be unstealable

Opublikowano

 

 

variables:
	{zabicia::%player%} = 0
	{smierci::%player%} = 0
	{koxy::%player%} = 0
	{refy::%player%} = 0
on death of player:
	attacker is player
	add 1 to {zabicia::%attacker%}
	add 1 to {smierci::%victim%}
on eat:
	player's tool is enchanted golden apple:
		add 1 to {koxy::%player%}
		stop
	player's tool is golden apple:
		add 1 to {refy::%player%}
command /staty:
	trigger:
		open chest with 1 rows named "&7Statystyki: &c%player%" to player
		wait 2 ticks
		format slot 0 of player with diamond sword named "&cZabicia" with lore "&8» &6%{zabicia::%player%}%" to be unstealable
		format slot 1 of player with skeleton head named "&cZgony" with lore "&8» &6%{smierci::%player%}%" to be unstealable
		format slot 2 of player with enchanted golden apple named "&cZjedzone koxy" with lore "&8» &6%{koxy::%player%}%" to be unstealable
		format slot 3 of player with golden apple:0 named "&cZjedzone refile" with lore "&8» &6%{refy::%player%}%" to be unstealable

 

 

@Edit!

Tu masz z dodanym damage

 

 

variables:
	{zabicia::%player%} = 0
	{smierci::%player%} = 0
	{koxy::%player%} = 0
	{refy::%player%} = 0
	{zdamage::%player%} = 0
	{odamage::%player%} = 0
on death of player:
	attacker is player
	add 1 to {zabicia::%attacker%}
	add 1 to {smierci::%victim%}
on eat:
	player's tool is enchanted golden apple:
		add 1 to {koxy::%player%}
		stop
	player's tool is golden apple:
		add 1 to {refy::%player%}
on damage:
	attacker is player:
		add damage to {zdamage::%attacker%}
	victim is player:
		add damage to {odamage::%victim%}
command /staty:
	aliases: statystyki
	trigger:
		open chest with 1 rows named "&7Statystyki: &c%player%" to player
		wait 2 ticks
		format slot 0 of player with diamond sword named "&cZabicia" with lore "&8» &6%{zabicia::%player%}%" to be unstealable
		format slot 1 of player with skeleton head named "&cZgony" with lore "&8» &6%{smierci::%player%}%" to be unstealable
		format slot 2 of player with redstone named "&cZadany damage" with lore "&8» &6%{zdamage::%player%}%" to be unstealable
		format slot 3 of player with paper named "&cOtrzymane damage" with lore "&8» &6%{odamage::%player%}%" to be unstealable
		format slot 4 of player with enchanted golden apple named "&cZjedzone koxy" with lore "&8» &6%{koxy::%player%}%" to be unstealable
		format slot 5 of player with golden apple:0 named "&cZjedzone refile" with lore "&8» &6%{refy::%player%}%" to be unstealable

 

 

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...