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
a4a07a8e5a
Merge 'stable' into 'minor-next'
...
Automatic merge performed by: https://github.com/pmmp/RestrictedActions/actions/runs/10986731877
2024-09-23 02:36:00 +00:00
8cb2e577a1
Implement missing last interacted slot property in chiseled bookshelf ( #6440 )
2024-09-02 18:02:06 -05:00
9381fc4172
Blue Ice: No longer emits light & it's now dropped when mined with a tool with silk touch enchantment ( #6438 )
2024-08-31 22:33:11 -06:00
994fa5f792
Merge 'stable' into 'minor-next'
...
Automatic merge performed by: https://github.com/pmmp/RestrictedActions/actions/runs/10373700926
2024-08-13 16:37:45 +00:00
585dc835e7
Fixed anvil placing rotation. ( #6375 )
...
Co-authored-by: IvanCraft623 <57236932+IvanCraft623@users.noreply.github.com >
2024-08-13 16:19:07 +01:00
13f5cc9f87
ChiseledBookshelf: fixed function visibility ( #6421 )
2024-08-13 16:11:22 +01:00
787afb6b00
Implement all new 1.21 tuff blocks ( #6391 )
2024-07-23 11:34:46 -05:00
ef9791eaed
Merge pull request #6397 from pmmp/stable
...
Merge branch 'stable' into minor-next
2024-07-10 18:56:52 +01:00
accaa0acce
Implement ICopper interface for blocks with common properties ( #6390 )
2024-07-10 11:15:06 -05:00
68d2e2915e
Bells always drops themselves ( #4802 )
2024-07-07 15:20:45 -05:00
2ffc38c835
Implement campfire & soul campfire ( #4696 )
2024-07-07 15:01:34 -05:00
b342c497d1
Added 1.21 banner patterns.
2024-06-23 13:27:52 +03:00
f772bb7384
WoodenStairs can be a fuel ( #6345 )
2024-05-13 09:34:18 +01:00
dad9a7e6cd
Merge branch 'stable' into minor-next
2024-04-02 16:35:31 +01:00
2584314202
NetherRoots: fix placement on soul soil ( #6299 )
2024-03-25 10:53:16 +00:00
337e462c8f
Added new banner patterns ( #6298 )
2024-03-25 10:52:21 +00:00
b680a1693c
Added sound when picking sweet berries ( #6287 )
2024-03-19 10:18:30 +00:00
d211392b67
Merge remote-tracking branch 'origin/stable' into minor-next
2024-02-12 11:46:48 +00:00
fe06bfcda0
Import alias cleanup courtesy of newest php-cs-fixer
2024-02-07 12:50:37 +00:00
f207d1bbf2
Make CocoaBlock Flowable ( #6218 )
2024-02-05 12:36:09 +00:00
a459e3c1a9
Block: improve some documentation
2024-01-09 13:35:36 +00:00
288bd4018b
Block: deprecate isSolid()
...
As discussed many years ago in #2551 , no one actually knows what this property actually means. It definitely isn't the conventionally expected definition of 'solid' found in the real world, as signs are solid but flower pots are not.
2024-01-09 13:35:10 +00:00
c51b1b2812
Create LightableTrait and remove repetitive code ( #6111 )
2023-12-20 15:21:11 +00:00
944dd7d3e4
BaseBanner: remove unnecessary array_filter() usage
2023-12-15 15:19:44 +00:00
d596dc571d
Fix pitcher pod wrongly registered as a block ( #6162 )
2023-11-27 14:46:20 +00:00
519784460f
Merge branch 'stable' into minor-next
2023-11-17 12:04:10 +00:00
89fbb3fd0d
Fix loading of Item Frame item rotation ( #6123 )
2023-11-16 10:16:29 +00:00
dd98e4aaed
block: clean up unnecessary getter usages
...
with the assistance of a custom phpstan rule
this inconsistent mess has been bothering me for a long time
2023-11-14 12:47:33 +00:00
50592dc269
Merge branch 'stable' into minor-next
2023-11-09 18:05:38 +00:00
c1ed182112
Fix loading of sign text from vanilla world ( #6122 )
2023-11-09 14:22:37 +00:00
d09af2e30d
World: don't assume that random Vector3 are int vectors
...
we can safely assume this for blocks (though the type info doesn't reflect it) but this is not safe to assume for random APIs that might be used by plugins.
2023-11-06 17:15:17 +00:00
bbe66e8e09
Block: Improve performance of encodeFullState()
...
if there's no state data to encode, we can avoid useless calls and object allocations.
For the best cases (blocks which don't use state data at all) this improves the performance of getStateId() by more than 10x.
Blocks which use one or the other benefit by a smaller but still significant margin.
2023-11-06 17:04:39 +00:00
457660235e
Crops must have access to a light level of at least 9
2023-11-06 16:02:57 +00:00
9fc9609694
Fix ancient debris not being fireproof ( #6138 )
2023-11-06 15:01:43 +00:00
3385087c56
Fix Iron & Gold ores not affected by fortune ( #6134 )
2023-11-04 10:57:53 +00:00
a6b36d6c3c
CropGrowthHelper: avoid unnecessary checks
2023-11-02 15:32:22 +00:00
109673382d
Implemented modifiers for crop growth speed
...
closes #6070
there are some unresolved questions about the growth speed of beetroots, pitcher plants and torchflower crops, but that's a topic for another commit.
this change also doesn't account for the light levels.
2023-11-02 15:16:11 +00:00
1e4a1565bb
Stem: fixed not attaching to grown pumpkin/melon
...
no idea how this got missed ...
2023-11-02 14:48:45 +00:00
8aaa6dd176
Stem: do not disable ticking when the stem is not attached to a pumpkin
...
fixes #6131
2023-11-02 14:47:55 +00:00
8491d3c6c0
Merge branch 'stable' into minor-next
2023-10-24 11:56:51 +01:00
d637370b83
Wipe internal block AABB cache only for specific blocks that need it
...
the vast majority of blocks don't need this cache erasing, so it's costing performance for no good reason.
2023-10-23 17:38:04 +01:00
8e17aed4f4
Fix build
2023-10-20 17:43:04 +01:00
1f461977d4
Block: Avoid useless Vector3 allocations in getHorizontalSides and getAllSides
2023-10-20 17:28:19 +01:00
eb935ca80f
ÂLeaves: use a constant for max distance from wood
2023-10-20 11:20:30 +01:00
dbb5a32a96
Liquid: eliminate unnecessary Position allocations and getSide() calls
2023-10-19 17:09:13 +01:00
9474324f75
Liquid: simplify code
2023-10-19 17:02:40 +01:00
ada37899aa
Liquid: improve code legibility and fix a bunch of PHPStan errors
2023-10-19 17:02:22 +01:00
f868c1d8c6
Liquid: Update legacy code with Facing::OFFSET
2023-10-19 16:38:34 +01:00
19a1792184
Fixed behavioural change on invalid Facing introduced by previous commit
...
while this shouldn't be given invalid facings anyway, Vector3::getSide() accepts them and just returns itself.
2023-10-19 13:27:44 +01:00