Ever wondered why you can't use your pointy stick or a burning torch to attack enemies? Now you can with weaponize! From adding new special weapons to just having fun ways to attack, the possibilities are endless!
Any item that cannot be used as a weapon can be configured to have custom attack speed and damage, turning it into one. The weaponized items do not have durability.
Compatible with mods like Better combat.
HOW TO ADD WEAPONIZATIONS
weaponized uses the datapack system to change properties of items. For demonstration purposes, the mod gives the unused petrified slab item an attack speed and damage of 1. You can look into the file structure of the builtin datapack, or read the description below.
Visit the Minecraft wiki to learn how to create your own datapacks (Click Here)
You first need to know the mod id and the item id of the item you are going to change, which would be a word that contains lowercase letters and underscores, like some_mod and some_item
Next, create a JSON file named after the item id (eg: some_item.json), with the following contents. You can change the values for attack speed and damage to values you'd like for the weaponized item.
{
"attackspeed":1.0,
"attackdamage":1.0
}
Finally, put this in the right directory, which would be the weaponizations folder under a folder named after the mod id (namespace)
Here's an example folder structure of the complete datapack.
(data pack name)
--pack.mcmeta
--pack.png
--data
--some_mod
--weaponizations
--some_item.json
--other_mod
--weaponizations
--other_item.json
--another_item.json
--minecraft
--weaponizations
--cactus.json