Entities Refuse to Spawn

Started by Botato the Potato on

Topic category: Help with modding (Java Edition)

Last seen on 20:39, 2. Apr 2023
Joined Dec 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Entities Refuse to Spawn
Sat, 03/25/2023 - 21:48 (edited)

Several of my custom entities refuse to spawn, and I don't understand why.

Basically, what happens is, when I try to spawn the entity via Spawn Egg or /summon, it just instantly disappears.

I've tried everything I can think of, blockbench issues, despawning when idle, etc.

However for some reason, whenever I Run the server and try spawning it there, it works perfectly fine.
But as soon as I join a singleplayer world, it'll just disappear.

Another odd thing, when I add an entity base to the entity, it'll spawn, but of course, it wont behave as intended because of the entity base.

I'm obviously failing to find out how to do this myself, so any help would be greatly appreciated.

Edited by Botato the Potato on Sat, 03/25/2023 - 21:48
Last seen on 23:46, 23. Apr 2024
Joined Feb 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Have you set the difficulty…
Tue, 04/23/2024 - 08:37

Have you set the difficulty to peaceful in your single player world? If so, and the custom entity is recognized as a hostile mob, minecraft instantly despawns the entity.