Started by
raposao6464
on
Topic category: Minecraft mod ideas exchange
Hello there. (General Kenobi?)
So I had this crazy idea to do in my mod. It is a super powerful sword that is capable to explode the sun and it stays forever at night in minecraft.
I'm new in this modding world so I don't know programming very much.
Is this possible? and if so, how should I do it, thanks
Just to give some context, the mod is about mythology and old legends.
You can set time in the world, so the night thing is easy. Just find the "set time to day/ night" or whatever
Oh, I see. Do you have any ideas of how to do a big explosion when you click to explode the sun?
Expload at x y+(however much you think is enough) z with power 100 or more
It's actually pretty easy to do. First make the sword, then add an On Right Click procedure that has something like:
If Is day in the provided world
Do: Play at x: x y: [y+50] z:z level: 10 pitch: 1 sound entity.generic.explode
Set time to: 16000
Execute command gamerule doDaylightCycle false at x: x y:y z:z
Then add it to your sword on right click on block and/or on right click on air and you're done.
You could also replace the play at: with Explode at x: x y: 256 z: z with power 100, but this might(will) lag your game and might destroy some blocks.
Thanks a lot man