SpongePowered / SpongeForge

A Forge mod that implements SpongeAPI
http://www.spongepowered.org/
MIT License
1.14k stars 306 forks source link

Portal help (When leaving Nether get sent to Overworld-2 not Overworld-1) #3229

Closed LluviaWolf closed 4 years ago

LluviaWolf commented 4 years ago

I am currently running

Issue Description Our main world is called world but since it did not feature specific things (BOP) we used Nucleus to create a "new world" and we called it Blue. But now every time we go to the Nether in Blue we get send to the Nether but when we leave the Nether it sends us to world instead of Blue and the same goes for the End Portal.

How do we change that ?

maybe the picture can help. This is inside our server when we open our folder called world

Schermafbeelding 2020-11-22 om 23 34 48

Basically we want it so that when players leave the Nether DIM-1 to get send back to Blue NOT world and the same thing for the End DIM1

Hope you guys can help us out.

Zidane commented 4 years ago

Take a look at portal-agents in your world config file for "Blue"

LluviaWolf commented 4 years ago

dumb question but where is that located ?

LluviaWolf commented 4 years ago

for some reason I can not seem to find the world config file.

Schermafbeelding 2020-11-23 om 00 01 54

I checked the folder called Config and couldn't find anything... is it in the world folder ?

LluviaWolf commented 4 years ago
Schermafbeelding 2020-11-23 om 00 03 59

this is inside the folder called Blue

thibaulthenry commented 4 years ago

@LluviaWolf

You can't have a nether world that redirect to two different overworlds

LluviaWolf commented 4 years ago

I know that. I only want it to connect with the overworld "Blue" not "world"

But I can't find where the portal agent code is located. In which config file is it, where do I find it ?

dualspiral commented 4 years ago

Take a look at portal-agents in your world config file for "Blue"

You actually want the DIM-1 config file. I think you want /config/sponge/worlds/minecraft/nether/DIM-1/world.conf. Then paste the following:

sponge {
    world {
        # A list of all detected portal agents used in this world.
        # In order to override, change the target world name to any other valid world.
        # Note: If world is not found, it will fallback to default.
        portal-agents {
            "minecraft:default_nether"="Blue"
            "minecraft:default_the_end"="Blue"
        }
    }
}

Same for DIM1, in /config/sponge/worlds/minecraft/the_end/DIM1/world.conf.

dualspiral commented 4 years ago

Also, for note, this isn't a bug in Sponge, this is a request for support. As there is nothing we need to do I'm closing this issue (but feel free to reply to this issue, I just don't want it left open when there is nothing we need to do.)


Github issues are for reporting bugs and requesting features in Sponge. As this issue is a request for support, I am closing this issue.

The following resources are available to support you in using Sponge - please use these in future unless you are reporting a bug or asking for a new feature:

thibaulthenry commented 4 years ago

I think you forgot the world node @dualspiral I would say

sponge {
        world {
                # A list of all detected portal agents used in this world.
                # In order to override, change the target world name to any other valid world.
                # Note: If world is not found, it will fallback to default.
                portal-agents {
                    "minecraft:default_nether"="Blue"
                    "minecraft:default_the_end"="Blue"
                }
        }
}
dualspiral commented 4 years ago

Yes, you're correct. @LluviaWolf, you'll want what @thibaulthenry suggested.

LluviaWolf commented 4 years ago

got it like this

# 1.0
# 
# # If you need help with the configuration or have any questions related to Sponge,
# # join us at the IRC or drop by our forums and leave a post.
# 
# # IRC: #sponge @ irc.esper.net ( https://webchat.esper.net/?channel=sponge )
# # Forums: https://forums.spongepowered.org/
# 

sponge {
    # Configuration options that will affect all worlds.
    world {
        # If 'true', this world will load on startup.
        load-on-startup=true
        # A list of all detected portal agents used in this world.
        # In order to override, change the target world name to any other valid world.
        # Note: If world is not found, it will fallback to default.
        portal-agents {
                "minecraft:default_nether"="Blue"
                "minecraft:default_the_end"="Blue"
                }
        }
}

But it doesn't work.

thibaulthenry commented 4 years ago

Oups, remove the quotes from Blue.

portal-agents {
        "minecraft:default_nether"=Blue
        "minecraft:default_the_end"=Blue
}
LluviaWolf commented 4 years ago

really weird I did that and it still sends me to world instead of Blue

thibaulthenry commented 4 years ago

Well, I think dual and me messed up.

In /config/sponge/worlds/minecraft/nether/DIM-1/world.conf (your default nether). You want this nether to redirect to Blue overworld. Add

sponge {
        world {
                portal-agents {
                        "minecraft:default_overworld"=Blue
                }
        }
}

In /config/sponge/worlds/minecraft/the_end/DIM1/world.conf (your default end). You want this end to redirect to Blue overworld. Add

sponge {
        world {
                portal-agents {
                        "minecraft:default_overworld"=Blue
                }
        }
}

In /config/sponge/worlds/minecraft/overworld/Blue/world.conf (your overworld Blue), you have nothing to do BECAUSE you are targetting default nether and default end, which are the default redirections for all your overworlds (see at the end of /config/sponge/global.conf).

In the case would have another Nether or End worlds (whatever their names), you would have to do

/config/sponge/worlds/minecraft/overworld/<whatever-overworld-name>/world.conf

sponge {
        world {
                portal-agents {
                        "minecraft:default_the_nether"=<whatever-nether-name>
                        "minecraft:default_the_end"=<whatever-end-name>
                }
        }
}

Sorry for the inconvenience

LluviaWolf commented 4 years ago
Schermafbeelding 2020-11-24 om 11 17 57

I have it like this in /config/sponge/worlds/minecraft/nether/DIM-1/world.conf and it still sends me to world This is getting really frustrating :<

LluviaWolf commented 4 years ago

Blue is not my default overworld though... world is my default overworld could that be a problem ?

thibaulthenry commented 4 years ago

No, the "minecraft:default_overworld" is just the type of the portal-agent.

Can you come to the Sponge Discord so it's easier to talk ?

thibaulthenry commented 4 years ago

I would like to end up this issue to warn people which would try to setup portal agents. Do not forget to stop the server before editing the worlds configuration files, and then restart the server once you ended up modifications.

If you edit the files while the server is running, the current configurations loaded in memory on the server will overwrite any change you made.