summaryrefslogtreecommitdiffstats
path: root/src/Mobs/Villager.h (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-12-29Improved farmer AI & Fixed entity loading functions (#5351)Persson-dev1-11/+50
* Allow villagers to pickup items * Add farmer villager harvesting * Use of auto keyword * Using for loop to check adjacent crops * Show particules when farmer harvest * Fix area comment * Move constants to header file * Removing unnecessary semicolon * Initialization of CropBlockType variable * Apply 12xx12 suggestion * Fixing area constant size * Refactor bounding box calculation, use vectors. * Add Api documentation * Update lua docs * Rework farmer ai * Fixing lua docs notes * Add missing capitalisation * Add villagers inventory save * Fixing loading entities from disk inconsistencies * Add farmer harvest animation * Fix beetroots grow state Co-authored-by: Alexander Harkness <me@bearbin.net>
2020-04-16Using Super.Mattes D1-2/+2
2020-04-10Add Zombie VillagersBond-0091-0/+4
2018-08-29Force all headers other than "Globals.h" to be included with relative paths (#4269)peterbell101-1/+1
Closes #4236 CMake now creates a header file in the build directory under the path "include/Globals.h" which just includes "src/Globals.h" with an absolute path. Then instead of adding "src/" to the include directories, it adds "include/". #include "Globals.h" still works by including the build generated file and any other src-relative path will not work.
2016-02-05Bulk clearing of whitespaceLogicParrot1-1/+1
2015-07-31Unified the doxy-comment format.Mattes D1-4/+4
2015-01-11Initial convertion of a_Dt to std::chronoTycho1-1/+1
also refactored cWorld::m_WorldAge and cWorld::m_TimeOfDay
2014-09-26Removed more unessicary includesTycho1-1/+1
2014-07-24Removed redundant semicolons and re-added warningarchshift1-1/+1
2014-07-17Normalized comments.madmaxoft1-3/+2
This was mostly done automatically and then visually inspected for obvious errors. All //-style comments should have a 2-space separation from the code, and 1 space after the comment sign.
2014-04-26Add entity invulnerableHowaner1-1/+1
2014-03-25Minor fixesandrew1-1/+1
2014-01-28Renamed Farmer functions and added doxycommentsSTRWarrior1-6/+13
2014-01-27Villager: Few more comments.STRWarrior1-1/+1
2014-01-27CleanupSTRWarrior1-3/+7
Most code in Tick is now split up in different functions.
2014-01-27Added GetCropsPos and DidFindCrops functions.STRWarrior1-0/+6
2014-01-27Villagers: Farmers now replant the crops.STRWarrior1-0/+1
2014-01-27Villagers: Farmers can also harvest carrots and potatoes.STRWarrior1-0/+1
2014-01-27Makes farmers farm crops.STRWarrior1-0/+5
2013-11-24Moved source to srcAlexander Harkness1-0/+0
2013-10-13Eight round of fixesTiger Wang1-6/+7
* Changed IsA() to *long if statement* - Removed deprecated values in Entity.h - to blazes with the plugins! * Renamed villager type enumerations to be LESS SHOUTY and more vt-y + Use vtMax for World.cpp testificate spawning
2013-10-11Fifth round of fixesTiger Wang1-2/+13
* Enumerated Villager spawning
2013-10-08Initial Metadata Commit [SEE DESC]Tiger Wang1-1/+9
+ Pigs, Minecarts, Sheep, Skeletons, Slimes, Villagers, Wolves, and Horses have metadata + Base code on taming wolves, shearing sheep, and taming horses + Sheep and horses have different colours when spawned
2013-07-29Changed everyting to Unix line endings.Alexander Harkness1-23/+23
2012-12-21Reworked the IsA() / GetClass() framework to actually be useful. Added GetParentClass().madmaxoft@gmail.com1-1/+1
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1090 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-12-21Refactored the TakeDamage API to take equipped weapon and armor into consideration (PvP untested)madmaxoft@gmail.com1-5/+14
http://forum.mc-server.org/showthread.php?tid=625 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1087 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-10-19Added spawn eggs with mobs (patch committed by Luksor)madmaxoft@gmail.com1-14/+14
git-svn-id: http://mc-server.googlecode.com/svn/trunk@979 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-23Source files cleanup: Mobs-related files in a separate subfolder, renamed.madmaxoft@gmail.com1-1/+1
git-svn-id: http://mc-server.googlecode.com/svn/trunk@883 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-06-14Attempt to bring sanity to newlines across systems.cedeel@gmail.com1-14/+14
git-svn-id: http://mc-server.googlecode.com/svn/trunk@606 0a769ca7-a7f5-676a-18bf-c427514a06d6
2011-12-25- Fixed Bug #99 -> Mobs no longer bother you in creative modelapayo94@gmail.com1-12/+5
- refactored many things in the Monster system git-svn-id: http://mc-server.googlecode.com/svn/trunk@112 0a769ca7-a7f5-676a-18bf-c427514a06d6
2011-10-03MCServer c++ source filesfaketruth1-0/+21
git-svn-id: http://mc-server.googlecode.com/svn/trunk@3 0a769ca7-a7f5-676a-18bf-c427514a06d6