#How to check if mob has another mob riding it?

5 messages · Page 1 of 1 (latest)

wanton nacelle
#

I'm looking to check if a spider has a skeleton riding it, so I can remove it. I've been removing certain mobs (including skeletons) on spawn check (actually teleporting so as to not spam logs) but they still go through when a spider spawns with a skeleton on it.

I've tried the functions involving passengers/riding but both give me errors in the console, so I'm not sure if those are bugged or maybe from another mod that I'm not meant to access.
The error being what's in the attachment.

terse oysterBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

tawny condorBOT
#

Paste version of error.txt from @wanton nacelle

wanton nacelle
#

after a bit of time I realized, at the point when the spider is spawning in, it doesn't know there's a skeleton riding it. so I scheduled the check for 2 ticks later and now it seems to work
that said, some functions are still acting as if they don't actually connect to anything, I just used different ones. I'll have to check if they exist/work on a client with no other mods

#

just realized I forgot some parentheses which caused some log spam tripeline
fixed that and it still works though