How to change spawn entity to only in overwolrd?

Started by weakxoff on

Topic category: Help with modding (Java Edition)

Last seen on 20:39, 24. Jun 2023
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. 

 

 

 

Last seen on 20:39, 24. Jun 2023
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

Last seen on 20:18, 12. Mar 2024
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.