Trouble with required dependencies

Started by thatonegamer59 on Sat, 08/10/2019 - 04:10

Topic category: Help with MCreator modding

Last seen on 18:38, 19. Aug 2019
Joined Aug 2018
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Trouble with required dependencies
Sat, 08/10/2019 - 04:10

Right now I am creating my own mod that requires to get the players x and z position in a procedure.
I used the "x" and "z" variable in one of the lines in my procedure, but the program is giving me an error.
"You have selected external trigger that does not provide the following dependencies: entity x z"
I don't know what this error means and I don't know how to fix it.

Last seen on 13:35, 23. Sep 2019
Joined Apr 2010
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
  • wiki contributor
  • moderator
  • developer
It seems that your procedure…
Sat, 08/10/2019 - 07:24

It seems that your procedure needs entity dependency, but the trigger does not provide it. Show your procedure screenshot and tell which trigger do you use to trigger it.

Last seen on 18:38, 19. Aug 2019
Joined Aug 2018
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
A few days ago I saw a…
Sat, 08/10/2019 - 13:37

A few days ago I saw a Youtube video where they raise their Minecraft worlds water level every minute,
so I thought it would be cool if I created a mod for myself to do it automatically instead of typing in the command every time.

The event is triggered when you enter a world.

Last seen on 13:35, 23. Sep 2019
Joined Apr 2010
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
  • wiki contributor
  • moderator
  • developer
I can't see the screenshot…
Sat, 08/10/2019 - 14:35

I can't see the screenshot you posted, it just shows a broken image.

Last seen on 18:38, 19. Aug 2019
Joined Aug 2018
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
What if I type it all out…
Sat, 08/10/2019 - 16:00

What if I type it all out instead?

Event trigger - triggered by external call or when: Minecraft loads a world
Execute command / create text with
                                 "worldborder center "
                                 x
                                 " "
                                 z
Execute command / "worldborder set 200"
Set Local Loop to: 1
repeat 250 times
do
    Set Local: WaitTime to 0
    while Get Local: WaitTime < 1200
    do
        Set Local: WaitTime to: Get Local: WaitTime + 1
    Execute command / create text with
                                     "fill ~-100 "
                                     Get Local: Loop
                                     " ~-100 ~100 "
                                     Get Local: Loop
                                     " ~100 minecraft:water keep"
    Set Local: Loop to: Get Local: Loop + 1

Last seen on 13:35, 23. Sep 2019
Joined Apr 2010
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
  • wiki contributor
  • moderator
  • developer
When Minecraft loads a world…
Sat, 08/10/2019 - 16:24

When Minecraft loads a world does not provide entity dependency which is required for the execute command. Due to security reasons, the commands can only be executed by a specific entity (player), so Minecraft can check if the command was executed by a player with proper permissions. We can not bypass this, unfortunately.

Last seen on 18:38, 19. Aug 2019
Joined Aug 2018
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
I decided to make a work…
Sat, 08/10/2019 - 19:43

I decided to make a work-around where the procedure will be called when an item is used, however I ran into a command problem I can't fix.
Thanks anyways.