Overview
This prompt aims to guide developers in creating a modular script for game admin commands and a fruit rain feature. Game developers and programmers will benefit from the structured approach and clear requirements provided.
Prompt Overview
Purpose: This script facilitates the execution of admin commands and introduces a fun fruit rain feature in a game.
Audience: Game developers and administrators looking to enhance their gaming environment with interactive features.
Distinctive Feature: The modular design allows easy integration into existing game systems while providing robust admin functionalities.
Outcome: Players will enjoy a more dynamic experience with admin controls and the whimsical fruit rain event.
Quick Specs
- Media: Text
- Use case: Generation
- Industry: Content & Media Creation, Development Tools & DevOps, Productivity & Workflow
- Techniques: Decomposition, Role/Persona Prompting, Structured Output
- Models: Claude 3.5 Sonnet, Gemini 2.0 Flash, GPT-4o, Llama 3.1 70B
- Estimated time: 10-20 minutes
- Skill level: Intermediate
Variables to Fill
- [player] – Player
- [item] – Item
- [programming language] – Programming Language
Example Variables Block
- [player]: JohnDoe
- [item]: GoldenApple
The Prompt
Create a script that allows the execution of various admin commands and initiates a fruit rain effect in a game. The script should be modular and easy to integrate into an existing game environment.
### Script Requirements:
– Admin Commands: Include a set of commands that administrators can execute, such as:
– `/ban [player]` – Bans a specified player from the game.
– `/kick [player]` – Kicks a specified player from the game.
– `/give [player] [item]` – Gives a specified item to a player.
– Fruit Rain Feature: Implement a command that triggers a fruit rain event.
– The command should be `/fruittoggle` to start or stop the fruit rain.
– The fruits should fall from the top of the game environment at regular intervals, and players should be able to collect them.
### Output Format:
The output should be a script written in **[programming language]** (e.g., JavaScript, Python). Format the script clearly, with comments explaining each section for ease of understanding.
### Examples:
1. Example Admin Command Usage:
– Input: `/kick JohnDoe`
– Output: `JohnDoe has been kicked from the game.`
2. Example Fruit Rain Activation:
– Input: `/fruittoggle`
– Output: `Fruit rain has started!`
### Notes:
– Ensure the script validates user permissions before executing admin commands.
– Include error handling for invalid commands or players.
– Enhance the fruit rain effect with visual and sound effects for a better user experience.
Screenshot Examples
How to Use This Prompt
- [ADMIN_COMMANDS]: Set of admin commands for game.
- [FRUIT_RAIN]: Command to trigger fruit rain event.
- [USER_PERMISSIONS]: Validates user permissions for commands.
- [ERROR_HANDLING]: Manages invalid commands and players.
- [ITEM_GIVE]: Grants specified items to players.
- [COMMAND_OUTPUT]: Displays results of executed commands.
- [FALL_INTERVAL]: Time interval for falling fruits.
- [VISUAL_EFFECTS]: Enhancements for fruit rain experience.
Tips for Best Results
- Modular Design: Structure your script into functions for each command to ensure easy integration and maintenance.
- User Permissions: Always check if the user has admin privileges before executing any commands to prevent unauthorized actions.
- Error Handling: Implement robust error messages for invalid commands or non-existent players to enhance user experience.
- Visual Effects: Add animations and sound effects for the fruit rain to make the event more engaging for players.
FAQ
- What is the purpose of the admin commands?
Admin commands allow administrators to manage players and game events effectively. - How does the fruit rain feature work?
The fruit rain feature triggers falling fruits that players can collect, enhancing gameplay. - What command starts the fruit rain?
The command to start the fruit rain is `/fruittoggle`. - What happens when a player is banned?
When banned, the specified player is removed from the game and cannot rejoin.
Compliance and Best Practices
- Best Practice: Review AI output for accuracy and relevance before use.
- Privacy: Avoid sharing personal, financial, or confidential data in prompts.
- Platform Policy: Your use of AI tools must comply with their terms and your local laws.
Revision History
- Version 1.0 (February 2026): Initial release.


