Solid collision help

  • 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.

xbxy

Active Member
Jan 26, 2017
170
8
0
28
Code:
on drop:
    cancel event
    spawn pig at player
    apply slowness 10 to last spawned entity for 1 hours
Through the above code I created a pig that could not be moved
However, when the player pushes the pig, the pig will move, I would like to ask if there is any way to make pigs can not be pushed?
 
Maybe putting a high base on their knockback resistance attribute from their NBT?, setting their no AI/gravity state to true, setting their canCollide state to false; many ways to do it.
 
Maybe putting a high base on their knockback resistance attribute from their NBT?, setting their no AI/gravity state to true, setting their canCollide state to false; many ways to do it.
I don't know how to remove biological AI
Then I try to get the creature NBT saved to the log file
But I can't find "gravity" and "canCollide""
:emoji_disappointed:

I was testing the 1.11.2
 
I can see them on their entity data but the collide state, you'll have to add them to a scoreboard team with the collision rule active.
I tested "NoGravity", "NOAI"
This NOAI is very good, after setting the pig can not be pushed
But it makes the pig look stupid
I would like to try again to control the biological collision of NBT
But I don't know which one...

I am on the Chinese version of the wiki site, will not show the NBT information
 
Status
Not open for further replies.