Shaped TNT Blast

DoyleChris
Member
 
Posts: 221
Joined: Sat Jul 25, 2015 19:54
In-game: DoyleChris

Shaped TNT Blast

by DoyleChris » Mon Dec 31, 2018 22:41

Is there a way to make the TNT do a perfect sphere or cube.
 

User avatar
Krock
Developer
 
Posts: 4224
Joined: Thu Oct 03, 2013 07:48
Location: Switzerland
GitHub: SmallJoker

Re: Shaped TNT Blast

by Krock » Tue Jan 01, 2019 12:38

Change this line in your tnt/init.lua file: https://github.com/minetest/minetest_ga ... t.lua#L335
To: if true then (for cube)
To: if r <= radius then (for sphere)

Disclaimer: Untested.
>> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>
 


Return to Modding Discussion



Who is online

Users browsing this forum: Bing [Bot] and 7 guests