summaryrefslogtreecommitdiffstats
path: root/src/MobSpawner.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Apply new clang-formattingclang-format-codebaseAlexander Harkness2024-11-021-150/+61
|
* Implement slime chunks. (#5484)Michal Havlíček2023-04-081-1/+4
| | | | | | | * Implement slime chunks. * add cWorld::IsSlimeChunk * add documentation for cWorld::IsSlimeChunk
* Valid Height is now checked by vector.x12xx12x2022-04-201-1/+1
|
* Slime spawinig in swamps (#5281)JK2K2021-08-201-2/+19
| | | | | | | | | | | | | | * test commit * hook test/ .gitignore * Slime add light limitation * Slime spawning moon light * Casting fix for clang * Removal of redundant changes Extracted moon phases amount to const
* Convert most calls to blocking GetHeight/GetBiomeAt to direct chunk accessesTiger Wang2021-01-111-7/+0
| | | | * Hopefully fixes #5094
* Fixing Mob spawner behaviour (#4930)12xx122020-09-271-102/+115
| | | | | | | | | | | | | | | | | | | * fixed mob spawner failure (whoopsie in the BlockEntity.GetChunkZ()) Style * fixed spawning behaviour * fixed saving entity type saving * checkstyle * removed debug log * removed short saving * Style Co-authored-by: 12xx12 <12xx12100@gmail.com> Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
* Implement wither skeletons (#4563)Mat2020-04-041-1/+18
|
* Pulled the BlockID and BlockInfo headers from Globals.h. (#4591)Mattes D2020-04-031-0/+1
| | | | | | | | | The BlockID.h file was removed from Globals.h and renamed to BlockType.h (main change) The BlockInfo.h file was removed from Globals.h (main change) The ENUM_BLOCK_ID and ENUM_ITEM_ID enum names were replaced with ENUM_BLOCK_TYPE and ENUM_ITEM_TYPE (cosmetics) The various enums, such as eDimension, eDamageType and eExplosionSource were moved from BlockType.h to Defines.h, together with the helper functions for converting between them and strings (StringToDimension et al.) (minor) Many inline functions were moved from headers to their respective cpp files, so that BlockType.h could be included only into the cpp file, rather than the header. That broke our tests a bit, since they pick bits and pieces out of the main code and provide stubs for the rest; they had to be re-stubbed and re-verified. eMonsterType values are no longer tied to E_ITEM_SPAWN_EGG_META_* values
* Reduce ghast spawn rate againMat2020-03-271-1/+1
|
* Reduce ghast spawn rateMat2020-03-271-1/+1
|
* Improvements to blaze and ghast (#4547)Mat2020-03-261-1/+9
|
* Fix nether mob spawning (#4546)Mat2020-03-251-80/+93
| | | | | * Fix nether mob spawning * Remove zombie from nether mobs
* Moved growing from cWorld / cChunk to cBlockHandler descendants.Mattes D2019-10-281-77/+76
|
* Experience orb (#4259)changyong guo2018-08-021-2/+8
| | | | | | | * Replace cWorld::FindClosesPlayer with cWorld::DoWithClosestPlayer * Implement experience reward splitting into the orb sizes used in vanilla * Modified speed calculation in cExpOrb::Tick to make the orbs fly towards the player Fixes #4216
* Removed duplicate code (#4198)Bond-0092018-04-111-63/+148
| | | Should also fix dogs not despawning
* Replace ItemCallbacks with lambdas (#3993)peterbell102017-09-111-10/+1
|
* Revert "Replace ItemCallbacks with lambdas (#3948)"LogicParrot2017-09-021-1/+10
| | | | This reverts commit 496c337cdfa593654018c171f6a74c28272265b5.
* Replace ItemCallbacks with lambdas (#3948)peterbell102017-09-011-10/+1
|
* Changed entity ownership model to use smart pointersTiger Wang2017-08-071-6/+7
|
* FastRandom: Remove discrepancy between arg and return value type. (#3846)Mattes D2017-07-211-9/+5
|
* Remove sign conversionpeterbell102017-06-161-1/+2
|
* FastRandom rewrite (#3754)peterbell102017-06-131-10/+6
|
* Mobs no longer spawn at the top of the nether.tonibm192016-03-011-0/+5
| | | | | | | | | | | | | | | | | I don't really know if this is the right place for the check, but it works. Add bedrock check fix typo Using code provided by NiLSpace and fixed a horse's bug -Horses can no longer be "controlled" if they're not tamed and saddled removed unrelated horse code Fixed mobs spawning above bedrock
* Fixed non-natural spawning near player (egg, breeding, etc.)LogicParrot2016-01-161-174/+184
|
* Added cave spider to MobSpawnerLukas Pioch2015-10-291-0/+11
|
* Made -Weverything an error.tycho2015-05-241-1/+1
|
* CheckBasicStyle: checks spaces around * and &.Mattes D2015-05-091-2/+2
|
* Correct world height validations.Tommy Santerre2015-03-201-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
* Fixed grass spread, closes #1743Tiger Wang2015-03-141-5/+4
| | | | | - Removed the salt parameter in cFastRandom functions, it wasn't doing what we thought it was following the move to C++11
* Fixed monster spawn randomness.Mattes D2015-02-201-1/+2
| | | | Fixes #1699.
* Added RabbitsMasy982014-12-201-0/+2
|
* Added Entity GuardianMasy982014-12-181-0/+6
|
* Fixed reported parentheses around comparisons.Mattes D2014-12-051-4/+4
|
* updated mooshroom check for myceliump-mcgowan2014-12-021-1/+1
|
* extra formatting parenthesesp-mcgowan2014-12-021-2/+2
|
* added spawning rule to mooshroomp-mcgowan2014-12-021-0/+13
|
* Merge branch 'master' into MobSpawnerHowaner2014-11-181-1/+1
|\ | | | | | | | | Conflicts: MCServer/Plugins/Core
| * En masse NULL -> nullptr replaceTiger Wang2014-10-231-1/+1
| |
* | Merge branch 'master' into MobSpawnerHowaner2014-09-261-50/+50
|\| | | | | | | | | | | Conflicts: src/MobSpawner.h src/Mobs/Monster.h
| * Added first test to show the object can be createdTycho2014-09-171-50/+50
| |
* | Implemented mob spawner.Howaner2014-09-191-6/+7
|/
* Merge remote-tracking branch 'origin/master' into portalsTiger Wang2014-07-221-3/+3
|\ | | | | | | | | | | | | | | Conflicts: src/Chunk.cpp src/Entities/Player.cpp src/Root.cpp src/World.cpp
| * Style: Normalized to no spaces before closing parenthesis.madmaxoft2014-07-211-1/+1
| |
| * Style: Normalized spaces after if, for and while.madmaxoft2014-07-211-1/+1
| |
| * Fixed style: spaces after commas.madmaxoft2014-07-191-1/+1
| |
* | Bug and crash fixesTiger Wang2014-07-201-1/+2
|/ | | | | | | | | * Fixes end portals' solidity * Fixed crashes to do with multithreading and removing an entity from the wrong world * Fixed crashes due to bad merge * Fixed crashes due to an object being deleted twice * Simplified cWorld::Start() and added comments to configuration files
* Fixed basic whitespace problems.madmaxoft2014-07-171-1/+1
| | | | Indenting by spaces and alignment by spaces, as well as trailing whitespace on non-empty lines.
* Fixed MSVC 64-bit build warnings.Mattes D2014-05-091-3/+3
|
* Did some static analysis, fixed some bugs and optimized a lot of codejfhumann2014-04-181-2/+2
|
* Realised suggestionsTiger Wang2014-03-311-5/+8
|
* Fixed a few Y too high/low assertsTiger Wang2014-03-311-5/+7
|
* Add new leaves to all classes.Howaner2014-03-161-1/+1
|
* g_BlockXXX => cBlockInfo::XXXandrew2014-03-011-7/+7
|
* Fixed compile and some warnings in MSVSTiger Wang2014-02-091-1/+1
|
* Moved source to srcAlexander Harkness2013-11-241-0/+361