Send a player to another dimension

Started by BlazingGreenFire on

Topic category: Help with Minecraft modding (Java Edition)

Active 3 years ago
Joined Oct 2021
Points:
521

User statistics:

  • Modifications: 0
  • Forum topics: 7
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 38
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.

Active 9 months ago
Joined Oct 2020
Points:
1594

User statistics:

  • Modifications: 0
  • Forum topics: 15
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1874
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

Active 3 years ago
Joined Oct 2021
Points:
521

User statistics:

  • Modifications: 0
  • Forum topics: 7
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 38
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

Active 3 years ago
Joined Oct 2021
Points:
521

User statistics:

  • Modifications: 0
  • Forum topics: 7
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 38
(No subject)
Sat, 10/23/2021 - 18:46

Screenshot

Active 9 months ago
Joined Oct 2020
Points:
1594

User statistics:

  • Modifications: 0
  • Forum topics: 15
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1874
 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

Active 3 years ago
Joined Oct 2021
Points:
521

User statistics:

  • Modifications: 0
  • Forum topics: 7
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 38
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?

Active 3 years ago
Joined Oct 2021
Points:
521

User statistics:

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

also was my global trigger correct?

Active 9 months ago
Joined Oct 2020
Points:
1594

User statistics:

  • Modifications: 0
  • Forum topics: 15
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1874
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

Active 9 months ago
Joined Oct 2020
Points:
1594

User statistics:

  • Modifications: 0
  • Forum topics: 15
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1874
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

Active 3 years ago
Joined Oct 2021
Points:
521

User statistics:

  • Modifications: 0
  • Forum topics: 7
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 38
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 :)

Active 3 years ago
Joined Oct 2021
Points:
521

User statistics:

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

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

Active 9 months ago
Joined Oct 2020
Points:
1594

User statistics:

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

entity is hurt is one of the first on entity triggers

Active 3 years ago
Joined Oct 2021
Points:
521

User statistics:

  • Modifications: 0
  • Forum topics: 7
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 38
(No subject)
Sat, 10/23/2021 - 19:27

screenshot

Active 3 years ago
Joined Oct 2021
Points:
521

User statistics:

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

those are all the options for me

Active 3 years ago
Joined Oct 2021
Points:
521

User statistics:

  • Modifications: 0
  • Forum topics: 7
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 38
at the beginning
Sat, 10/23/2021 - 19:27

at the beginning