summaryrefslogtreecommitdiffstats
path: root/src/BlockInfo.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fixed leaves and wheat not breakable with piston (#4882)Elias Thomson2020-09-171-1/+4
| | | | | | | | | * Fixed leaves and wheat not breakable with piston * Fixed alpha-sort * Add beetroots Co-authored-by: Elias Thomson <fiv.pids@gmail.com>
* BlockHandler: no dynamic allocation (#4862)Tiger Wang2020-09-171-11/+9
| | | * BlockHandler: no dynamic allocation
* Fixed doors not breakable by piston (#4869)Elias Thomson2020-09-151-0/+5
| | | Co-authored-by: Elias Thomson <dev@eliasthomson.com>
* Use tracing for explosions (#4845)Tiger Wang2020-09-121-0/+121
| | | | | | | | | | | | | | | | | | | | | | | | * 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>
* Change stained clay hardness valueAlexander Harkness2020-04-101-1/+1
|
* Pulled the BlockID and BlockInfo headers from Globals.h. (#4591)Mattes D2020-04-031-1/+432
| | | | | | | | | 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
* Fix Snow Spawn on Cobblestone Slab (#4564)Xenoxis2020-03-281-0/+1
|
* Correct block transparenciesPeter Bell2019-12-051-0/+5
|
* CheckBasicStyle: Check number of empty lines between functions (#4267)peterbell102018-07-261-0/+3
| | | | Add check for number of empty lines between functions and fix the corresponding failures
* Update m_IsSolid assignments in BlockInfo (#4167)Alexander Harkness2018-06-241-0/+7
| | | Fixes #4166
* * Block Info: glazed terracotta and concrete hardness/solid voxel status (#4205)Zach DeCook2018-04-021-0/+35
|
* Removed cBlockInfo.m_IsSnowable (#4105)Bond-0092018-01-231-85/+3
| | | | | | * Removed cBlockInfo.m_IsSnowable * Return IsSnowable from deprecated variable binding m_IsSnowable.
* improve rain simulation (#4017)Alexander Harkness2017-12-261-7/+18
| | | | | | | | | | | * Uses vanilla logic to decide which blocks rain falls through. * Rain falls infinitely above the world, and stops at y=0. * Entities will now be extinguished if they are under rain-blocking blocks, and fire will now be extinguished by rain similarly. * Create IsWeatherWetAtXYZ to identify wetness at a particular location. * Use new code for enderman rain detection. * Fixes issue #916 * Disable warnings for global constructors in the fire simulator.
* Lighting now generally consistent with vanilla (#3988)Alexander Harkness2017-09-071-12/+57
| | | | | | | | | | | | | | | | | | | | | | | | | * Lighting now generally consistent with vanilla Skylight is now dispersed by some blocks, instead of passing through unimpeded. Some blocks which were not marked as transparent are now marked as such. Water and other such blocks now attenuate light with the correct intensity. Generally changes were based on documentation in the Minecraft Wiki: https://minecraft.gamepedia.com/Opacity#On_block_light , however during play-testing on vanilla lava was found not to attenuate sky or block-light so the attenuation was removed. This fixes #3849 * Add API documentation for IsSkylightDispersant * Rename m_SkylightDispersant to m_IsSkylightDispersant * Update comment for m_Transparent property of Blocks
* Remove double includes part 2 (#3890)peterbell102017-08-031-1/+0
|
* cBlockInfo static initialisation (#3832)peterbell102017-07-031-883/+881
|
* Added blocks that can be washed away by water (#3637)Bond-0092017-03-211-0/+1
|
* Allow mobs to walk through dead_bush (#3623)willi123yao2017-03-161-0/+1
| | | Fixes #3618.
* Updated sounds and effect IDs (#3422)mathiascode2017-02-151-191/+0
|
* Added some blocks and items (#3503)mathiascode2017-02-141-1/+121
|
* Anticheat fastbreak (#3411)mohe20152016-11-061-0/+199
| | | Added block hardness checks when breaking blocks.
* Spectators added (#2852)bibo382016-10-121-0/+9
|
* Updated cChunk::SetMeta, fixed grass growth, reduced markDirty/setMeta usageLogicParrot2016-04-161-1/+0
|
* blockheight mechanismGargaj2015-12-131-0/+21
|
* Implemented the slime block dropping behaviour.bibo382015-11-071-0/+1
| | | | Fixes #2530
* Improved mapsTiger Wang2015-07-141-13/+13
|
* Farmland is now listed as an opaque block.Samuel Barney2015-07-031-2/+1
| | | | Changed spread light falloff for farmland to what it was originally.
* Rebased version of CodeSamuel Barney2015-06-221-1/+1
|
* Made -Weverything an error.tycho2015-05-241-1/+1
|
* FixesHowaner2014-12-131-2/+0
|
* Added cocoa pod.Howaner2014-12-011-0/+1
|
* En masse NULL -> nullptr replaceTiger Wang2014-10-231-2/+2
|
* Merge pull request #1489 from mc-server/fixesMattes D2014-10-041-0/+1
|\ | | | | Improved torch handler
| * Improved torch handlerTiger Wang2014-09-301-0/+1
| |
* | Added missing 1.8 blocks, E_METAs and soundsMasy982014-10-011-1/+10
| |
* | Fixed iron trapdoorsHowaner2014-09-301-0/+1
|/
* Fixed minor style issues.madmaxoft2014-09-271-1/+1
|
* Merge branch 'master' into blocksMasy982014-09-261-55/+13
|\ | | | | | | | | | | Conflicts: src/Items/ItemHandler.cpp src/Simulator/IncrementalRedstoneSimulator.cpp
| * Merge branch 'master' into redstoneTestsTycho2014-09-171-13/+13
| |\ | | | | | | | | | | | | Conflicts: src/Blocks/ChunkInterface.h
| | * Fixed block place sounds.Howaner2014-09-121-13/+13
| | |
| * | Added first test to show the object can be createdTycho2014-09-171-42/+0
| |/
* | Added barrier blockMasy982014-09-111-1/+5
| |
* | Fixed typoMasy982014-09-101-1/+1
| |
* | Added new blocks to the BlockInfoMasy982014-09-101-0/+63
|/
* Moved sound-configs into BlockID.h and fixed/ added loads of soundsMasy982014-09-091-0/+167
|
* Fixed nether wart digging.Howaner2014-08-071-0/+1
| | | Fixes #1265
* Added soulsand to the terraformed list.STRWarrior2014-07-291-0/+1
|
* Added cBlockInfo::CanBeTerraformed and made finishers use itSTRWarrior2014-07-291-0/+21
| | | | I might have forgotten some of them though
* Merge branch 'master' into portalsTiger Wang2014-07-291-46/+0
|\ | | | | | | | | Conflicts: src/World.h
| * Merge branch 'master' into saplingsandleavesTiger Wang2014-07-201-4/+0
| |\ | | | | | | | | | | | | | | | Conflicts: src/Bindings/DeprecatedBindings.cpp src/Blocks/BlockSapling.h
| * | Fixed issues relating to saplings and leavesTiger Wang2014-07-171-46/+0
| | | | | | | | | | | | | | | | | | - Removed cBlockInfo::RequiresSpecialTool * Fixes #1195 * Fixes #1201
* | | Bug and crash fixesTiger Wang2014-07-201-0/+1
| |/ |/| | | | | | | | | | | | | | | * 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
* | Monster fixesTiger Wang2014-07-181-4/+0
|/ | | | | * Fixes #1203 * Fixes #627
* Removed Stairs and carpet from the "isSolid" list to prevent mobs falling through them.Masy982014-07-151-1/+0
|
* Removed Stairs and carpet from the "isSolid" list to prevent mobs falling through them.Masy982014-07-151-12/+0
|
* Added Brick fence to m_TransparentMasy982014-07-151-0/+1
|
* Added various missing blocks in the lists in BlockInfo.cppMasy982014-07-151-63/+214
|
* Merge pull request #1154 from mc-server/trappedchestsTiger Wang2014-07-131-0/+3
|\ | | | | Implemented trapped chests & others
| * Implemented trapped chests & othersTiger Wang2014-07-071-0/+3
| | | | | | | | | | | | | | + Added trapped chests * Fixed a bunch of bugs in the redstone simulator concerning wires and repeaters * Other potential bugfixes
* | Fixed arrow collection animationTiger Wang2014-07-091-1/+0
|/ | | | * Fixed piston extension non-solidness
* Implemented tripwire(s) (hooks)Tiger Wang2014-06-281-0/+9
| | | | * Fixes #944
* BlockInfo is now a proper C++ singleton.madmaxoft2014-06-251-367/+365
| | | | It is properly initialized before it is ever used.
* Fixed BlockInfo initialization.madmaxoft2014-06-241-15/+6
| | | | Now cBlockInfo is initialized in the getter, instead of "at any time during startup", which included "after it was already needed".
* Nullify deleted pointers.archshift2014-06-191-0/+1
|
* Add pressure plate handlerHowaner2014-06-171-0/+2
|
* Merge branch 'master' into SlabsHowaner2014-05-071-0/+1
|\
| * Ladders set as transparent.madmaxoft2014-04-301-0/+1
| |
* | Add CanChangeDirtToGrass function to Block Handlers.Howaner2014-04-061-0/+10
|/
* Some fixes to lilypadsTiger Wang2014-03-281-1/+2
| | | | | | | | * Fixed placement on lava * Fixed placement on side of blocks * Fixed placement through blocks + Added washing-away of pads + Added ice as a block that fully occupies its voxel
* Add new leaves to all classes.Howaner2014-03-161-0/+1
|
* Fixed issues with int vs size_t and a few other warningsTycho2014-03-081-2/+0
|
* cBlockInfo-related changes from #723andrew2014-03-081-0/+9
|
* Removed if conditionandrew2014-03-021-4/+1
|
* cBlockInfo now manages the respective cBlockHandlerandrew2014-03-021-0/+22
|
* GetById => Getandrew2014-03-021-3/+3
|
* g_BlockXXX => cBlockInfo::XXXandrew2014-03-011-5/+5
|
* Refactored global block property arraysandrew2014-03-011-0/+423