Solved This doesnt 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.

Maciejekcho1

New Member
May 24, 2021
9
0
1
Please Help This Code Doesnt Work
[doublepost=1622051082,1622051042][/doublepost]i dont even know how to make codes ;-; In THIS WEBSITE!
[doublepost=1622051167][/doublepost]every 1 seconds in world "flatroom":
set {_e} to pig
spawn {_e} at location at (-464, 7, -326) in event-world
loop all entities in radius 5 around {_e}:
if loop-entity is player:
apply regeneration 3 to loop-entity for 1 second
wait 1 second
kill {_e}
 
it is with [ code][/code] (without the space) you can find it under the + sign in a box while writing a post.
i will assume this is what the spaces in your code look like:

Code:
every 1 seconds in world "flatroom":
    set {_e} to pig
    spawn {_e} at location at (-464, 7, -326) in event-world
    loop all entities in radius 5 around {_e}:
        if loop-entity is player:
            apply regeneration 3 to loop-entity for 1 second
    wait 1 second
    kill {_e}

i am not entirely sure what the point of your code is, you want to spawn and kill a pig at a set location every second? and also grant regeneration to players near it right?
why loop the area around the pig instead of just around the area?

anyway, to fix try this
Code:
every 1 seconds in world "flatroom":
    spawn pig at location at (-464, 7, -326) in event-world
    set {_e} to last spawned pig
    loop all entities in radius 5 around {_e}:
        if loop-entity is player:
            apply regeneration 3 to loop-entity for 1 second
    wait 1 second
    kill {_e}
 
Last edited:
it is with [ code][/code] (without the space) you can find it under the + sign in a box while writing a post.
i will assume this is what the spaces in your code look like:

Code:
every 1 seconds in world "flatroom":
    set {_e} to pig
    spawn {_e} at location at (-464, 7, -326) in event-world
    loop all entities in radius 5 around {_e}:
        if loop-entity is player:
            apply regeneration 3 to loop-entity for 1 second
    wait 1 second
    kill {_e}

i am not entirely sure what the point of your code is, you want to spawn and kill a pig at a set location every second? and also grant regeneration to players near it right?
why loop the area around the pig instead of just around the area?

anyway, to fix try this
Code:
every 1 seconds in world "flatroom":
    spawn pig at location at (-464, 7, -326) in event-world
    set {_e} to last spawned pig
    loop all entities in radius 5 around {_e}:
        if loop-entity is player:
            apply regeneration 3 to loop-entity for 1 second
    wait 1 second
    kill {_e}
Here's 1 question: How to make it named?
[doublepost=1622100453,1622100399][/doublepost]
Here's 1 question: How to make it named?
And also, how to make it drop nothing
[doublepost=1622100613][/doublepost]N
it is with [ code][/code] (without the space) you can find it under the + sign in a box while writing a post.
i will assume this is what the spaces in your code look like:

Code:
every 1 seconds in world "flatroom":
    set {_e} to pig
    spawn {_e} at location at (-464, 7, -326) in event-world
    loop all entities in radius 5 around {_e}:
        if loop-entity is player:
            apply regeneration 3 to loop-entity for 1 second
    wait 1 second
    kill {_e}

i am not entirely sure what the point of your code is, you want to spawn and kill a pig at a set location every second? and also grant regeneration to players near it right?
why loop the area around the pig instead of just around the area?

anyway, to fix try this
Code:
every 1 seconds in world "flatroom":
    spawn pig at location at (-464, 7, -326) in event-world
    set {_e} to last spawned pig
    loop all entities in radius 5 around {_e}:
        if loop-entity is player:
            apply regeneration 3 to loop-entity for 1 second
    wait 1 second
    kill {_e}
Nevermind, figured it out how to remove drops
[doublepost=1622101245][/doublepost]
it is with [ code][/code] (without the space) you can find it under the + sign in a box while writing a post.
i will assume this is what the spaces in your code look like:

Code:
every 1 seconds in world "flatroom":
    set {_e} to pig
    spawn {_e} at location at (-464, 7, -326) in event-world
    loop all entities in radius 5 around {_e}:
        if loop-entity is player:
            apply regeneration 3 to loop-entity for 1 second
    wait 1 second
    kill {_e}

i am not entirely sure what the point of your code is, you want to spawn and kill a pig at a set location every second? and also grant regeneration to players near it right?
why loop the area around the pig instead of just around the area?

anyway, to fix try this
Code:
every 1 seconds in world "flatroom":
    spawn pig at location at (-464, 7, -326) in event-world
    set {_e} to last spawned pig
    loop all entities in radius 5 around {_e}:
        if loop-entity is player:
            apply regeneration 3 to loop-entity for 1 second
    wait 1 second
    kill {_e}
how do you remove all particles from the effect?
 
Status
Not open for further replies.