!!NOTICE!!: I have decided to abandon Minecraft in favor of the FOSS Minetest (https://www.minetest.net). As such, this project will no longer be maintained or developed.
A data pack for Minecraft 1.19.X (but will probably work with 1.13+) that allows you to "feed" TNT to pigs (by dropping TNT items onto them) to make them explosive!
Upon taking damage of any kind they will instantly explode.
Any entity can made explosive, except for items and the player that threw the TNT, in the same fashion after running:
/function pgsthtgbmnthnght:toggle_pigs_only
Running it again will reenable the filter for pigs only.
Download the data pack folder from the git repository and place it inside your world's datapacks folder. See for more information: https://minecraft.fandom.com/wiki/Tutorials/Installing_a_data_pack
The pack will automatically finish installation on world load, but you can force it using (recommended if updating pack):
/function pgsthtgbmnthnght:install/initialize
To uninstall, you first need to run this command:
/function pgsthtgbmnthnght:install/uninstall
After that, remove the datapack from your world's datapacks folder before reloading.
"Demonstration" video:
https://odysee.com/@ona-li-toki-e-jan-Epiphany-tawa-mi:9/Making-pigs-go-kabooey:8?r=HYroMZaqrVN4gL5oSJ35gcTgt3K56r39
- Optimizations.