):< WHY DOES THIS NOT WORK

  • 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 comminuty!

    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.

iLazer

Member
Apr 1, 2022
15
0
1
22
on rightclick with wither skeleton spawn egg:
cancel event
remove wither skeleton spawn egg from player
spawn wither at location of player
set name of last spawned wither to "&b%player%'s Wither"
add last spawned entity to {target.%player%::*}
set max health of last spawned entity to 20
while spawned entity exists:
push spawned entity to player at speed 1
wait 1 seconds

it says: cannot understand this condition/effect:
push spawned entity to player at speed 1

i am coding a minehut server with my friends and most skripts i find online for skript work fine, but this one doesnt. PLZ HELP
[doublepost=1649027465,1649027339][/doublepost]If you know how to stop a wither from moving entirly, that would work fine aswell. In fact, that would be better
 
fixed the error, but the wither can still fly away
edit: and it will target the player
Code:
on rightclick with wither skeleton spawn egg:
  cancel event
  remove wither skeleton spawn egg from player
  spawn wither at location of player
  set name of last spawned wither to "&b%player%'s Wither"
  add last spawned entity to {target.%player%::*}
  set max health of last spawned entity to 20
  while spawned entity exists:
    push spawned entity in direction of player at speed 1
    wait 1 seconds
 
ok so i put this in and now it runs away from the player...
I do have some other script's like this:

on entity target:
loop {target.%target%::*}:
if loop-value is event-entity:
cancel event

on death:
kill {target.%player%::*}

plz tell me whats wrong at least or maybe fix it TYSM!

OK So whereever i look it goes, so when i look at it it heads away from me, but if i look up it goes up. I want it to go to me always. TYSM!

also how do i make it so it doesnt run away...
 
Last edited:
Status
Not open for further replies.