how do i make an entity to spawn

Started by UlvardsV on

Topic category: Help with modding (Java Edition)

Last seen on 19:35, 19. Apr 2024
Joined Feb 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
how do i make an entity to spawn
Thu, 06/01/2023 - 17:43 (edited)

Hey i am wondering how do i make an entity to spawn in a minecraft structure like in a nether fortress please help how do i make them spawn

Edited by UlvardsV on Thu, 06/01/2023 - 17:43
Last seen on 20:08, 17. Apr 2024
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Structure spawning mechanics…
Thu, 06/01/2023 - 15:59

Structure spawning mechanics are pretty hard coded, as far as I can tell. There's a couple possible solutions:

  • Have the entity check for blocks of the structure nearby, using the 'check for block in 6*6 box' template procedure. (Have it check for nether bricks, for example.) This would effectively solve the problem, but would raise the issue of farming mobs by this method.
  • ...Or my preferred method, make a special block/entity, (it can be a collectable part of the structure, or something invisible that can't be altered), that generates in your structure, and spawns enemies on available spots nearby until it's deactivated. 
Last seen on 19:35, 19. Apr 2024
Joined Feb 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i could have done that but i…
Fri, 06/02/2023 - 11:53

i could have done that but i am wondering how do i make the entity spawn with the structure with a random chance right on the nether fortres when it generates