Started by
jy9146
on
Topic category: Help with Minecraft modding (Java Edition)
Me and a couple of my friends are attempting to recreate the mod in the video, 100 Youtubers VS Natural Disasters (with permission from the original dev, Vini2003), using MCreator 2024.4, however we am having a problem with coding and putting in the meteors into the game from the original mod. We're just looking for anything since nothing online has told us anything and nothing we've tried is working. So please help in any way you can!
Could you give precise information on what you would like to do, like what feature would you like to implement first.
Maybe have
For some reason I can't delete the above comment... Anyway, try making an invisible block that you place in the sky at the center of your map. Give it block entity and make it so that every couple of ticks on update tick (use get and set block number nbt to make a counter that everytime it reaches a specific number of ticks, it executes a procedure) it spawns a projectile with a meteorite model in a random x and z coordinate (like -50 to 50) away from the block. Then for added effect make the projectile have particles using its while projectile flying trigger, and also use the override vector procedure to make it fall sideways like they do in real life
Right, so what I’m hoping for is when a meteor hits the ground it replaces a around a 4x4 area in a circular shape with a few of my modded blocks, obsidian, lava, and fire.
I already made the model and animation and I imported it to MCreator
The Circular shape would be easy to do using the New Procedures+ addon(https://mcreator.net/plugin/107323/new-procedures-plus). Have you made the meteorite already, if you have, the easiest way should be to test if the entity is "on Ground" and if it is then you do your circular replacement stuff.
So would it be a living entity or just spawn on a procedure. Also, whenever it hit a body of water it would replace the top of the water instead of the floor, would I have to change anything for that?
So do you not have meteorite yet, if so then you should make a living entity with model, texture and animation you imported and then do the things I said on the "entity tick" trigger of this entity. How you want to spawn it is up to you, but you should disable the natural spawning of the entity.
Ok
Ok, I want the meteors to naturally spawn and to be able to be summoned by right clicking a item. Also, how do I do the circle thing, I can only get it to work for 1 block.
For the circle thing look at the pluging page I linked you there it is already roughly explained how it works. The item summoning should also be easy, just make a item and make a right click procedure for it, where you spawn the meteorite entity somewhere above you. For the natural spawning, make a procedure with the global trigger set to "on player tick update" and then just spawn the meteors with a really small random chance.
Ok I’ll try it!