Static Zapping

Generate static via grass movement and cold biomes. Monitor your charge on a custom HUD bar to shock nearby entities or metals unless grounded by leather boots or custom enchantments. Fully configurable.

Ever shuffled across a carpet and then touched a doorknob? That's the idea. Run through grass or leaves, or walk around in the cold, and you'll start building a static charge. A cyan bar with a yellow outline fills up just above your hearts. Bump a bunny and the charge jumps — the bunny gets shocked, and if you aren't grounded, so do you. Step on a block of iron with an empty hand and you'll zap yourself. Metal doesn't care that you were just minding your own business.

 

How you charge up

You have to be moving. Standing still in the grass doesn't do anything. Walking through grass, ferns, and dry grass charges you, and so do leaves. Crops aren't in the list unless you add them, and grass blocks don't count — you walk on those, not through them. Cold biomes charge you too, as long as you're on the move. The sources stack, so a snowy forest can fill the bar pretty quick.

If you aren't picking up any charge, it slowly leaks away. Water at your feet drains it safely and won't shock you. Rain doesn't do anything unless you change that.

 

Grounding and insulation

I really want to encourage players to do what it takes to get insulated. Leather boots, or boots with the Grounding enchantment, cancel the shock you'd take from zapping a mob, and they also let you walk on powder snow. They will not save you from metal. For that you need real grounding armor — a leather helmet, chestplate, or leggings by default, or whatever you add to the list. I left leather boots off that list on purpose, so they stay the weaker option.

Grounding is a level 1 boot enchantment. You can find it at the table, from a librarian, or in loot, and it works alongside Frost Walker and Depth Strider.

By default you still build charge even when you're grounded. There's a toggle if you want grounding to stop the buildup and slowly drain what you already have.

 

Metal and shocking blocks

This is the part that gets you. Stand on, walk into, or click a metal block with an empty hand, or while holding something conductive, and the charge dumps into you. Iron, copper, gold, their ores, and a bunch of vanilla machines made from those metals are in the list: pistons, hoppers, rails, anvils, the whole copper set, that kind of thing. Holding an iron ingot, a bucket, or similar tools will do it too. Armor is not a shocking item; wearing leather is how you ground yourself.

There's a little reach setting so brushing the side of a block counts, not just standing on it. Vanilla collision is fussy about that.

 

Sparks and Coal Explosion

Charged up and you touch coal ore? You can spark it. By default that's coal ore and deepslate coal ore, and it works even if you just stand on them. The spark puts a brief flash of fire on the face you touched, with the usual neighbor updates, so if you've also got Coal Explosion in the pack, that vein can go up. When that happens it's awesome as hell.

Wood doesn't spark out of the box. In the real world, wood is a natural resistor, which is why shuffling around a wooden house doesn't shock you until you touch metal. Pack makers who want the forest on fire can turn that on. I made sure the config will let them.

A successful spark can empty a full bar. Chance, cooldown, and the rest are configurable.

 

Charging your gear

Your static can also charge items and blocks that accept NeoForge energy. It goes into your inventory, offhand, and armor first, then into energy blocks you're touching, as long as those blocks aren't also shocking metal. If they are, the shock wins. It only spends the charge the gear actually takes. There's no Curios or Trinkets support, just the normal inventory and armor slots.

 

Overcharge

This one is off by default. If a pack turns it on and you sit at a full bar for five minutes without discharging, lightning hits you and the bar dumps. You'll get nausea while that timer is running. There are options to make the bolt visual only, or to control whether it can start fires.

 

Commands

Operators and the server console can change the gameplay settings live with /static_zapping. Lists use add, del, list, and reset, so you don't accidentally replace the whole metal list with one block. Changes are checked, saved, and applied right away.

For example: /static_zapping shockingBlocks add minecraft:copper_ore or /static_zapping shockingBlocks list.

 

For pack devs

The full config is in the Mods menu: pick this mod and hit Config. Gameplay lives in config/staticzapping-common.toml, and the HUD bar is in config/staticzapping-client.toml. You'll want it on both the client and the server.

The big knobs are how fast charge builds, what counts as grass, leaves, metal, or grounding armor, how hard the shocks hit, and whether sparks, energy charging, overcharge, or "grounding stops buildup" are turned on. You can add other mods' ids and tags to the lists if you want modded copper or rubber armor in the mix. There's no extra compat module for that.

I wanted the config to allow pure evil by a pack dev if that's the kind of pack you're making — burning forests, overcharge lightning, grounding that doesn't even let you build charge, the works. The safety defaults are there so a normal survival world stays fair.

 

If you want a server setup for the Static Zapping Electricity mod with zero effort, get a server with BisectHosting and receive 25% off your first month as a new customer using the code kreezxil

 

Community

Come hang out on Discord: https://discord.gg/ngNQjT5

Join the Kreezxil Discord server

No need to ask. Just add it to your pack.

Static Zapping Team

profile avatar
  • 130
    Followers
  • 120
    Projects
  • 213.0M
    Downloads

More from KreezxilView all