Project Zomboid

Project Zomboid

评价数不足
[B41] Admin Item Spawner
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
121.689 KB
8 月 10 日 上午 11:31
8 月 14 日 下午 12:34
2 项改动说明 ( 查看 )

订阅以下载
[B41] Admin Item Spawner

描述
A comprehensive admin tool that provides flexible item spawning capabilities with multiple targeting modes.

Core Features
  • Three Spawn Modes: Local radius-based, Global server-wide and Player-specific targeting
  • Coordinate Selection: Use "Pick Square" to visually select exact spawn locations on the map
  • Visual Radius Indicator: Red circular marker shows the affected area for local spawning
  • Multi-Item Support: Spawn multiple items simultaneously using simple syntax
  • Player Management: Real-time player list with username and display name support
  • Comprehensive Logging: Server-side logging of all spawn actions for admin oversight
  • Multi-Access Integration: Available through Admin Panel and Debug Menu

Spawn Modes Explained
  • Local Spawn (Within Radius): Items spawn to all players inventories within a specified radius from selected coordinates. Perfect for area-specific rewards or events.
  • Global Spawn (All Players): Items spawn to every player inventory on the server regardless of location. Ideal for server-wide announcements or rewards.
  • Target Player: Items spawn directly into a specific player's inventory. Works at any distance.

How to Use
  • Access the tool through Admin Panel, Debug Menu (requires admin privileges on servers)
  • Choose your spawn mode based on your needs
  • (Optional) For Local Spawn select spawn coordinates using "Pick Square" button for precise location targeting
  • For Local mode: Set the radius to determine which players receive items
  • For Player mode: Select the target player from the dynamic player list
  • Enter items using the format (see below an example): "Module.ItemType=Amount" (one per line or separated by semicolons)
  • Click Spawn to execute the operation

Items List Format Examples
Base.Axe;Base.Acorn=5; Base.Hammer=2;Base.SheetPaper2=10; Base.Nails=25;Base.WoodenStick=15;

Advanced Features
  • Smart Item Parsing: Automatically handles both "Module.ItemType" (defaults to 1) and "Module.ItemType=Amount" formats
  • Real-time Updates: Player list automatically updates when players join/leave the server
  • Visual Feedback: Clear UI visual indicators show which spawn mode is active and what area is affected
  • Cross-Platform Support: Works in singleplayer and dedicated server environments

Technical Details
  • Requires admin privileges in multiplayer environments
  • Comprehensive server-side logging for security and audit purposes
  • Optimized performance with minimal impact on game performance

Use Cases
  • Server administration and player management
  • Event hosting and reward distribution
  • Player support and item recovery
  • Custom game modes and scenarios

Requirements
  • ElyonLib
  • Starlit Library
Load these before Admin Item Spawner.



Frequently Asked Question:

Is it compatible with Multiplayer?
Absolutely! Extensively tested and fully functional on MP servers.

Does it work on existing saves?
Absolutely! Enable it mid-save without issues.

Does it work for all game versions?
Only tested and working on the latest game version (v41.78.16).

Developer Note: This mod is in development, featuring the latest improvements and experimental features. While thoroughly tested, some features may be refined in future stable releases.

This mod was commissioned by the Dawn of the Dead community. I'm open to new commissions - contact me on Discord .ely0n or find me in the PZ Modding Discord.



[discord.gg]

[github.com][ko-fi.com]
引用自 author
This mod's permissions fall under TIS's policy On Lockdown [theindiestone.com]
This mod cannot be modified by anyone else, for anything else, at all, ever. Even if the user disappears, they would much rather you didn't touch the fruits of their hard labour.
[theindiestone.com]

Workshop ID: 3546343421
Mod ID: AdminItemSpawner
2 条留言
EuphoriaDreamer9 8 月 18 日 下午 8:21 
I tried to follow all instructions and still wasn't able to use it
PilotBug 8 月 18 日 下午 5:56 
is this compatible with SINGLE player though?