Skocz do zawartości
  • -2

if player


Vertebs

Pytanie

Rekomendowane odpowiedzi

  • 0

Źle wytabowane, 

if player's tool is "stick":
	if player's tool name is "hej":
		set {candy::%player%} to true
    else:
    	set {candy::%player%} to false
      

Trzyma: true, nie trzyma: false, zmień "stick" na to co chcesz.

Odnośnik do komentarza
https://skript.pl/temat/53684-if-player/#findComment-326645
Udostępnij na innych stronach

  • 0
Teraz, naujan napisał:

no po prostu "blaze rod"

to ze stickiem nawet nie dziala :/

 

[22:18:59 INFO]: Line 4: (halloween.sk)
[22:18:59 INFO]:     Can't understand this event: 'if player's tool is "stick"'
[22:18:59 INFO]:     Line: if player's tool is "stick":

Odnośnik do komentarza
https://skript.pl/temat/53684-if-player/#findComment-326649
Udostępnij na innych stronach

  • 0
variables:
    {candy.%player%} = false
    
if player's held item is blaze rod:
     if player's held item name is "hej":
     	set {candy::%player%} to true
     else:
     	set {candy::%player%} to false

on break of stone or deepslate or sand or dirt:
    if {candy::%player%} is false:
        chance of 50%:
            execute console command "give %player% orange_dye 1 name:&6&lCukierek unbreaking:10"
            send "&eWlasnie wydropiles &6&lcukierka!"
    else:
        chance of 0.001%:
            execute console command "give %player% orange_dye 1 name:&6&lCukierek unbreaking:10"
            send "&eWlasnie wydropiles &6&lcukierka!"

cały kod powinien wyglądać tak

Powinno działać nie możliwe żeby nie działało

ivall

Łączę posty

Notatka dodana przez ivall

Odnośnik do komentarza
https://skript.pl/temat/53684-if-player/#findComment-326656
Udostępnij na innych stronach

  • 0
variables:
    {candy.%player%} = false
on break of stone or deepslate or sand or dirt:
    if player's held item is blaze rod:
     	if player's held item name is "hej":
     		set {candy::%player%} to true
     	else:
     		set {candy::%player%} to false
    if {candy::%player%} is false:
        chance of 50%:
            execute console command "give %player% orange_dye 1 name:&6&lCukierek unbreaking:10"
            send "&eWlasnie wydropiles &6&lcukierka!"
    else:
        chance of 0.001%:
            execute console command "give %player% orange_dye 1 name:&6&lCukierek unbreaking:10"
            send "&eWlasnie wydropiles &6&lcukierka!"

to w 100% działa nie ma innej opcji.

Edytowane przez naujan
mały edit, teraz dobrze
Odnośnik do komentarza
https://skript.pl/temat/53684-if-player/#findComment-326661
Udostępnij na innych stronach

  • 0
2 minuty temu, naujan napisał:
variables:
    {candy.%player%} = false
on break of stone or deepslate or sand or dirt:
    if player's held item is blaze rod:
     if player's held item name is "hej":
     	set {candy::%player%} to true
     else:
     	set {candy::%player%} to false
    if {candy::%player%} is false:
        chance of 50%:
            execute console command "give %player% orange_dye 1 name:&6&lCukierek unbreaking:10"
            send "&eWlasnie wydropiles &6&lcukierka!"
    else:
        chance of 0.001%:
            execute console command "give %player% orange_dye 1 name:&6&lCukierek unbreaking:10"
            send "&eWlasnie wydropiles &6&lcukierka!"

to w 100% działa nie ma innej opcji.

unknown.png

Odnośnik do komentarza
https://skript.pl/temat/53684-if-player/#findComment-326662
Udostępnij na innych stronach

  • 0

Poprawiłem, teraz jest dobrze

4 minuty temu, naujan napisał:
variables:
    {candy.%player%} = false
on break of stone or deepslate or sand or dirt:
    if player's held item is blaze rod:
     	if player's held item name is "hej":
     		set {candy::%player%} to true
     	else:
     		set {candy::%player%} to false
    if {candy::%player%} is false:
        chance of 50%:
            execute console command "give %player% orange_dye 1 name:&6&lCukierek unbreaking:10"
            send "&eWlasnie wydropiles &6&lcukierka!"
    else:
        chance of 0.001%:
            execute console command "give %player% orange_dye 1 name:&6&lCukierek unbreaking:10"
            send "&eWlasnie wydropiles &6&lcukierka!"

to w 100% działa nie ma innej opcji.

 

Odnośnik do komentarza
https://skript.pl/temat/53684-if-player/#findComment-326663
Udostępnij na innych stronach

  • 0
variables:
    {candy.%player%} = false
on break of stone or deepslate or sand or dirt:
    if player's held item is blaze rod:
     	if player's tool is named "hej":
     		set {candy::%player%} to true
     	else:
     		set {candy::%player%} to false
    if {candy::%player%} is false:
        chance of 50%:
            execute console command "give %player% orange_dye 1 name:&6&lCukierek unbreaking:10"
            send "&eWlasnie wydropiles &6&lcukierka!"
    else:
        chance of 0.001%:
            execute console command "give %player% orange_dye 1 name:&6&lCukierek unbreaking:10"
            send "&eWlasnie wydropiles &6&lcukierka!"

 

Odnośnik do komentarza
https://skript.pl/temat/53684-if-player/#findComment-326665
Udostępnij na innych stronach

  • 0
2 minuty temu, naujan napisał:
variables:
    {candy.%player%} = false
on break of stone or deepslate or sand or dirt:
    if player's held item is blaze rod:
     	if player's tool is named "hej":
     		set {candy::%player%} to true
     	else:
     		set {candy::%player%} to false
    if {candy::%player%} is false:
        chance of 50%:
            execute console command "give %player% orange_dye 1 name:&6&lCukierek unbreaking:10"
            send "&eWlasnie wydropiles &6&lcukierka!"
    else:
        chance of 0.001%:
            execute console command "give %player% orange_dye 1 name:&6&lCukierek unbreaking:10"
            send "&eWlasnie wydropiles &6&lcukierka!"

 

unknown.png

Odnośnik do komentarza
https://skript.pl/temat/53684-if-player/#findComment-326666
Udostępnij na innych stronach

Nieaktywny
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...