summaryrefslogtreecommitdiffstats
path: root/src/Simulator/SandSimulator.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Use tracing for explosions (#4845)Tiger Wang2020-09-121-23/+23
| | | | | | | | | | | | | | | | | | | | | | | | * TNT: Implement tracing algorithm + Add intensity tracing * Fix iterating over all players to SendExplosion, even those not in range * Implemented TNT entity interaction * Fixed misaligned destruction tracing * Finalise TNT algorithm - Remove BlockArea and just use chunks Using SetBlock makes it so that we can update everything properly, and does appear to be faster. * BlockInfo learns about explosion attentuation * Rename Explodinator parameters * TNT: pull block destruction into common function Co-authored-by: Alexander Harkness <me@bearbin.net>
* Always use relative coordinates in AddBlockTiger Wang2020-08-021-10/+4
| | | | | + Pass block, use relatives * Fixes everything immediately converting abs back to rel and getting block, when these data were already available
* Add WakeUp/AddBlock distinctionTiger Wang2020-08-021-1/+1
| | | | | | * WakeUp is for singular changes (block breaking for example). The simulator should check blocks around the position and discover other affected blocks as it sees fit * AddBlock is for when you know a whole area is to be updated; chunk loading, or area wakeups for example + Prepares for correct handling of destroyed blocks after removal of SolidBlockHandler in the redstone simulator
* Falling blocks can now be spawned at any position. (#4620)Mattes D2020-04-091-6/+1
| | | | | | | * Falling blocks can now be spawned at any position. * Added a /cake command to Debuggers that throws a cake in a nice slow arc. * Fixed regular falling blocks.
* Pulled the BlockID and BlockInfo headers from Globals.h. (#4591)Mattes D2020-04-031-1/+2
| | | | | | | | | 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
* Refactored block-to-pickup conversion. (#4417)Mattes D2019-10-161-2/+2
|
* Add a formatting function for Vector3 (#4282)peterbell102018-09-241-3/+3
| | | | | | | | | | * Vector3: Add custom fmt compatible formatter. * cLuaState: Add fmt version of ApiParamError * Use vector formatting in manual bindings * Always log vectors with FLOG
* cWorld: Manually bind deprecated broadcast functions (#4265)peterbell102018-07-271-1/+1
| | | Ref: https://github.com/cuberite/cuberite/pull/4264#discussion_r204769193
* Concrete mixing (#4096)Zach DeCook2018-01-031-0/+5
| | | | | | | | | Adds a block handler for concrete powder and implements hardening to concrete. Concrete powder turns into concrete when: * It is next to water when it receives a block update * It falls onto a water block (even with Physics SandInstantFall=1)
* Merge pull request #3489 from cuberite/EntityOwnershipTiger Wang2017-08-181-4/+4
|\ | | | | * Changed entity ownership model to use smart pointers
| * Changed entity ownership model to use smart pointersTiger Wang2017-08-071-4/+4
| |
* | Changed int parameters to vector parameters in cCuboid and simulators (#3874)Lane Kolbly2017-08-171-6/+6
|/
* Remove double includes part 2 (#3890)peterbell102017-08-031-1/+0
|
* Added 1.12 blocks (#3760)Bond-0092017-06-301-3/+7
|
* Added missing checks for Initialize function and updated APIDocLukas Pioch2017-05-081-1/+6
|
* Added some blocks and items (#3503)mathiascode2017-02-141-0/+9
|
* Bulk clearing of whitespaceLogicParrot2016-02-051-5/+5
|
* Add enum for Sound and Particle EffectsDave Tucker2015-11-241-1/+2
| | | | | | Fixes #2603 Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
* Fix commentstycho2015-05-281-4/+5
|
* Made -Weverything an error.tycho2015-05-241-3/+7
|
* Initial convertion of a_Dt to std::chronoTycho2015-01-111-1/+1
| | | | also refactored cWorld::m_WorldAge and cWorld::m_TimeOfDay
* Merged IniFile into main MCS sources.Mattes D2014-10-231-1/+1
|
* En masse NULL -> nullptr replaceTiger Wang2014-10-231-1/+1
|
* Fixed iron trapdoorsHowaner2014-09-301-0/+1
|
* Added first test to show the object can be createdTycho2014-09-171-0/+1
|
* Fixed deadlock when moving players to other worlds.Mattes D2014-06-081-1/+1
| | | | Fixes #1039, fixes #851
* Fixed MSVC 64-bit build warnings.Mattes D2014-05-091-1/+1
|
* Add clicks, exp subtraction, item check, ...Howaner2014-05-051-0/+4
|
* Add Light weighted pressure platesHowaner2014-02-201-0/+2
|
* Moved source to srcAlexander Harkness2013-11-241-0/+309