AlmostReliable / ponderjs

A Minecraft mod for packdevs to create custom Ponder scenes with KubeJS.
https://www.curseforge.com/minecraft/mc-mods/ponder
MIT License
25 stars 5 forks source link

AE2 support #7

Closed tuturox91 closed 1 year ago

tuturox91 commented 2 years ago

Version

ponderjs-1.18.2-1.1.8 and appliedenergistics2-11.1.2

Describe the bug!

AE 2 cables can't show in ponder(

image image

Crash Report

No response

Log

No response

Additional Context

Yes

Modifications

No response

Did the issue happen in singleplayer or on a server?

Singleplayer

Ludi87 commented 2 years ago

If you include the cables in the structure nbt they can show, but they dont connect :/ not sure if there's a way to fix that..?

image

LLytho commented 2 years ago

Not sure if this is something related to create and ponder. Need to figure it out. And for connecting you probably need to setup the blockstates correctly (if they use it).

Ludi87 commented 2 years ago

The blockstates are set correctly, but with an NBT Editor I saw that part of the NBT wasn't saved with the schematic (the "extra center" bit). I imagine that's what's setting the connection to other ones. I couldn't figure out how to set NBT so the quotation marks show up, since you couldn't do something like

scene.world.modifyTileNBT([1, 1, 3], (nbt) => {
    nbt."Extra:Center": {
        gn: {
            p: 0,
            k: "-1L",
            g: "2L"
        }
    }
}

image

NBT of a cable in the structure: image

image

also tried this, no effect:

                scene.world.modifyTileNBT([1, 1, 2], (nbt) => {
                    nbt = [
                        {
                            id: "ae2:cable_bus",
                            "item:center": "ae2:fluix_glass_cable",
                            "extra:center":{
                                gn:{
                                    p: 0,
                                    k: "-1L",
                                    g: "2L"
                                }
                            }
                        },
                    ];
                });

                scene.world.modifyTileNBT([1, 1, 1], (nbt) => {
                    nbt = [
                        {
                            id: "ae2:cable_bus",
                            "item:center": "ae2:fluix_glass_cable",
                            "extra:center":{
                                gn:{
                                    p: 0,
                                    k: "-1L",
                                    g: "2L"
                                }
                            }
                        },
                    ];
                });
tuturox91 commented 2 years ago

If you find how to fix this. This is be awesome! The ae2 has no guide book. And such a visual tutorial would be very useful in modpacks!

stale[bot] commented 2 years ago

This submission has been automatically marked as abandoned because it has not had recent activity. It will be closed in 3 days. If you want to prevent that, leave a new comment.

rlnt commented 2 years ago

We'll leave this open in case someone finds out a way to do it.

rlnt commented 1 year ago

One of the AE2 devs looked into this and it was indeed not possible with the previous version of Applied Energistics. But they introduced a way to make AE objects work within Ponder.

The tracking PR can be found here: https://github.com/AppliedEnergistics/Applied-Energistics-2/pull/6661

I'll close this issue when it's ready.

shartte commented 1 year ago

https://github.com/AppliedEnergistics/Applied-Energistics-2/blob/master/ponderjs.md

GitHub
Applied-Energistics-2/ponderjs.md at master · AppliedEnergistics/Applied-Energistics-2
A Minecraft Mod about Matter, Energy and using them to conquer the world.. - Applied-Energistics-2/ponderjs.md at master · AppliedEnergistics/Applied-Energistics-2
rlnt commented 1 year ago

Implemented here and ported to all 1.18+ versions: https://github.com/AppliedEnergistics/Applied-Energistics-2/pull/6662

The guide page can be found here and will be also available on our wiki.

tuturox91 commented 1 year ago

Wow this is amazing!