-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for MineClone container
groups
#96
Comments
container
groupscontainer
groups
sounds useful, might be good to be able to enable/disable that with a setting |
MineClone2 has now changed their container groups to be almost meaningless, and they have a new API system that would potentially be easier to port. Mineclonia still uses this system, though. It would be great if both were supported. |
@corarona any thoughts on if mineclonia well cherrypick the apis in question/compatibility across both of the games? |
Well mineclonia has had a similar api for a while (while preserving the old container groups too), i guess they aren't named exactly the same though. So cherry pick: probably no but maybe we can change them to be compatible, i'll have a look some time. |
It would sound like a good idea for them to put the container groups back though as this system has been in place for a long time. |
mmmh their system seems a bit complex so I tend to say no. I'll think about if I can make it work though. In general it seems unlikely things will stay compatible mid term if things like this keep happening i guess. |
Well the new mcl2 system is needlessly complex and poorly documented but i think i have managed to make a compat layer: https://codeberg.org/mineclonia/mineclonia/commit/14d595a7e1fbcda66a53c9448e45d5fa20506888 |
Also contains some clues on how to use the mcl2 api:
note: hopper_list is always "main" these are expected to return: if they do they will move the item and run _mcl_hoppers_after_push/pull |
This may be offtopic. |
Autocrafters are coming in 1.21 i heard, that being said "that game" has tons of mods so, not sure it's in any way inconsistent or that i would care if it were :P In any case mcl2 hopper api is now supported by mineclonia, although as mentioned before i think it's not really a good api as it makes something simple somewhat complicated. |
Pipeworks should support MineClone's container groups. This would make it compatible with any containers that support MineClone's hoppers (and therefore most mods that support MineClone).
Formspecs should be overridden manually if they are going to be overridden.
From MineClone's
GROUPS.md
:container
: Node is a container which physically stores items within and has at least 1 inventorycontainer=2
: Has one inventory with list name"main"
. Items can be placed and taken freelycontainer=3
: Same ascontainer=2
, but shulker boxes can not be insertedcontainer=4
: Furnace-like, has lists"src"
,"fuel"
and"dst"
.It is expected that this also reacts on
on_timer
;the node timer must be started from other mods when they add into
"src"
or"fuel"
container=5
: Left part of a 2-part horizontal connected container. Both parts have a"main"
inventorylist. Both inventories are considered to belong together. This is used for large chests.
container=6
: Same as above, but for the right part.container=7
: Has inventory list "main
", no movement allowedcontainer=1
: Other/unspecified container typeYou could do this fairly easily, something like this:
It doesn't even depend on any MineClone mods. Also, it should override the groups and
after_place
/on_rotate
/after_dig
functions (in a non-destructive way, of course), but I didn't bother to type all that in.The text was updated successfully, but these errors were encountered: