Jump to content

zacharyjaiden

Members
  • Posts

    59
  • Joined

  • Last visited

Everything posted by zacharyjaiden

  1. ive done something based around gamemodes recently using the living death event.... maybe it could be of some use to you, maybe playerupdate event or something to constantly check what game mode you are maybe the code below can hae some relevance to your task??? @SubscribeEvent public void MaybeSomeForgeEvent(Event event) { if (!event.entity.worldObj.isRemote && event.entity instanceof EntityPlayer) { if(event.entity.worldObj.getGameRules().getGameRuleBooleanValue("keepInventory") == false && !event.entity.worldObj.isRemote){ if(event.entity.worldObj.difficultySetting == EnumDifficulty.HARD){ if(event.entity instanceof EntityPlayer){ EntityPlayer player = (EntityPlayer)event.entity; Stuff here } }else if(event.entity.worldObj.difficultySetting == EnumDifficulty.NORMAL){ if(event.entity instanceof EntityPlayer){ EntityPlayer player = (EntityPlayer)event.entity; Stuff here } }else if(event.entity.worldObj.difficultySetting == EnumDifficulty.EASY){ if(event.entity instanceof EntityPlayer){ EntityPlayer player = (EntityPlayer)event.entity; Stuff here } }else{ if(event.entity.worldObj.difficultySetting == EnumDifficulty.PEACEFUL) if(event.entity instanceof EntityPlayer){ EntityPlayer player = (EntityPlayer)event.entity; Stuff here } } }
  2. ive seen a tutorial i could maybe link you to if i can find it that can make it so that if a mod steps on said block that a potion effect can be added, maybe you could make it so that rather it being a potion effect the mob experiences knock back or something or maybe you could edit it to allow for bound box changing idk worth a shot maybe?
  3. do you still need help mate or have you figured it out
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.