Elemental Sticks!
- ObiloxYT
- Apr 26
- 4 min read

/*-----------------------------------------------------------------------------------------------------------------------*/
🔥 Normal sticks? BORING. But Elemental Sticks? Now that’s next-level power and chaos!
So thats what i present to you today! ELEMENTAL STICKS!

This mod conflicts with Super Boots.

Flame Stick → 🔥Burns enemies, dealing 10 damage with custom paticles! 🔥
Requires: Lava Bucket + 4 Maple Wood Planks
Freeze Stick → 🧊Encases foes in ice, immobilizing them for a short time. 🧊
Requires:Ice + 4 Maple Wood Planks
Lightning Stick → 🌩Strikes opponents with electric shock with weakness. 🌩
Requires:Golden Decoration + 4 Maple Wood Planks
Knockback Stick → 🤸♂️Launches enemies far away upon hit. 🤾♂️
Requires:Fat Mushroom + 4 Maple Wood Planks
Water Stick → 💧Pushes targets with wave-like knockback and weakens their attacks.💧
Requires:Water Bucket + 4 Maple Wood Planks
Custom Crafting → Players can craft each stick using specific materials.
Crafting Recipes are listed above☝
Chat Commands → Simple !craftstickname format for instant item creation.
like !craftfreezestick!
Balanced Gameplay → Each elemental effect is designed to be fun yet strategic.
Anyone can craft the sticks!

World Code
function onPlayerChat(playerId, message) {
if (message.toLowerCase() === "!stickshelp") {
api.sendMessage(playerId, "🛠️ Stick Crafting Guide:");
api.sendMessage(playerId, "🔥 `!craftflamestick` → Lava Bucket + 4 Maple Wood Planks");
api.sendMessage(playerId, "❄️ `!craftfreezestick` → Ice + 4 Maple Wood Planks");
api.sendMessage(playerId, "⚡ `!craftlightningstick` → Golden Decoration + 4 Maple Wood Planks");
api.sendMessage(playerId, "🌀 `!craftknockbackstick` → Fat Red Mushroom + 4 Maple Wood Planks");
api.sendMessage(playerId, "🌊 `!craftwaterstick` → Water Bucket + 4 Maple Wood Planks");
}
else if (message.toLowerCase() === "!craftflamestick") {
let hasMaterials = api.getInventoryItemAmount(playerId, "Lava Bucket") >= 1
&& api.getInventoryItemAmount(playerId, "Maple Wood Planks") >= 4;
if (hasMaterials) {
api.removeItemName(playerId, "Lava Bucket", 1);
api.removeItemName(playerId, "Maple Wood Planks", 4);
api.giveItem(playerId, "Stick", 1, { customDisplayName: "Flame Stick" });
api.sendMessage(playerId, "🔥 You crafted a Flame Stick!");
} else {
api.sendMessage(playerId, "❌ Not enough materials!");
}
}
else if (message.toLowerCase() === "!craftfreezestick") {
let hasMaterials = api.getInventoryItemAmount(playerId, "Ice") >= 1
&& api.getInventoryItemAmount(playerId, "Maple Wood Planks") >= 4;
if (hasMaterials) {
api.removeItemName(playerId, "Ice", 1);
api.removeItemName(playerId, "Maple Wood Planks", 4);
api.giveItem(playerId, "Stick", 1, { customDisplayName: "Freeze Stick" });
api.sendMessage(playerId, "❄️ You crafted a Freeze Stick!");
} else {
api.sendMessage(playerId, "❌ Not enough materials!");
}
}
else if (message.toLowerCase() === "!craftlightningstick") {
let hasMaterials = api.getInventoryItemAmount(playerId, "Golden Decoration") >= 1
&& api.getInventoryItemAmount(playerId, "Maple Wood Planks") >= 4;
if (hasMaterials) {
api.removeItemName(playerId, "Golden Decoration", 1);
api.removeItemName(playerId, "Maple Wood Planks", 4);
api.giveItem(playerId, "Stick", 1, { customDisplayName: "Lightning Stick" });
api.sendMessage(playerId, "⚡ You crafted a Lightning Stick!");
} else {
api.sendMessage(playerId, "❌ Not enough materials!");
}
}
else if (message.toLowerCase() === "!craftknockbackstick") {
let hasMaterials = api.getInventoryItemAmount(playerId, "Fat Red Mushroom") >= 1
&& api.getInventoryItemAmount(playerId, "Maple Wood Planks") >= 4;
if (hasMaterials) {
api.removeItemName(playerId, "Fat Red Mushroom", 1);
api.removeItemName(playerId, "Maple Wood Planks", 4);
api.giveItem(playerId, "Stick", 1, { customDisplayName: "Knockback Stick" });
api.sendMessage(playerId, "🌀 You crafted a Knockback Stick!");
} else {
api.sendMessage(playerId, "❌ Not enough materials!");
}
}
else if (message.toLowerCase() === "!craftwaterstick") {
let hasMaterials = api.getInventoryItemAmount(playerId, "Water Bucket") >= 1
&& api.getInventoryItemAmount(playerId, "Maple Wood Planks") >= 4;
if (hasMaterials) {
api.removeItemName(playerId, "Water Bucket", 1);
api.removeItemName(playerId, "Maple Wood Planks", 4);
api.giveItem(playerId, "Stick", 1, { customDisplayName: "Water Stick" });
api.sendMessage(playerId, "🌊 You crafted a Water Stick!");
} else {
api.sendMessage(playerId, "❌ Not enough materials!");
}
}
}
function onPlayerDamagingOtherPlayer(aid, did, dmg, item, bodypart, ddbid) {
let [x, y, z] = api.getPosition(did);
if (item?.name === "Stick" && item.attributes?.customDisplayName === "Knockback Stick") {
api.setVelocity(did, 10, 0, 0);
} else if (item?.name === "Stick" && item.attributes?.customDisplayName === "Freeze Stick") {
api.applyEffect(did, "Frozen", 500, { inbuiltLevel: 2 });
api.setBlockRect([x, y, z], [x, y + 1, z], "Ice");
} else if (item?.name === "Stick" && item.attributes?.customDisplayName === "Flame Stick") {
api.setHealth(did, api.getHealth(did) - 10);
api.applyEffect(did, "On fire!", 10, {icon:"Lava"})
api.playParticleEffect({
pos1: [x, y, z], pos2: [x + 0.5, y + 0.5, z + 0.5],
texture: "critical_hit", manualEmitCount: 20, gravity: [0, -5, 0]
});
} else if (item?.name === "Stick" && item.attributes?.customDisplayName === "Lightning Stick") {
api.playParticleEffect({ pos1: [x, y, z], texture: "square_particle", manualEmitCount: 15 });
api.applyEffect(did, "Weakness", 500, { inbuiltLevel: 2 });
} else if (item?.name === "Stick" && item.attributes?.customDisplayName === "Water Stick") {
api.applyEffect(did, "Weakness", 500, { inbuiltLevel: 1 });
api.playParticleEffect({
pos1: [x, y, z], pos2: [x + 0.5, y + 0.5, z + 0.5],
texture: "bubble", manualEmitCount: 20, gravity: [0, -5, 0]
});
api.setVelocity(did, Math.random() * 3, 0, Math.random() * 3);
}
}

To Change the CRAFTING RECIPES, Modify these lines:
Knockback Stick:
let hasMaterials = api.getInventoryItemAmount(playerId, "Fat Mushroom") >= 1
&& api.getInventoryItemAmount(playerId, "Maple Wood Planks") >= 4;api.removeItemName(playerId, "Fat Mushroom",1);
api.removeItemName(playerId, "Maple Wood Planks", 4);Water Stick:
let hasMaterials = api.getInventoryItemAmount(playerId, "Water Bucket") >= 1
&& api.getInventoryItemAmount(playerId, "Maple Wood Planks") >= 4;api.removeItemName(playerId, "Water Bucket", 1); api.removeItemName(playerId, "Maple Wood Planks", 4);Flame Stick:
let hasMaterials = api.getInventoryItemAmount(playerId, "Lava Bucket") >= 1
&& api.getInventoryItemAmount(playerId, "Maple Wood Planks") >= 4;api.removeItemName(playerId, "Lava Bucket", 1); api.removeItemName(playerId, "Maple Wood Planks", 4);Freeze Stick:
let hasMaterials = api.getInventoryItemAmount(playerId, "Ice") >= 1
&& api.getInventoryItemAmount(playerId, "Maple Wood Planks") >= 4;api.removeItemName(playerId, "Ice", 1);
api.removeItemName(playerId, "Maple Wood Planks", 4);Lightning Stick:
let hasMaterials = api.getInventoryItemAmount(playerId, "Golden Decoration") >= 1
&& api.getInventoryItemAmount(playerId, "Maple Wood Planks") >= 4;api.removeItemName(playerId, "Golden Decoration", 1);
api.removeItemName(playerId, "Maple Wood Planks", 4);Replace "Item Name" to change the recipes.
For Example, you can change "Golden Decoration" and "Maple Wood Planks" to "Stick" and "Moonstone".
you can also change the amount of the item needed by changing the values after "Item Name"
You can also change the crafting command by modifying lines like these:
else if (message.toLowerCase() === "!craftlightningstick")replace !command with any command you want.
you can change the customDisplayName / Item by changing lines like these:
else if (item?.name === "Stick" && item.attributes?.customDisplayName === "Lightning Stick") api.giveItem(playerId, "Stick", 1, { customDisplayName: "Lightning Stick" });modify "Stick" to the item you want it to originally be.
modify "...stick" to the customDisplayName you want.
You can also mess with the effects and other things that the sticks do, by modifying lines like these:
api.setHealth(did, api.getHealth(did) - 10);
api.applyEffect(did, "On fire!", 10, {icon:"Lava"})
api.playParticleEffect({
pos1: [x, y, z], pos2: [x + 0.5, y + 0.5, z + 0.5],
texture: "critical_hit", manualEmitCount: 20, gravity: [0, -5, 0]
});you can easily change them, like the damage did by the stick can be set to -100 from -10.
api.applyEffect can be easily known to be giving effects.
Thanks for using my third addon!
I also made something similar github.com/timofeycacti/YoutubeProjects/bloxd/cutsomsticks_1