
Magic Drops
Create a Fabric mod for Minecraft 1.21.1 called "Magic Drops". Features: - Sidebar scoreboard "§dMagic Counter: [number]" starting at 500 per player. - On...
00—fabricClient1.21.1mod
Magic Drops adds a sidebar Magic Counter that tracks mining. Each player gets a magenta “Magic Counter” scoreboard objective shown in the sidebar, starting at 500 the first time they join a world with the mod enabled.
- Breaking common terrain blocks (overworld stone variants, nether base stones, end stone, dirt variants, gravel, sand/red sand) reduces the counter by 1.
- Breaking coal ores or coal blocks grants 5 points to the counter.
- The counter never drops below 0.
- The scoreboard objective is created automatically and displayed in the sidebar; existing scores are left untouched when rejoining.
- This is a client-side mod; the logic runs where the client hosts the world (singleplayer or a modded server that loads client-environment mods).
Notes:
- Coal rewards are set to +5 based on the provided instructions; adjust in code if you prefer a different value.