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 - gracz nie może używać "rzucanego TnT"


Riuck

Rekomendowane odpowiedzi

Opublikowano

Cześć.

Mam problem z skrypten na rzucane tnt.

Prawie wszystko działa, jako admin mogę rzucić to tnt ale jako gracz nie da się z nim nic zrobic.

Dlaczego?

Potrzebna do tego jakaś persmisja?

 

Kod skryptu: (skrypt nie jest oczywiście mój)

on load:
set {_tnt} to "rzucane tnt"
new Recipe {_tnt};
{_tnt}.Recipe.setIngredient{1, 1 blaze rod};
{_tnt}.Recipe.setIngredient{2, 1 blaze rod};
{_tnt}.Recipe.setIngredient{3, 1 blaze rod};
{_tnt}.Recipe.setIngredient{4, 1 eye of ender};
{_tnt}.Recipe.setIngredient{5, 1 tnt};
{_tnt}.Recipe.setIngredient{6, 1 eye of ender};
{_tnt}.Recipe.setIngredient{7, 1 string};
{_tnt}.Recipe.setIngredient{8, 1 tnt};
{_tnt}.Recipe.setIngredient{9, 1 string};
{_tnt}.Recipe.setResult{tnt of sharpness 1 named "&4rzucane tnt"};
{_tnt}.Recipe.register{};
 
on right click with tnt:
if name of player's tool is "&4Rzucane tnt":
if player has permission  "Rzucanetnt":
if player's gamemode is creative:
shoot tnt with speed 1
else:
remove 1 tnt named "&4rzucane tnt" from player
shoot tnt with speed 1
on place tnt:
if name of player's tool is "&4Rzucane tnt":
cancel event
Opublikowano
if player's gamemode is creative:

To mowi o tym ze musi miec gm :# tu masz poprawione: i jescze musi byc uprawnienie

Rzucanetnt
on load:
set {_tnt} to "rzucane tnt"
new Recipe {_tnt};
{_tnt}.Recipe.setIngredient{1, 1 blaze rod};
{_tnt}.Recipe.setIngredient{2, 1 blaze rod};
{_tnt}.Recipe.setIngredient{3, 1 blaze rod};
{_tnt}.Recipe.setIngredient{4, 1 eye of ender};
{_tnt}.Recipe.setIngredient{5, 1 tnt};
{_tnt}.Recipe.setIngredient{6, 1 eye of ender};
{_tnt}.Recipe.setIngredient{7, 1 string};
{_tnt}.Recipe.setIngredient{8, 1 tnt};
{_tnt}.Recipe.setIngredient{9, 1 string};
{_tnt}.Recipe.setResult{tnt of sharpness 1 named "&4rzucane tnt"};
{_tnt}.Recipe.register{};
 
on right click with tnt:
if name of player's tool is "&4Rzucane tnt":
if player has permission  "Rzucanetnt":
shoot tnt with speed 1
else:
remove 1 tnt named "&4rzucane tnt" from player
shoot tnt with speed 1
on place tnt:
if name of player's tool is "&4Rzucane tnt":
cancel event

 

 

  1. if player's gamemode is creative:if player's gamemode is creative:

<p><span style="color:#ff0000;">//</span></p>

Zarchiwizowany

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

×
×
  • Dodaj nową pozycję...