Please rate 5 ⭐
License: https://sites.google.com/view/cmskripts/license-jam
PufferfishPVP Advanced Skript
Overview:
The PufferfishPVP Advanced Skript provides an exciting PVP experience by introducing unique items such as the Knockback Hoe, Pufferfish Bucket, and Pufferfish Bow. These items come with custom behaviors, cooldown management, and real-time feedback. The script also includes a range of customization options, allowing server admins to tailor the gameplay to their needs.
Thanks for so many Downloads!
Features:
- Custom Items: Unique weapons like the Knockback Hoe, Pufferfish Bucket, and Pufferfish Bow with special effects and enchantments.
- Cooldown Management: Configurable cooldowns for each item to balance gameplay and prevent spamming.
- Customizable Options: Modify item names, cooldown durations, inventory slots, and other behaviors to fit your server's gameplay style.
- Bow Animation Toggle: Option to disable the bow's shooting animation, allowing for instant pufferfish spawning at a set distance.
- Safe Pufferfish Spawning: Ensures that pufferfish do not spawn inside blocks, providing a more reliable experience.
- Water Spawning Option: Option to spawn water along with the pufferfish for added environmental effects.
- Action Bar Feedback: Displays real-time cooldown status in the action bar for quick reference during gameplay.
- Item Slot Locking: Prevents players from moving or dropping custom items, ensuring they always have the tools they need.
- Fall Damage Prevention: Pufferfish spawned by the bow are protected from fall damage, ensuring they land safely.
Options and Configuration:
The script includes several options that can be customized to tailor the experience to your server's needs:
Options:
- hoe_slot: Inventory slot for the Knockback Hoe.
- pufferfish_slot: Inventory slot for the Pufferfish Bucket.
- bow_slot: Inventory slot for the Pufferfish Bow.
- hoe_name: Display name for the Knockback Hoe.
- pufferfish_name: Display name for the Pufferfish Bucket.
- bow_name: Display name for the Pufferfish Bow.
- pufferfish_cooldown: Cooldown time (in seconds) for the Pufferfish Bucket.
- bow_cooldown: Cooldown time (in seconds) for the Pufferfish Bow.
- spawn_water: Whether to spawn water with the pufferfish (true/false).
- max_flight_time: Maximum flight time (in seconds) for the bow's pufferfish animation.
- disable_bow_animation: If set to true, the bow animation is disabled, and the pufferfish will instantly spawn at the maximum shoot distance or the nearest air block.
- max_spawn_distance: Pufferfish bucket spawn radius
- max_spawn_distance: Maximum distance for spawning pufferfish
How to Use:
Inventory Setup:
When a player joins, their inventory will be automatically updated with the custom items:
- Slot 0: Knockback Hoe
- Slot 1: Pufferfish Bucket
- Slot 2: Pufferfish Bow
Item Usage:
- Knockback Hoe: This hoe has a Knockback II enchantment and can be used to knock players back with a force of 2. It deals a consistent 1 damage when used.
- Pufferfish Bucket: When used, this item will spawn a pufferfish at the location 1 block above the player's target block. If spawn_water is enabled, water will also be spawned at the location. The item has a cooldown specified by pufferfish_cooldown.
- Pufferfish Bow: When used, the bow will either:
- With Animation: Launch a pufferfish that moves forward up to 14 blocks, following the player's aim. The pufferfish will fall to the ground after either hitting a block or reaching the maximum distance.
- Without Animation: Instantly spawn a pufferfish at the nearest air block up to the maximum distance specified by max_shoot_distance.
Cooldown Management:
The cooldown for both the Pufferfish Bucket and Pufferfish Bow is managed automatically. The remaining cooldown time is displayed in the action bar when attempting to use these items. If the item is on cooldown, it will appear as a barrier in the inventory with the remaining time displayed in the item name.
Commands:
- /pufferfish: Displays information about the PufferfishPVP Advanced Skript, including the author and version.
Event Handling:
- Event: on script load - Initializes the pufferfish items and sets them in the player's inventory.
- Event: every tick - Continuously updates each player's inventory to ensure the correct items are present.
- Event: on join - Updates the player's inventory with the correct items when they join the server.
- Event: on right click - Handles the actions when the player right-clicks with either the Pufferfish Bucket or the Pufferfish Bow.
- Event: on damage of pufferfish - Prevents pufferfish from taking fall damage after being spawned by the bow.
- Event: on damage - Adjusts the damage and knockback effect when using the Knockback Hoe.
- Event: on right click on grass or dirt - Prevents players from tilling soil with the Knockback Hoe.
- Event: on inventory click - Prevents players from moving the custom items out of their designated inventory slots.