Commit Graph

113 Commits

Author SHA1 Message Date
mworzala
ccea53ac44
chore: update attributes on all item changes, allow item changes in use item events 2024-12-03 12:20:34 -05:00
mworzala
8953ff467e feat: simplify item usage behavior (fixes #2475) 2024-12-03 10:45:16 -05:00
mworzala
dfb1dda2cd fix: correctly manage player inventory and window 0 slots in PlayerInventory. Add some more descriptions about client vs minestom slots in PlayerInventoryUtils 2024-12-03 10:45:16 -05:00
mworzala
2233ec8362 chore: vastly simplified recipe manager behavior 2024-12-03 10:45:16 -05:00
MelonHell
b0ff6941d6 Removed permissions (#2302) 2024-12-03 10:45:16 -05:00
Lorenz Wrobel
202889b854 Fix Instamine (#2340)
* use custom data generator - change back to official when done

* initial calculation

* use submerged mining speed attribute

* use ticks instead of seconds as calculation result

* attribute command

* testinstabreak command

* add Tag.toString(), don't know why this isn't added yet

* update method name to reflect field

* update and fix calculation

* actually use calculation in PlayerDiggingListener

* some logging for testing, gotta remove later

* remove FIXME comment, mineable should be handled correctly by calculation and enchantments don't affect the calculation, only attributes do.

* player.isInstantBreak() is included in calculation

* more + better testing logging

* add break block logging

* use GameMode.CREATIVE instead of isInstantBreak as check. isInstantBreak is named poorly, doesn't do what you'd expect

* fix typo

* bamboo test

* support bamboo

* sanity check when finishing digging

* me dumb

* anvil inventory for testing instabreak ability

* remove early GameMode check, included in calculation

* add stone to testing command

* add bamboo reason comment

* update data generator to rv4

* remove aqua affinity check

* remove logging

* add wiki link

* remove logging

* remove blank newline

* better name

* correct fluid height calculation

* remove unused imports

* more testing setup

* improve/correct comment

* add tests for stone (with diamond pickaxe) and wool (with shears)

* update comment
2024-12-03 10:45:16 -05:00
mworzala
3f1841b669 fix: add new customName field to potion contents 2024-12-03 10:45:16 -05:00
mworzala
14aa2d5d5c feat: 1.21.2 release, test/behavior fixes 2024-12-03 10:45:16 -05:00
mworzala
ffe42a243f chore: experimentation with delta component of moves 2024-12-03 10:45:16 -05:00
mworzala
78bf734919 feat: first join 2024-12-03 10:45:16 -05:00
mworzala
86491c464c feat: most item component updates. biome crash on join 😭 2024-12-03 10:45:16 -05:00
TheMode
6a95c6576d Recipe rework (#2285)
* Recipe rework

* Remove unnecessary lists

* Add remaining recipes

* Fix `dataSerializer`

* Fix DecoratedPot naming
2024-12-03 10:45:16 -05:00
TheMode
3a8157f263 move enums (#2282) 2024-12-03 10:45:16 -05:00
mudkip
7ced218bf5 improve notification api (#2204) 2024-12-03 10:45:16 -05:00
mworzala
f71ab6d851
fix: change FireworkList.flightDuration from a byte to an int.
Mojang is somewhat inconsistent here. It is written over the wire as a var int, but the NBT type is a byte. DFU will coerce an int to a byte when reading so it is compatible to treat it as an int everywhere on our side.
2024-11-03 16:18:20 -05:00
themode
44d8a810bc PlayerInit shouldnt be static 2024-09-13 17:03:42 +02:00
mworzala
e5372fd779
fix: optional world pos in lodestone tracker item component (fixes #2270) 2024-07-16 20:07:21 -04:00
Not Flamgop
90fb708739
Autogenerate Feature Flags (#2201)
* Autogenerate Feature Flags (Won't work until MinestomDataGen 1.21-rev2 is released with datagen changes.)

* Rewrite feature flag auto-generation, add example in demo.

* Update data gen

* Remove dead code and fix access modifier on FeatureFlagImpl
2024-07-02 22:59:38 +00:00
mworzala
edb73f0a5a
fix: update sprinting movement speed modifier serverside to keep synced with client state 2024-06-27 11:59:30 -04:00
mworzala
c864773d38
fix: deserialize extra correctly in component serializer 2024-06-16 08:56:49 -06:00
mworzala
2f5bb97908 feat: minor improvements, 1.21 release 2024-06-13 11:59:51 -04:00
mworzala
0e14214690 feat: add some ItemStack convenience methods 2024-06-13 11:59:51 -04:00
mworzala
f089708ed4 feat: mostly functional enchants, needs cleanup 2024-06-13 11:59:51 -04:00
mworzala
141a251c1b feat: new packets, new registries except stubbed out enchantments, other minor changes 2024-06-13 11:59:51 -04:00
mworzala
5c2a41b79d chore: minor cleanup, block display meta to use Block directly 2024-06-07 21:28:21 -04:00
mworzala
5182f19dd7 feat: cya later jitpack 2024-06-07 21:28:21 -04:00
DeidaraMC
20e91c83cf feat: world border overhaul, turned into a record and handled by the instance (#2062)
* feat: world border overhaul, turned into a record and handled by instance

* chore: replace WorldBorder#defaultBorder() with a DEFAULT_BORDER constant
2024-06-07 21:28:21 -04:00
mworzala
abf80e597e chore: cleanup networkbuffer additions 2024-06-07 21:28:21 -04:00
mworzala
aa697a4f94 feat: first pass of standardizing dynamic registries 2024-06-07 21:28:21 -04:00
mworzala
3073a6d556 chore: add PlayerAnvilInputEvent, other minor tweaks from self review 2024-06-07 21:28:21 -04:00
mworzala
580438cde8 fix: correctly handle eating potions, time eating using ticks, default to correct drink/eat time from component, send damage event on living entity damage 2024-06-07 21:28:21 -04:00
mworzala
67fe007bb3 fix: dont oom reading item component, stub banner pattern component 2024-06-07 21:28:21 -04:00
mworzala
1a4fbef801 fix: do not allow writing air in declare recipes packet (added ItemStack.STRICT_NETWORK_TYPE to represent this) 2024-06-07 21:28:21 -04:00
mworzala
1a2e817eed chore: cicd trigger 2024-06-07 21:28:21 -04:00
mworzala
df3a540be3 chore: 1.20.5, disable some failing tests to get a functional build 2024-06-07 21:28:21 -04:00
mworzala
101211c804 feat: anvil reading, other minor fixes 2024-06-07 21:28:21 -04:00
mworzala
5096c7ad8f feat: simplify sound events, fix update explosion packet 2024-06-07 21:28:21 -04:00
mworzala
100661bbd1 feat: first draft of cookies 2024-06-07 21:28:21 -04:00
mworzala
35f122bc32 feat: even more components (only 2 missing ones) 2024-06-07 21:28:21 -04:00
mworzala
eccfaaca83 feat: more components 2024-06-07 21:28:21 -04:00
mworzala
7ba6a6d4b3 feat: functional components, but at what cost 2024-06-07 21:28:21 -04:00
mworzala
b8a600bc7f chore: trying to fix nightmare loop 2024-06-07 21:28:21 -04:00
mworzala
4f12d65c7a chore: more components 2024-06-07 21:28:21 -04:00
mworzala
d2be7e1294 feat: joinable server 2024-06-07 21:28:21 -04:00
mworzala
e61dc8188f feat: initial conversion to adventure nbt. no tests, no anvil 2024-06-07 21:28:21 -04:00
mworzala
e18d7fb798
fix: do not process disconnected queued config->play transition players 2024-04-30 13:56:38 -04:00
DeidaraMC
dc17d171ce
feat: vanilla style Instance#setWeather method overload, weather api improvements (#2064)
* feat: weather update

* chore: Weather#createIsRainingPacket use isRaining
2024-03-29 10:12:45 -04:00
iam
6e179dbd8a
Fix Lighting Invalidation (#2041)
-  Fix invalid lighting being sent to clients
-  Add cherry leaves to occludes
-  Fix lighting being generated when using loaded lighting
-  Send lighting to clients on block changes
-  Cleanup unused methods
-  Add sky lighting test for short grass
2024-03-24 16:23:26 -04:00
DeidaraMC
32f96683ee
feat: add weather to instances (#2032)
* feat: instance weather system

* chore: weather documentation

* chore: remove unused weather fields

* feat: linear weather interpolation

* chore: register weather command

---------

Co-authored-by: DeidaraMC <DeidaraMC>
Co-authored-by: mworzala <mattheworzala@gmail.com>
2024-03-19 16:44:51 +00:00
Matt Worzala
2947279898
Remove FakePlayer (#2006)
* feat: remove FakePlayer

* fix: oops, demo server exists
2024-02-27 13:37:42 +00:00