i want to use workspace
Welcome to the workspace. It doesn’t have any projects yet. Do you want to:
Create a new project? Tell me what you want to build, for example a Minecraft plugin, a Fabric or NeoForge mod, a Discord bot, a datapack, or a Chrome extension.
Add existing projects? You can add them from the workspace view. Once they’re listed, I can direct their developers.
I have imported a plugin named "GaandSteal" this should be the exact name. In this every player have their own "Gaand" which is not in their inventory but it is shown above their xp bar 3 little dots at starting every player will have only one circle filled if he kill anyone he will drop his "Gaand" named on his name <player name>'s Gaand . everyone can only equip maximum of 3 Gaand. also add if any player kills someone then it will be written in chat as custom text that <killer name> has stolen <killed player name>'gaand. only one gaand will be dropped on killing. If a player loses all his gaands then he will be banned and it will be written as "<playername> ki Gaand mar gayi!" . add it as a item which we can get by command (only op). I have given gaand.bbmodel
I’ve sent the GaandSteal project (listed here as “gaand.bbmodel”) to its developer. The plugin already has most of your spec: one dot filled at start, 3-Gaand cap, drop on kill, the steal message, the ban message, and an OP-only /gaandsteal give command. The developer is fixing the gaps: Gaands vanishing when keepInventory is on, the exact chat and ban wording, and making the item use gaand.bbmodel. A resource pack may be needed to show the 3D model; I’ll tell you when the report arrives.
Make death drops independent of the normal drop list so
keepInventorycannot suppress the Gaand or create duplicates.Restrict zero-Gaand banning to the player-kill transition and preserve the exact broadcast and kick wording.
Add a CustomModelData hook for a resource-pack model mapping; leave the base item as named PAPER.Updated
GaandStealPlugin.java:
A player kill now spawns exactly one Gaand directly at the victim’s death location, independent of the normal death-drop list. The victim’s count decreases once.
The kill message remains exactly
<killer> has stolen <victim>'s Gaand. When the count reaches zero from a player kill, the ban broadcast and kick both use exactly<player> ki Gaand mar gayi!. Removed the separate join-time ban path.Gaand items remain named PAPER, now marked with CustomModelData
61001for an optional resource-pack mapping. The plugin name and main class remainGaandStealandcom.kodari.gaandsteal.GaandStealPlugin.
The .bbmodel cannot render directly in-game through the plugin alone. To show its appearance, export it from Blockbench as a Java item model and texture, then create a Minecraft 1.21.4-compatible resource pack that maps PAPER with CustomModelData 61001 to that model. Distribute the pack to players; without it, the item displays as named PAPER.
The GaandSteal plugin is updated and compiles successfully.
What changed:
Keep Inventory fix: A player kill now spawns the Gaand at the victim’s death location, separately from the normal drop list. It can’t vanish or be duplicated when
keepInventoryis on.Chat and ban text: The kill message is
<killer> has stolen <victim>'s Gaand. The ban broadcast and kick both use<player> ki Gaand mar gayi!. The ban only triggers when a player kill takes the count to zero.Item model: The Gaand is still a named PAPER item, now tagged with CustomModelData
61001.
Not verified: I checked the death, chat, and ban code, but not the 3-dot display above the XP bar. Test that in-game.
Limits:
The
.bbmodelwon’t show in-game without a resource pack. To get the 3D look, export the model from Blockbench as a Java item model with its texture, then add a resource pack that maps PAPER with CustomModelData61001to that model. Without the pack, players see a plain named paper.Players need the resource pack for the custom look. The plugin works without it.
add .bbmodel as resource pack
I’ve started the resource pack build with the GaandSteal developer. It will convert gaand.bbmodel into a 1.21.4 pack that maps the Gaand item (CustomModelData 61001) to the 3D model, and it will leave the .bbmodel file untouched. The pack will be a zip in the project’s resourcepack/ folder. Once it’s done, the server needs to host the zip at a public URL and set resource-pack in server.properties for players to download it.
No files in this session