#βœ… | πŸ™‹ | make menu appear whenever you first join a world

1 messages Β· Page 1 of 1 (latest)

woven quarry
#

title

urban wolfBOT
# woven quarry title

Hi Jmynii! πŸ‘‹

To make a menu appear whenever you first join a world, you'll want to use FancyMenu's "Listeners" feature. Specifically, the "Singleplayer World Entered" listener is perfect for this!

Here's how you can set it up:

  1. Exit the Layout Editor (if you're in it).
  2. Go to FancyMenu's menu bar -> Customization -> Manage Listeners.
  3. Click on Add Listener.
  4. Choose the "Singleplayer World Entered" listener.
  5. After adding it, you'll see it in the list. Select it and then click Edit Action Script.
  6. In the action script editor, right-click the dark-grey area to open a context menu, then choose Add Action.
  7. Select the "Open Screen or Custom GUI" action.
  8. For the action's value, enter the screen_identifier of the menu you want to open. This can be a custom GUI you've made or an existing Minecraft screen.

This listener also provides some useful variables like $$world_name and $$world_is_first_join that you could incorporate into your menu or use in conditions if you want more specific behavior!

You can find more details about listeners here: Listeners

woven quarry
#

use $$world_is_first_join

woven quarry
#

created a new woprld and it still didnt appear

urban wolfBOT
#

πŸ™‹ | make menu appear whenever you first join a world

#

<@&1365490168563372113>

Human Help Requested

@woven quarry has requested human assistance.

A human moderator will help you as soon as possible. In the meantime, you can continue asking questions to the AI support bot if you'd like.

The support team has been notified.

#
Ticket Summary

The user wants to open a specific GUI (difficulty_normal_choice) only when a player enters a singleplayer world for the very first time, using a FancyMenu listener and the $$world_is_first_join variable. The GUI is not appearing, and a debug chat message confirmed the listener is not firing as expected on first world join.

woven quarry
#

havent had sauccess in fixing it yet πŸ’” and i gotta head to boarding school soon

woven karma
#

Wait. Do you use the listener already, but try to set the variable provided by the listener yourself? This is not how it works, it's read-only.

#

You also can't use the "Get Variable Value" action for that. You just use the variable as string and it gets replaced later. It's a placeholder.

#

Make sure to go into the menu bar -> Customization -> Manage Variables menu and DELETE the variables you added that have the same name as the listener variable.

#

You check the variable values of listeners with Is Text and Is Number.

#

@urban wolf

urban wolfBOT
# woven karma <@795315959212539934>

Hi again! It looks like you're super close to getting it right! That's a tricky little detail. 😊

Based on your screenshot, the issue is that you're using the Is Variable Value (FM Variable) requirement. That requirement is specifically for variables that you create yourself in the "Manage Variables" menu.

The $$world_is_first_join is a special variable that comes directly from the listener, so you need to check its value a different way.

You should use the Is Text requirement instead!

Here’s how to fix it:

  1. Go back into the listener's Action Script.
  2. Remove the Is Variable Value (FM Variable) requirement you have now.
  3. In your IF statement, add a new requirement and choose Is Text.
  4. Configure the Is Text requirement like this:
    • Mode: equals
    • Text: $$world_is_first_join
    • Compare With: true

What this does is it checks if the text provided by the listener variable $$world_is_first_join is exactly equal to the word true. The rest of your action script (opening the screen) is perfect!

Give that a try! It should work just as you want it to. ✨

You can read more about the different requirements here: Conditions (Requirements).

woven quarry
#

I’ll have to try this out next week when I comeback from boarding school but ty ^^

urban wolfBOT
urban wolfBOT
#
AI Answers Paused

@woven karma paused AI answers for this thread. The bot will stay quiet until resumed.