mirror of
https://github.com/allaryin/FairyFactions.git
synced 2026-04-26 01:31:30 -05:00
Add Creative Spawn egg (very difficult)
This commit is contained in:
parent
0d33410041
commit
8ee383308d
|
|
@ -2347,6 +2347,8 @@ public class EntityFairy extends EntityAnimal {
|
|||
if (!worldObj.isRemote
|
||||
&& ( ridingEntity == null || ridingEntity == player || ridingEntity instanceof EntityMinecart )) {
|
||||
ItemStack stack = player.inventory.getCurrentItem();
|
||||
// TODO: spawn eggs aren't producing queens. Add a EntityAgeable style interaction
|
||||
// to get them, the way you can spawn baby cows...
|
||||
|
||||
if (isRuler(player)) {
|
||||
if (stack != null && getHealth() < getMaxHealth()
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ public class CommonProxy {
|
|||
}
|
||||
|
||||
public void initEntities() {
|
||||
EntityRegistry.registerGlobalEntityID( EntityFairy.class, "Fairy", EntityRegistry.findGlobalUniqueEntityId() );
|
||||
EntityRegistry.registerGlobalEntityID( EntityFairy.class, "Fairy", EntityRegistry.findGlobalUniqueEntityId(), 0xea8fde, 0x8658bf );
|
||||
EntityRegistry.registerModEntity( FairyEntityFishHook.class, "FairyFishhook", EntityRegistry.findGlobalUniqueEntityId(), FairyFactions.INSTANCE, 64, 4, true );
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user