Compatibility
Minecraft: Java Edition
Platforms
Creators
Details
Salutations!
I’m okipiak, an amateur content creator. In this project, I’ve made it so you cannot craft, or use spear in any way. Feel free to add this to your server.
I created this datapack because I couldn't find anything like it elsewhere.

⚠️ !WARNING! ⚠️
This datapack DOES NOT remove the spear from loot tables, so it can still appear in structures. This choice is intentional to maintain maximum compatibility with other datapacks. However, once one player obtains the spear, it will be removed for all subsequent players.
This datapack disables the crafting recipe for the Spear. Additionally, it automatically deletes any existing Spears from players' inventories. However, this item deletion feature can be toggled using commands:
To enable automatic item deletion (default setting):
/scoreboard players set DeleteItems NoSpear 1
To disable automatic item deletion:
/scoreboard players set DeleteItems NoSpear 0
Please note that any value other than 0 or 1 will not have any effect.



