Commit Graph

97 Commits

Author SHA1 Message Date
mjagdis
81d40127c1
Fix filename template for saved maps (#5556)
* Fix filename template for saved maps

Signed-off-by: Mike Jagdis <mjagdis@eris-associates.co.uk>

* First patch - added to CONTRIBUTORS

Signed-off-by: Mike Jagdis <mjagdis@eris-associates.co.uk>

---------

Signed-off-by: Mike Jagdis <mjagdis@eris-associates.co.uk>
2024-05-12 22:10:38 +00:00
dyexlzc
20d5cf0bfc
fix minecart bugs. (#5516)
* fix minecart bugs.

* Replace magical number in minecart

---------

Co-authored-by: dyexlzc <dyexlzc@gmail.com>
2023-11-20 10:12:52 +00:00
sleirsgoevy
ca705be264
Fix empty chunk serializer for protocol 47 (#5514)
(Minecraft 1.8)

Co-authored-by: Sergey Lisov <sleirsgoevy@gmial.com>
2023-10-18 20:32:02 +00:00
Spongecade
ebeb164d2b
Update Minecraft Wiki links to new domain (#5532)
* Update Minecraft Wiki links to new domain

* Added Spongecade to contributors

* Sorted Spongecade
2023-09-27 20:07:42 +02:00
Seppe Degryse
4fe144de35
Replaced hand-escaped JSON (#5508) 2023-06-08 08:13:08 +02:00
stevenzr
dcad86e776
refactor: removed m_MojangAPI from RankManager (#5483)
* refactor: removed m_MojangAPI from RankManager

* docs: updated CONTRIBUTORS
2023-04-04 22:32:09 +02:00
plan1231
21ec3ebe26
Kick clients when resource pack rejected (#5440) 2022-10-28 15:54:02 +02:00
Debucquoy Anthony tonitch
f089103c2b
Additional Y height checks (#5405)
For redstone wire, block area bindings, and fire simulator.

Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
2022-06-18 01:09:58 +01:00
DarkoGNU
4f554e91ab
Implement farmland trampling (#5401)
* Add DarkoGNU to CONTRIBUTORS

* HandleFarmlandTrampling function & its docs

* Fix decimal separators (, -> .)

* Fix style. Adjust thresholds. Make function non-virtual

* Adjust thresholds again. Prepare for fixing #5402

* Trying to fix falling through farmlands

* Another style fix

* Add FarmlandTramplingEnabled to world.ini

* Docs for IsFarmlandTramplingEnabled

* Style

* Farmland trampling - handling the random chance

* Trampling kinda works, very buggy

* Trying to fix clang-tidy

* Fix trampling

* Trying to fix the 'undocumented API symbol'

* Implement bearbin's suggestions

* Calculate volume properly

* Don't use std::pow for squaring

* Improved comments

* Really, should comments' style be checked?
2022-04-21 18:56:21 +00:00
hle0
6fc536bb37 add hle0 to CONTRIBUTORS 2022-04-11 23:06:31 +00:00
Rodarg
1fd826aed7 Update CONTRIBUTORS
my bad
2022-02-09 08:45:25 +00:00
Rodarg
3597cd698a Update CONTRIBUTORS
Added myself
2022-02-09 08:45:25 +00:00
Michal Havlíček
9f2a198a62
Fixed diagonal redstone powering (#5363)
* Fixed diagonal redstone powering
* Transparent blocks don't transmit downwards
2022-01-02 16:37:39 +00:00
Persson-dev
640fbbbd92
Slow down arrows in water (#5350)
* Slow down arrow in water

* Added myself to contributors
2021-12-19 20:58:55 +01:00
AirOne
39392bbeae
Bind more ClientHandle functions to Lua (#5334)
+ Bound the following functions to Lua
  + SendBlockBreakAnim
  + SendCollectEntity
  + SendDestroyEntity
  + SendDetachEntity
  + SendEditSign
  + SendLeashEntity
  + SendThunderbolt
  + SendUnleashEntity

Co-authored-by: BuildTools <unconfigured@null.spigotmc.org>
2021-11-22 00:26:33 +00:00
Ethan Jones
799bc419ff
Add LittleBigBug to CONTRIBUTORS (#5297)
I agree to the license terms :)
2021-09-15 17:31:22 +00:00
JK2K
503b3c220f
Slime spawinig in swamps (#5281)
* 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
2021-08-20 11:58:08 +00:00
Rorkh
4221e08f3a
Paintings: add sound effects, remove critical hitting (#5276) 2021-07-28 21:51:59 +01:00
TheHyper45
3b35a00397
Death messages for tamed pets and ocelots are now tamable. (#5243)
* Fixing bugs regarding wolfs and ocelots

* Death messages appear after killing tamed ocelots and wolfs

* Style fix

* Added myself to the CONTRIBUTORS file

* Removed redundant string initialization

* Removed an unsafe cast.

* Changed the order of initialization of fields in constuctor of class cOcelot
2021-06-19 21:25:24 +00:00
Isaac McFadyen
db68179776
Added AArch64 to easyinstall.sh (#5237)
* Added case statement in easyinstall.sh.

Added case statement in easyinstall.sh to allow install on Raspberry Pi 4 Ubuntu x64 (AArch64).

* Added mcfadyeni to CONTRIBUTORS
2021-06-09 23:32:05 +00:00
Feyo Korenhof
9ddc3635d6
Implemented cServer::ScheduleTask() and cServer::TickQueuedTasks() (#5224) 2021-05-26 18:07:32 +02:00
Morritz
a4eba7639e
Fix: GetPhysicalRamUsage on FreeBSD (UNIX) - webadmin display (#5213)
* Fix: GetPhysicalRamUsage on FreeBSD (UNIX) - webadmin display

* fixed cast type

* Fix: GetPhysicalRamUsage on FreeBSD - webadmin display / style and failing build fixes

* added myself to contributors

Co-authored-by: 12xx12 <44411062+12xx12@users.noreply.github.com>
2021-04-30 13:23:31 +00:00
jclever77
cbfc740ad0
Added functionality: mobs now enter boats and minecarts (#5214)
* Added functionality: mobs now enter boats and minecarts when coming into collision with them.

* Fixed basic style errors, nothing else

* Added self to contributors and reverted .gitignore to original state.
2021-04-30 11:39:10 +00:00
npresley0506
d117a6c5db
Repaired Hoppers Treating Chests as two entities (#5202)
* Repaired Hoppers Treating Chests as two entities

* Style changes

* style fixes

* Fixed style issues, also condensed logic in MoveItemsFromChest

* Used m_Neighbour, fixed styling

* GetNeighbour not ReturnNeighbour

Co-authored-by: npresley <npresley@umich.edu>
2021-04-23 12:51:59 +00:00
Tiger Wang
3001e23e8c Thrown potions/enderpearls: cleanup 2021-04-12 22:35:07 +01:00
Nate
8efe55c62c
Change to Cuboid calculation for splash distance (#5176)
* Change to Cuboid calculation for splash distance

* Use ForEachEntityInBox when splash entities

* Remove TODO comment, calculation verified

* Added self to contributors
2021-04-06 16:16:31 +00:00
Damián Imrich
59e906ec6c
Implementation of totem of undying behaviour (#5111)
* notchian totem of undying

* ...

* ....

* Update src/Entities/Pawn.cpp

Co-authored-by: Alexander Harkness <me@bearbin.net>

* DeductTotem func

* fixed build errors

* Added myself to CONTRIBUTORS

* Small changes

Co-authored-by: Peter <peter@cassoviacode.com>
Co-authored-by: Alexander Harkness <me@bearbin.net>
Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
2021-01-22 09:05:18 +00:00
Derek Qu
a0afd13233
Add coloured glass pane recipes (#5032)
+ Add coloured glass pane recipes using uncolored glass panes
2020-11-15 16:45:02 +00:00
[IPSA] Chris de Claverie
9a548b3b3e
Plugin reload <plugin_name> feature (#4942)
+ Add `reload <pluginname>`
* Fixes #365

Co-authored-by: Alexander Harkness <me@bearbin.net>
Co-authored-by: pwnOrbitals <c.de-claverie@pm.me>
Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
2020-09-27 23:15:03 +01:00
theophriene
0a1bf06c6f
Trapdoor crash fix (#4890)
* [WIP] Trapdoor crash fix

* Fixed code style

* Updated commentary in the code

* Updated commentary in the code again

* Fix copy-past error

* Fix another copy-past error!

* Fixed orientation & clipping

* Remove redundant clause

* Some code cleanup

* Fixed compilation error

* Moved logic into helper function, slightly reorganised the caller

* Fixed comments

* Fixed comments, what an idiot

* Added to CONTRIBUTORS

* Fixed bitwise error

* Use cYawRotator

* Reduce indent

Co-authored-by: Elias Thomson <fiv.pids@gmail.com>
Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
2020-09-21 14:41:31 +00:00
12xx12
55672ca5b3
added 12xx12 to CONTRIBUTORS (#4896)
Co-authored-by: 12xx12 <12xx12100@gmail.com>
2020-09-19 14:34:45 +00:00
KingCol13
a72769b30e
Added recipe for the observer. (#4880)
* Added recipe for the observer.

* Forgot mirrored recipe.

Co-authored-by: Alexander Harkness <me@bearbin.net>
2020-09-17 21:47:38 +00:00
ion232
91002c8ac9 Update CONTRIBUTORS to add ion232 2020-08-09 10:19:01 +00:00
Tobias Wilken
36eab1b323
Introduce recipe book functionality (#4493)
* Introduce recipe book functionality

The recipe book helps especially new players. Missing it gives the
impression that cuberite is not as advanced as it is.

The handling of the recipe book uses the following functions:

- Unlock Recipes
(https://wiki.vg/index.php?title=Protocol&oldid=14204#Unlock_Recipes) to
make recipes available and show the notification for new recipes.
Initialization is done on player login for known ones, the update is done
when new items are discovered.
- Craft Recipe Request
(https://wiki.vg/index.php?title=Protocol&oldid=14204#Craft_Recipe_Request)
when the user selects a recipe from the recipe book to fill the slots.

Known recipes are initialized on player login via `Unlock Recipes` with
`Action` 0.
As soon as a new recipe is discovered this is added via `Unlock Recipes`
with `Action` 1.

To be able to know and recognize new recipes the player class is
extended with `KnownItems` and `KnownRecipes`. As soon as a player
touches an item this is compared to the list of `KnownItems`, if the
item is unknown the recipes are checked for this item and the other
ingredients are checked with the list of `KnownItems`. If a full match
is discovered the recipe is unlocked with the client and stored in the
`KnownRecipes`.

To unlock recipes the recipe ID is sent to the client. A mapping file
(for protocol 1.12.2) translated the minecraft recipe names to ids. The
crafting.txt is extended with and minecraft recipe names is possible.

Limitations:
Only a single recipe is added to the crafting area. Multiple clicks or
shift click does not increase the number of builds.

Co-authored-by: peterbell10 <peterbell10@live.co.uk>

* Address first issues mentioned by @peterbell10

- Some linting
- Extract loading of recipe specific protocol mapping into a function
- Build `RecipeNameMap` only once
- Use `std::optional`
- Extract `LoadRecipe` from `Window`

* Start to implement new suggestions

* Update with suggestions from @peterbell10

* Some minor cleanup

* Update protocol packet IDs
* Remove unused include
* Include header in cmake
* Change a vector to integer counter

* Change dromedaryCase method names to PascalCase

* Address suggestions from @madmaxoft

* Read Protocol subdirectories to load recipe books

To load all recipebooks iterate over the `Protocol` subdirectories
to find mapping files.

Co-authored-by: peterbell10 <peterbell10@live.co.uk>
2020-07-14 17:56:42 +01:00
MaxwellScroggs
5cdaf073be
cWindow: Convert XYZ to Vector3 (#4764) 2020-07-04 23:49:17 +02:00
morsmordere
60c10ef248
Cactus cannot be placed on a forbidden blocks (#4767)
Co-authored-by: Franklin T Kong <ftk@umich.edu>
Co-authored-by: aiugai <aiugai@umich.edu>

Fixes #4641

Overrode GetPlacementBlockTypeMeta for CactusBlock, which gets called before a player places the cactus block, so it returns true if the placement is allowed or false if not, in which case the cactus does not drop as a block but stays in the player's hand which is the expected behavior. Tested in Minecraft client 1.12.2.
2020-06-26 01:23:47 +01:00
Marc_Bornand
aad33544de add me to the contributors 2020-05-03 11:51:11 +01:00
GefaketHD
f38ad5efb5 added me as contributor 2020-04-11 19:00:05 +00:00
Alexander Harkness
964437dc95
Fix alpha-sorting 2020-03-28 12:20:55 +00:00
Xenoxis
1e1f79b795
Updated Bookshelves drop behaviour (#4567)
* Updated BookShelves Drop Behaviour

As described here : https://minecraft.gamepedia.com/Bookshelf#Loot

* Update src/Blocks/BlockBookShelf.h

* Update CONTRIBUTORS
2020-03-28 12:20:14 +00:00
Alexander Harkness
0a68994f48 Manual merge of #4498.
Credit to @MeMuXin

Closes #4498
2020-03-23 12:18:12 +00:00
Max Luchterhand
683d24faad
Added myself to CONTRIBUTORS file (#4515)
Co-authored-by: mluchterhand <mluchterhand@max.de>
2020-03-19 17:05:32 +00: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
Cocosushi6
fbf5cf7aa6 Generate cacti and sugarcane with different heights (#4137)
When generating foliage, create cacti with height in the interval [1; MaxCactusHeight] and sugarcane with height in [1; MaxSugarcaneHeight] (with MaxCactusHeight and MaxSugarcaneHeight declared in world.ini)

Fixes #4135
2018-05-03 19:25:08 +01:00
9caihezi
4242431407 Rewrite cClientHandle::HandleRightClick (#4089)
* Add hand parameter to distinguish main hand/off hand.
* Add a new function cClientHandle::HandleUseItem to separate the functionality of using an item without a target block. This matches the protocol with client version >= 1.9
* Always actively update the status of a block if the placement fails (by out of reach or rejected by plugin).
* Do not call plugin callback CallHookPlayerRightClick(-1, 255, -1, -1, 0, 0, 0) when using item.
   The CallHookPlayerUsingItem will still be called.
   Now at most one of CallHookPlayerRightClick, CallHookPlayerUsingBlock,
   CallHookPlayerUsingItem and CallHookPlayerEating will be called based on
   the type of action (not including the used version of callbacks).
* Do not count using item as BlockInteractionsRate check (Using item takes time).
* Now we can open chests(etc.) when sneaking as long as the player's hand is empty.
   This is what vanilla server does.
2018-01-08 13:37:10 +00:00
Zach DeCook
68fc28857f Concrete mixing (#4096)
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)
2018-01-03 16:33:31 +00:00
Pablo Beltrán
b18f6637b6 Fully implemented leashes (#3798) 2017-08-21 10:46:41 +02:00
William 'psyFi' Hatcher
09e94bd947 Updated docs to mention InfoDump for creating README.md, etc. (#3895) 2017-08-15 05:32:28 +02:00
Alexander Harkness
83ff815d1e Update copyright dates and contributors message (#3907) 2017-08-07 16:17:01 +01:00
Bond-009
ef85c2e686 Deadbushes drop sticks 2017-03-19 21:57:41 +01:00