summaryrefslogtreecommitdiffstats
path: root/src/Mobs/Sheep.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2022-01-14syntaxTiger Wang1-1/+1
2022-01-14Fixed Compiler Warningsx12xx12x1-1/+1
2021-04-12Unify multiprotocol entity animationsTiger Wang1-1/+1
2021-04-12Update entity sizesTiger Wang1-1/+1
2021-03-15Properly deprecate more XYZ parameter'd functions (#5147)Tiger Wang1-4/+4
* Fixes #5144
2021-03-07Some emplace_back replacements (#5149)12xx121-1/+1
* replace push_back with emplace_back when a new object was created in the function call
2020-10-09Adding wolf breading and moving breeding functionality to cMonster (#4951)12xx121-1/+1
* added wolf breading * mpoved breeding to monster * checkstyle * fixed my IDE "helping" * removed magic number and fixed faster aging * added flooring to age manipulation * fixed copiler error * fixed typo * moved tps to Defines.h * removed the TPS constant from the lua API exposure * added inline constexpr added explanation * fixed broken build * "fixed" build Co-authored-by: 12xx12 <12xx12100@gmail.com>
2020-04-16Using Super.Mattes D1-3/+3
2020-04-16Prevent crash when breedingMat1-2/+0
2020-03-27Fix typo in block break particle coordinate (#4555)Mat1-1/+1
* Use Vector3d for block break particle * Fix typo
2020-03-22Add ambient mob sounds (#4521)Mat1-1/+1
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.
2018-07-27cWorld: Manually bind deprecated broadcast functions (#4265)peterbell101-1/+1
Ref: https://github.com/cuberite/cuberite/pull/4264#discussion_r204769193
2018-01-05Item durability loss now depends on the item used. (#4123)Alexander Harkness1-1/+0
Armour durability also no longer changes when it is used to break blocks or attack mobs. Fixes #4119
2017-10-21Fixed some small passive mob issues (#4057)Bond-0091-0/+5
* Chickens can be bred with seeds, beetroot seeds, melon seeds, or pumpkin seeds Ref: https://minecraft.gamepedia.com/Chicken#Baby_chicken * Baby passive mobs don't drop items * Fixed the size of some mobs
2017-09-19Changed BroadcastSoundEffect, SendSoundEffect, and CastThunderbolt parameters to vectors (#3959)Lane Kolbly1-1/+1
* Made BroadcastSoundEffect take vector parameters. * Added docs for new vectored methods * Removed old code * Fixed lua warnings * Made old BroadcastSoundEffect not an override. * m_Block to m_BlockPos, used Vector3d constructor where prettier. * a_Block to a_BlockPos * Changed thunderbolt a_Block to a_BlockPos
2017-08-03Remove double includes part 2 (#3890)peterbell101-1/+0
2017-06-13FastRandom rewrite (#3754)peterbell101-7/+5
2017-02-15Updated sounds and effect IDs (#3422)mathiascode1-2/+2
2016-09-03Entities now bail out of ticks if destroyed (#3363)LogicParrot1-0/+5
2015-12-13sheep color inheritanceGargaj1-0/+40
2015-11-24Add enum for Sound and Particle EffectsDave Tucker1-1/+2
Fixes #2603 Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
2015-05-19Make -Werror disabling file onlytycho1-3/+3
Ad fix a load of warnings
2015-05-01A* Pathfinding and better monster AIwiseoldman951-1/+1
2015-03-20Correct world height validations.Tommy Santerre1-1/+1
Unify the way we test block above the current one (Height - 1 instead of a_RelY + 1). Allow generation of world of flat height = 255
2015-01-11Initial convertion of a_Dt to std::chronoTycho1-1/+1
also refactored cWorld::m_WorldAge and cWorld::m_TimeOfDay
2014-10-23En masse NULL -> nullptr replaceTiger Wang1-1/+1
2014-10-20En masse NULL -> nullptr replaceTiger Wang1-1/+1
2014-09-11Fixed mutton name in Sheep.cppMasy981-1/+1
2014-09-03Fixed style and alpha-sorting.madmaxoft1-7/+7
2014-09-03Added mutton, which sheep now drop when killedarchshift1-0/+7
2014-09-01Added name tagHowaner1-0/+2
2014-07-23Fix item durability.Howaner1-5/+1
Fixes #1181
2014-07-17Normalized comments.madmaxoft1-2/+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-07-13Update.Howaner1-1/+1
2014-06-30Moved the random code to a function (cSheep::GenerateNaturalRandomColor())Howaner1-32/+40
2014-06-28Fix sheep color's, add shear sound.Howaner1-1/+40
2014-04-18Did some static analysis, fixed some bugs and optimized a lot of codejfhumann1-3/+4
2014-04-12Entities handle chunks properly againTiger Wang1-1/+1
* Entities properly handle chunks * Changed EntityStatus enums to be less shouty
2014-02-27Fixed sheep ASSERTing sometimesTiger Wang1-8/+18
2014-01-29Rewritten code.tonibm191-23/+0
Implemented xoft suggestion. Using MoveToPosition as tigerw suggested.
2014-01-29Fixed sheeptonibm191-18/+17
2014-01-29Fixed a copypasta error...tonibm191-0/+1
2014-01-29Now mobs follow you when holding their breed itemtonibm191-0/+24
2014-01-25Implemented sheeps eating grass.STRWarrior1-1/+38
2013-11-24Moved source to srcAlexander Harkness1-0/+0
2013-11-10Fixes (SEE DESC)tonibm191-1/+7
Entity metadata is broadcasted. If player is in survival, his equipped item is removed. If you have green dye, and sheep is green, your equipped item won't be removed.
2013-11-10STR_Warrior was right.tonibm191-160/+1
Simplified code.
2013-11-10Fixed compilationtonibm191-3/+2
2013-11-10You can no longer color with woodtonibm191-158/+161
2013-11-10Added sheep dyeingtonibm191-2/+156
2013-10-28Fixed indentation in tonibm19's code.madmaxoft1-3/+3
2013-10-28Fixed compilationtonibm191-1/+1
STR_Warrior code had an error (I copied&pasted it before)
2013-10-28Use STR_Warrior code and changed variable nametonibm191-17/+4
2013-10-27Extra linetonibm191-0/+1
2013-10-27Sheep fixes.tonibm191-4/+19
Now amount of wool you get when shearing a sheep is random. Sheeps only spawn in white color (I will add sheep dying soon).
2013-10-20Fixed loading allowed mobs in world.madmaxoft1-1/+1
2013-10-08Initial Metadata Commit [SEE DESC]Tiger Wang1-2/+26
+ 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-01Rewritten entity-on-fire management ("forever on fire" bugs)madmaxoft@gmail.com1-2/+2
Fixes FS #297 and part of FS #403. Added sizes to all entities. Moved all damage-related functions from cPawn to cEntity API change: renamed cPawn:TeleportTo() to cEntity:TeleportToCoords() git-svn-id: http://mc-server.googlecode.com/svn/trunk@1635 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-02-16Removed all E_ITEM_ symbols equivalent to E_BLOCK_, and all obsolete item and block symbols.madmaxoft@gmail.com1-1/+1
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1218 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-12-22Reduced most mobs' constructors to oneliners by passing parameters to superclassesmadmaxoft@gmail.com1-4/+1
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1095 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-12-21Added sounds to levers and mobsluksor111@gmail.com1-0/+2
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1093 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-12-21Reworked the IsA() / GetClass() framework to actually be useful. Added GetParentClass().madmaxoft@gmail.com1-9/+0
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-30/+7
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-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-65/+65
git-svn-id: http://mc-server.googlecode.com/svn/trunk@606 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-06-06Item-dropping code rewritten and centralized - now there's only one place to modify if we want to split or merge same-item drops: cWorld:SpawnItemPickups(). Also, mined blocks can now drop more items, and they recognize if they're being mined by the correct tool.madmaxoft@gmail.com1-6/+39
git-svn-id: http://mc-server.googlecode.com/svn/trunk@561 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-01-29VC2008 / VC2010: Enabled precompiled header through Globals.h; the header included in every module in the project. Compilation optimization.madmaxoft@gmail.com1-0/+3
git-svn-id: http://mc-server.googlecode.com/svn/trunk@188 0a769ca7-a7f5-676a-18bf-c427514a06d6
2011-12-25- Fixed Bug #99 -> Mobs no longer bother you in creative modelapayo94@gmail.com1-57/+1
- refactored many things in the Monster system git-svn-id: http://mc-server.googlecode.com/svn/trunk@112 0a769ca7-a7f5-676a-18bf-c427514a06d6
2011-12-21- Crafting fixed in 1.0.0lapayo94@gmail.com1-11/+6
- Server compatible with the weapons and equip again. (Some Packets were incompatible) - fixed bucket bugs (not all) - Fixed clients getting crashed by wrong Pickups - fixed nearly all mob drops. (Check wheather they are burning is missing Big Grin) - maybe some other things I canĀ“t recall atm Big Grin git-svn-id: http://mc-server.googlecode.com/svn/trunk@94 0a769ca7-a7f5-676a-18bf-c427514a06d6
2011-10-31Prepared some parts of the code for multi world support, I created lots of TODO'sfaketruth1-2/+2
git-svn-id: http://mc-server.googlecode.com/svn/trunk@29 0a769ca7-a7f5-676a-18bf-c427514a06d6
2011-10-26git-svn-id: http://mc-server.googlecode.com/svn/trunk@10 0a769ca7-a7f5-676a-18bf-c427514a06d6admin@omencraft.com1-14/+14
2011-10-03MCServer c++ source filesfaketruth1-0/+90
git-svn-id: http://mc-server.googlecode.com/svn/trunk@3 0a769ca7-a7f5-676a-18bf-c427514a06d6