summaryrefslogtreecommitdiffstats
path: root/src/Items (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Handlers: update item and block handlers (#5371)Tiger Wang2022-01-026-56/+52
| | | | | | | + Resend blocks when server rejects placement because in a block * Fix chest handler not invoked, fixes #5367 * Fix comparator handler not invoked * Update some naming
* ItemHandler initialisation is a constant expression (#5344)x12xx12x2021-12-0284-805/+1286
| | | | | * Transition to non-pointer item handler * That is my destructor - I decide when I leave this world * I declare your destruction private and you final
* Added ExperienceAmount variable to HOOK_PLAYER_FISHING and HOOK_PLAYER_FISHED (#5345)Feyo Korenhof2021-11-291-3/+5
| | | | | | | | | | | | | | | * Implemented cServer::ScheduleTask() and cServer::TickQueuedTasks() * Fixed formatting and added ScheduleTask to APIDesc * Added feyokorenhof to contributors * Added ExperienceAmount variable to all the hook calls. * Made ExperienceAmount int reference instead of int in HOOK_PLAYER_FISHING. Fixed bug: a_Reward is now a reference * Add documentation, change ItemFishingRod to pass in experience Co-authored-by: Alexander Harkness <me@bearbin.net>
* Miscellaneous fixes (#5320)Tiger Wang2021-11-111-7/+4
| | | | | | | | | | | | | | | | | | | | | | | * Protocol: update Abilities flags + Add Spectator handling * BioGen: move <iostream> include * ClientHandle: rename Respawn packet dimension check flag * Make it clearer what it's doing. * ClientHandle: move ProcessProtocolIn calls to World * Player: remove some redundant initialisation * Player: UpdateCapabilities enables flight for spectators * Produce growth: improve comments * ClientHandle: run unload checks using delta time * Fix forgotten initialisation of time member
* Prevent placing of hangables on illegal blocks and break when support block broken (#5301)Ethan Jones2021-10-032-3/+17
| | | | | + Prevent placing of hangables on illegal items and break when support block is broken Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
* Chorus fruit teleport (#5259)KingCol132021-07-103-1/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Outline function for teleporting. * Created new handler for chorus fruit. * Fixed AttemptTeleport failing. * Better names, working sound effect. * Corrected naming. * Remove stray LOGD. * Offset teleport to middle of block. * Style Fixes Co-authored-by: x12xx12x <44411062+12xx12@users.noreply.github.com> * Style Fixes 2 Co-authored-by: x12xx12x <44411062+12xx12@users.noreply.github.com> * Move FindTeleportDestination to static cPawn method. * cBoundingBox interface. * Cleanup includes. * Maybe exported to API? * Change a_World to reference, add to APIDesc. Co-authored-by: x12xx12x <44411062+12xx12@users.noreply.github.com>
* Item frame maps (#5258)KingCol132021-07-091-1/+1
| | | | | | | + Send map data when item frame spawns. + Add some casts to placate compiler warnings. * size_t for array access. * Mark chunk dirty when rotation or item in item frame is changed.
* Lighters: don't activate TNT when crouchedTiger Wang2021-06-281-36/+27
| | | | * Fixes #5247
* Re-implement up/down placement metadata (#5219)Tiger Wang2021-05-143-3/+3
| | | | + Use player position when placing blocks which can face up or down, seems to better correspond to Vanilla behaviour. * Fixes #4651
* Move item placement into item handlers (#5184)Tiger Wang2021-05-0547-864/+1597
| | | | | | | | | | | | | | | | | | | | | | | | | * Move item placement into item handlers + Add appropriate CanBeAt checks in cPlayer::PlaceBlocks, into which all placement handlers call. * Partly addresses #5157 * Fixes #4878 * Fixes #2919 * Fixes #4629 * Fixes #4239 * Fixes #4849 Co-authored-by: changyong guo <guo1487@163.com> Co-authored-by: Xotheus <shady3300@outlook.com> Co-authored-by: Krist Pregracke <krist@tiger-scm.com> * Review fixes * Update APIDesc.lua * Rename Co-authored-by: changyong guo <guo1487@163.com> Co-authored-by: Xotheus <shady3300@outlook.com> Co-authored-by: Krist Pregracke <krist@tiger-scm.com>
* Add player statistics to API (#5193)nshah252021-05-032-4/+4
| | | | | | * Fixed issue #5166 Co-authored-by: 12xx12 <44411062+12xx12@users.noreply.github.com> Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
* Chest, weather, crash, and miscellaneous fixes (#5215)Tiger Wang2021-04-301-4/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Alpha-sort cChestEntity * Chests: use SendUpdateBlockEntity * Pathfinder: fix out of range Y * 1.13: correct weather packet ID * Chests: fix neighbour scanner + Add OnAddToWorld and overload to scan neighbours there, instead of in the constructor/OnUse. This fixes hoppers accessing newly loaded double chests and seeing a null m_Neighbour, thus thinking its a single chest. * Fix typo in cross coords computation. * Simplify hopper logic. * Block entities: ASSERT that type is correct If you match the block type first before calling DoWithBlockEntity, the corresponding block entity must either be empty or correspond to the block type. * Chunk: fix some forgotten PendingSendBE cleanup + Add cleanup in SetAllData, WriteBlockArea - Remove RemoveBlockEntity (used once), HasBlockEntity (not used) * Replace MakeIndex with MakeIndexNoCheck * Remove extraneous MarkDirty in hopper & chests
* Added override specifiers to overridden functions.Mattes D2021-04-121-1/+1
| | | | Needed for clang-11 compatibility.
* Basic elytra flight (#5124)Damián Imrich2021-04-032-8/+3
| | | | | | * Basic elytra flight Co-authored-by: 12xx12 <44411062+12xx12@users.noreply.github.com> Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
* Unify DoWithBlockEntity (#5168)Tiger Wang2021-03-283-41/+35
| | | | | | + DoWith calls now broadcast the block entity and mark the chunk dirty + Add block entity change queue to synchronise BE updates with block updates * Fixed a few incorrect assertions about BE type - Remove manual overloads
* Adding basic Banner functionality (#4806)12xx122021-03-153-0/+218
| | | | | | + Added item and block for banners Co-authored-by: 12xx12 <12xx12100@gmail.com> Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
* Properly deprecate more XYZ parameter'd functions (#5147)Tiger Wang2021-03-152-3/+3
| | | * Fixes #5144
* End crystal placement (#5112)Damián Imrich2021-01-223-0/+84
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * End crystal placement * End crystal placement - fixed error and added some comments * Removed unused includes * Update src/Items/ItemEndCrystal.h Co-authored-by: Alexander Harkness <me@bearbin.net> * End Crystal placement, early-return pattern enforcement * End crystal Item finish? * Small changes Fixed a crashbug in ender crystal destruction. According to vanilla 1.16 testing, end crystals don't place if any entity intersects the box, not just other end crystals. Check return value of SpawnEnderCrystal. Add header in SeeMake. Cafe Stile Redux. * The stylechecker relies on CMakeLists * There is another Co-authored-by: Alexander Harkness <me@bearbin.net> Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
* Warnings improvementsTiger Wang2020-12-181-2/+2
| | | | | | | | | * Turn off global-constructors warning. These are needed to implement cRoot signal handler functionality * Add Clang flags based on version lookup instead of a compile test. The CMake config process is single threaded and slow enough already * Reduced GetStackValue verbosity + Clarify EnchantmentLevel, StayCount, AlwaysTicked, ViewDistance signedness + Give SettingsRepositoryInterface a move constructor to simplify main.cpp code - Remove do {} while (false) construction in redstone handler
* Lilypads: add missing boundary checkTiger Wang2020-11-281-2/+9
|
* Fix lilypad displacing block above (#5056)Derek Qu2020-11-281-39/+61
| | | | | | | | | | * Fix lilypad displacing block above Side fixes: * Fix lilypad displacing half slabs * Fix lilypad being placed on flowing water and non-water blocks in general Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
* Add correct implementation of crops (#4802)0ddlyoko2020-11-061-23/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * [FIX] Add correct implementation of seed drops. > Official percentage of drops has been implemented * Fix C++ conventions * Change "Vals" variable to "m_Vals" * [FIX] Add correct implementation of Carrots, Potatoes, Wheat & Beetroots seed * Add Fortune support with crops Add fortune support with Wheat, Carrots, Potatoes & Beetroots seeds * [FIX] Right-clicking on a grown Beetroot in survival consume 2 bone meals Fix #4805 * Add documentation for "cWorld::IsFullGrownPlantAt" method * Fix dispenser that full grown a plant > Change methods cItemDyeHandler::FertilizePlant & cItemDyeHandler::growPlantsAround to static * Display particle even if tree doesn't grow * When right-clicking on a full grown melon / pumpkin seed, no longer produce a melon / pumpkin Before this commit, when you right-click on a melon or a pumpkin seed, a melon / pumpkin block spawned. With this commit, it no longer spawns * [FIX] Do not create melon / pumpkin block when right-clicking with a bone meal This fix will prevent the creation of a melon / pumpkin block when you right-click with a bone meal on a melon / pumpkin plant - It just detect if the plant is full grown. if yes, the method "Grow" is not called - Remove IsFullGrownPlant Co-authored-by: 12xx12 <12xx12100@gmail.com> Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
* Added new flowers on bonemeal use (#5011)12xx122020-11-021-34/+168
| | | | | | | + Added new biome-dependent flower placement * Update planter algorithm Co-authored-by: 12xx12 <12xx12100@gmail.com> Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
* Merged OnBreak with OnPlayerBreak (#4967)12xx122020-10-081-1/+1
| | | | Co-authored-by: 12xx12 <12xx12100@gmail.com> Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
* Enchanting table shows detail on hover. Enchanting is deterministic. (#4937)KingCol132020-10-011-3/+3
| | | | | * Use lapis for enchanting, subtract correct number of levels, ClientHandle now selects from pregenerated list. Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
* BlockHandler initialisation is a constant expression (#4891)Tiger Wang2020-09-204-11/+7
| | | | | | | | | | | | | * BlockHandler initialisation is a constant expression If we can't make it all namespaces, this is the next best I guess. + Tag handlers constexpr, const as needed + Inherit constructors * Privatise handler functions * More constexpr Co-authored-by: Alexander Harkness <me@bearbin.net>
* Added end portal and enchanting table block entities12xx122020-09-204-0/+211
|
* Fixed snow golems and added documentation to damage type and added damage type for damage from environment to mobs (#4877)12xx122020-09-171-1/+1
| | | | | | | | | | | * made snow golems not crashing the server anymore * changed damage type to environment * updated damage in API dopcumentation and changed enderman damage type * removed incidental d in the code Co-authored-by: 12xx12 <12xx12100@gmail.com>
* Beds: derestrict clicking block face (#4863)Tiger Wang2020-09-131-20/+8
| | | Ref: https://github.com/cuberite/cuberite/issues/4860#issuecomment-691545904
* Add Statistics and Achievements for newer Network standards12xx122020-08-192-4/+4
|
* OnBroken/OnPlaced are for entity actionsTiger Wang2020-08-042-4/+2
| | | | | | * Call OnPlaced/OnBroken in PlaceBlock/DigBlock - Remove unused Placing/Breaking handlers * Have the blockhandler's Check handle neighbour updating, instead of QueueTickBlockNeighbors
* Replaced cpp14::make_unique<> with std::make_unique<>.Mattes D2020-08-014-4/+4
|
* SimplePlaceableItemHandler styleTiger Wang2020-07-141-4/+9
|
* Merged trivial item handlers into cSimplePlaceableItemHandler (#4766)Franklin Kong2020-06-269-306/+45
| | | | | | - Remove unused files Co-authored-by: aiugai <aiugai@umich.edu> Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
* Upgrade to C++17 [CMake] (#4717)Tiger Wang2020-05-161-8/+2
| | | * Make our CMake slightly less insane
* Update submodules (#4727)peterbell102020-05-091-1/+1
| | | | | | | | | | | | | Closes #4708 This updates jsoncpp, mbedtls, TCLAP and SQLiteCpp to their latest stable release. A few additional changes were needed: * jsoncpp deprecated Reader, FastWriter and StyledWriter which I've replaced with some helper functions in JsonUtils.cpp * SQLiteCpp changed how it builds with external sqlite libraries, now expecting them to be installed. The simplest path was to remove sqlite from cuberite's submodule and just use SQLiteCpp's internal version.
* Use Vector3 for cLineBlockTracer and cBlockTracer (#4715)mBornand2020-05-084-15/+15
| | | * cLineBlockTracer uses Vector
* Unify entity spawn packet sendingTiger Wang2020-05-011-2/+2
|
* Vector3 in Handlers (#4680)Mattes D2020-04-2142-790/+1194
| | | Refactored all cBlockHandler and cItemHandler descendants to use Vector3.
* Using Super.Mattes D2020-04-1634-162/+212
|
* Removed extended ASCII, and added a check against it. (#4642)Mattes D2020-04-121-2/+2
|
* Add mixins for blocks that rotate based on player yaw at placementAlexander Harkness2020-04-104-5/+5
| | | | Also add observer block handler.
* Add additional blocks which are not breakable by handAlexander Harkness2020-04-102-6/+39
|
* Add Zombie VillagersBond-0092020-04-101-5/+2
|
* Remove switch statements from cItemFoodHandler (#4610)Alexander Harkness2020-04-0415-192/+398
| | | | | | | * Remove switch statements from cItemFoodHandler * Alpha-sort and add comment * Relocate golden apple handler
* Implement wither skeletons (#4563)Mat2020-04-041-26/+27
|
* Pulled the BlockID and BlockInfo headers from Globals.h. (#4591)Mattes D2020-04-037-7/+11
| | | | | | | | | 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
* Replace buckets to the selected hotbar slot, rather than the first available. (#4580)Alexander Harkness2020-04-024-31/+13
| | | | | | | | | | | | | | | | | | | | | | | | * Replace buckets to the selected hotbar slot, rather than the first available. Replicates vanilla behaviour, as well as being more logical. * Refactor cInventory::AddItem. Behaviour is now documented * Add new cInventory::ReplaceOneEquippedItem and ::SetEquippedItem methods * Return empty potion to the same slot after drinking * Replace buckets correctly in other situations, not simply water and lava Uses the new ReplaceOneEquippedItem method * Correct collecting water from source block with bottle * Add cPlayer::ReplaceOneEquippedItemTossRest method * Handle stacked filled buckets (in theory) Use new cPlayer::ReplaceOneEquippedItemTossRest method
* Increase speed of splash potion and expbottle (#4513)Mat2020-03-222-2/+5
|
* TNT position fixes (#4519)Mat2020-03-221-1/+0
| | | | | | | | | | | | | | | | | | | * TNT position fixes * Don't add offset to explosion spawn coords * Don't make other entities push TNT * Correct initial TNT speed * Fix typo * Improvements * Revert unwanted change * Style fixes * Update format
* Fix typo in fish metaMat2020-03-221-1/+1
|
* Don't enchant an already enchanted bookMat2020-03-221-1/+1
|
* Don't remove items twice (#4524)Mat2020-03-225-6/+9
| | | * Don't remove items twice
* Bonemeal cannot be used on cactus and sugar caneMat2020-03-211-2/+0
|
* Don't spawn boats in groundMat2020-03-051-1/+1
|
* Stabilise MoveToWorld (#4004)Mat2020-03-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Stabilise MoveToWorld * Fix comments and deprecate ScheduleMoveToWorld * Enhanced thread safety for m_WorldChangeInfo * Return unique_ptr from cAtomicUniquePtr::exchange * cWorld now calls entity cEntity::OnAddToWorld and cEntity::OnRemoveFromWorld. Allows broadcasting entities added to the world from the world's tick thread. This also factors out some common code from cEntity::DoMoveToWorld and cEntity::Initialize. As a consequence, cEntity::Destroy(false) (i.e. Destroying the entity without broadcasting) is impossible. This isn't used anywhere in Cuberite so it's now deprecated. * Update entity position after removing it from the world. Fixes broadcasts being sent to the wrong chunk. * Fix style * cEntity: Update LastSentPosition when sending spawn packet * Add Wno-deprecated-declarations to the lua bindings * Kill uses of ScheduleMoveToWorld
* Boats can be spawned on landMat2020-03-011-7/+0
|
* Disable block placement in adventure mode (#4424)Mat2019-12-302-0/+18
|
* Moved growing from cWorld / cChunk to cBlockHandler descendants.Mattes D2019-10-281-6/+188
|
* Refactored block-to-pickup conversion. (#4417)Mattes D2019-10-166-66/+27
|
* Refactored more of Entities and BlockEntities to use Vector3. (#4403)Mattes D2019-09-293-6/+6
|
* Create Ender Portal with Eyes of Ender (#4126)Zach DeCook2019-05-113-1/+62
| | | | | | | | | The algorithm was designed so All portals must be facing the center, no matter which block had the eye inserted in last. Note: Still need to create a block entity so that portals don't become invisible when you relog. Addresses part of #3445 Fixes #3695
* Buckets: Be able to place fluids through other fluids. (#4331)Zach DeCook2019-05-071-2/+2
|
* Add a formatting function for Vector3 (#4282)peterbell102018-09-241-4/+4
| | | | | | | | | | * Vector3: Add custom fmt compatible formatter. * cLuaState: Add fmt version of ApiParamError * Use vector formatting in manual bindings * Always log vectors with FLOG
* Force all headers other than "Globals.h" to be included with relative paths (#4269)peterbell102018-08-292-4/+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.
* CheckBasicStyle: Check number of empty lines between functions (#4267)peterbell102018-07-261-5/+0
| | | | Add check for number of empty lines between functions and fix the corresponding failures
* Keep players in gmNotSet (#4248)changyong guo2018-07-231-1/+1
| | | | This allows players game mode to update to the default after portal to another world. Fixes #4207
* Damage fishing rod when catching the hook on a block, then reeling it in (#4151)Bond-0092018-02-111-0/+8
| | | Fixes #4132
* Deal with covered switches consistently (#4161)peterbell102018-02-056-0/+6
| | | | | | | * Fixes a number of "<function>: not all control paths return a value" warnings on MSVC. * Introduces the UNREACHABLE global macro and uses it instead of conditionally compiled switch defaults. * Move cNBTParseErrorCategory from FastNBT.h into FastNBT.cpp to prevent bad calls to message()
* Prioritize hinge on the left side (#4153)Bond-0092018-01-171-0/+1
|
* Golden Apple Fixes (#4130)Alexander Harkness2018-01-062-21/+10
| | | | | | | | | * Do not remove food item until player has been fed * Golden apples now ignore hunger when eating * Removed EnchantedGoldenApple recipe, as it was removed in 1.9 Reference: https://minecraft.gamepedia.com/1.9#Items_2 * Adjust golden apple effects, as they were changed in 1.9 Reference: https://minecraft.gamepedia.com/1.9#Items_2
* Improved fishing rewards (#4120)Bond-0092018-01-051-33/+49
| | | | | | | * Damage fishing rod after use * Give xp to the player for catching something * Fixed junk drops * Implement Luck of the Sea
* Item durability loss now depends on the item used. (#4123)Alexander Harkness2018-01-0523-177/+77
| | | | | | | Armour durability also no longer changes when it is used to break blocks or attack mobs. Fixes #4119
* Add the fmt library (#4065)peterbell102018-01-031-0/+1
| | | | | | | * Replaces AppendVPrintf with fmt::sprintf * fmt::ArgList now used as a type safe alternative to varargs. * Removed SIZE_T_FMT compatibility macros. fmt::sprintf is fully portable and supports %zu. * Adds FLOG functions to log with fmt's native formatting style.
* cItemHandler: Update max stack size of old doors. (#4072)peterbell102017-11-201-0/+2
|
* BroadcastBlockBreakAnimation and BroadcastBlockEntity use vectors (#4038)Bond-0092017-09-251-22/+22
|
* Changed BroadcastSoundEffect, SendSoundEffect, and CastThunderbolt parameters to vectors (#3959)Lane Kolbly2017-09-194-7/+5
| | | | | | | | | | | | | | | | | | * 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
* Removed UTF-8 BOM (#4033)Lukas Pioch2017-09-191-1/+1
|
* Fix switch warnings (#4013)peterbell102017-09-142-6/+2
| | | | | | | | | | | | | | | * Fix switch warnings * Fix a variety of -Wswitch and -Wswitch-enum warnings * Remove unneeded -Wno-error flags * Reorganise some eMonsterType switches * Alpha sort eMonsterType cases in WriteMobMetadata and in cNBTChunkSerializer::AddMonsterEntity * List all mob types in protocol 1.12 and NBTChunkSerializer * cStructGenTrees::GetNumTrees: remove switch default * cWSSAnvil::LoadOldMinecartFromNBT: Log unhandled minecart type
* Replace ItemCallbacks with lambdas (#3993)peterbell102017-09-112-88/+39
|
* Changed some int parameters to vector parameters (#3937)Bond-0092017-09-072-2/+2
|
* Revert "Replace ItemCallbacks with lambdas (#3948)"LogicParrot2017-09-022-39/+88
| | | | This reverts commit 496c337cdfa593654018c171f6a74c28272265b5.
* Replace ItemCallbacks with lambdas (#3948)peterbell102017-09-012-88/+39
|
* Minor changes (#3909)mathiascode2017-08-241-1/+1
|
* Fix use after move in cItemBowHandler::OnItemShootpeterbell102017-08-241-4/+3
|
* Fully implemented leashes (#3798)Pablo Beltrán2017-08-211-0/+1
|
* Merge pull request #3489 from cuberite/EntityOwnershipTiger Wang2017-08-186-42/+16
|\ | | | | * Changed entity ownership model to use smart pointers
| * Changed entity ownership model to use smart pointersTiger Wang2017-08-076-42/+16
| |
* | Replaced includes with forward declarationsLukas Pioch2017-08-131-1/+1
|/
* Removed unneeded includes (#3902)Lukas Pioch2017-08-0612-15/+4
|
* Remove double includes part 2 (#3890)peterbell102017-08-031-2/+0
|
* Removed double includes (#3885)Lukas Pioch2017-08-021-1/+0
|
* cBlockHandler: take player by refpeterbell102017-08-012-3/+3
|
* cWorld::SendBlockTo take player by refpeterbell102017-08-011-2/+2
|
* Consolidated food effects into EatItem, added all fish type FoodInfos. (#3875)Lane Kolbly2017-07-305-86/+86
| | | | | | | | * Consolidated food effects into EatItem, added all fish types. * Changed type of NumFishInfos to satisfy clang. * Removed unused call for a_Item in EatItem
* BigFlower fixes (#3826)peterbell102017-07-074-24/+26
| | | | | | | * BigFlowers fixes * Correct upper part meta * Documented parameters to DoesIgnoreBuildCollision
* Added 1.12 blocks (#3760)Bond-0092017-06-302-1/+19
|
* Fix shears (and vines)Bond-0092017-06-211-25/+6
| | | | | | | * Shears now lose durability when breaking any block * Leaves don't drop 2 leaves anymore when broken by shears * Removed the chance to drop saplings or apples when leaves are broken by shears * Vines can't be attached to ender chests, pistons and redstone repeaters
* FastRandom rewrite (#3754)peterbell102017-06-133-11/+11
|
* Fixed double chests (#3741)peterbell102017-06-031-1/+1
| | | | | Normal and trapped chests next to each other don't open a double chest window. Slot changes in the secondary chest are broadcast. Placing a chest in +x of another updates the original chest's metadata.
* Exported boatLukas Pioch2017-05-241-1/+1
| | | | | | | - NBT: Added saving / loading of material - Added the material in the item handler of the boat - Drop the correct boat if destroyed - APIDoc: Added desc and functions
* Tracer replacement (#3704)Mattes D2017-05-114-7/+8
| | | | | | * Replaced cTracer usage with cLineBlockTracer. * Exported new cLineBlockTracer utility functions to Lua API.
* Added missing checks for Initialize function and updated APIDocLukas Pioch2017-05-084-4/+24
|
* Return bowl when eating beetroot soupBond-0092017-03-201-0/+1
|
* Deadbushes drop sticksBond-0092017-03-192-1/+1
|
* Boat spawned, remove it from player's handLukas Pioch2017-03-171-0/+6
|
* Fixed which blocks can be harvested with what type of pickaxe (#3586)Bond-0092017-02-261-0/+16
|
* Changed fish launching mechanism (#3520)Alex2017-02-201-2/+8
| | | Fish and other fishing loot now correctly fly towards played when reeled in.
* Updated sounds and effect IDs (#3422)mathiascode2017-02-158-50/+5
|
* Added some blocks and items (#3503)mathiascode2017-02-145-13/+58
|
* Fixed placing of double tall flowers and an inconsistency with vanilla (#3541)Jacob2017-01-191-2/+1
|
* Added code to handle signs replacing blocksQuImUfu2016-12-011-1/+12
|
* Removed ClientHandle.h dependencies from common headers.Mattes D2016-11-181-0/+1
|
* Added missing "override" specifier.Mattes D2016-11-134-4/+4
|
* Anticheat fastbreak (#3411)mohe20152016-11-068-0/+177
| | | Added block hardness checks when breaking blocks.
* Fixed type-casting-related warnings.Mattes D2016-08-241-1/+1
|
* Fixed implicit rounding warnings.Mattes D2016-08-191-5/+8
|
* Fix issue #3312Alexander Harkness2016-08-121-0/+1
| | | Nether brick fences now drop their item.
* CMake: Remove needless minimum version specifications.Mattes D2016-07-181-2/+0
|
* Fixes for boat entities (#3265)beeduck2016-07-181-1/+16
| | | protocol for vehicles now properly handled, protocol for boat paddles now properly handled, boats can no longer spawn underwater, boats now properly float, boat metadata now properly broadcasted.
* Bulk clearing of whitespaceLogicParrot2016-02-0528-119/+119
|
* Updated old forum linksMathias2016-01-311-1/+1
|
* Renamed leftover strings to Cuberite / Server, as needed.Mattes D2016-01-011-1/+1
| | | | Also upgraded the user setting file for MSVC to 2013.
* add handling of water bottleGargaj2015-12-223-0/+98
|
* Tilling dirt should send block updateGargaj2015-12-061-1/+1
| | | | There are BUD switches that are built on this (https://www.youtube.com/watch?v=Bk_ChvmtCNY) but more prominently, torches placed on dirt blocks should pop off when the dirt block is tilled.
* Merge mushroom soup into generic food handlerGargaj2015-12-034-56/+25
| | | | ...and fix eating the bowl when eating rabbit stew
* remove slab from inventory when using it on another slab (fixes #2610)Gargaj2015-11-091-3/+27
|
* Added CircleCI for stylechecking.Mattes D2015-09-171-2/+5
| | | | This will allow us to remove the stylecheck from Travis builds, making them a bit faster, and having fast style checks
* Silenced and fixed many warning messages across multiple files.Samuel Barney2015-07-299-20/+26
|
* Spawn baby mobshallucino2015-07-163-4/+4
|
* Improved mapsTiger Wang2015-07-147-10/+10
|
* Doors now get placed on the server-side.bibo382015-06-251-1/+0
| | | | | | The Y-Value is already the lower door block(From ItemHandler.cpp:346). Increasing it once again, places the door into the air, which is blocked by Cuberite. Bugfix #2279
* Fixed right-click with bonemeal.Mattes D2015-06-231-1/+1
| | | | The client would send invalid right-click events with Y set to 0x7ff, which would crash the server. Only process bonemeal for valid clicks (valid blockface).
* Refactored block placement workflow.Mattes D2015-06-217-85/+156
| | | | Multi-blocks can now use the default OnPlayerPlaced() callback in cItemHandler.
* Merge branch 'master' into PreventNewWarningstycho2015-05-283-4/+4
|\ | | | | | | | | Conflicts: src/Inventory.cpp
| * Merge pull request #2061 from mc-server/fixesAlexander Harkness2015-05-273-4/+4
| |\ | | | | | | Fixes
| | * Fixes #2052Tiger Wang2015-05-183-4/+4
| | |
* | | Merge branch 'master' into PreventNewWarningstycho2015-05-241-0/+14
|\| |
| * | Merge pull request #2091 from Rakete1111/masterworktycho2015-05-241-0/+14
| |\ \ | | | | | | | | Placing buckets up to 25 blocks away #2059
| | * | Fixes #2059Blitz Rakete2015-05-211-0/+14
| | |/
* | | Made -Weverything an error.tycho2015-05-243-4/+11
| | |
* | | Merge branch 'master' into PreventNewWarningstycho2015-05-231-1/+1
|\| |
| * | Fixed missing overrides and added a ignore flag for reserved macro for clang version 3.6 and higher.Lukas Pioch2015-05-231-1/+1
| |/
* / Make -Werror disabling file onlytycho2015-05-191-0/+4
|/ | | | Ad fix a load of warnings
* CheckBasicStyle: checks spaces around * and &.Mattes D2015-05-092-2/+2
|
* More style checking.Mattes D2015-05-092-2/+2
| | | | Spaces around some operators are checked.
* Rabbit and cooked rabbit now stackablejammet2015-05-091-1/+3
| | | | And corrected the alphabetical ordering.
* Fixed #1893Tri1252015-05-071-0/+1
| | | | Quartz ore now stack properly
* Merge pull request #1851 from wraith11/DoorFixMattes D2015-04-231-1/+1
|\ | | | | Fix door placing in connection with slabs
| * Fix door placing in connection with slabswraith112015-04-211-1/+1
| | | | | | | | Except top-half slabs as transparent blocks for doors.
* | Merge pull request #1852 from wraith11/SlabPlacingMattes D2015-04-231-0/+23
|\ \ | | | | | | Fix slab placing
| * | Fix slab placingwraith112015-04-221-0/+23
| |/
* | ItemHandler type fixes.Mattes D2015-04-201-2/+2
| |
* | ItemHandler: Using automatic array bounds.Mattes D2015-04-201-1/+1
| |
* | Fixed PolishedGranite et al crafting recipes.Mattes D2015-04-161-2/+2
| | | | | | | | Fixes #1774. Ref.: #1859
* | Scooping up fluid calls the player placement hooks.Mattes D2015-04-141-4/+12
| | | | | | | | Ref.: #1857.
* | Placing a fluid from bucket calls plugin hooks.Mattes D2015-04-1418-51/+165
|/ | | | Ref.: #1857.
* Fixed placing bottom half-slabs by clicking a top half-slab.Mattes D2015-03-281-2/+2
| | | | Ref.: #1837
* Merge pull request #1826 from mc-server/UnifyPacketizerMattes D2015-03-243-4/+4
|\ | | | | Unify packetizer
| * Changed cEntity::m_UniqueID to UInt32.Mattes D2015-03-213-4/+4
| |
* | 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
* cPainting saving implementedTiger Wang2015-03-141-16/+3
| | | | Additionally, it now inherits from cHangingEntity.
* Fixed door placement.Mattes D2015-02-281-4/+17
| | | | Doors now have hinges on the correct side, based on what the surroundings are when placing them.
* Door handler: Removed needless check.Mattes D2015-02-211-1/+1
| | | | The Y coord has already been checked above.
* Fix door placement checkFreddie Wang2015-02-211-7/+3
|
* Fixed various warnings.Mattes D2015-01-181-6/+6
|
* MobHead: Fixed wither spawning.Mattes D2014-12-251-13/+40
|
* MobHeads: fixed regular head placement.Mattes D2014-12-251-2/+22
|
* Fixed door placement.Mattes D2014-12-251-2/+2
|
* Fixed forgotten big flower handler.Mattes D2014-12-251-1/+2
|
* Fixed redstone dust placement on upside-down slabs.Mattes D2014-12-241-1/+36
|
* Refactored all player block placing to go through hooks.Mattes D2014-12-2412-108/+1041
| | | | Fixes #1618.
* Added RabbitsMasy982014-12-201-0/+1
|
* Merge branch 'master' into entitiesMasy982014-12-181-2/+44
|\
| * FixesHowaner2014-12-131-0/+5
| |
| * Added cocoa pod.Howaner2014-12-011-2/+39
| |
* | Added Entity GuardianMasy982014-12-181-0/+1
|/
* En masse NULL -> nullptr replaceTiger Wang2014-10-236-10/+10
|
* Moved tall grass pickups handle.Howaner2014-10-211-9/+0
|
* Leaves are harvest-able.Howaner2014-10-071-2/+0
|
* Corrected drops from dead bush, tall grass and cobweb.Howaner2014-10-072-11/+35
|
* Fixed sortingMasy982014-10-011-2/+2
|
* Fixed Red Sandstone and Prismarine dropsMasy982014-10-012-17/+23
|
* Fixed 1.8 dirt typesHowaner2014-09-301-2/+25
|
* Merge pull request #1415 from Masy98/blocksMattes D2014-09-263-28/+72
|\ | | | | Added 1.8 Blocks and Items
| * Moved curly brace to seperate lineMasy982014-09-261-1/+2
| |
| * Merge branch 'master' into blocksMasy982014-09-269-38/+112
| |\ | | | | | | | | | | | | | | | Conflicts: src/Items/ItemHandler.cpp src/Simulator/IncrementalRedstoneSimulator.cpp
| * | Fixed 1.8 Item stacking and block harvestingMasy982014-09-121-25/+43
| | |
| * | Added new doors in ItemDoor.hMasy982014-09-111-1/+15
| | |
| * | Fixed mutton name in Sheep.cppMasy982014-09-111-2/+10
| | |
| * | Fixed mutton name in ItemHandlerMasy982014-09-111-1/+1
| | |
| * | Added 1.8 food to the food listMasy982014-09-111-1/+4
| | |
* | | Removed more unessicary includesTycho2014-09-261-0/+1
| |/ |/|
* | Merge branch 'master' into redstoneTestsTycho2014-09-251-1/+0
|\ \ | | | | | | | | | | | | Conflicts: src/Mobs/Monster.h
| * \ Merge branch 'master' into 1.8-ProtocolHowaner2014-09-146-7/+74
| |\ \
| * \ \ Merge branch 'master' into 1.8-ProtocolHowaner2014-09-133-5/+8
| |\ \ \ | | | | | | | | | | | | | | | | | | | | Conflicts: src/Items/ItemHoe.h
| * | | | Fixed many right click issues.Howaner2014-09-121-3/+7
| | |_|/ | |/| |
* | | | Merge branch 'master' into redstoneTestsTycho2014-09-178-8/+83
|\ \ \ \ | | |_|/ | |/| | | | | | | | | | Conflicts: src/Blocks/ChunkInterface.h
| * | | Improved cBlockHandler::DropBlockTiger Wang2014-09-131-1/+1
| | | |
| * | | Merge pull request #1353 from mc-server/EffectsMattes D2014-09-136-6/+73
| |\ \ \ | | |_|/ | |/| | Added speed entity effect.
| | * | Added extra mushroom handler.Howaner2014-09-123-3/+60
| | | |
| | * | Merge branch 'master' into EffectsHowaner2014-09-123-5/+9
| | |\|
| | * | Merge branch 'master' into EffectsHowaner2014-09-022-2/+12
| | |\ \
| | * | | Fixed potion removing in creative mode.Howaner2014-08-304-4/+14
| | | | |
| * | | | Fixed farmland issues.Howaner2014-09-121-1/+1
| | | | |
| * | | | Only place farmland if no block is upper than dirt/grass.Howaner2014-09-121-1/+6
| | | | |
| * | | | Added hoe interact sound.Howaner2014-09-121-0/+1
| | | | |
| * | | | Spawn exp if you break a mob spawner.Howaner2014-09-121-0/+1
| | | | |
| * | | | Disabled mobspawner itemdrop.Howaner2014-09-121-0/+1
| | |_|/ | |/| |
* / | | Added first test to show the object can be createdTycho2014-09-171-28/+28
|/ / /
* | | In 1.8, carrots and potatoes yield one less hunger point.archshift2014-09-042-2/+2
| | |
* | | Fixed style and alpha-sorting.madmaxoft2014-09-032-7/+7
| | |
* | | Added mutton, which sheep now drop when killedarchshift2014-09-032-0/+4
| |/ |/|
* | Merge remote-tracking branch 'Hircine/Enchantments'madmaxoft2014-09-011-1/+11
|\ \
| * | FixesJaume Aloy2014-08-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | - Changed m_TicksLeftBurning > 0 for IsOnFire() - Tried to do the changes in BlockHandler.cpp - Removed m_Creator in ArrowEntity - Added m_Enchantments in ProjectileEntity CreatorData - Added blank lines between functions
| * | Added some EnchantmentsJaume Aloy2014-08-191-1/+11
| | | | | | | | | | | | | | | | | | - Bow enchantments: Infinity, Flame and Power - Sword and tools enchantments: Fire Aspect, Bane of Arthropods, Smite, Sharpness
* | | Merge branch 'master' of https://github.com/mc-server/MCServerTiger Wang2014-08-294-3/+12
|\ \ \ | | |/ | |/| | | | | | | Conflicts: src/Server.cpp
| * | Code formatting fixes.Howaner2014-08-192-2/+1
| |/
| * Fixed unsigned long comparison to size_tarchshift2014-08-051-1/+1
| |
| * Changed arrow comment.Howaner2014-08-041-1/+1
| |
| * Added arrow consuming on shootingHowaner2014-08-041-0/+10
| |
* | Removed unused codeTiger Wang2014-08-291-1/+1
|/
* Merge pull request #1272 from Howaner/FoodMattes D2014-08-014-25/+136
|\ | | | | Fixed hunger bugs, Implemented golden apple, added jump statistic, added...
| * Fixed hunger bugs, Implemented golden apple, added jump statistic, added correct food effects.Howaner2014-07-314-25/+136
| |
* | Fixed water from ice and removed packed ice drop.Howaner2014-07-311-0/+1
|/
* Hotfixed compilation problems.madmaxoft2014-07-272-2/+2
|
* Merge pull request #1236 from Howaner/Inventory2Mattes D2014-07-277-13/+107
|\ | | | | Fix item durability.
| * Derp.Howaner2014-07-261-1/+1
| |
| * Rename function.Howaner2014-07-264-6/+6
| |
| * Merge branch 'master' into Inventory2Howaner2014-07-265-13/+61
| |\ | | | | | | | | | | | | Conflicts: src/BlockInfo.cpp
| * | Fix item durability.Howaner2014-07-235-10/+91
| | | | | | | | | Fixes #1181
* | | Fixed indentations, removed redundant init code in SplashPotionEntity.cpparchshift2014-07-261-3/+5
| | |
* | | Moved potion static functions to EntityEffect to create splash potions through worldarchshift2014-07-261-129/+7
| |/ |/|
* | Fixed block dropsTiger Wang2014-07-242-5/+43
| | | | | | | | * Fixes #1242 (the issue addressed within)
* | Merge remote-tracking branch 'origin/master' into saplingsandleavesTiger Wang2014-07-223-5/+5
|\| | | | | | | | | Conflicts: src/Defines.h
| * Style: Normalized to no spaces before closing parenthesis.madmaxoft2014-07-213-4/+4
| |
| * Style: Normalized spaces after if, for and while.madmaxoft2014-07-211-1/+1
| |
* | Merge branch 'master' into saplingsandleavesTiger Wang2014-07-2026-78/+136
|\| | | | | | | | | | | Conflicts: src/Bindings/DeprecatedBindings.cpp src/Blocks/BlockSapling.h
| * Fixed style: spaces after commas.madmaxoft2014-07-192-2/+2
| |
| * Merge pull request #1214 from mc-server/anti-globMattes D2014-07-191-5/+49
| |\ | | | | | | CMake - Explicitly lists all source files
| | * Subdirs: Only add_library if not using MSVCarchshift2014-07-191-1/+3
| | |
| | * Items/CMakeLists.txt: Replaced glob with list of filesarchshift2014-07-191-5/+47
| | |
| * | Splash potions: Renamed PotionParticleType to PotionColor for clarityarchshift2014-07-191-3/+3
| |/
| * Added a extra wall sign handler.Howaner2014-07-181-3/+4
| | | | | | Fixes #1119
| * Fixed tabs used for alignment.madmaxoft2014-07-172-8/+8
| |
| * More trailing whitespace fixes.madmaxoft2014-07-173-6/+6
| |
| * Basic style fixes.madmaxoft2014-07-1719-25/+25
| |
| * Normalized comments.madmaxoft2014-07-1710-26/+39
| | | | | | | | | | 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.
* | Fixed issues relating to saplings and leavesTiger Wang2014-07-171-6/+3
|/ | | | | | - Removed cBlockInfo::RequiresSpecialTool * Fixes #1195 * Fixes #1201
* Reformatted cItemPotionHandler.madmaxoft2014-07-171-47/+77
|
* Merge remote-tracking branch 'origin/master' into potionsmadmaxoft2014-07-171-1/+1
|\
| * Fixed a bug with bucketsTiger Wang2014-07-161-1/+1
| | | | | | | | | | * Additionally fixed cLineBlockTracer's EntryFace parameter when a block was hit on the first iteration along the projected line
* | Merge branch 'master' into potionsmadmaxoft2014-07-154-38/+58
|\|
| * Fixed placing liquids over liquidsTiger Wang2014-07-141-1/+1
| | | | | | | | * Fixes #1182
| * Adjusted calls to CreateProjectile that passed ItemsTycho2014-07-131-2/+2
| |
| * Changed BroadcastSoundEffect function to take floating pos.Howaner2014-07-133-12/+5
| |
| * Comment grammar correctionTiger Wang2014-07-121-1/+1
| |
| * Simplified buckets code slightlyTiger Wang2014-07-121-32/+15
| |
| * Merge pull request #1162 from daniel0916/FixesTiger Wang2014-07-121-23/+67
| |\ | | | | | | Fix for bucket placing
| | * Changesdaniel09162014-07-121-5/+4
| | |
| | * Changesdaniel09162014-07-111-24/+16
| | |
| | * Changesdaniel09162014-07-101-20/+22
| | |
| | * Maybe fixed whitespacesdaniel09162014-07-101-7/+7
| | |
| | * Maybe fixed whitespacesdaniel09162014-07-101-1/+1
| | |
| | * Fixed Bucket Placingdaniel09162014-07-101-6/+57
| | |
| | * Fixed Bucket placingdaniel09162014-07-091-1/+1
| | |
* | | ItemHandler.cpp: removed redundant food and drink checksarchshift2014-07-141-33/+0
| | |
* | | Readability and clarity changesarchshift2014-07-141-30/+45
| | |
* | | For now, removed creator member from Entity Effect for pointer safetyarchshift2014-07-121-2/+2
| | |
* | | Merge remote-tracking branch 'origin/master' into potionsarchshift2014-07-105-11/+62
|\| | | | | | | | | | | | | | | | | Conflicts: src/Entities/Player.cpp src/Entities/ProjectileEntity.cpp
| * | Fixed bow chargeTiger Wang2014-07-091-11/+2
| |/
| * Only fixes the server crash.Howaner2014-07-011-1/+1
| |
| * Fix server-crash with non-existing items.Howaner2014-07-011-1/+1
| |
| * Implemented tripwire(s) (hooks)Tiger Wang2014-06-282-0/+41
| | | | | | | | * Fixes #944
| * Merge branch 'master' into BowHowaner2014-06-264-0/+14
| |\
| | * Nullify deleted pointers.archshift2014-06-193-0/+3
| | |
| | * Merge branch 'master' into GlobalFixesHowaner2014-06-176-6/+6
| | |\
| | * | Add throw sound and fix arrow server crash.Howaner2014-05-281-0/+11
| | | |
| * | | Split Broadcast Sound Effect function call in multiple lines.Howaner2014-06-161-1/+8
| | | |
| * | | This isn't neededHowaner2014-06-161-1/+0
| | | |
| * | | Fix bow sound and creative arrow pickup.Howaner2014-06-161-9/+8
| | |/ | |/|
* | | EntityEffects.x -> EntityEffect.x, Object-Oriented effectsarchshift2014-06-191-1/+1
| | | | | | | | | | | | Changed effect map to take a pointer of the effect as a result.
* | | Entity Effects: Clarified user, added it to AddEntityEffectarchshift2014-06-171-1/+1
| | | | | | | | | | | | Added second AddEntityEffect with a pass-by-value of the class.
* | | Changed the AddEntityEffect() params for easier calls.madmaxoft2014-06-171-2/+1
| | |
* | | Fixed MSVC compilation.madmaxoft2014-06-171-7/+7
| | |
* | | Pawn: renamed HandleEntityEffects to HandleEntityEffectarchshift2014-06-171-1/+1
| | | | | | | | | | | | Exported entity effect functions for ToLua and documented them in APIDesc.lua
* | | Removed long function wrappingarchshift2014-06-171-10/+2
| | |
* | | ItemHandler: changed IsDrinkable() to take a short argumentarchshift2014-06-174-15/+10
| | |
* | | Splash potion: Adjusted speed, fixed spawn positionarchshift2014-06-171-6/+3
| | |
* | | Entity effect type: use 'eff' as a prefix instead of 'ef'archshift2014-06-171-33/+33
| | |
* | | Added splash potion functionalityarchshift2014-06-171-1/+35
| | |
* | | Implemented drinkable potions, noeffect entity effect,archshift2014-06-174-3/+146
| | | | | | | | | | | | Clears entity effects on death
* | | Implemented milk, added documentation to Pawn.harchshift2014-06-173-1/+47
| | |
* | | Player: Removed food-poisoning-specific code, set duration to 30 secondsarchshift2014-06-171-1/+1
|/ / | | | | | | http://minecraft.gamepedia.com/Hunger#Behavior
* / Fixed deadlock when moving players to other worlds.Mattes D2014-06-086-6/+6
|/ | | | Fixes #1039, fixes #851
* Cleaned up cPlayer::UpdateMovementStats; Wither achievementsandrew2014-05-201-0/+6
|
* Merge pull request #989 from Howaner/AnvilMattes D2014-05-072-12/+0
|\ | | | | Add repair cost to cItem, add custom name to NBTChunkSerializer and fix ...
| * Add repair cost to cItem, add custom name to NBTChunkSerializer and fix anvil bugs.Howaner2014-05-072-12/+0
| |
* | Merge branch 'master' into SlabsHowaner2014-05-0711-34/+282
|\ \
| * | Merge pull request #985 from Howaner/AnvilMattes D2014-05-066-0/+108
| |\| | | | | | | Add anvil inventory.
| | * Rename CanRepairWithItem to CanRepairWithRawMaterial and rename Size() to Count()Howaner2014-05-066-26/+26
| | |
| | * Add anvil window and slot area.Howaner2014-05-056-0/+108
| | |
| * | Suggestions'dTiger Wang2014-05-061-5/+9
| | |
| * | Merge branch 'master' into fixes.madmaxoft2014-05-026-18/+154
| |\|
| | * Added a sanitizer for Spawn egg damage value.madmaxoft2014-05-021-1/+39
| | | | | | | | | | | | This disallows spawning unknown mobs from unknown spawn eggs. Ref.: #928.
| | * Fixed projectile source filenames, indentationsarchshift2014-04-281-1/+1
| | |
| | * Moved cArrowEntity out of ProjectileEntity.harchshift2014-04-271-1/+1
| | |
| | * Missed these CMakeLists.archshift2014-04-251-1/+6
| | |
| | * Add commit what the code is doing.Howaner2014-04-251-0/+1
| | |
| | * Add unkown armor warning and fix armor stacks.Howaner2014-04-251-2/+14
| | |
| | * Add armor to switch() in ItemHandler.cppHowaner2014-04-241-6/+25
| | |
| | * Fix armor in survival mode.Howaner2014-04-243-15/+76
| | |
| * | Merge branch 'master' into fixesTiger Wang2014-04-242-3/+2
| |\| | | | | | | | | | | | | Conflicts: src/World.h
| | * Fixed clang compilation errors. Apparently gcc and MSVC do not care about the order of initializer lists, but clang does.jfhumann2014-04-181-1/+1
| | |
| | * Did some static analysis, fixed some bugs and optimized a lot of codejfhumann2014-04-182-2/+1
| | |
| * | Small changesTiger Wang2014-04-232-9/+10
| |/
* | Merge branch 'master' into SlabsHowaner2014-04-065-18/+19
|\|
| * Fixed Clang warnings in itemhandlers.madmaxoft2014-04-045-18/+19
| |
* | Add CanChangeDirtToGrass function to Block Handlers.Howaner2014-04-062-1/+2
|/
* Fixed boat placement code.madmaxoft2014-04-021-9/+17
|
* Another curlyTiger Wang2014-03-301-1/+2
|
* Curly bracketsTiger Wang2014-03-291-1/+4
|
* Fixed infinite minecart itemsTiger Wang2014-03-281-0/+3
|
* Some fixes to lilypadsTiger Wang2014-03-282-0/+108
| | | | | | | | * 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
* Implemented lilypad placementTiger Wang2014-03-231-4/+4
|
* Merge branch 'master' into awesometntTiger Wang2014-03-185-4/+75
|\ | | | | | | | | Conflicts: src/ChunkMap.cpp
| * Merge pull request #809 from Howaner/BlockEntitysMattes D2014-03-163-2/+27
| |\ | | | | | | More entity saving.
| | * Merge branch 'master' into BlockEntitysHowaner2014-03-153-14/+17
| | |\
| | * | Add fireball interactHowaner2014-03-143-2/+27
| | | |
| * | | Add new leaves to all classes.Howaner2014-03-162-2/+4
| | | |
| * | | Add cakeHowaner2014-03-162-0/+44
| | |/ | |/|
* | | Merge remote-tracking branch 'origin/master' into awesometntTiger Wang2014-03-102-5/+5
|\| | | | | | | | | | | | | | | | | Conflicts: src/Items/ItemLighter.h src/Simulator/IncrementalRedstoneSimulator.cpp
| * | Merge pull request #768 from Howaner/BlockEntitysTiger Wang2014-03-091-2/+2
| |\| | | | | | | Add TNT load/save
| | * Change TNT Fuse to ticksHowaner2014-03-081-2/+2
| | |
| * | Merge pull request #731 from mc-server/ballisticmissilesTiger Wang2014-03-091-3/+3
| |\ \ | | | | | | | | Ballistic firework missiles
| | * \ Merge branch 'master' into ballisticmissilesTiger Wang2014-03-094-17/+41
| | |\ \ | | | | | | | | | | | | | | | | | | | | Conflicts: src/ClientHandle.cpp
| | * | | Implemented ballistic missiles (fireworks)Tiger Wang2014-02-271-3/+3
| | | | | | | | | | | | | | | | | | | | + Added fireworks
* | | | | Merge branch 'master' into awesometntTiger Wang2014-03-103-12/+15
|\| | | |
| * | | | Merge branch 'master' into warningsTycho2014-03-081-11/+11
| |\ \ \ \ | | | |/ / | | |/| |
| | * | | cBlockInfo-related changes from #723andrew2014-03-081-11/+11
| | | |/ | | |/|
| * / | Fixed warningsTycho2014-03-071-0/+3
| |/ /
| * | cBlockInfo now manages the respective cBlockHandlerandrew2014-03-021-1/+1
| | |
* | | Added extra awesomeness to TNTTiger Wang2014-03-051-1/+1
|/ / | | | | | | | | | | | | + TNT now has a chance of flinging FallingBlock entities around * Improved TNT damage * Improved TNT spawning visuals * Possible fix for 'SetSwimState failure' messages in debug
* | g_BlockXXX => cBlockInfo::XXXandrew2014-03-011-1/+1
| |
* | Fixed multiple gcc warnings about unused params.madmaxoft2014-02-281-1/+25
| |
* | Fixed crash and some warnings in map handling.madmaxoft2014-02-271-3/+3
|/ | | | Fixes #728.
* Fixed MCServer not compiling with C++03 compilersSTRWarrior2014-02-241-3/+3
|
* Maps: Improvementsandrew2014-02-232-2/+2
|
* Manual merge (Fixed conflicts)andrew2014-02-205-3/+203
|\
| * Merge pull request #697 from Howaner/SkullMattes D2014-02-192-0/+44
| |\ | | | | | | Add Skulls/Heads to MCServer
| | * Rename SkullEntity to MobHeadEntityHowaner2014-02-192-6/+4
| | |
| | * Add Heads completelyHowaner2014-02-181-0/+1
| | |
| | * Add Skulls/HeadsHowaner2014-02-172-0/+45
| | |
| * | Merge branch 'master' into itemframesTiger Wang2014-02-182-2/+102
| |\ \ | | | | | | | | | | | | | | | | | | | | Conflicts: src/Entities/Entity.h src/WorldStorage/NBTChunkSerializer.cpp
| | * | Comments & new BLOCK_FACE constantsTiger Wang2014-02-181-7/+10
| | | |
| | * | Implemented paintings, fixes #689Tiger Wang2014-02-182-2/+99
| | |/ | | | | | | | | | + Implemented paintings
| * | Fixed possible ASSERT failureTiger Wang2014-02-181-1/+1
| | |
| * | Changed BlockFace type to eBlockFaceTiger Wang2014-02-181-13/+1
| | |
| * | Added an explanatory commentTiger Wang2014-02-181-0/+2
| | |
| * | Used new BLOCK_FACE constantsTiger Wang2014-02-181-7/+8
| | | | | | | | | Also added more comments
| * | Implemented item frames, a part of #689Tiger Wang2014-02-182-0/+65
| |/ | | | | | | | | + Implemented Item Frames * Fixed Pitch and Yaw being wrongly flipped in the protocol (XOFT!)
| * Fixed TNT fizzing everywhereTiger Wang2014-02-151-1/+1
| |
* | Map decorators; Map clientsandrew2014-02-181-2/+2
| |
* | Map item handler; Fixed several bugsandrew2014-02-174-1/+68
| |
* | cMap::UpdateRadiusandrew2014-02-151-2/+4
| |
* | EmptyMap item handlerandrew2014-02-142-0/+48
|/
* Added additional parenthasiesworktycho2014-02-101-2/+1
|
* Merge branch 'master' into boatsFixTycho2014-02-101-0/+1
|\ | | | | | | | | Conflicts: src/Items/ItemBoat.h
| * Maybe fixed boat placingtonibm192014-02-101-1/+1
| |
* | Fixed stupid mistax in conditionalworktycho2014-02-101-2/+1
|/ | | boats can't be placed if the face is not block_face_none and not block_face_YM, not if it is only not one.
* Merge branch 'master' into playerimprovementsTiger Wang2014-02-0928-40/+40
|\ | | | | | | | | Conflicts: MCServer/Plugins/APIDump/APIDesc.lua
| * Improved Type safety of eBlockFaceTycho2014-02-0428-40/+40
| | | | | | | | May Fix #640
* | Fixed #626Tiger Wang2014-02-033-13/+38
|/ | | | * Fixed consumption of carrots and potatoes
* Changed Signiture of OnUpdateTycho2014-02-023-4/+13
|
* Changed pointers to referencesTycho2014-02-012-2/+2
|
* Refactored GetPlacementBlockTypeMetaTycho2014-01-262-3/+6
|
* Fixed flint&steel failure on the Y world edges.madmaxoft2014-01-241-0/+4
|
* Merge pull request #534 from mc-server/SpawnMinecartMattes D2014-01-171-1/+1
|\ | | | | Added cWorld::SpawnMinecart.
| * Renamed cEmptyMinecart to cRideableMinecartSTRWarrior2014-01-121-1/+1
| |
| * EmptyMinecarts should be able to get a block inside of them.STRWarrior2014-01-121-1/+1
| |
* | Removed internal cEntity::GetRot() usage.madmaxoft2014-01-174-4/+4
| |
* | Removed obsoleted functionsTiger Wang2014-01-164-4/+4
| |
* | Renamed g_TorchPlaceable...Tiger Wang2014-01-111-1/+1
|/ | | | ...to g_FullyOccupiesVoxel, as recommended by @bearbin
* Fixed a few MSVC warnings.madmaxoft2014-01-071-1/+0
|
* Implented OnPlayerFishing and OnPlayerFished.STRWarrior2013-12-301-1/+7
|
* converted commneted paramater names to the unused macroTycho Bickerstaff2013-12-221-1/+7
|
* Merge branch 'master' of github.com:mc-server/MCServerTycho Bickerstaff2013-12-221-29/+173
|\
| * You are now able to sweep mobs to your position using fishing rods.STRWarrior2013-12-251-26/+64
| |
| * Made the lure enchantment work.STRWarrior2013-12-221-1/+1
| |
| * Countdown time is between 100 and 900 ticks.STRWarrior2013-12-221-1/+1
| |
| * Using regular assignments.STRWarrior2013-12-211-6/+6
| |
| * Once again better Y direction for the items given when fishing.STRWarrior2013-12-211-2/+2
| |
| * You are now able to get different items from fishing.STRWarrior2013-12-211-2/+108
| |
* | Root is now warnings cleanTycho Bickerstaff2013-12-211-1/+1
|/
* Merge branch 'master' into cmakeTycho Bickerstaff2013-12-211-2/+7
|\
| * Fixed bug where you could pickup the floater only to get one spawned instantly or the other way around.STRWarrior2013-12-211-0/+5
| |
| * Increased the range an Floater can shoot to.STRWarrior2013-12-201-1/+1
| |
| * Fish now actualy jumps to the player instead of a few block bellow them.STRWarrior2013-12-201-1/+1
| |
* | Merge branch 'master' into cmakeTycho Bickerstaff2013-12-193-0/+85
|\|
| * Merge pull request #450 from mc-server/redstonefixesMattes D2013-12-191-0/+5
| |\ | | | | | | Multiple fixes
| | * Fixed dust from being placed on nonsolidsTiger Wang2013-12-191-0/+5
| | |
| * | You can get fish from fishing :D. Only one type of fish though.STRWarrior2013-12-191-12/+27
| | |
| * | Implented cItemFishingRodHandler.STRWarrior2013-12-192-0/+65
| |/
* | Merge branch 'master' into cmakeTycho Bickerstaff2013-12-184-46/+169
|\|
| * Implented Nether Wart.STRWarrior2013-12-182-0/+56
| |
| * Fixed naming and initialization.madmaxoft2013-12-171-4/+12
| |
| * Forgot to change one Vector3d to Vector3i.STRWarrior2013-12-171-1/+1
| |
| * Renamed Pos to m_Pos.STRWarrior2013-12-171-3/+3
| |
| * Using Recommendations.STRWarrior2013-12-171-10/+23
| |
| * Made buckets work when the player does not 'look' at a block. This fixes #265STRWarrior2013-12-171-32/+53
| |
| * Boats spawn on top of a block. not between 4 blocks.STRWarrior2013-12-161-1/+1
| |
| * Using suggestions for Boat placing.STRWarrior2013-12-161-1/+1
| |
| * You can spawn boats on water.STRWarrior2013-12-161-7/+32
| |
* | more cmake stuffTycho Bickerstaff2013-12-101-0/+7
|/
* Bonemeal has particles, fixes #393Tiger Wang2013-12-081-3/+2
|
* Spawn eggs use IsGameMode()Tiger Wang2013-12-061-2/+2
| | | | Possible fix for #316.
* Merge remote-tracking branch 'origin/master' into foldermove2Alexander Harkness2013-11-244-4/+50
| | | | | Conflicts: GNUmakefile
* Moved source to srcAlexander Harkness2013-11-2430-0/+2173