24795eef0e
Merge 'minor-next' into 'major-next'
...
Automatic merge performed by: https://github.com/pmmp/RestrictedActions/actions/runs/17223908234
2025-08-26 00:03:10 +00:00
de234d1f38
Improved placement logic
2025-08-26 00:10:50 +01:00
db54c481aa
Fixed hanging signs placement criteria ( #6775 )
2025-08-25 23:27:17 +01:00
e8eda19ae5
Merge remote-tracking branch 'origin/minor-next' into major-next
2025-08-24 23:18:21 +01:00
31f6f5d252
CS again
2025-08-24 20:13:15 +01:00
00d6171463
Implement hanging signs
2025-08-24 20:07:59 +01:00
8f9478e82f
Illager banners finally working
...
closes #2951
2025-08-24 15:31:10 +01:00
d5a1007c80
Merge 'minor-next' into 'major-next'
...
Automatic merge performed by: https://github.com/pmmp/RestrictedActions/actions/runs/15288247521
2025-05-28 00:03:15 +00:00
bf33a625c9
Implemented Respawn Anchor ( #6646 )
...
PlayerRespawnAnchorUseEvent is also added with options SET_SPAWN and EXPLODE, which allows plugins to customise the outcome of using the anchor in PM, which currently doesn't support dimensions. The event is also cancellable.
2025-05-27 21:57:28 +01:00
05eda887b1
Item: make setter methods fluent ( #6678 )
...
- `Item::clearCustomBlockData` previously, the instance was returned, but the return type has been changed
- `Item::setCanPlaceOn`, `Item::setCanDestroy` and `Item::setKeepOnDeath` now return `$this`
2025-05-25 10:35:26 +02:00
d86943fa8c
Merge 'minor-next' into 'major-next'
...
Automatic merge performed by: https://github.com/pmmp/RestrictedActions/actions/runs/14565559872
2025-04-21 01:45:18 +00:00
2548422973
AvailableEnchantmentRegistry: reject non-string tags
...
fixes https://crash.pmmp.io/view/12627328
2025-04-20 16:44:23 +01:00
ec140f7861
Merge 'minor-next' into 'major-next'
...
Automatic merge performed by: https://github.com/pmmp/RestrictedActions/actions/runs/13666455727
2025-03-05 01:27:21 +00:00
d0d84d4c51
New rule: explode() limit parameter must be set
2025-03-04 20:44:01 +00:00
02ac512b4e
Merge branch 'minor-next' into major-next
2025-01-08 15:25:12 +00:00
0a16daa619
Avoid dodgy array_flip hash building
...
the conventional way is using array_keys and array_fill_keys. Behaviour is more predictable & also avoids benevolent union fuckery from PHPStan.
2025-01-08 01:45:28 +00:00
cd59e272bc
PHPStan 2.0 fixes
2025-01-07 22:10:42 +00:00
7a2427ace2
Merge branch 'minor-next' of github.com:pmmp/PocketMine-MP into major-next
2024-12-14 02:40:03 +00:00
de66d84d29
Implement new 1.20 and 1.21 records ( #6572 )
2024-12-13 21:10:34 +03:00
f82c8dd3d3
Merge 'minor-next' into 'major-next'
...
Automatic merge performed by: https://github.com/pmmp/RestrictedActions/actions/runs/12307996607
2024-12-13 01:40:43 +00:00
42094e6768
Implement resin blocks & items ( #6571 )
2024-12-12 23:21:41 +03:00
b341078765
Implement new pale oak blocks ( #6570 )
2024-12-12 17:53:52 +03:00
205aabe11f
Fixed merge error
2024-12-04 15:27:09 +00:00
007673cb96
Merge 'minor-next' into 'major-next'
...
Automatic merge performed by: https://github.com/pmmp/RestrictedActions/actions/runs/12111121061
2024-12-02 01:41:02 +00:00
f1a3b42620
Implement frost walker enchantment ( #5497 )
...
Co-authored-by: Dylan T. <dktapps@pmmp.io >
2024-12-01 19:46:38 +00:00
f3763ae691
Implement Recovery compass ( #5502 )
...
Co-authored-by: Dylan K. Taylor <dktapps@pmmp.io >
2024-12-01 18:25:45 +00:00
12214792b3
Allow eating in creative & peaceful
...
closes #5923
closes #6056
2024-12-01 17:42:26 +00:00
a078f653f4
Merge 'minor-next' into 'major-next'
...
Automatic merge performed by: https://github.com/pmmp/RestrictedActions/actions/runs/12042121495
2024-11-27 01:39:13 +00:00
269effcecf
Introduce Utils::getRandomFloat() ( #6532 )
...
Drop-in replacement for lcg_value() for PHP 8.4
2024-11-26 11:33:29 +00:00
15eaf67a0c
Merge branch 'minor-next' into major-next
2024-11-25 14:36:25 +00:00
12ae8dc03b
Merge branch 'stable' into minor-next
2024-11-25 14:32:30 +00:00
5325ecee37
Deal with a whole lot of PHPStan suppressed key casting errors
...
closes #6534
2024-11-25 14:30:58 +00:00
e51903d7ea
Merge branch 'minor-next' into major-next
2024-11-24 23:51:07 +00:00
a5f607138c
Implement Ice Bomb ( #5452 )
...
Co-authored-by: Dylan K. Taylor <dktapps@pmmp.io >
2024-11-24 15:01:26 +00:00
330bcd2423
Merge 'minor-next' into 'major-next'
...
Automatic merge performed by: https://github.com/pmmp/RestrictedActions/actions/runs/11874902000
2024-11-17 01:39:53 +00:00
e77f2c5198
Implemented End Crystal ( #4715 )
...
Co-authored-by: Dylan T. <dktapps@pmmp.io >
2024-11-16 17:57:57 +00:00
ab5176baf9
Merge branch 'minor-next' into major-next
2024-11-14 23:16:44 +00:00
33a7b46329
Use reflection to locate BlockTypeIds and ItemTypeIds for VanillaBlocks/VanillaItems ( #6498 )
...
Use reflection to locate BlockTypeIds and ItemTypeIds for VanillaBlocks/VanillaItems
Since BlockTypeIds and ItemTypeIds are derived from VanillaBlocks and VanillaItems respectively anyway (they only exist to allow identifying blocks/items without having to create instances of them), this hack is probably OK, and reduces the chances of mistakes.
Previously it was explored to have these IDs generated by auto-incrementing in VanillaBlocks/Items and have the constants generated that way, but this proved to be too problematic because of unstable diffs no matter how we chose to sort the elements. See #6313 for previous research on the subject.
This is obviously not a desirable hack to keep long-term. In the future it will probably make sense to redesign VanillaBlocks like so:
enum VanillaBlocks { ... }
VanillaBlocks::STONE (the type ID)
VanillaBlocks::STONE->new() (to create a block)
However, more research is needed on this, as I'd prefer not to make block creation any more verbose.
2024-11-14 17:32:22 +00:00
9b58d35516
Implement Goat horns ( #5232 )
...
Co-authored-by: ipad54 <63200545+ipad54@users.noreply.github.com >
Co-authored-by: Dylan T. <dktapps@pmmp.io >
2024-11-14 13:57:07 +00:00
80b7f6aba4
Merge 'minor-next' into 'major-next'
...
Automatic merge performed by: https://github.com/pmmp/RestrictedActions/actions/runs/11769186885
2024-11-10 22:56:09 +00:00
fa3529966f
Merge 'stable' into 'minor-next'
...
Automatic merge performed by: https://github.com/pmmp/RestrictedActions/actions/runs/11769186885
2024-11-10 22:56:08 +00:00
05a9e9c76e
Implemented sound when drinking a potion ( #6444 )
2024-11-10 15:07:18 +00:00
231eec911f
Enchanted Golden Apple: Regeneration 5 => 2 matching Java ( #6445 )
2024-11-09 19:43:30 +00:00
1ef854f2d1
Merge 'minor-next' into 'major-next'
...
Automatic merge performed by: https://github.com/pmmp/RestrictedActions/actions/runs/11392123557
2024-10-17 19:59:15 +00:00
f6e6f15c63
Implemented a proper way to handle items cooldown ( #6405 )
2024-09-25 13:28:17 -05:00
4e6b34f573
Implement new 1.21 copper blocks ( #6366 )
...
Added the following new blocks:
- All types of Copper Bulb
- All types of Copper Door
- All types of Copper Trapdoor
- All types of Chiseled Copper
- All types of Copper Grate
2024-09-24 21:25:10 -05:00
1ac08ea73b
Remove enchant properties that no longer exists on PM6 ( #6417 )
2024-08-10 08:51:06 -05:00
c9e8d382c5
Merge branch 'minor-next' of github.com:pmmp/PocketMine-MP into major-next
2024-08-09 13:33:07 +01:00
c4a2b6494d
Implement Aqua Affinity enchantment ( #6408 )
2024-08-06 09:12:47 -05:00
787afb6b00
Implement all new 1.21 tuff blocks ( #6391 )
2024-07-23 11:34:46 -05:00