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