Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.
If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!
Now, what are you waiting for? Join the community now!
You can always check out skUnity Downloads for downloads and any other information about Skript!
Thanks it is now working, but i have a problem with my full code too.code_language.skript:give oak log to player
on sneak toggle:
if block under the player is log:
if block 2 under the player is mossy cobblestone:
if {fatorony} is not the player's name:
set {torony.fa} to player's name
broadcast "%player% elfoglalta a Fa tornyot"
else:
broadcast "%{fatorony}% bitorolja a Fa tornyot"
while player is sneaking:
give oak log to player
wait 1 second
The problem is with the if and the elseThanks it is now working, but i have a problem with my full code too.
Can you help me please?
code_language.skript:on sneak toggle: if block under the player is log: if block 2 under the player is mossy cobblestone: if {fatorony} is not the player's name: set {torony.fa} to player's name broadcast "%player% elfoglalta a Fa tornyot" else: broadcast "%{fatorony}% bitorolja a Fa tornyot" while player is sneaking: give oak log to player wait 1 second
Thanks it is now working, but i have a problem with my full code too.
Can you help me please?
[doublepost=1532107206,1532107118][/doublepost]code_language.skript:on sneak toggle: if block under the player is log: if block 2 under the player is mossy cobblestone: if {fatorony} is not the player's name: set {torony.fa} to player's name broadcast "%player% elfoglalta a Fa tornyot" else: broadcast "%{fatorony}% bitorolja a Fa tornyot" while player is sneaking: give oak log to player wait 1 second
The problem is with the if and the else
if {fatorony} is not the player:
still don't workscode_language.skript:if {fatorony} is not the player:
He said the problem was with the if and the else.again, what exactly does or does not work?
The problem is with the if and the else