How to change spawn entity to only in overwolrd?

Started by weakxoff on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to change spawn entity to only in overwolrd?

I created monster entity in mod. I change biomes where he spawns, but on modpack, we have a terralith, where no minecraft vanilla biomes. I try to change biomes with terralith additions, try to add dismensions in blacklist, and try to change spawn in only overworld, but all of this have bug "Data pack validation failed!". (sry for my bad eng) :D

Please, help me to solve this problem, idk how work entity spawn code. 

 

 

 

Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Minecraft version is 1.19.2…
Sat, 06/24/2023 - 12:58

Minecraft version is 1.19.2 forge

Joined Nov 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Add a procedure "on entity…
Sat, 07/15/2023 - 16:34

Add a procedure "on entity spawns", then if the location is not in the overworld then despawn the entity.