the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1#include "stdafx.h"
2#include "net.minecraft.world.entity.animal.h"
3#include "NonTameRandomTargetGoal.h"
4
5NonTameRandomTargetGoal::NonTameRandomTargetGoal(TamableAnimal *mob, const type_info& targetType, int randomInterval, bool mustSee) : NearestAttackableTargetGoal(mob, targetType, randomInterval, mustSee)
6{
7 tamableMob = mob;
8}
9
10bool NonTameRandomTargetGoal::canUse()
11{
12 return !tamableMob->isTame() && NearestAttackableTargetGoal::canUse();
13}