[Mod Support] Blockus, Extended Block Shape, BetterNether, BetterEnd
ardissaps opened this issue ยท 2 comments
Would you please support these mods?
- https://www.curseforge.com/minecraft/mc-mods/refabricated-slabs (Double Different Slab :https://imgur.com/a/yVwO3qw)
- https://www.curseforge.com/minecraft/mc-mods/blockus
- https://www.curseforge.com/minecraft/mc-mods/extended-block-shapes
- https://www.curseforge.com/minecraft/mc-mods/betternether
- https://www.curseforge.com/minecraft/mc-mods/betterend
Thank you very much. :)
Hi, I am the developer of Refabricated Slabs mod and I have a feature request so that the Refabricated Slabs mod could be compatible with the KleeSlabs mod.
Refabricated slabs mod is basically double slab block mod that can have mixed slabs - oak/cobblestone for example. The slabs are not stored in the block state. But as additional data to the chunk. And to make the SlabConverter interface compatible to convert the double slab block into respective slabs I need to have access to BlockPos and Level data, which comes from BreakBlockEvent.
I would suggest adding the following changes to the KleeSlabs mod, to make it more flexible.
- Adding to the SlabConverter interface method getSingleSlab third parameter BreakBlockEvent, as it has all the necessary information and I will do the rest of the compatibility implementation in my mod.
BlockState getSingleSlab(BlockState state, SlabType slabType)BlockState getSingleSlab(BlockState state, SlabType slabType, BreakBlockEvent event)
- With this change BlockBreakHandler needs to be changed in 3 places by passing the event object to the converter.
https://github.com/ModdingForBlockheads/KleeSlabs/blob/cea13277b01b9fdf1c091a6338104e01a2eb1664/shared/src/main/java/net/blay09/mods/kleeslabs/BlockBreakHandler.java#L44
https://github.com/ModdingForBlockheads/KleeSlabs/blob/cea13277b01b9fdf1c091a6338104e01a2eb1664/shared/src/main/java/net/blay09/mods/kleeslabs/BlockBreakHandler.java#L62
https://github.com/ModdingForBlockheads/KleeSlabs/blob/cea13277b01b9fdf1c091a6338104e01a2eb1664/shared/src/main/java/net/blay09/mods/kleeslabs/BlockBreakHandler.java#L64
- And the implementations of SlabConverters must be changed
- And if there are implementations of custom SlabConverters in other mods, that would be a change for them too.
Thanks for the understanding and kind regards!