Commit Graph
10771 Commits
Author SHA1 Message Date
Mattes DandGitHub f84bab3bc2 Fixed Lua Vector unification. (#4652) 2020-04-15 00:23:24 +01:00
Mattes DandGitHub c9a9b3c9d0 Bindings: Allow coercion between Vector3 subtypes. (#4646)
In manually bound functions, allows one to use any Vector3<T> value, as well as a {x, y, z} table, in Lua as any Vector3<T> parameter.
Has example in Debuggers' /vector command.
Unfortunately doesn't work in auto-bindings.
2020-04-14 16:43:21 +02:00
DrButcherandGitHub 35299b8509 Pressure plate sounds and delay (#4643)
+ Added sounds on depress and release
+ Added correct delay times
2020-04-13 23:23:43 +01:00
Peter BellandMattes D 43525c5df8 Acquire chunk map CS when accessing player entities 2020-04-13 17:13:38 +02:00
Mattes D fb05ea7cf7 Fixed entity teleport for just-spawned entities.
Includes a test code in the Debuggers plugin - throwing a cake-as-fallingblock.
2020-04-12 13:34:24 +02:00
Mattes DandGitHub ef2d5027d3 Removed extended ASCII, and added a check against it. (#4642) 2020-04-12 09:24:30 +02:00
Alexander Harkness 8914355895 Fix rotation metas on blocks 2020-04-11 19:00:05 +00:00
GefaketHDandAlexander Harkness f38ad5efb5 added me as contributor 2020-04-11 19:00:05 +00:00
GefaketHDandAlexander Harkness 0712fd2d90 fixing rotation - rel. #4625 2020-04-11 19:00:05 +00:00
Alexander Harkness 0d72270186 Replace all single-digit hex constants with two-digit version 2020-04-10 13:07:16 +00:00
Alexander Harkness db118af6ae Remove silly empty cBlockGlazedTerracotta class 2020-04-10 13:07:16 +00:00
Alexander Harkness 49f301d5a4 Reduce line length on templates 2020-04-10 13:07:16 +00:00
Alexander Harkness e5cc698ee7 Add additional spacing between template/function definitions 2020-04-10 13:07:16 +00:00
Alexander Harkness 9bb001f17b Add doxy-comments to new functions 2020-04-10 13:07:16 +00:00
Alexander Harkness 2b77b67197 Fix comment text 2020-04-10 13:07:16 +00:00
Alexander Harkness f40aba941e Add mixins for blocks that rotate based on player yaw at placement
Also add observer block handler.
2020-04-10 13:07:16 +00:00
Alexander Harkness 458d7f95c2 Brewing stands do not have rotation 2020-04-10 13:07:16 +00:00
Alexander Harkness 48ccd93426 Add Terracotta handlers 2020-04-10 13:07:16 +00:00
Alexander Harkness cb21a4611d Correct Black Glazed Terracotta block handler 2020-04-10 13:07:16 +00:00
Alexander Harkness b8141f6c87 Add additional blocks which are not breakable by hand 2020-04-10 13:07:16 +00:00
Alexander Harkness 4a62e004c5 Change stained clay hardness value 2020-04-10 13:07:16 +00:00
Alexander Harkness b9c9698d87 Update Core 2020-04-10 12:18:37 +01:00
Mattes D 2cb85a1bcb API docs: Fixed eMonsterType relocation. 2020-04-10 08:19:43 +02:00
MatandGitHub d4f3d674d1 Use correct value for zombie villager in 1.13 2020-04-10 05:17:46 +03:00
Alexander Harkness 4b3043f627 Fix compilation, for real this time.
I should go to sleep now...
2020-04-10 01:01:07 +01:00
Alexander Harkness a780b3a4f5 Oops, remember to save your files! 2020-04-10 00:53:04 +01:00
Bond-009andAlexander Harkness 8438def87e Add Zombie Villagers 2020-04-10 00:50:45 +01:00
Alexander Harkness df8d7332d0 Re-enable darwin download from easyinstall.sh script 2020-04-09 21:41:16 +01:00
MatandGitHub d966a12624 Don't set entity world twice (#4606)
* Don't set entity world twice

* Call HookSpawnedEntity when the entity actually spawned
2020-04-09 20:26:06 +00:00
Mattes DandGitHub bdedab15c9 Falling blocks can now be spawned at any position. (#4620)
* 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.
2020-04-09 20:25:20 +00:00
MatandTiger Wang 23219c4738 Wolves and mooshrooms are passive mobs 2020-04-09 12:39:45 +01:00
MatandGitHub 6a21bf979c Initial resource pack support (#4622) 2020-04-07 21:23:54 +00:00
peterbell10andGitHub 19ad96561c Filter blocks to add to redstone sim's wake queue (#4621) 2020-04-05 19:20:52 +00:00
Alexander Harkness 16b3de94c8 Add potatoes to washed away list also 2020-04-05 12:43:03 +01:00
metiu07andGitHub 6bde0dd9ad FluidSimulator: Carrots should be also washable (#4619) 2020-04-05 11:41:31 +00:00
Lukas PiochandGitHub 9680408c16 Block entity for beacon was not created (#4618) 2020-04-04 19:34:00 +00:00
Alexander HarknessandGitHub 2b9474f171 Remove switch statements from cItemFoodHandler (#4610)
* Remove switch statements from cItemFoodHandler

* Alpha-sort and add comment

* Relocate golden apple handler
2020-04-04 15:13:41 +00:00
MatandGitHub 3eaab73540 Potion changes (#4601)
* Correct protocol translation for potions

* Update brewing recipes
2020-04-04 14:16:36 +00:00
MatandGitHub 60bcc06f43 Implement wither skeletons (#4563) 2020-04-04 13:44:17 +02:00
peterbell10andGitHub aac592f985 Manage block entity lifetime with unique_ptr (#4080) 2020-04-03 23:23:38 +02:00
Alexander HarknessandGitHub ba048e2101 New hotfix to prevent calling OnBroken (#4600)
* Fix stack overflow in breaking ice.

Stupid fix, but it does work and is used in other places too...

* Replace hotfix for pistons with better one

* Fix comments in BlockBed handler
2020-04-03 20:24:49 +00:00
MatandGitHub 4c6f95f49a Quick fix to make spawn eggs work (#4611) 2020-04-03 21:56:48 +03:00
mathiascode fdee483781 Update Core 2020-04-03 19:02:15 +03:00
MatandGitHub 4ed182c13a Tweak pickup sound pitch (#4598) 2020-04-03 15:49:12 +00:00
MatandGitHub 2e615914ea WebAdmin logo improvements (#4604) 2020-04-03 15:41:29 +00:00
Mattes DandGitHub a765e71325 Removed the obsolete cTracer class. (#4594) 2020-04-03 12:50:08 +00:00
Mattes DandGitHub 01b8ed5295 Pulled the BlockID and BlockInfo headers from Globals.h. (#4591)
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
2020-04-03 08:57:01 +02:00
Alexander Harkness f2810db380 Update Core 2020-04-02 17:24:10 +01:00
MatandGitHub 318d31dc39 Use a reasonable listen backlog value (#4597) 2020-04-02 16:05:07 +02:00
Alexander HarknessandGitHub cdc452916e Replace buckets to the selected hotbar slot, rather than the first available. (#4580)
* 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
2020-04-02 12:42:15 +00:00