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
Copy file name to clipboardExpand all lines: wikis/kubejs-enderio/docs/event/conduitregistry.md
+19-6Lines changed: 19 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,9 @@ This event allows you to register custom conduits.
5
5
**It is a server event and reloadable!**
6
6
Keep in mind that server events have to be located inside the `kubejs/server_scripts` folder.
7
7
8
+
> [!WARNING] NOTE
9
+
> The Conduits have been reworked by the EnderIO team in version 8.2.0. Previously, the functions to register the conduits required some more properties. If you need help with that, join the Discord or take a look at the source code before version 8.2.0.
10
+
8
11
## Overview
9
12
10
13
EnderIO supports data-driven conduits by default. This event adds convenience methods to register custom conduits via KubeJS.
@@ -14,6 +17,7 @@ for your custom conduit.
14
17
15
18
- access in a server script via: `EnderIOEvents.conduits`
16
19
- supported conduits
20
+
- item conduit
17
21
- energy conduit
18
22
- fluid conduit
19
23
- chemical conduit (Mekanism)
@@ -33,7 +37,19 @@ After that, use one of the following methods to register the respective conduit
33
37
`name` that is used for the automatic language file entry generation.
34
38
35
39
The custom conduit will be part of the normal EnderIO Conduits creative tab. Recipes are **not** generated automatically. You have to add a recipe
36
-
for your custom conduits yourself!
40
+
for your custom conduits yourself! You sometimes need to rejoin the world to see the new conduits. A game restart is not necessary.
41
+
42
+
### Item Conduit
43
+
44
+
-`transferRate` - specifies the transfer rate of items per tick
45
+
-`ticksPerCycle` - specifies the amount of ticks per second the conduit operates at
46
+
- note: to calculate the effective transfer rate, the two values need to be multiplied (e.g. 2 ticks per cycle and a transfer rate of 8 would be 16 items per second)
47
+
48
+
```js
49
+
EnderIOEvents.conduits(event=> {
50
+
event.registerItemConduit(String id, String name, int transferRate, int ticksPerCycle); // [!code focus]
0 commit comments