You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to add functions to an existing peripheral. Following the tutorial, I attempted to extend the Electric Motor from the "Create Crafts & Additions" mod.
However, it seems that my custom peripheral is being overwritten by the mod's own peripheral. You can see the mod's code on this page:
To Reproduce
Steps to reproduce the behavior:
1: Add a peripheral and functions
2: Load the game
3: Check with CC:Tweaked computer
4: Peripheral type is still the mod one, no functions added
5: Go to GitHub and post the issus
The text was updated successfully, but these errors were encountered:
I’ve tried several methods and searched through the source code. Apparently, CC: Tweaked prioritizes classes with the IPeripheral interface from mods, and if it doesn’t find anything, it looks at those provided by the API. I had to create a mod and use Mixins to add my own functions to already created peripherals.
Mod Version
KJSCC-2002-1.0.2 for forge 1.20.1
Describe the bug
Hello,
I am trying to add functions to an existing peripheral. Following the tutorial, I attempted to extend the Electric Motor from the "Create Crafts & Additions" mod.
However, it seems that my custom peripheral is being overwritten by the mod's own peripheral. You can see the mod's code on this page:
https://github.com/mrh0/createaddition/blob/1.20.1/src/main/java/com/mrh0/createaddition/compat/computercraft/ElectricMotorPeripheral.java
How can I resolve this issue?
Thank you for your assistance!
To Reproduce
Steps to reproduce the behavior:
1: Add a peripheral and functions
2: Load the game
3: Check with CC:Tweaked computer
4: Peripheral type is still the mod one, no functions added
5: Go to GitHub and post the issus
The text was updated successfully, but these errors were encountered: