-
Hi, I am asking for a bit of direction on where to look on in the code that would help me create a minecart that is also a computer. I am new to creating a mod, but I have already got a minecart where irs speed can be changed in gui. Any help would be appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I should probably start off with a "here be dragons". The public API doesn't support creating new types of computer, and so anything you do will involve poking the mods internals (which, of course, doesn't come with any stability guarantees). The best thing to do is probably start by reading through the computer
|
Beta Was this translation helpful? Give feedback.
I should probably start off with a "here be dragons". The public API doesn't support creating new types of computer, and so anything you do will involve poking the mods internals (which, of course, doesn't come with any stability guarantees).
The best thing to do is probably start by reading through the computer
BlockEntity
code (https://github.com/cc-tweaked/CC-Tweaked/blob/8d2e150f05b49eb96fb37d40746accad503db077/projects/common/src/main/java/dan200/computercraft/shared/computer/blocks/AbstractComputerBlockEntity.java). The general gist is:ServerComputer
(seecreateServerComputer
): This is the object responsible for managing the underlying computer, as well as syncing its sta…