changyong guo
01e72ddb65
Rewrite explosion knock back ( #4251 )
...
1. Base knockback on an entity's bounding box intersection with the explosion
2. Armor blast protection reduces knockback
3. Don't apply knockback to players flying in creative mode
Fixes #4139
2018-07-23 10:24:00 +01:00
changyong guo
7b0db672d1
Keep players in gmNotSet ( #4248 )
...
This allows players game mode to update to the default after portal to another world.
Fixes #4207
2018-07-23 00:35:32 +01:00
changyong guo
3e802932a6
recover hotbar selected slot after reconnect ( #4249 )
...
1. implement protocol message SendHeldItemChange
2. add save / load inventory equipped item slot in JSON
3. send held item slot message after player connect to server
Fixes #4189
2018-07-22 23:23:33 +01:00
Bond-009
2431b077cd
Add unbreaking for armor ( #4220 )
...
Ref: minecraft.gamepedia.com/Enchanting#Unbreaking
#915
2018-07-12 23:10:15 +01:00
changyong guo
2d3013d1d3
Support swap item between main hand and offhand by press key "F" ( #4241 )
...
Hi,
I found cuberite don't support to press key "F" to swap items on main hand and offhand, so I implemented this feature.
Best regards
Changyong
2018-06-24 10:24:10 +01:00
Alexander Harkness
b4aa19f329
Item durability loss now depends on the item used. ( #4123 )
...
Armour durability also no longer changes when it
is used to break blocks or attack mobs.
Fixes #4119
2018-01-05 11:28:06 +00:00
peterbell10
0bacda3269
Implement horse inventory ( #4053 )
...
* Implement horse inventory
* Fix sign conversions
* Add API doc for ItemCategory::IsHorseArmor
* Improve HandleOpenHorseInventory comment and style fixes.
2017-10-21 17:56:09 +01:00
Alexander Harkness
e33eb529ad
Fire effect now shown for creative and spectator mode players ( #3998 )
...
* Fire effect now shown for creative and spectator mode players
Fixes #3989
* Add documentation for IsFireproof
2017-09-07 09:59:08 +01:00
peterbell10
f4f2fc7c3d
Add cUUID class ( #3871 )
2017-08-25 13:43:18 +01:00
mathiascode
02775e52c4
Minor changes ( #3909 )
2017-08-24 11:19:40 +02:00
Tiger Wang
4ef47aed62
Changed entity ownership model to use smart pointers
2017-08-07 19:24:16 +01:00
Lane Kolbly
5402b214b3
Check for intersection between placed blocks and entities. ( #3850 )
...
* Check for intersection between placed blocks and entities.
+ Implemented GetPlacementCollisionBox, to permit custom placement collision boxes for blocks.
* Factored block-entity placement checking into another function in cPlayer.
- Removed vector min/max functions
* Use GetWorld to get the world in DoesPlacingBlocksIntersectEntity.
+ Added block height checks, allow different cEntity subclasses to decide whether they will prevent block placement.
2017-07-28 17:59:21 +01:00
Lane Kolbly
87af95b67c
Updated armor cover calculation. ( #3858 )
...
* Updated armor damage calculation.
+ Added lua docs, added casts from float to int.
* Changed verbage in docstring and comment.
2017-07-23 10:46:38 +01:00
Lane Kolbly
a561886bf3
Implemented draggingitem API.
2017-07-10 05:46:04 +02:00
Lukas Pioch
7922e6addb
Fixes problems with windows:
...
- Changed cPlayer:OpenWindow to accept a ref, tolua adds a nil check
- Close open lua window in destructor, to avoid dangling pointers
2017-06-05 15:14:23 +02:00
Heiko Hund
a0341d561a
Add rank prefix and suffix to player name in chat ( #3730 )
...
Fixes issue #1721
2017-05-27 02:15:56 +01:00
Lukas Pioch
e35ac1bfb9
Clang 5.0 fixes
...
- Added override keyword
- Removed inherited member variables
2017-05-21 12:19:06 +02:00
Lukas Pioch
fb20517435
APIDoc: Documented missing functions and variables. ( #3634 )
2017-04-04 07:53:14 +02:00
Pokechu22
9c2a0bb7b9
Track skin part and main hand preferences ( #3498 )
2017-01-03 21:19:29 +01:00
Mattes D
0bffa29358
Removed ClientHandle.h dependencies from common headers.
2016-11-18 20:00:04 +01:00
mohe2015
32b38fb264
Anticheat fastbreak ( #3411 )
...
Added block hardness checks when breaking blocks.
2016-11-06 19:30:19 +01:00
Lukas Pioch
b088123d18
Added SendMessageRaw for sending json string.
2016-10-21 11:17:39 +02:00
bibo38
cb640ffea4
Spectators added ( #2852 )
2016-10-12 14:38:45 +02:00
LogicParrot
c088f7ff0a
Proper respawn packets on dimension travel
2016-08-29 11:16:06 +03:00
Mattes D
fb4c3fc4d9
Changed cLuaWindow callbacks to use cLuaState::cCallback.
2016-06-27 20:51:50 +02:00
LogicParrot
9bec04ab1e
Fix occasional freeze bug
2016-04-13 15:44:08 +03:00
LogicParrot
a431b45641
Improved player freeze code
2016-04-05 14:20:50 +03:00
LogicParrot
dd0ce3287f
Players never fall through unloaded chunks or end up inside solids on teleport
2016-03-31 21:35:43 +03:00
LogicParrot
8b184e8083
Bed's world is now saved
2016-03-29 15:50:29 +03:00
Mattes D
e3d34d9917
Revert "Lua callback"
2016-03-21 09:58:15 +01:00
Mattes D
af200dfaae
Changed cLuaWindow callbacks to use cLuaState::cCallback.
2016-03-17 19:29:03 +01:00
LogicParrot
83459d0d89
Proper entity destruction in non-ticking chunks
2016-02-19 07:05:22 +02:00
LogicParrot
439b3304f4
Improved tamed wolf pack cooperation and projectile reactions
2016-01-22 21:16:27 +02:00
LogicParrot
8c12227687
Fix crash when tamed wolf is hit by arrows
2016-01-16 16:37:37 +02:00
LogicParrot
359e772dee
Tamed wolf assists owner (attack / defence)
2016-01-12 11:47:59 +02:00
Safwat Halaby
400f875918
Freeze player until chunk is loaded
2015-12-25 17:47:06 +02:00
Gargaj
66e6589883
blockheight mechanism
2015-12-13 15:16:15 +01:00
Julian Laubstein
d75ab544f4
Small spelling issues fixed
2015-12-08 21:58:53 +01:00
Tiger Wang
de2cce9b79
Fixed food drain bugs
2015-08-20 16:26:42 +01:00
Samuel Barney
804805d35a
Silenced and fixed many warning messages across multiple files.
2015-07-29 09:49:30 -06:00
Lane Kolbly
73b6a44d5f
Implemented nether portal scanning code.
2015-06-09 18:23:57 -05:00
jan64
d37e0eb72b
Added system and above action bar chat messages
2015-06-02 19:59:46 +02:00
Alexander Harkness
febc8529b1
Fix gamemode not changing properly.
...
Should fix #604
2015-05-23 19:31:33 +01:00
Lukas Pioch
e30b2ed487
Fixed missing overrides and added a ignore flag for reserved macro for clang version 3.6 and higher.
2015-05-23 16:28:37 +02:00
Mattes D
c13b1931ff
More style checking.
...
Spaces around some operators are checked.
2015-05-09 12:58:54 +02:00
Tiger Wang
a509cf00ef
Entity improvements
...
•Pathfinder improvements
•Fixes #1217
•Fixes #1933
Merge remote-tracking branch 'SafwatHalaby/water2' into fixes
2015-05-03 23:58:12 +01:00
Mattes D
b5998873e4
cPlayer now checks restrictions.
...
Fixes #1331 .
2015-04-25 21:05:43 +02:00
Mattes D
65d2ef32e9
Merge pull request #1734 from mc-server/pistons
...
Handle client 'leave bed' request
2015-03-14 22:44:04 +01:00
DevToaster
e012c06281
Replaced short int with int for Player experience
2015-03-01 03:09:36 +10:30
DevToaster
b65a6ef210
modified: src/Entities/Player.cpp
...
modified: src/Entities/Player.h
2015-03-01 03:03:41 +10:30