4e82482a80
Use generic enumSet() for blocks with facing flags
2025-08-30 18:11:24 +01:00
8dc4371385
Enums for rail shapes, sort of
...
this makes the API more sane, although the internals will need to be rewritten at some point in the future.
2025-08-29 23:33:52 +01:00
7449ad5637
tidy
2025-08-29 23:12:58 +01:00
6aaf6b336a
Make an enum for horizontal facing blocks
...
awkward that the interface is also called HorizontalFacing, so I had to improvise for the naming
2025-08-29 23:11:17 +01:00
6f6b23d4e4
Integrate dev-major-next version of pocketmine/math
...
this is a reduced version compared to the original, due to the difficulty of getting rid of Facing values internally.
2025-08-29 21:47:20 +01:00
97027db70a
Merge branch 'minor-next' into major-next
2025-08-29 20:56:59 +01:00
48ba334218
CS again :<
2025-08-29 12:33:50 +01:00
0be15a7403
Rename MultiFacing -> MultiAnyFacing
...
to match the trait name
2025-08-29 12:33:04 +01:00
2404d63b1f
Ageable: added getMaxAge()
...
we'll probably need this...
2025-08-29 12:24:24 +01:00
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
db54c481aa
Fixed hanging signs placement criteria ( #6775 )
2025-08-25 23:27:17 +01:00
ac2c07c3fe
Added a space after hanging sign wood type ( #6776 )
2025-08-25 17:00:41 +01:00
ec56d65bcc
Fix BC break in BaseBanner
2025-08-25 02:17:45 +01:00
c548923116
...
2025-08-25 02:16:38 +01:00
4a2c7dc684
Apparently hanging signs are self supporting
2025-08-25 02:15:24 +01:00
f04c458e54
Merge branch 'stable' into minor-next
2025-08-25 01:49:19 +01:00
5c0a109f18
Sign: Strip trailing newlines from text blobs
...
fixes sign editor always putting the cursor on the last line when right-clicking to edit
2025-08-25 01:48:29 +01:00
1ebd7d3960
Remove unused deprecated stuff
2025-08-24 23:29:55 +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
ef53676a59
Fix unit tests
2025-08-24 15:38:07 +01:00
8f9478e82f
Illager banners finally working
...
closes #2951
2025-08-24 15:31:10 +01:00
6d5c46b091
Merge 'minor-next' into 'major-next'
...
Automatic merge performed by: https://github.com/pmmp/RestrictedActions/actions/runs/17168505072
2025-08-23 00:03:09 +00:00
47140cb8d7
RedstoneLamp: implement Lightable, shimmed to powered
2025-08-22 18:27:32 +01:00
e824266457
ChiseledBookshelf: add setSlots()
2025-08-22 18:27:06 +01:00
4e7077d169
Merge 'minor-next' into 'major-next'
...
Automatic merge performed by: https://github.com/pmmp/RestrictedActions/actions/runs/17084719293
2025-08-20 00:03:16 +00:00
2bb78f2a94
Fixed Furnace not implementing HorizontalFacing
...
looks like this was missed in #6639
I checked all other uses of HorizontalFacingTrait and FacesOppositePlacingPlayerTrait and this seems to be the only one.
2025-08-20 00:58:57 +01:00
e630fc2dd6
Merge remote-tracking branch 'origin/minor-next' into major-next
2025-07-31 13:00:12 +01:00
cc17e68072
Add blocks interfaces for commons properties ( #6639 )
2025-07-31 08:48:47 +02:00
afcd6b4e12
Merge remote-tracking branch 'origin/minor-next' into major-next
2025-06-25 01:07:16 +01:00
2a97b4294d
Fixed held block placement after respawn anchor explosion ( #6742 )
2025-06-23 16:59:40 +01:00
0330b25768
Merge branch 'minor-next' into major-next
2025-06-08 18:44:54 +01:00
baafaed362
Stem drops seeds according to binomial distribution
...
fixes #6709
we really need a better way to reverse-engineer the chance parameter for these
as the wiki just gives a probability table, which is quite tiresome to extract
patterns from.
2025-05-28 21:00:40 +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
b20d1b84b5
Merge 'minor-next' into 'major-next'
...
Automatic merge performed by: https://github.com/pmmp/RestrictedActions/actions/runs/15232190072
2025-05-25 00:03:31 +00:00
4d5c27a734
Unit test block hardness & blast resistance values ( #6629 )
2025-05-24 21:01:36 +01:00
1d26b21fe0
Merge branch 'minor-next' into major-next
2025-05-04 17:21:24 +01:00
6196b9c995
Merge branch 'stable' into minor-next
2025-05-04 17:20:27 +01:00
f2e7473629
Update PHP-CS-Fixer
2025-05-04 17:19:15 +01: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
ad6f7dfedb
World: verify saveability of blocks, entities and tiles at entry points
...
I want to do the same for items, but items are going to be a pain in the ass.
For items there are multiple possible entry points and all of them will need to be checked:
- dropped items
- inventory contents
- lecterns
- item frames
I don't see a good way to deal with all these. We can't check for registration in the constructor
because we need to fully construct the item in order to register it.
Blocks are also a potential issue in other areas, but setBlock() is definitely the biggest offender.
2025-04-20 19:48:28 +01:00
baee0110c7
Merge 'minor-next' into 'major-next'
...
Automatic merge performed by: https://github.com/pmmp/RestrictedActions/actions/runs/14544397106
2025-04-19 01:36:21 +00:00
028815490e
Add EntityExtinguishEvent ( #6671 )
2025-04-18 11:19:46 +02:00
510ef94698
Merge 'minor-next' into 'major-next'
...
Automatic merge performed by: https://github.com/pmmp/RestrictedActions/actions/runs/13878654456
2025-03-16 01:41:31 +00:00
c2f8e9365b
BlockStateToObjectDeserializer: check that the returned state is actually registered
...
if not, this will cause random crashes in core code, which assumes that state IDs found on runtime chunk memory are valid and registered.
this problem exists in other places too, and probably requires a rethink of how we're dealing with this, but for now, this will do as a band-aid.
2025-03-15 20:53:49 +00:00
dae3e2b336
Merge 'minor-next' into 'major-next'
...
Automatic merge performed by: https://github.com/pmmp/RestrictedActions/actions/runs/13868087288
2025-03-15 01:26:48 +00:00
069ecf007f
Merge branch 'stable' into minor-next
2025-03-14 15:41:46 +00:00
341c7a03a9
CopperMaterial: fixed missing @return $this docs
2025-03-14 15:40:27 +00:00