Send a player to another dimension

Started by BlazingGreenFire on

Topic category: Help with Minecraft modding (Java Edition)

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Send a player to another dimension

Hello so in my mod I have a dimension and an item. What I am trying to do is make it so that when I hit an entity (player or mob) with my custom specific item, it will teleport that entity to the custom dimension I choose and to break the item I hit them with. The item is a scroll and the idea is basically that I hit them with the scroll of banishment, and they are teleported to the dimension, leaving some particles behind, and the scroll breaks.

Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
entity is hurt global…
Sat, 10/23/2021 - 18:21

entity is hurt global trigger

if item in main hand of source entity = scoll

do switch dimension of event target entity to: DIMENSION

remove 1 SCROLL from source entity main inventory

spawn particles at X Y Z with speed 1 VX 0 VY 0 VZ 0 type: PARTICLES

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hey so I did that, the only…
Sat, 10/23/2021 - 18:46

Hey so I did that, the only thing I'm unsure if I did correctly was the global trigger but anyways, I tested it, and I had to hit the entity a few times with my scroll and didn't get teleported and the scroll didn't break but it showed the particles but then after a few hits *I* got teleported to the dimension, and I'm not sure if the scroll broke since I crashed when it teleported me to the dimension, probably a problem with my dimension but yeah, here's what I did

Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
 No No No, follow my…
Sat, 10/23/2021 - 18:49

 No No No, follow my procedure as it is, put everything inside the if statement, the if statement needs to be source entity and remove block needs to be source entity too

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Is source entity different…
Sat, 10/23/2021 - 18:56

Is source entity different from event/target entity? Because when I search I can't find "source entity", do you know what section it's in?

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
also was my global trigger…
Sat, 10/23/2021 - 18:56

also was my global trigger correct?

Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
it is on minecraft…
Sat, 10/23/2021 - 18:59

it is on minecraft components

also no it is not. entity is hurt, not before entity is hurt

Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I mean it could work the…
Sat, 10/23/2021 - 19:00

I mean it could work the trigger too, but to avoid bugs use entity is hurt

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Ohk I found the source…
Sat, 10/23/2021 - 19:22

Ohk I found the source entity thing but there is no option to set the global trigger to "entity is hurt", "entity is healed" and "entity is tamed"

 

Btw I appreciate your help on all my forums :)

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
only "entity is healed" and …
Sat, 10/23/2021 - 19:23

only "entity is healed" and "entity is tamed"

Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
entity is hurt is one of the…
Sat, 10/23/2021 - 19:26

entity is hurt is one of the first on entity triggers

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
those are all the options…
Sat, 10/23/2021 - 19:27

those are all the options for me