the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at master 18 lines 299 B view raw
1#pragma once 2 3#include "TargetGoal.h" 4 5class VillagerGolem; 6 7class DefendVillageTargetGoal : public TargetGoal 8{ 9private: 10 VillagerGolem *golem; // Owner of this goal 11 weak_ptr<LivingEntity> potentialTarget; 12 13public: 14 DefendVillageTargetGoal(VillagerGolem *golem); 15 16 bool canUse(); 17 void start(); 18};