Abdullah Hasnain
📎 1 file 1,241 chars
📄
pasted-code-1789835111883.txt
txt 15 lines
▶
Create a complete Minecraft command block and scoreboard system for a Mace-Only SMP with automatic kill-based weapon upgrades. Follow these exact rules:

1. KILL TRACKER:
- Track player kills using a scoreboard objective named "maceKills" (type: playerKillCount).

2. AUTOMATIC TIER UPGRADES:
Continuously check players' "maceKills" scores and automatically update the mace they are holding in their main hand using the `item replace` command:
- 1 Kill -> Wooden Mace: Name it "Wooden Mace", with enchantment `minecraft:wind_burst` level 1.
- 2 Kills -> Stone Mace: Name it "Stone Mace", with enchantments `minecraft:wind_burst` level 2 and `minecraft:density` level 1.
- 3 Kills -> Super Mace: Name it "Super Mace", with enchantments `minecraft:wind_burst` level 3 and `minecraft:density` level 2.
- 4 Kills -> OP Mace: Name it "OP Mace", with enchantments `minecraft:wind_burst` level 3 and `minecraft:density` level 3.
- 5+ Kills -> God Mace: Name it "God Mace" (bold), with enchantments `minecraft:sharpness` level 8, `minecraft:wind_burst` level 8, and `minecraft:density` level 8.

3. STARTER MACE ON JOIN:
- Automatically give every joining player a basic "Starter Mace" in their inventory and prevent duplicate rewards.
Kodari AI
KodariSep 19 at 4:26 pm 1
MaceTierSystem
Creates a complete command block and scoreboard system for a Mace-Only SMP. Tracks player kills via a "maceKills" scoreboard objective and automatically upgrades the mace held in the main hand based on kill count using item replace commands. Tiers progress from Wooden Mace at 1 kill through Stone, Super, OP, and God Mace at 5+ kills, each with specific enchantments like wind_burst, density, and sharpness. Also grants a Starter Mace to every joining player while preventing duplicate rewards.

Leroy

Created the complete Minecraft datapack system.

Place the project folder at:

Plain Text
<server>/world/datapacks/mace-smp/

Then run:

Mcfunction
/reload

It targets Minecraft Java 1.21–1.21.1 and automatically handles the maceKills scoreboard, one-time Starter Mace rewards, and kill-based mace upgrades through the datapack’s load and tick functions.

Abdullah Hasnain
📎 1 file 1,241 chars
📄
pasted-code-1789835386858.txt
txt 15 lines
▶
Create a complete Minecraft command block and scoreboard system for a Mace-Only SMP with automatic kill-based weapon upgrades. Follow these exact rules:

1. KILL TRACKER:
- Track player kills using a scoreboard objective named "maceKills" (type: playerKillCount).

2. AUTOMATIC TIER UPGRADES:
Continuously check players' "maceKills" scores and automatically update the mace they are holding in their main hand using the `item replace` command:
- 1 Kill -> Wooden Mace: Name it "Wooden Mace", with enchantment `minecraft:wind_burst` level 1.
- 2 Kills -> Stone Mace: Name it "Stone Mace", with enchantments `minecraft:wind_burst` level 2 and `minecraft:density` level 1.
- 3 Kills -> Super Mace: Name it "Super Mace", with enchantments `minecraft:wind_burst` level 3 and `minecraft:density` level 2.
- 4 Kills -> OP Mace: Name it "OP Mace", with enchantments `minecraft:wind_burst` level 3 and `minecraft:density` level 3.
- 5+ Kills -> God Mace: Name it "God Mace" (bold), with enchantments `minecraft:sharpness` level 8, `minecraft:wind_burst` level 8, and `minecraft:density` level 8.

3. STARTER MACE ON JOIN:
- Automatically give every joining player a basic "Starter Mace" in their inventory and prevent duplicate rewards.
Kodari AI
KodariSep 19 at 4:30 pm 1
  1. Verify the existing datapack layout and current function contents.

  2. Correct or create the complete 1.21.x datapack files for kill tracking, mace upgrades, and one-time starter rewards.

  3. Preserve the final placement and usage instructions.

  1. Corrected the datapack to use the Minecraft 1.21+ singular directories:

    • data/mace_smp/function/

    • data/minecraft/tags/function/

  2. Implemented:

    • maceKills using playerKillCount

    • Automatic Wooden, Stone, Super, OP, and God Mace upgrades

    • Bold God Mace name with all requested enchantments

    • One-time Starter Mace reward using the mace_starter_received tag

    • Tier checks that avoid replacing an already-correct mace every tick

Place the datapack folder at:

Plain Text
<server>/world/datapacks/mace-smp/

Then run:

Mcfunction
/reload

No repeating command block is required. The datapack’s load and tick functions run the system automatically.

Kodari can make mistakes. Review important code before using.
Files
data
pack.mcmeta
README.md
Code
7 76
data/mace_smp/function/tick.mcfunction
execute as @a[tag=!mace_starter_received] run function mace_smp:starter
execute as @a[scores={maceKills=5..}] unless items entity @s weapon.mainhand minecraft:mace[minecraft:custom_name='{"text":"God Mace","bold":true}'] run item replace entity @s weapon.mainhand with minecraft:mace[minecraft:custom_name='{"text":"God Mace","bold":true}',minecraft:enchantments={levels:{"minecraft:sharpness":8,"minecraft:wind_burst":8,"minecraft:density":8}}]
execute as @a[scores={maceKills=4}] unless items entity @s weapon.mainhand minecraft:mace[minecraft:custom_name='{"text":"OP Mace"}'] run item replace entity @s weapon.mainhand with minecraft:mace[minecraft:custom_name='{"text":"OP Mace"}',minecraft:enchantments={levels:{"minecraft:wind_burst":3,"minecraft:density":3}}]
execute as @a[scores={maceKills=3}] unless items entity @s weapon.mainhand minecraft:mace[minecraft:custom_name='{"text":"Super Mace"}'] run item replace entity @s weapon.mainhand with minecraft:mace[minecraft:custom_name='{"text":"Super Mace"}',minecraft:enchantments={levels:{"minecraft:wind_burst":3,"minecraft:density":2}}]
execute as @a[scores={maceKills=2}] unless items entity @s weapon.mainhand minecraft:mace[minecraft:custom_name='{"text":"Stone Mace"}'] run item replace entity @s weapon.mainhand with minecraft:mace[minecraft:custom_name='{"text":"Stone Mace"}',minecraft:enchantments={levels:{"minecraft:wind_burst":2,"minecraft:density":1}}]
execute as @a[scores={maceKills=1}] unless items entity @s weapon.mainhand minecraft:mace[minecraft:custom_name='{"text":"Wooden Mace"}'] run item replace entity @s weapon.mainhand with minecraft:mace[minecraft:custom_name='{"text":"Wooden Mace"}',minecraft:enchantments={levels:{"minecraft:wind_burst":1}}]