Solved target block not working

  • Welcome to skUnity!

    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 community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Lukhausen

Active Member
Mar 20, 2017
145
11
18
Hey,

How is it possible to set the target block of a player multiple times in a command?

I tried that but it gives ever time the same coordinate back:

code_language.skript:
Command /hatetarget:
    Trigger:
        Loop 10 times:
            Broadcast "%location of player's target block%"
            Wait 10 ticks
[doublepost=1493671669,1493671617][/doublepost]
Hey,

How is it possible to set the target block of a player multiple times in a command?

I tried that but it returns the same coordinate ever time:

code_language.skript:
Command /hatetarget:
    Trigger:
        Loop 10 times:
            Broadcast "%location of player's target block%"
            Wait 10 ticks
 
do without player's


code_language.skript:
%location of target block%
 
do without player's


code_language.skript:
%location of target block%
Will try :emoji_slight_smile:
[doublepost=1493738859,1493697294][/doublepost]
do without player's


code_language.skript:
%location of target block%
code_language.skript:
command /scheiße:
    trigger:
        loop 10 times:
            broadcast "&6%location of target block%"
            wait 10 ticks
doesn't work
[doublepost=1493739085][/doublepost]That's working:
code_language.skript:
function targetblock(p:player):
    set {target.%{_p}%} to location of target block of {_p}
                
command /targetblock:
    trigger:
        loop 10 times:
            targetblock(player)
            broadcast "&6%{target.%player%}%"
            wait 10 ticks
 
Status
Not open for further replies.