[Tutorial] How to change dimension of entity other than player?

Started by KabiKabi on

Topic category: User side tutorials

Joined Dec 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
[Tutorial] How to change dimension of entity other than player?

Mcreator's traditional block only works for players, so I have created this mini tutorial. The following code snippet does the trick. MAKE SURE THESE ARE IMPORTED:

Imports are linked here because Mcreator's site is silly.

The script is running for ENTITY ITERATOR, and if your savvy enough you can change it to another entity, but I have provided entity iterator. You can use the snippet to change dimension of entity iterator. Replace "nextlevel" and "pocket_dimension" with your mod name and desired dimension and it should work. For example, a dimension called bingus:good_place would be "bingus", "good_place".

 

I have linked it here because Mcreator is being silly.