Support for shulkers and polar bears in dev17 seems to be broken. They both also return "creature" as their entity type when doing something like send "%player's target%". Tested both on my public server (7 versions behind) and on my test server with the newest Spigot build.
Not to mention ShulkerBullets too. Its as if they weren't added to the entity alias list, I cant do simple things like: Spawn a shulker at the player, since the shulker is not recognised
Hmm. Probably a bug.
I can confirm that the code for strays does generally work (spawn a stray at the player spawns one). Looking at one and doing send "%target%" still just sends "skeleton", but that's not as important.
Also stuff like push player's target upwards at speed 2 will push polar bears up and other mobs
@bensku Do you expect this to be fixed in the next release? I have a fun script idea that relies on polar bears being supported :blush:
I managed to fix shulkers and their bullets, but for some reason Skript refuses to parse polar bear as entity type even after I have verified that it is registered.
Why? Well, due to too much spaghetti code, but I don't know exactly why. For exact same reason why it took me 4 hours to figure out why Skript didn't spawn any entities in certain conditions, it is kinda hard to fix issues like these.
I guess on the bright side that means for now we can check if "%event-entity%" is "creature" to see if it's a polar bear. Right now that doesn't work because shulkers also label as creature, but it'll work if they're the only broken entity.
Glad shulkers are working at least! Hope you're able to find the rest of the problem eventually.
I'm still having this issue with all 1.9+ mobs and variants (save strays) in dev18b, am trying here. Running this version of Spigot. Very strange!
For now I'm able to detect the difference between shulkers and polar bears via SkStuff by checking if the mob has the Shulker-unique tags, so this isn't personaly a massively huge priority or anything, but should probably be addressed in the near future.
Scratch my last comment, I had an extra SkQuery API jar lying around that was causing the issue. I have more info now :)
spawn a shulker now works. Using send "%target%" on a shulker returns "entities.golem.name"
spawn a polar bear doesn't work, BUT spawn a polar bears _does_. It needs to be plural to work. send "%target%" on a polar bear returns "polar bear", as expected.
So in summary, the current issues left for full 1.10 entity support are:
polar bears in plural. This applies to all forms of referencing them (e.g. need to do if clicked entity is a polar bears)Some of what you meantioned are indeed bugs... But other things do work for me. I need to debug more :)
This is finally fixed in next release.
Thank you :)
Most helpful comment
I managed to fix shulkers and their bullets, but for some reason Skript refuses to parse polar bear as entity type even after I have verified that it is registered.
Why? Well, due to too much spaghetti code, but I don't know exactly why. For exact same reason why it took me 4 hours to figure out why Skript didn't spawn any entities in certain conditions, it is kinda hard to fix issues like these.