TechFreqs Shared Spike Trap XP Mod

The TechFreq’s Shared Spike Trap XP Mod for 7 Days to Die allows players to gain XP from enemy zombies and most hostile animals killed by wooden or iron spike traps. The XP distribution is proximity-based, meaning that if a player is near the traps when a kill occurs, they will receive XP—now rocking a configurable 150 XP per kill & 30m radius json file.

Current Functionality:
If a lone wolf’s near the spike traps, they bag 150 XP per kill—easy peasy! If a squad’s hanging out, everyone within the 20m radius scores their share—fair and square, no favoritism here! Too far? No XP for you—keeps it local and legit. Zombie dogs, bears, and other nasties? They drop XP too—tested and silky smooth! Logs confirm we all get XP when we’re close, and included for that sweet victory vibe!

Current Status:
✅ Basic XP system shines at 150 XP per kill
✅ Multiplayer XP sharing is perfect—all nearby players cash in the same amount within distance
✅ Enemy animals like zombie dogs and bears grant XP, no glitches
✅ Flawlessly shares XP within 20m—clean, reliable, and spam-free
✅ Tooltip pops up for local players—“Gained 150 XP from spike trap kill!”

If a single player is near the spike traps, they receive XP (100 XP per kill).
If multiple players are nearby, the mod attempts to determine who to send the XP to,but if not in distance of the spike traps no xp will be givens
If a player is far away, it will show in logs upon entity kill and determine whether or not they should receive it
When two players are present, the logs indicate XP is awarded to both,

✅Improve logging and feedback so each player gets clear confirmation of earned XP in LOGs via F1
✅Fixed XP inconsistencies
anything else that needs adjustments…

Disclaimer:
By using this mod, you acknowledge that TechFreq is not responsible for any issues, crashes, or conflicts caused by its use.
Use at your own risk. Please backup your game files before installing any type of mod.
Thanks for downloading and enjoy!

CREDITS:
TechFreq & A.I
Made with love for the game and version v1.3 not sure if compatibility will work with older versions of the game.
Don’t forget to support me by listening to a song or two or several!
I’d very much appreciate it and or any feedback for the mod(s) aswell
Thanks to ChatGPT or Microsoft CoPilot A.I or Grok AI from Twitter or X, for helping me create the modlet, aswell as with very little modding knowledge for the game and learning as i go i couldn’t do this without it and overall brainstorming..

TechFreqs Copyright-Free Music:
For royalty-free music to use in your projects or for casual listening.
Feel freeo checkout beacons.ai/techfreq for variety of content – and or for just music, check out the Spotify link,
at TechFreq featuring the album ‘ Spatial Recognition ‘
https://open.spotify.com/album/27ilirWNodQPT6EHGmrCVV
Thank you again for checking out the mod post and i’ll see you around.

p.s dont mind the 10,000 xp, i have my loot abundance to 1 million percent for a debug world, using another mod called extended game settings, for testing.. ill upload more pics later for default xp value.. and functionality but this is a tough project as it is aswell.. but just to put that out there.

Latest Changelog:
V4.1
In this update, same features as previous versions the ONLY difference is that it detects just spike traps, as previous was detecting landmines aswell? and in the logs it would show for the previous version for some odd reason and now that’s fixed per spike trap kill only.

Previous versions changelogs:
AS FOR V2 changes for 1.2 or v2.0
Verification:
All Nearby Players: The foreach loop checks every player and awards XP to each one within PROXIMITY_RADIUS (10 meters).
Not Global: If no players are within range, no XP is awarded (no global fallback).
Proximity-Based: Only players close to the trap get XP.
Example Scenario:
Spike trap at (0,0,0) kills a zombie
Player A at (5,0,0) (5m away) gets 100 XP
Player B at (8,0,0) (8m away) gets 100 XP
Player C at (15,0,0) (15m away) gets nothing
All players beyond 10m get nothing
If a spike trap kills a “zombieSoldier” at (0,0,0):
Player “Bob” at 5m: [TechFreqsSharedSpikeTrapXPMod] Bob gained 100 XP for killing zombieSoldier (Distance: 5.0m)
Player “Alice” at 8m: [TechFreqsSharedSpikeTrapXPMod] Alice gained 100 XP for killing zombieSoldier (Distance: 8.0m)
Summary: [TechFreqsSharedSpikeTrapXPMod] Shared 100 XP with 2 player(s) near trap for killing zombieSoldier.
If no players are nearby: [TechFreqsSharedSpikeTrapXPMod] No players within 10m of trap that killed zombieSoldier.
Verification:
Still awards XP to all players within 10 meters.
No global XP distribution.
Now includes the entity name (zombie or animal) in the debug logs, like your original code.

AS FOR V3 Changes for 1.3 or v3.0
Adding a config.json for adjustable radius and XP is an easy win for flexibility.
Land Claim Block Radius ALIKE DISTANCE : matchign the range to the land claim block’s distance
(default is 41×41 meters in 7 Days to Die, centered on the block, so ~20.5m radius). This would cover all traps in your claimed area nicely.
but default to Proximity Radius of 20 meter distance and 100xp amount but with V3 its changed to 30m and 150xp but up to you!

AS FOR V4 Changes for v4.0:
Verification:- All Nearby Players: The foreach loop checks every player and awards XP to each one within PROXIMITY_RADIUS (default 30m—close to land claim’s ~20.5m if you tweak it!).- Not Global: No players in range? No XP—keeps it tight and local.

Proximity-Based: Only trap heroes nearby get the goods! Example Scenario:Spike trap at (0,0,0) kills a zombie:- Player A at (5,0,0) (5m away) gets 150 XP- Player B at (15,0,0) (15m away) gets 150 XP- Player C at (25,0,0) (25m away) gets nada All players beyond 20m get zilch—simple and sweet!If a spike trap kills a “zombieBoe” at (0,0,0):- Player “TechFreq” at 5m: [TechFreqsSharedSpikeTrapXPMod] Awarded 150 XP to TechFreq (Distance: 5.0m)- Player “Queenserenity__” at 15m: [TechFreqsSharedSpikeTrapXPMod] Awarded 150 XP to Queenserenity__ (Distance: 15.0m)- Summary: [TechFreqsSharedSpikeTrapXPMod] Shared 150 XP with 2 player(s) for zombieBoeIf no one’s nearby:
Silence—no log clutter!
Verification:- Awards XP to all players within 20m—tested and golden across non-dedicated and dedicated servers!- No global XP nonsense—only the close crew scores.- Logs are lean—only confirmed kills and XP awards, plus entity names for that extra flavor!- Config.json keeps it flexible—default 20m radius and 150 XP, but tweak it to match land claim size (20.5m) or go wild!- Dedicated server tested—works like a charm with just the client mod installed!

7 days to die techfreqs shared spike trap xp mod additional screenshot 1

7 days to die techfreqs shared spike trap xp mod additional screenshot 2

DOWNLOAD (9 KB)

If you appreciate TechFreq’s work and you want to show support, use this donate link.

Credits: TechFreq

Share this with your friends:
Subscribe
Notify of
guest

If you have any questions or have any problems/bugs, please use the support link (Discord, Forum Topic, GitHub Issues, etc.) in the post. If there is no support link in the post, please use the comments section.

0 Comments
Inline Feedbacks
View all comments