example model in png
--- 📎 Attached 1 file(s):
File: PLUSHIE_HUNT_DEV_DOC.txt
Plushie Hunt – Developer Documentation (text version)
What it is
--------
Plushie Hunt is a simple minigame for Minecraft in which players collect plushies.
Each round determines which plushie the players must find and bring to the finish line.
The game takes place in a designated area of the map, where the plushies are randomly placed.
Over time, the time limit and the number of plushies are reduced, so players are gradually eliminated.
The last player left in the game wins.
Basic principle of the game
-------------------
1. Players join the lobby and wait to start.
2. Once the required number of players is reached, the game starts.
3. The game determines which plushie to look for in a given round (e.g. fox, enderman, creeper).
4. A certain number of plushies of this type are placed around the map.
5. Players run around the map and look for the right plushie.
6. Whoever picks up the stuffed animal and brings it to the target area has completed the round.
7. After the time runs out, all players who have not found the stuffed animal are eliminated.
8. The next round follows - shorter time, fewer stuffed animals, more tension.
9. The game ends when only one player remains, or when the last round is played.
Main parts of the system
--------------------
Lobby:
- Serves as a waiting area before the game starts.
- Players cannot move game elements here.
- Once the minimum number of players is reached, a countdown starts.
- After the countdown, all players are teleported to the game map.
Game area (map):
- The entire map must be bounded by a region so that players cannot escape outside the game zone.
- The region is defined by two corners (coordinates) – for example:
- Lower left corner (corner1)
- Upper right corner (corner2)
- Players outside the region can be:
- automatically teleported back to the center of the area, or
- notified with a message that they have left the field.
- Stuffed animals will also be deployed to the same region.
Stuffed animals (game items):
- Each stuffed animal has its own type – for example:
- Fox
- Enderman
- Creeper
- The type of stuffed animal is determined by:
- its appearance (model),
- its name,
- and a unique identifier (CustomModelData) used in the resource pack.
- The stuffed animal is displayed in the game as a small model (e.g. via ArmorStand or Display entity).
- The player interacts with the stuffed animal by clicking on it – if it is the correct type, it is marked as found.
Rounds:
- The game consists of several rounds.
- Each round has a specific type of stuffed animal, a time limit, and the number of stuffed animals spread across the map.
- After each round, the time decreases and there are fewer stuffed animals, which increases the difficulty.
Collecting stuffed animals:
- When the player finds a stuffed animal and clicks on it, they collect it.
- The stuffed animal disappears from the map.
- The player marks themselves as the one who completed the task.
- If the player does not find the stuffed animal within the time limit → they are eliminated.
Goal and elimination:
- Players who complete the task go to the next round.
- The others are eliminated.
- If one player remains, the game ends and that player is the winner.
Map boundaries
----------------
To make the game take place only in a certain part of the world, the map needs to be delimited by a region.
A region is defined by two corners (coordinates).
Players move between these corners, place stuffed animals, and the entire game takes place.
If a player crosses the region border:
- the plugin can automatically teleport him back to the center of the region, or
- just show him a warning and prohibit further movement outside the field.
Game Configuration
----------------
In the configuration file (e.g. config.yml) you can set:
- Minimum number of players to start the game
- Round duration
- Time reduction after each round
- Number of plushies in the first round
- How many plushies to remove after each round
- Map region coordinates (corner1, corner2)
Example:
game:
min_players: 3
start_countdown: 15
base_round_time: 30
time_decrement: 5
plushies_per_round: 10
plushie_decrement: 2
map:
corner1: world,100,64,100
corner2: world,200,80,200
Models and Resource Pack
---------------------
- Each plushie has its own model created in Blockbench.
- The model is exported to the Minecraft resource pack.
- Each model has its own CustomModelData (unique number).
- The plugin assigns the correct model when spawning an entity based on the type of stuffed animal.
- This ensures that the stuffed animal will look correct in the game.
Gameplay – summary
--------------------
1. Players wait in the lobby.
2. After the countdown, the game starts.
3. The type of stuffed animal is selected (e.g. Enderman).
4. Several stuffed animals are placed around the map.
5. Players run around looking for the correct one.
6. Whoever finds the stuffed animal completes the round.
7. After the time runs out, the others are eliminated.
8. New round – less time and fewer stuffed animals.
9. When the last player remains, the game ends.
What the developer must do
-------------------------
1. Prepare a map with clearly defined boundaries (region).
2. Create or import stuffed animal models from Blockbench.
3. Ensure that the plugin:
- places the stuffed animals within the region,
- checks who has picked up the stuffed animal,
- eliminates players after the time expires,
- ensures that players stay in the area.
4. Gradually reduce the time and number of stuffed animals after each round.
5. End the game after determining the winner.
Summary of the logic
------------
- Players: tracks who is active and who is eliminated.
- Rounds: determine the type of stuffed animal, time and placement.
- Map: has a defined area (region).
- Stuffed animals: have different models (CustomModelDatata).
- Time: decreases after each round.
- Goal: to be the last player standing.
This document describes the game concept, system and operation without programming code.
Thanks to it, every developer will understand how the game works and how it should be implemented.
I’ll create a Plushie Hunt minigame plugin based on the documentation and the plushie model example shown.
Now I’ll create the complete plugin structure:
📄
pasted-code-1759927366837.txt
txt
144 lines
▶
Plushie Hunt – Developer Documentation (text version)
What it is
--------
Plushie Hunt is a simple minigame for Minecraft in which players collect plushies.
Each round determines which plushie the players must find and bring to the finish line.
The game takes place in a designated area of the map, where the plushies are randomly placed.
Over time, the time limit and the number of plushies are reduced, so players are gradually eliminated.
The last player left in the game wins.
Basic principle of the game
-------------------
1. Players join the lobby and wait to start.
2. Once the required number of players is reached, the game starts.
3. The game determines which plushie to look for in a given round (e.g. fox, enderman, creeper).
4. A certain number of plushies of this type are placed around the map.
5. Players run around the map and look for the right plushie.
6. Whoever picks up the stuffed animal and brings it to the target area has completed the round.
7. After the time runs out, all players who have not found the stuffed animal are eliminated.
8. The next round follows - shorter time, fewer stuffed animals, more tension.
9. The game ends when only one player remains, or when the last round is played.
Main parts of the system
--------------------
Lobby:
- Serves as a waiting area before the game starts.
- Players cannot move game elements here.
- Once the minimum number of players is reached, a countdown starts.
- After the countdown, all players are teleported to the game map.
Game area (map):
- The entire map must be bounded by a region so that players cannot escape outside the game zone.
- The region is defined by two corners (coordinates) – for example:
- Lower left corner (corner1)
- Upper right corner (corner2)
- Players outside the region can be:
- automatically teleported back to the center of the area, or
- notified with a message that they have left the field.
- Stuffed animals will also be deployed to the same region.
Stuffed animals (game items):
- Each stuffed animal has its own type – for example:
- Fox
- Enderman
- Creeper
- The type of stuffed animal is determined by:
- its appearance (model),
- its name,
- and a unique identifier (CustomModelData) used in the resource pack.
- The stuffed animal is displayed in the game as a small model (e.g. via ArmorStand or Display entity).
- The player interacts with the stuffed animal by clicking on it – if it is the correct type, it is marked as found.
Rounds:
- The game consists of several rounds.
- Each round has a specific type of stuffed animal, a time limit, and the number of stuffed animals spread across the map.
- After each round, the time decreases and there are fewer stuffed animals, which increases the difficulty.
Collecting stuffed animals:
- When the player finds a stuffed animal and clicks on it, they collect it.
- The stuffed animal disappears from the map.
- The player marks themselves as the one who completed the task.
- If the player does not find the stuffed animal within the time limit → they are eliminated.
Goal and elimination:
- Players who complete the task go to the next round.
- The others are eliminated.
- If one player remains, the game ends and that player is the winner.
Map boundaries
----------------
To make the game take place only in a certain part of the world, the map needs to be delimited by a region.
A region is defined by two corners (coordinates).
Players move between these corners, place stuffed animals, and the entire game takes place.
If a player crosses the region border:
- the plugin can automatically teleport him back to the center of the region, or
- just show him a warning and prohibit further movement outside the field.
Game Configuration
----------------
In the configuration file (e.g. config.yml) you can set:
- Minimum number of players to start the game
- Round duration
- Time reduction after each round
- Number of plushies in the first round
- How many plushies to remove after each round
- Map region coordinates (corner1, corner2)
Example:
game:
min_players: 3
start_countdown: 15
base_round_time: 30
time_decrement: 5
plushies_per_round: 10
plushie_decrement: 2
map:
corner1: world,100,64,100
corner2: world,200,80,200
Models and Resource Pack
---------------------
- Each plushie has its own model created in Blockbench.
- The model is exported to the Minecraft resource pack.
- Each model has its own CustomModelData (unique number).
- The plugin assigns the correct model when spawning an entity based on the type of stuffed animal.
- This ensures that the stuffed animal will look correct in the game.
Gameplay – summary
--------------------
1. Players wait in the lobby.
2. After the countdown, the game starts.
3. The type of stuffed animal is selected (e.g. Enderman).
4. Several stuffed animals are placed around the map.
5. Players run around looking for the correct one.
6. Whoever finds the stuffed animal completes the round.
7. After the time runs out, the others are eliminated.
8. New round – less time and fewer stuffed animals.
9. When the last player remains, the game ends.
What the developer must do
-------------------------
1. Prepare a map with clearly defined boundaries (region).
2. Create or import stuffed animal models from Blockbench.
3. Ensure that the plugin:
- places the stuffed animals within the region,
- checks who has picked up the stuffed animal,
- eliminates players after the time expires,
- ensures that players stay in the area.
4. Gradually reduce the time and number of stuffed animals after each round.
5. End the game after determining the winner.
Summary of the logic
------------
- Players: tracks who is active and who is eliminated.
- Rounds: determine the type of stuffed animal, time and placement.
- Map: has a defined area (region).
- Stuffed animals: have different models (CustomModelDatata).
- Time: decreases after each round.
- Goal: to be the last player standing.
This document describes the game concept, system and operation without programming code.
Thanks to it, every developer will understand how the game works and how it should be implemented.
I’ll analyze the current implementation and compare it with the documentation to identify what’s missing and needs to be implemented.
Now I’ll create the complete Plushie Hunt plugin based on the documentation. The plugin needs several missing components:
Command handler - for admin and player commands
Player listener - for interaction and movement
Game state enum - to track game phases
Round class - to manage individual rounds
Plushie entity - to spawn and manage plushies
Region checker - to keep players within bounds
Let me create all the missing files:
Now I need to update the main plugin class to properly register the command with tab completion:
Summary
I’ve created a complete Plushie Hunt minigame plugin based on the documentation. Here’s what was implemented:
Core Features:
Lobby System - Players join and wait for minimum players before countdown starts
Game Rounds - Progressive difficulty with decreasing time and plushie counts
Plushie Spawning - Random placement of armor stands with custom model data within map bounds
Player Elimination - Players who don’t collect plushies in time are eliminated
Boundary Checking - Players are teleported back if they leave the game area
Win Condition - Last player standing wins
Created Files:
GameState.java- Enum for game phases (WAITING, STARTING, RUNNING, ENDING)Round.java- Manages individual rounds with timers, plushie spawning, and cleanupPlushieHuntCommand.java- Command handler with tab completion for all game commandsPlayerListener.java- Handles plushie interaction, movement bounds, and player disconnects
Commands:
/ph join- Join the game/ph leave- Leave the game/ph start- Force start (admin)/ph stop- Stop game (admin)/ph setlobby- Set lobby spawn point/ph setcorner1/setcorner2- Define game area boundaries/ph reload- Reload configuration
How It Works:
Players join the lobby via
/ph joinWhen minimum players reached, 15-second countdown begins
Players teleport to game spawn, Round 1 starts
Random plushie type selected, spawned as invisible armor stands with custom models
Players right-click plushies to collect them
After time expires, players without plushies are eliminated
Next round starts with less time and fewer plushies
Game continues until one winner remains
The plugin uses armor stands with custom model data for plushies (requires resource pack) and includes full boundary checking to keep players within the defined region.
here have plushies 3d models https://builtbybit.com/resources/itemsadder-plushies.45673/
I’ll help you integrate 3D plushie models from ItemsAdder into your PlushieHunt plugin. Let me first examine the current code to understand how to add ItemsAdder support.
I’ll integrate ItemsAdder support to use 3D plushie models instead of armor stands with custom model data. This will allow you to use the plushies from the resource pack you linked.
Now I’ll update the plugin to support ItemsAdder 3D furniture models for plushies. I’ll add ItemsAdder as a soft dependency and create a system that can use either ItemsAdder furniture or fallback to armor stands.
Perfect! I’ve successfully integrated ItemsAdder support for 3D plushie models into your PlushieHunt plugin. Here’s what I’ve added:
Key Features:
1. ItemsAdder Integration
Added ItemsAdder API dependency to
build.gradleMade ItemsAdder a soft dependency (plugin works without it)
Automatic detection if ItemsAdder is available
2. Dual Mode System
ItemsAdder Mode: Uses 3D furniture models from ItemsAdder
Fallback Mode: Uses armor stands with custom model data if ItemsAdder isn’t available
Configurable via
game.use_itemsadder: truein config.yml
3. Updated Configuration
Each plushie now has both
itemsadder_idandcustom_model_dataAdded 10 plushie types (fox, enderman, creeper, pig, bee, cat, dog, axolotl, frog, panda)
Example:
itemsadder_id: "plushies:fox_plushie"
4. Event Handling
Added
FurnitureInteractEventlistener for ItemsAdder furniture clicksMaintains backward compatibility with armor stand interactions
Prevents default furniture interactions during the game
5. Smart Spawning
Tries to spawn ItemsAdder furniture first
Automatically falls back to armor stands if furniture spawn fails
Logs warnings for debugging
How to Use:
Install ItemsAdder and the plushies resource pack from the link you provided
Update config.yml with the correct ItemsAdder namespaced IDs for your plushies
Set
use_itemsadder: truein the config (already set by default)The plugin will automatically use 3D models when available!
The plugin now supports beautiful 3D plushie models while maintaining full backward compatibility! 🧸✨
The compilation failed with this error:
Validation failed for compilation: Compilation failed with 2 error(s):
ERROR in src/main/java/com/plushiehunt/listener/PlayerListener.java at line 29: incompatible types: Entity cannot be converted to ArmorStand
plugin.getGameManager().handlePlushieClick(player, entity);
^
ERROR in src/main/java/com/plushiehunt/listener/PlayerListener.java at line 39: incompatible types: Entity cannot be converted to ArmorStand
plugin.getGameManager().handlePlushieClick(player, entity);
^
=== COMPILATION ERROR ANALYSIS ===
TYPE MISMATCHES:
- incompatible types: Entity cannot be converted to ArmorStand
- incompatible types: Entity cannot be converted to ArmorStand
ACTION: Fix variable types or casting
FILES TO INVESTIGATE:
- src/main/java/com/plushiehunt/listener/PlayerListener.java
exceeds maximum
Please fix this error by creating a new artifact with the corrected code.
I can see the issue. The handlePlushieClick method in GameManager expects an ArmorStand parameter, but PlayerListener is passing an Entity. I need to cast the Entity to ArmorStand before passing it, or check if it’s an ArmorStand first.
spawnulo mě to pod mapu při startu hry! a píše to že jsem mimo arenu takže se nemohu hýbat
Podívám se na kód, abych zjistil, proč tě to spawne pod mapu a proč to hlásí, že jsi mimo arénu.
Vidím problém! Když hra začíná, všichni hráči se teleportují na spawn location (150, 65, 150), ale pak se kontroluje, jestli jsou v bounds arény. Problém je, že:
Spawn je Y=65 ale bounds kontrola vyžaduje, aby hráč byl mezi Y=64 a Y=80
PlayerMoveEvent kontroluje bounds hned po startu - i když jsi na spawnu, systém tě může vyhodnotit jako “mimo arénu”
isActive() vrací true hned po startu, takže kontrola bounds se aktivuje okamžitě
Opravím to:
Nyní uprav spawn location v configu, aby byl správně uvnitř bounds a nad zemí:
Co jsem opravil:
PlayerMoveEvent nyní canceluje event místo teleportace - tím pádem se pohyb vůbec neprovede a zůstaneš na místě
Přidána kontrola, jestli se hráč skutečně pohnul - ignoruje rotaci hlavy
Config má přesnější koordináty (.5 pro centrování v bloku)
Důležité: Použij /phunt setspawn ve hře na místě, kde chceš, aby hráči spawnovali! Musí to být uvnitř arény (mezi corner1 a corner2) a nad pevným blokem.
package com.plushiehunt;
import com.plushiehunt.command.PlushieHuntCommand;
import com.plushiehunt.game.GameManager;
import com.plushiehunt.listener.PlayerListener;
import org.bukkit.plugin.java.JavaPlugin;
public class PlushieHuntPlugin extends JavaPlugin {
private GameManager gameManager;
private ConfigManager configManager;
@Override
public void onEnable() {
saveDefaultConfig();
this.configManager = new ConfigManager(this);
this.gameManager = new GameManager(this);
PlushieHuntCommand commandExecutor = new PlushieHuntCommand(this);
getCommand("plushiehunt").setExecutor(commandExecutor);
getCommand("plushiehunt").setTabCompleter(commandExecutor);
getServer().getPluginManager().registerEvents(new PlayerListener(this), this);
getLogger().info("PlushieHunt enabled!");
}
@Override
public void onDisable() {
if (gameManager != null) {
gameManager.stopGame();
}
getLogger().info("PlushieHunt disabled!");
}
public GameManager getGameManager() {
return gameManager;
}
public ConfigManager getConfigManager() {
return configManager;
}
}