Jump to content
  • Home
  • Files
  • Docs
Status Updates
  • All Content

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • Joshua66252

Joshua66252

Members
 View Profile  See their activity
  • Content Count

    2
  • Joined

    Tuesday at 09:44 PM
  • Last visited

    Friday at 11:17 PM

 Content Type 

  • All Activity

Profiles

  • Status Updates
  • Status Replies

Forums

  • Topics
  • Posts

Calendar

  • Events

Everything posted by Joshua66252

  1. Joshua66252

    [1.16.4] Removing Mob AI

    Joshua66252 replied to Joshua66252's topic in Modder Support

    @SubscribeEvent public void entSpawn(EntityJoinWorldEvent event) { if (event.getEntity() instanceof ZombieEntity) handleZombie((ZombieEntity) event.getEntity(), event); } It does Check If Its A Zombie This Is The Code For That Edit: Btw Can You Please Send Me The Docs For ObfuscationReflectionHelper I Can't Find Them
    • Wednesday at 09:40 PM
    • 3 replies
  2. Joshua66252

    [1.16.4] Removing Mob AI

    Joshua66252 posted a topic in Modder Support

    I'm Trying To Remove All AI From A Mob Currently I Have Removed All Goal Selector Goals But I'm Not Sure How To Go About Removing Target Selector Goals This Is My Current Code public void handleZombie(Entity ent,EntityJoinWorldEvent event) { ZombieEntity castEnt=((ZombieEntity)ent); Set<PrioritizedGoal> goals = ObfuscationReflectionHelper.getPrivateValue(GoalSelector.class, castEnt.goalSelector, "goals"); goals.clear(); } The Reason I Need To Remove Target Selector Goals Is Because If I Add castEnt.goalSelector.addGoal(2, new ZombieAttackGoal(castEnt, 1.0D, false)); It Will Start Attacking The Player
    • Tuesday at 09:47 PM
    • 3 replies
  • All Activity
  • Home
  • Joshua66252
  • Theme

Copyright © 2019 ForgeDevelopment LLC · Ads by Longitude Ads LLC Powered by Invision Community