Help Sign In/Register

Minecraft Forums

Advanced Search
  • News
  • Rules
  • Forum
  • Chat
  • Mods
  • Maps
  • Resource Packs
  • Minecraft Station
  • Minecraft Server Hosting
Desktop View
  • Home
  • Member List
  • whyissohardtogetanickname's Profile
  • Send Private Message
  • View whyissohardtogetanickname's Profile
  • whyissohardtogetanickname
  • Registered Member
  • Member for 2 months and 24 days
    Last active Fri, Jan, 15 2021 17:07:57
  • 0 Followers
  • 5 Total Posts
  • 0 Thanks
  • Member
  • Posts
  • Threads
  • Reputation
  • Comments
  • Forum Posts
  • View whyissohardtogetanickname's Profile

    0

    Dec 20, 2020
    whyissohardtogetanickname posted a message on Prevent death if player has a tamed animal

    Hello guys!

    I'm trying to prevent the player death if it has a tamed phoenix, but I have no idea on how to make the event detect it.

    Any help would be appreciated.

    Here's my code:

    public class EventPhoenixRevive {
        @SubscribeEvent
        public void onPlayerDeath(LivingDeathEvent event) {
            World world = event.getEntity().getEntityWorld();
            if (!world.isRemote) {
                if (event.getEntityLiving() instanceof EntityPlayer) {
                    EntityPlayerMP mp = (EntityPlayerMP) event.getEntity();
                    EntityPhoenix phoenix = idk what to put here
                    if (phoenix.isOwner(mp)) {
                        mp.setHealth(1.0F);
                        mp.addPotionEffect(new PotionEffect(MobEffects.REGENERATION, 900, 1));
                        mp.addPotionEffect(new PotionEffect(MobEffects.ABSORPTION, 100, 1));
                        world.playSound(mp, mp.getPosition(), SoundEvents.ITEM_TOTEM_USE, mp.getSoundCategory(), 1, 1);
                    }
    
                }
            }
        }
    }
    Posted in: Modification Development
  • View whyissohardtogetanickname's Profile

    0

    Nov 5, 2020
    whyissohardtogetanickname posted a message on Making an entity Work as a totem of undying

    Thank you

    Posted in: Modification Development
  • View whyissohardtogetanickname's Profile

    0

    Nov 4, 2020
    whyissohardtogetanickname posted a message on Making an entity Work as a totem of undying

    In my mod I have an entity that is meant to work as a totem of undying preventing his owner's death once and after that becoming a common parrot, the problem here is that I couldn't find the functionality of the totem anywhere so I do not know how could I do this. Any help would be appreciated.

    Posted in: Modification Development
  • View whyissohardtogetanickname's Profile

    0

    Oct 27, 2020
    whyissohardtogetanickname posted a message on How do I can make a mob generate another one in relation of where the player stands?

    Oh, I got it, I never used getEntitiesWithinAABB before so I make things much complex than what I needed, Thanks for helping

    .

    Posted in: Modification Development
  • View whyissohardtogetanickname's Profile

    0

    Oct 26, 2020
    whyissohardtogetanickname posted a message on How do I can make a mob generate another one in relation of where the player stands?

    Ok, so far I got this:

    protected void castSpell() {
    EntityZombie zombie = new EntityZombie(Iceologer.this.world);
    float range = 15F;
    Iceologer.this.world.getEntitiesWithinAABB(EntityPlayer.class);
    Iceologer.this.world.spawnEntity(zombie);
    player.getPositionVector();
    }
    zombie is a placeholder til I fix the iceCloud
    I need to fix get Entities WIthinAABB & getPositionVector



    Posted in: Modification Development
  • View whyissohardtogetanickname's Profile

    0

    Oct 25, 2020
    whyissohardtogetanickname posted a message on How do I can make a mob generate another one in relation of where the player stands?

    So basically I'm trying to make Iceologer for 1.12.2, I want to get the Iceologer to summon the Ice Cloud Above the player (like 2 or 3 blocks above it), any help would be great.

    Posted in: Modification Development
  • To post a comment, please login.

Social Media

Services

Sign In

Help

Advertise

Resources

Terms of Service

Privacy Policy

Our Communities

  • MMO-Champion
  • HearthPwn
  • Minecraft Forum
  • Overframe
  • MTG Salvation
  • DiabloFans

© 2021 MagicFind, Inc. All rights reserved.

Mobile View