Skript doesn't recognise spawn eggs as item stacks. It used to do it in version 2.2-dev37c when I was using "spawn_egg" instead of "spawn egg", but now neither "spawn_egg" nor "spawn egg" works and both display same error message
Can't compare an item stack with 'spawn egg' (looting.sk, line 50: if event-item is spawn egg:')
or
Can't compare an item stack with 'spawn egg' (looting.sk, line 50: if event-item is spawn_egg:')
on pickup:
if event-item is spawn egg:
if name of event-item is "&aCat Grenade":
if player's gamemode is survival:
if player has spawn egg:
It should just work and do the code after 'if event-item is spawn egg:' thing.
Can't compare an item stack with 'spawn egg' (looting.sk, line 50: if event-item is spawn egg:')
It is just that the aliases changed a bit, you can try using any spawn egg instead.
It still doesn't work at least partially, it doesn't give any errors, but putting any spawn egg instead of spawn egg doesn't make the code work. And there are cases when I have to check the amount of spawn eggs player has and then I can't use if player has 2 any spawn eggs: as it gives me the same error as before.
It should, but aliases of 1.12.2- don't support the plural form (any spawn eggs). Also the any should be optional.
Anyways this works fine on 1.13.2:
on pickup:
if event-item is any spawn egg:
broadcast "ok"
Note that if you are using send, you need to specify the player using to player because it tries to send the message to event-entity which is the dropped item.
By coincidence, i noticed that any spawn egg doesn't include zombie pigman spawn egg.
I've updated the spawn egg alias groups to all be formatted as [any] spawn egg娄s
This should be fixed in the latest release.