Robin Withes
Members-
Posts
9 -
Joined
-
Last visited
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
Robin Withes's Achievements
Tree Puncher (2/8)
0
Reputation
-
[removed]
-
Well but i cant, @SubscribeEvent public void entitySpawned(EntityJoinWorldEvent event) { Entity entity = event.getEntity(); if (MonsterConfig.isEnhancedMob(entity.getDisplayName().getUnformattedText()) && !entity.isDead) { //Add potion effect to entity here } } This is my event currently, i have no idea how to convert the entity to a entitylivingbase. No idea what that means, i already tried this: EntityLivingBase entityLivingBase = (Entity) entity;
-
That's peculier then because i am trying to add a effect to a creeper, which should be possible then right? I have a creeper stored into a entity object, can i convert it to entitylivingbase somehow?
-
I dont get the difference between the 2?
-
[removed]
-
Any way to detect when a specific entity dies?
Robin Withes replied to Robin Withes's topic in Modder Support
Ah, any chance you can send me some documentation or supply me with a code snippet? -
Any way to detect when a specific entity dies?
Robin Withes replied to Robin Withes's topic in Modder Support
Is capabilities something originally from Java or from forge, i never heard of it before. -
Any way to detect when a specific entity dies?
Robin Withes replied to Robin Withes's topic in Modder Support
Ah thanks, was hoping there was a cleaner way to do it but i guess not. -
Hey everyone, been trying for a while to look for a solution to this problem: So i am looking for certain mobs to spawn with entitySpawned(EntityJoinWorldEvent event) Then when i find the mob i'm looking for i want to do something like this to it: //Obviously just a dumbed down example public void entitySpawned(EntityJoinWorldEvent event) { Entity entity = event.getEntity(); if (true) { entity.onDead(someFunction()); //Runs when the entity dies. } } What would be a ideal solution to this?