star fall mechanics

Started by kitaro on

Topic category: Help with Minecraft modding (Java Edition)

Joined Aug 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
star fall mechanics

Hello everyone! I'm working on my new mod, currently trying to add a night star falling from the sky, but I've come across the fact that creating a procedure for spawning a shooting star is quite a task. I'm not entirely sure whether it will be a mob from which you can already get an item, or a block, but I need to make it so that at night, at a certain time, with some small probability, somewhere in the sky not far from the player, a shooting star can spawn, it can be a mob or a block with gravity turned on

Joined Aug 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
make a java model (entity…
Sat, 08/30/2025 - 16:37
  1. make a java model (entity model) for your shooting star.
  2. make a texture for the shooting star
  3. create new living entity in mcreator
  4. disable spawn eggs
  5. if you want it to glow, make a new model layer with the same texture and enable glow
  6. make it drop an item (optional) like a shooting star item or block that the player can obtain when it hits the ground.
  7. make it immune to everything
  8. make it have a sound (if you want like a shimmering sound player randomly)
  9. remove all the ai blocks and keep only look around
  10. disable entity spawning
  11. save mod element
  12. create new procedure
  13. name it something like shootingstarfall
  14. make it a global trigger and set it to player tick update
  15. put an if block
  16. in the condition put, is night in the world block
  17. in the if block, put another if block
  18. for the condition put a number compare block in the logic section
  19. in the first slot put the block random integer between min max included from the math section
  20. in the first number input put one, in the second number input put something like three hundred which makes how rare it is
  21. in the second slot of the number compare put one
  22. now the condition is if a random number between 1 and 300 is equal to  1 do...
  23. in the result part of the if block, put a spawn entity at x y z block
  24. put in your shooting star entity
  25. in the x position make it y + 35 using the math block, this makes the star spawn 35 blocks above the player
  26. in the x and/or z do the same or put a number like 20 to make it spawn 20 blocks away from the player
  27. then test it in game!

 

 

 

Joined Aug 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
if you want it to spawn at…
Sat, 08/30/2025 - 16:40

if you want it to spawn at different distances from the player use the random integer block with a min of like 20 and a max like 30 or even the same with the z position if you want it from more directions