Commit graph

546 commits

Author SHA1 Message Date
sylvessa 08f3aeff5f fill in old stubs regaridng chunk stuff & another inv fix 2026-04-13 20:55:02 -05:00
sylvessa d26c79a11e fix bugs found regarding inventories 2026-04-13 19:43:58 -05:00
sylvessa 6e6697dbc2 chunk additions 2026-04-13 19:43:48 -05:00
sylvessa ff7c04f253 Merge branch 'feature/plugin-api' of github.com:sylvessa/MinecraftConsoles into feature/plugin-api 2026-04-06 21:29:50 -05:00
sylvessa 0ccd327b3f add additional logging to save thread, stop winsocknetlayer listning on server shutdown 2026-04-06 21:29:32 -05:00
DrPerkyLegit e0b6c4e873
all plugins loaded event (#14)
* all plugins loaded event

* oops
2026-04-06 15:05:42 -05:00
sylvessa 098582dea8 Merge remote-tracking branch 'smartcmd/main' into feature/plugin-api 2026-04-06 12:43:05 -05:00
rucheykov b928351e0b
Update Windows64_Minecraft.cpp (#1468) 2026-04-06 12:34:25 -05:00
Sylvessa 413baaceed
fix: reorder autosave tick to account for weak hardware (#1482) 2026-04-06 12:34:02 -05:00
Fireblade 98a86fc69b
feat. set intro scene background to white (#1474) 2026-04-06 12:33:45 -05:00
UniPM 94bed94d00
Added enablePlugin() and disablePlugin() (#13)
* Exposed loaded plugins in FourKitHost with public getLoadedPlugins()

* Fixed bad reference to ServerPlugins

* Forgot that the PluginLoader was nullable, handled it

* Implemented getPlugin(name) and getPlugins() in FourKit.cs

* Implemented enablePlugin(plugin) and disablePlugin(plugin) in FourKit.cs

---------

Co-authored-by: UniPM <zoc6x8voc@mozmail.com>
2026-04-06 02:06:10 -05:00
sylvessa 18a673bd46 blockstate, more block events, command preprocess event. 2026-04-06 01:52:58 -05:00
DrPerkyLegit 21b5accc69
Feature/plugin api experimental (#12)
* added a null check to fix crash, expose internal latency value (its buggy)

* fix latency calculations

* sending packets from c#

* world save event, move shutdown def, move called location of shutdown, expose FourKit.FireEvent

* add docs

---------

Co-authored-by: sylvessa <225480449+sylvessa@users.noreply.github.com>
2026-04-05 21:21:22 -05:00
UniPM 682989c8f1
Exposing ServerPlugins (#11)
* Exposed loaded plugins in FourKitHost with public getLoadedPlugins()

* Fixed bad reference to ServerPlugins

* Forgot that the PluginLoader was nullable, handled it

* Implemented getPlugin(name) and getPlugins() in FourKit.cs

---------

Co-authored-by: UniPM <zoc6x8voc@mozmail.com>
2026-04-05 21:20:34 -05:00
sylvessa 7251a8419f Merge remote-tracking branch 'smartcmd/main' into feature/plugin-api 2026-04-05 12:59:27 -05:00
Sylvessa 034c313ddf
optimization: async dedicated server autosaving (#1473) 2026-04-05 12:57:43 -05:00
Sylvessa c2ea1fa62b
optimization: remove redundant lastTime setter (#1479) 2026-04-05 12:51:37 -05:00
Sylvessa a4e689095c
fix: wither and ender dragon custom names (#1472) 2026-04-04 22:04:02 -05:00
sylvessa 1782f7c0d5 Merge remote-tracking branch 'smartcmd/main' into feature/plugin-api 2026-04-03 17:45:38 -05:00
DrPerkyLegit 08a88fed6e
optimizations (#10)
* optimize item data communication, options for future item flags

* lighten load on gc from inventory apis

* dont allocate for SyncPlayerFromNative

* fix blocklag
2026-04-03 17:08:59 -05:00
Loki 7dfe46aa5d
Add backporting link to Contributor's Guide 2026-04-03 16:56:05 -05:00
Loki 5e5849102f
Add info about backports we will accept. 2026-04-03 16:55:20 -05:00
Us3ful"-Dev 103f38859a
Quality of life netherportal fix (#1337)
* Working New portal checks

fixed x axis portal with obsidian on z axis

* Removed Debug code

* Remove unnecessary code

removed PortalTile:: from PortalTile::validPortalFrame

* Remove more debug code
2026-04-03 15:01:48 -05:00
sylvessa f364a5bb07 fix disenchanting when dropping item from inv 2026-04-02 17:45:21 -05:00
Jeffery Tolmie b97fe888d1
Add block.getRelative() funcs and docs (#3) 2026-04-02 17:36:53 -05:00
DrPerkyLegit ebc1d4c640
Events, minor apis, stubs for future pr (#9)
* StructureGrowEvent, expose internal dimension id

* Update StructureGrowEvent.cs

* PlayerLoginEvent, ability to change xuids, get xuids, stub for experimental player connection api

* add docs, fix up to use cmake

---------

Co-authored-by: sylvessa <225480449+sylvessa@users.noreply.github.com>
2026-04-02 17:22:07 -05:00
Sylvessa 8bf0343544
fix: boat plr height & sneak height (#1459) 2026-04-02 17:16:31 -05:00
sylvessa 9f013dbb7f Merge remote-tracking branch 'smartcmd/main' into feature/plugin-api 2026-04-02 15:41:52 -05:00
Logan Gibson e4c08b8414
Replace instances of hard-coded port in ports variable with SERVER_PORT variable in yml files (#1457) 2026-04-02 02:43:33 -05:00
Sylvessa c4c4c08b96
Revert "Update actions workflows and add clang format check for PRs (#1418)"
This reverts commit 38d58f2d8b due to it causing spam and other problems with pull requests.
2026-04-02 00:01:27 -05:00
Sneexy c2356bf29e
Minor docker/container fixes and edits (#1454) 2026-04-01 19:10:47 -05:00
blongm d3412aaae7
Fixed issue with world seeds not saving correctly (#1119)
Some checks failed
Nightly Server Release / build (Windows64) (push) Has been cancelled
Nightly Release / build (Windows64) (push) Has been cancelled
Nightly Server Release / release (push) Has been cancelled
Nightly Server Release / Build and Push Docker Image (push) Has been cancelled
Nightly Server Release / cleanup (push) Has been cancelled
Nightly Release / release (push) Has been cancelled
Nightly Release / cleanup (push) Has been cancelled
## Description
Fix issue where typing in a short seed on world creation doesn't save the seed correctly

## Changes

### Previous Behavior
Typing in a seed on the world creation menu that's less than 8 characters long will result in garbage data being saved as the seed. Happens with controller and KBM.
You can see this in-game - if you exit the world options menu and go back in, the seed will show up as boxes □□□.
Weirdly, if you type a seed again, it behaves as expected.

### Root Cause
For some reason, assigning `m_params->seed` to the seed text points it to garbage data, when it's 7 characters or less.

### New Behavior
Seed entry behaves as expected.

### Fix Implementation
- Added `static_cast<wstring>` before assignment to `m_params->seed`.
- Also replaced `(wchar_t *)` with `reinterpret_cast<wchar_t*>` in the functions.

### AI Use Disclosure
No AI was used
2026-03-30 06:05:32 -05:00
sylvessa a80396b7a3 make native close inv actually send packet oops 2026-03-29 16:15:10 -05:00
sylvessa 16f01fecc0 update docs to add playerpreloginevent 2026-03-29 13:05:06 -05:00
DrPerkyLegit da2aaf1247
Add PlayerPreLoginEvent (#8)
* PlayerPreLoginEvent, comments for more events

* basic plugin events

* plugin failed to load event

* add docs

---------

Co-authored-by: sylvessa <225480449+sylvessa@users.noreply.github.com>
2026-03-29 12:56:24 -05:00
sylvessa 33e0ecac56 fix server.properties keep-inventory 2026-03-29 01:48:22 -05:00
sylvessa abbe007492 Merge remote-tracking branch 'smartcmd/main' into feature/plugin-api 2026-03-29 00:55:46 -05:00
sylvessa 3abffd7f54 more extensive documentation in usage of all events 2026-03-29 00:15:38 -05:00
sylvessa ebb7b2abfd fix dimension travel throu teleport 2026-03-28 23:44:00 -05:00
rtm516 38d58f2d8b
Update actions workflows and add clang format check for PRs (#1418)
Some checks failed
Nightly Server Release / build (Windows64) (push) Has been cancelled
Nightly Release / build (Windows64) (push) Has been cancelled
Nightly Server Release / release (push) Has been cancelled
Nightly Server Release / Build and Push Docker Image (push) Has been cancelled
Nightly Server Release / cleanup (push) Has been cancelled
Nightly Release / release (push) Has been cancelled
Nightly Release / cleanup (push) Has been cancelled
* Add clang-format workflow for pull request checks

* Modify push paths in nightly workflow

Updated paths for push event to include all files except specified ones.

* Update paths for nightly-server workflow triggers

* Modify paths for pull request triggers

Update pull request workflow to include specific paths.

* Tidy up clang-format installation in workflow
2026-03-28 23:35:25 -05:00
sylvessa 599d504f55 oops 2026-03-28 18:08:36 -05:00
sylvessa 360cba9ad5 remove leftover debug prints 2026-03-28 14:48:02 -05:00
Botch 277d74716e
Render custom skin boxes on viewmodel (#1415)
* Update PlayerRenderer.cpp

* Fix fatal bug where skins with no additional boxes would crash the game
2026-03-28 14:44:27 -05:00
DrPerkyLegit 017f42b7cd
add enchantments (#7)
* adding enchantments

added enchantments, changed minor apis to ensure c# stays synced with the c++ server

* add missing enchant apis, oops

* add proper docs, and fix namings for stuff in itemmeta

---------

Co-authored-by: sylvessa <225480449+sylvessa@users.noreply.github.com>
2026-03-28 13:33:54 -05:00
Sestain 7447fabe0d
Fix game crashing if DLC has XMLVERSION paramater (#1285)
* Fix game crashing if DLC has XMLVERSION paramater

* Better implementation of XMLVersion check

* Forgot to add type name to the list

* Removed extra newline
2026-03-27 15:11:27 -05:00
Sestain 3c1166c45e
Added support for Big-Endian DLCs (#1291)
* Added support for Big-Endian DLCs

* Remove unused variable

* Remove the things made for other PR
2026-03-27 15:59:35 -04:00
Loki 0d4874dea5
Clarify Android support in README 2026-03-27 00:29:08 -05:00
sylvessa 921abd48a7 itemstack syncing for inevntory 2026-03-26 18:08:40 -05:00
sylvessa fea50d33e2 Merge remote-tracking branch 'smartcmd/main' into feature/plugin-api 2026-03-26 17:06:59 -05:00
666uvu 73d713878c
fix redstone tick persistence on chunk unload (#1423) 2026-03-26 16:55:56 -05:00