Create: Extended Cogwheels

Create: Extended Cogwheels

1M Downloads

Implementing new cogwheel materials through datapacks

Octelly opened this issue ยท 1 comments

commented

I'm not that familiar with Java, but from what I can see, the cogwheel materials are currently hardcoded:

public enum WoodenCogwheel implements ICogwheelMaterial {
DARK_OAK(Items.DARK_OAK_BUTTON, Items.DARK_OAK_PLANKS),
OAK(Items.OAK_BUTTON, Items.OAK_PLANKS),
BIRCH(Items.BIRCH_BUTTON, Items.BIRCH_PLANKS),
JUNGLE(Items.JUNGLE_BUTTON, Items.JUNGLE_PLANKS),
ACACIA(Items.ACACIA_BUTTON, Items.ACACIA_PLANKS),
WARPED(Items.WARPED_BUTTON, Items.WARPED_PLANKS),
CRIMSON(Items.CRIMSON_BUTTON, Items.CRIMSON_PLANKS)
;

I think it would be really cool, if the mod automatically generated the cogwheel items based on datapack information, the same you do recipes. ( https://github.com/Rabbitminers/Extended-Cogwheels/tree/df0728a7a8e3e0df79bbe80bea0299a537b335d0/common/src/main/resources )

commented

Datapacks cannot load assets, perhaps kubejs or craft tweaker integration could be explored