📄
pasted-code-1789133417323.txt
txt
926 lines
▶
# FALIXWEAPONS — COMPLETE MINECRAFT PAPER 1.21+ PLUGIN
Create a **production-ready Minecraft Paper plugin** named **FalixWeapons** for **Minecraft 1.21+** using **Java 21+** and the Paper API.
The plugin must compile successfully and be suitable for a real SMP server.
## 1. CORE REQUIREMENTS
* Plugin name: `FalixWeapons`
* Main package: `me.falix.weapons`
* Target platform: **Paper 1.21+**
* Support **Minecraft 1.21 and all compatible 1.21.x versions**
* Java: **Java 21+**
* Use modern Paper/Bukkit APIs compatible with Paper 1.21+.
* Do NOT hard-code features that only work on one specific 1.21.x version.
* Avoid deprecated APIs where possible.
* Build a complete Gradle or Maven project.
* The final project must compile without errors.
* Provide a final ZIP containing the complete source project.
* Do NOT include the resource pack inside the plugin ZIP.
* Do NOT generate or modify textures/models/animations.
---
# 2. RESOURCE PACK COMPATIBILITY
The server owner already has a resource pack named:
`CustomWeapons.zip`
The supplied resource pack is the **source of truth for weapon visuals**.
Do NOT:
* regenerate textures
* create new textures
* rename the supplied weapon model IDs
* replace the supplied models
* modify the resource pack
* create animations
* include a resource pack inside the plugin
The plugin must create items that correctly use these supplied model IDs when the resource pack is installed.
### Weapon model IDs
Use these exact model identifiers:
```text
customweapons:item/abyssal_mace
customweapons:item/graveborn_scythe
customweapons:item/inferno_blade
customweapons:item/tempest_bow
customweapons:item/frostfang_dagger
```
The plugin should preferably use the modern 1.21+ item-model system:
```text
minecraft:item_model
```
with the corresponding namespaced model ID.
Example:
```text
minecraft:item_model = customweapons:item/inferno_blade
```
Also keep configurable fallback support for servers/resource packs that use CustomModelData.
Default compatibility values:
```text
Abyssal Mace = 1001
Graveborn Scythe = 1002
Inferno Blade = 1003
Tempest Bow = 1004
Frostfang Dagger = 1005
```
The plugin must still function if the resource pack is not installed; the weapon should simply display as its vanilla base item.
---
# 3. EXACTLY 5 LEGENDARY WEAPONS
Create exactly these five weapons.
## 1. ABYSSAL MACE
Theme:
**Void / Gravity**
Base item:
```text
minecraft:mace
```
Model:
```text
customweapons:item/abyssal_mace
```
### Ability 1 — Abyssal Crush
Activation:
**Right Click**
Behavior:
* Player slams the mace into the ground.
* Create a dark void-style shockwave.
* Damage nearby enemies.
* Launch affected enemies upward.
* Briefly apply Slowness.
* Use dark particles around the impact.
* Play a powerful impact sound.
* Do not destroy blocks.
* Cooldown: **20 seconds**.
### Ability 2 — Void Grasp
Activation:
**Shift + Right Click**
Behavior:
* Launch the wielder upward.
* Create an ultimate void/gravity attack.
* Pull or trap the target in the attack area.
* Deal extremely high damage.
* It must be capable of killing another player when the ability conditions are met.
* Use dramatic dark/void particles and sounds.
* Do not destroy blocks.
* Cooldown: **60 seconds**.
### Passive
The wielder receives:
**No fall damage.**
---
# 4. INFERNO BLADE
Theme:
**Fire / Phoenix**
Base item:
```text
minecraft:netherite_sword
```
Model:
```text
customweapons:item/inferno_blade
```
### Ability 1 — Inferno Slash
Activation:
**Right Click**
Behavior:
* Create a wide flaming slash in front of the player.
* Damage enemies in the slash area.
* Set affected enemies on fire briefly.
* Use flame/lava/fire particles.
* Play a powerful fire sound.
* Do not destroy blocks.
* Cooldown: **18 seconds**.
### Ability 2 — Phoenix Rebirth
Activation:
**Automatic**
Trigger:
Player health falls below **25%**.
Behavior:
* Automatically activate once per cooldown.
* Create a powerful phoenix flame burst.
* Knock nearby enemies away.
* Restore a configurable amount of health.
* Use flame and explosion-style particles.
* Play a phoenix/fire sound.
* Cooldown: **60 seconds**.
The ability must not repeatedly trigger every tick while the player's health remains below 25%.
---
# 5. TEMPEST BOW
Theme:
**Storm / Wind / Lightning**
Base item:
```text
minecraft:bow
```
Model:
```text
customweapons:item/tempest_bow
```
### Ability 1 — Thunderbolt
Activation:
**Right Click / charged bow shot**
Behavior:
* Detect the arrow impact location.
* Call lightning at the impact point.
* Deal damage in a small radius.
* Use electric/charged particles.
* Play thunder/lightning sounds.
* Prevent unwanted fire or block damage.
* Cooldown: **20 seconds**.
### Ability 2 — Tempest Shot
Activation:
**Shift + Right Click**
Behavior:
* Fire a special tempest projectile.
* On impact, create a powerful wind burst.
* Knock enemies backward.
* Briefly apply Slowness.
* Use wind particles.
* Play wind/burst sounds.
* Do not destroy blocks.
* Cooldown: **25 seconds**.
Make sure the ability does not conflict with normal bow shooting.
---
# 6. FROSTFANG DAGGER
Theme:
**Ice / Assassin / Freeze**
Base item:
```text
minecraft:netherite_sword
```
Model:
```text
customweapons:item/frostfang_dagger
```
### Ability 1 — Frostbite
Activation:
**Right Click**
Behavior:
* The next valid enemy hit activates Frostbite.
* Apply a powerful slow effect.
* Deal small damage over several seconds.
* Create icy particles around the target.
* Play an ice/freeze sound.
* Cooldown: **12 seconds**.
Do not allow the effect to stack uncontrollably.
### Ability 2 — Frozen Step
Activation:
**Shift + Right Click**
Behavior:
* Dash the player a short distance forward.
* Create an icy trail.
* Enemies touched by the dash are slowed.
* Use snow/ice particles.
* Play a dash/freeze sound.
* Do not teleport through solid blocks.
* Cooldown: **18 seconds**.
---
# 7. GRAVEBORN SCYTHE
Theme:
**Death / Souls / Undead**
Base item:
```text
minecraft:netherite_sword
```
Model:
```text
customweapons:item/graveborn_scythe
```
### Ability 1 — Soul Reaper
Activation:
**Right Click**
Behavior:
* Release a dark energy wave forward.
* Damage enemies hit by the wave.
* Briefly pull enemies toward the center of the attack.
* Use soul/dark particles.
* Play a dark magical sound.
* Do not destroy blocks.
* Cooldown: **22 seconds**.
### Ability 2 — Grave Awakening
Activation:
**Shift + Right Click**
Behavior:
* Summon temporary undead spirits around the player.
* The spirits attack nearby enemies.
* Spirits disappear automatically after a short duration.
* Limit the number of spawned entities.
* Prevent the summoned mobs from becoming permanent server entities.
* Use soul/fire/dark particles.
* Play undead/magical sounds.
* Cooldown: **45 seconds**.
The summoned entities must not count toward the player's weapon-kill unlock progress unless explicitly configured.
---
# 8. SECOND ABILITY UNLOCK SYSTEM
The second ability of **every weapon is locked initially**.
A player must kill:
**25 entities using that specific weapon**
to unlock its second ability.
Default:
```text
required-kills: 25
```
The value must be configurable.
### Important
Kills must be tracked separately for each weapon.
Example:
```text
Player UUID
├─ Abyssal Mace: 25 kills
├─ Inferno Blade: 13 kills
├─ Tempest Bow: 7 kills
├─ Frostfang Dagger: 25 kills
└─ Graveborn Scythe: 2 kills
```
Unlocking one weapon must NOT unlock another weapon.
### Persistence
Store progress using player UUID.
Progress must survive:
* server restart
* plugin reload
* player logout
* player death
Use a reliable persistent storage system such as YAML or another lightweight storage implementation.
### Duplicate prevention
Do not count:
* the same death multiple times
* fake duplicated events
* invalid entities
* plugin-created summoned entities unless configured
* kills where the player did not actually use the weapon
### Feedback
Show messages such as:
```text
§8[§5FalixWeapons§8] §fVoid Grasp locked!
§7Kills required: §c25
```
Progress:
```text
§8[§5FalixWeapons§8] §dAbyssal Mace §fprogress: §e18/25
```
Unlocked:
```text
§8[§5FalixWeapons§8] §aVoid Grasp unlocked!
```
Make all messages configurable.
---
# 9. WEAPON IDENTIFICATION
Every custom weapon must have a unique PersistentDataContainer identifier.
Use:
```text
falixweapons:weapon_id
```
Values:
```text
abyssal_mace
graveborn_scythe
inferno_blade
tempest_bow
frostfang_dagger
```
Do NOT identify weapons only by display name.
Weapon recognition must remain reliable even if:
* players rename items in an anvil
* colors are changed
* lore changes
* resource pack is removed
* item model changes
---
# 10. ITEM DETAILS
Every weapon should have:
* Custom name
* Lore
* Weapon ID in PDC
* Model identifier
* Optional CustomModelData compatibility
* Attribute modifiers where appropriate
* Correct attack damage
* Correct attack speed
* Unbreakable setting configurable
* Glint configurable
* Ability descriptions
* Unlock status
Example lore:
```text
§5✦ LEGENDARY WEAPON
§7Ability I:
§dAbyssal Crush
§7Ability II:
§5Void Grasp
§7Void Grasp:
§cLOCKED
§7Kills: §e12/25
```
Once unlocked:
```text
§7Void Grasp:
§aUNLOCKED
```
---
# 11. COOLDOWN SYSTEM
Create a centralized cooldown manager.
Cooldown key:
```text
Player UUID
+
Weapon ID
+
Ability ID
```
Cooldowns must:
* be per player
* be per ability
* survive multiple weapons being used
* prevent duplicate activation
* support configurable durations
* provide remaining-time feedback
* clean expired entries
* avoid memory leaks
Example:
```text
Abyssal Mace → Abyssal Crush → 20s
Abyssal Mace → Void Grasp → 60s
```
Do not use a separate uncontrolled timer system for every ability.
---
# 12. EVENT HANDLING
Properly handle:
* PlayerInteractEvent
* EntityDamageByEntityEvent
* ProjectileLaunchEvent
* ProjectileHitEvent
* EntityDeathEvent
* PlayerQuitEvent
* PlayerJoinEvent
* PlayerChangedWorldEvent
* PlayerSwapHandItemsEvent if required
* Inventory events if required
Prevent:
* main-hand + off-hand double activation
* ability activation with unrelated items
* cooldown bypass
* duplicated projectile effects
* ability spam
* accidental block destruction
* excessive entity spawning
Use modern Paper-compatible event handling.
---
# 13. PVP SAFETY
All abilities must support configurable PvP controls.
Configuration options:
```yaml
pvp:
enabled: true
damage-players: true
damage-friendly: false
```
Allow configuration for:
* player damage
* mobs
* passive mobs
* friendly players
* teammates
* protected regions/worlds
Never permanently grief the world.
Abilities should not destroy blocks by default.
---
# 14. WORLD CONFIGURATION
Create:
`worlds.yml`
Allow:
```yaml
enabled-worlds:
- world
- world_nether
- world_the_end
```
Support:
```yaml
disabled-worlds:
- spawn
```
Abilities should be disabled in configured worlds.
---
# 15. RITUAL SYSTEM
Weapons are obtained through **ritual crafting only**.
Do NOT add normal Minecraft crafting recipes.
Command:
```text
/falixweapons ritual
```
Create configurable ritual definitions in:
`rituals.yml`
The ritual system must be expandable so server owners can configure:
* required materials
* ritual location
* required blocks
* activation item
* particles
* sounds
* cooldown
* permission
* reward weapon
---
# 16. COMMANDS
Implement:
```text
/falixweapons
/falixweapons help
/falixweapons list
/falixweapons give [amount]
/falixweapons reload
/falixweapons ritual
```
Permissions:
```text
falixweapons.admin
falixweapons.use
falixweapons.give
falixweapons.reload
falixweapons.ritual
```
Include tab completion.
---
# 17. CONFIGURATION FILES
Create:
```text
config.yml
weapons.yml
rituals.yml
messages.yml
worlds.yml
sounds.yml
```
All important values should be configurable.
Examples:
* damage
* cooldowns
* knockback
* range
* particles
* sounds
* ability durations
* kill requirement
* PvP behavior
* enabled worlds
* item attributes
* ritual requirements
* messages
Do not hard-code values unnecessarily.
---
# 18. PARTICLES AND SOUNDS
Use real Minecraft/Paper particles and sounds.
Examples:
```text
Particle.SOUL
Particle.SOUL_FIRE_FLAME
Particle.FLAME
Particle.LAVA
Particle.CLOUD
Particle.SNOWFLAKE
Particle.END_ROD
Particle.ELECTRIC_SPARK
```
Use appropriate sounds for each weapon.
Do not create fake resource-pack-dependent particles.
Keep particle counts optimized.
---
# 19. PERFORMANCE
The plugin must be optimized for SMP servers.
Requirements:
* Avoid unnecessary repeating tasks.
* Avoid scanning all loaded entities every tick.
* Use radius-based searches.
* Limit summoned entities.
* Remove temporary entities.
* Remove expired cooldowns.
* Avoid memory leaks.
* Avoid synchronous heavy calculations.
* Avoid unnecessary world-wide operations.
* Do not create thousands of particles.
* Avoid excessive projectile spawning.
All temporary effects must have cleanup logic.
---
# 20. DEATH / KILL TRACKING
A kill should only count when:
1. The player actually dealt the relevant damage.
2. The player used the corresponding custom weapon.
3. The victim actually dies.
4. The event has not already been processed.
Track weapon kills safely.
For projectile weapons, correctly determine the shooter.
For melee weapons, correctly identify the attacking player.
Do not count environmental deaths as weapon kills.
---
# 21. ITEM MODEL IMPLEMENTATION
Because this plugin targets **Paper 1.21+**, implement item visuals in a version-aware manner.
Preferred approach:
```text
minecraft:item_model
```
Example:
```text
customweapons:item/graveborn_scythe
```
Do not assume the old CustomModelData-only method is the only option.
If Paper API differences exist between supported 1.21+ versions:
* isolate version-sensitive code
* use Paper-supported APIs
* avoid NMS unless absolutely necessary
* document any unavoidable version-specific implementation
* keep the main plugin architecture version-independent
The plugin must continue functioning as gameplay code even if the resource pack is absent.
---
# 22. PLUGIN STRUCTURE
Use clean architecture similar to:
```text
me.falix.weapons
│
├── FalixWeapons.java
│
├── command
│ ├── FalixWeaponsCommand.java
│ └── FalixWeaponsTabCompleter.java
│
├── weapon
│ ├── Weapon.java
│ ├── WeaponManager.java
│ ├── WeaponType.java
│ └── WeaponItemFactory.java
│
├── ability
│ ├── Ability.java
│ ├── AbilityManager.java
│ ├── CooldownManager.java
│ └── UnlockManager.java
│
├── abilities
│ ├── AbyssalCrush.java
│ ├── VoidGrasp.java
│ ├── InfernoSlash.java
│ ├── PhoenixRebirth.java
│ ├── Thunderbolt.java
│ ├── TempestShot.java
│ ├── Frostbite.java
│ ├── FrozenStep.java
│ ├── SoulReaper.java
│ └── GraveAwakening.java
│
├── listener
│ ├── WeaponInteractListener.java
│ ├── CombatListener.java
│ ├── ProjectileListener.java
│ ├── KillListener.java
│ └── PlayerListener.java
│
├── ritual
│ └── RitualManager.java
│
├── data
│ └── PlayerDataManager.java
│
├── config
│ └── ConfigManager.java
│
└── util
├── ParticleUtil.java
├── SoundUtil.java
├── DamageUtil.java
└── TargetUtil.java
```
You may improve this architecture if a better production-ready design is appropriate.
---
# 23. PLUGIN.YML
Create a valid `plugin.yml` with:
* plugin name
* version
* main class
* API version appropriate for the supported Paper 1.21+ baseline
* commands
* permissions
* authors
Do not use an invalid API version.
---
# 24. README
Include a complete README explaining:
* installation
* dependencies
* resource pack installation
* commands
* permissio
Create the Gradle/Paper project and resource configuration.
Implement weapon identification, item generation, persistence, unlocks, and cooldowns.
Implement all five weapons’ abilities, projectile handling, PvP/world safety, and kill tracking.
Add ritual management, commands, tab completion, listeners, and README.
Created the complete FalixWeapons Paper 1.21+/Java 21 project.
Added Gradle build files,
plugin.yml, README, and all requested YAML configuration files.Implemented all five weapons with PDC identifiers, modern item models, CustomModelData fallback, lore, glint, and unbreakable settings.
Added abilities, cooldowns, kill-based second-ability unlocking, persistence, PvP/world controls, projectile handling, temporary summons, and Phoenix Rebirth monitoring.
Added ritual crafting, commands, permissions, tab completion, listeners, and configurable messages/sounds.
Resource pack files were not included, as requested.
Build with:
./gradlew build
The plugin JAR will be generated in build/libs/.
remove resource pack compatibility and add enchantsment to weapons like this :
Base Items:
Abyssal Mace → minecraft:mace Graveborn Scythe → minecraft:netherite_hoe Inferno Blade → minecraft:netherite_sword Tempest Bow → minecraft:bow Frostfang Dagger → minecraft:netherite_sword
Abyssal Mace
Base: Mace
Density VI Unbreaking IV Mending Wind Burst IV Sharpness IV Unbreakable Graveborn Scythe
Base: Netherite Axe Sharpness V Unbreaking IV Mending Fire Aspect III Sweeping Edge V Looting V Unbreakable Frostfang Dagger
Base: Netherite Sword
Sharpness VI Unbreaking IV Mending Fire Aspect III Sweeping Edge V Looting VI Unbreakable Inferno Blade
Base: Netherite Sword
Sharpness VII Unbreaking V Mending Fire Aspect IV Sweeping Edge V Looting VII Unbreakable Tempest Bow
Base: Bow
Infinity III Punch IV Power VII Mending Unbreaking IV Unbreakable
Remove the resource-pack compatibility code and its configuration/metadata.
Update the five custom weapons with the requested base materials, enchantments, and unbreakable behavior.
Removed resource-pack compatibility:
Removed
item_modelandCustomModelDatahandling.Removed model settings from
weapons.ymlandWeaponType.Updated the README to remove resource-pack instructions.
Added requested weapon enchantments and levels:
Abyssal Mace
Graveborn Scythe
Inferno Blade
Tempest Bow
Frostfang Dagger
Updated Graveborn Scythe to use
NETHERITE_HOE, following the Base Items mapping. Existing config keeps all weapons unbreakable by default.
Change Graveborn Scythe Base item to netherite axe.
change the name prefix of weapons to :
Abyssal Mace :- 【Abyssal Mace】 Tempest Bow :- 【Tempest Bow】 Inferno Blade :- 【Inferno Blade】 Graveborn Scythe :- 【Graveborn Scythe】 Frostfang Dagger :- 【Frostfang Dagger】
and make custom model data liek this:
Abyssal Mace :- { "model": { "type": "minecraft:model", "model": "customweapons:item/abyssal_mace" } }
FrostFang Dagger :- { "model": { "type": "minecraft:model", "model": "customweapons:item/frostfang_dagger" } }
Tempest Bow :- { "model": { "type": "minecraft:model", "model": "customweapons:item/tempest_bow" } }
Inferno Blade :- { "model": { "type": "minecraft:model", "model": "customweapons:item/inferno_blade" }
Graveborn Scythe :- { "model": { "type": "minecraft:model", "model": "customweapons:item/graveborn_scythe" } }
Update the Graveborn Scythe base material to
NETHERITE_AXEand apply the requested full-width weapon names.Restore per-weapon item model data using the specified
customweapons:item/...model paths.
Changed Graveborn Scythe’s base item to
NETHERITE_AXE.Updated weapon names to the requested full-width bracketed format.
Added Paper’s item model component using:
customweapons:item/abyssal_macecustomweapons:item/frostfang_daggercustomweapons:item/tempest_bowcustomweapons:item/inferno_bladecustomweapons:item/graveborn_scythe
The model paths are applied through ItemMeta#setItemModel(...), matching the JSON structure provided.
change the .jar file name to FalixWeapons-V1.jar
Updated the Gradle build configuration so the generated plugin JAR is named:
FalixWeapons-V1.jar
change the name prefix of weapons to :
Abyssal Mace :- &5&u&l【Abyssal Mace】 Tempest Bow :- &3&l&u【Tempest Bow】 Inferno Blade :- &4&l&u【Inferno Blade】 Graveborn Scythe :- &8&l&u【Graveborn Scythe】 Frostfang Dagger :- &b&l&u【Frostfang Dagger】
Remove Custom Model Data and make config.yml in whixh every single thing is configurable
Update weapon prefixes with the requested color, underline, bold, and full-width formatting.
Remove custom model data/item-model handling.
Move all weapon settings into
config.yml, including materials, names, enchantments, and unbreakable state.
Updated weapon prefixes:
Abyssal Mace:
&5&u&lTempest Bow:
&3&l&uInferno Blade:
&4&l&uGraveborn Scythe:
&8&l&uFrostfang Dagger:
&b&l&u
Removed custom model data/item-model handling.
Deleted
weapons.yml.Moved weapon configuration into
config.yml, including:Materials
Display names
Ability IDs and names
Enchantments and levels
Lore
Unbreakable and glint settings
Ability cooldowns, damage, ranges, particles, knockback, durations, and other values
Updated commands, unlock messages, rituals, and ability messages to use configurable weapon names.
Updated the README to document the new configuration structure.
when seeing the plugin description in minecraft server by /plugins add author IceCord
Updated the plugin author shown by /plugins to IceCord.
make plugin like after doing rituals the crafting will start and configurable time for ritual and the co-ordinates of the ritual reveals to every player online or offline[after joining game] in their bossbar. After the Tiemis completed the weapon will drop on ground and whoever picks up it , it is owner by him and add /falixweapons:owned [weapon name] and every player can see who owns weapons
make every weapon 1 time craftable.
Make ritual time configurable and items also
Add configurable ritual crafting with per-weapon duration, required items, and ritual coordinates.
Announce active ritual coordinates through a boss bar to online players and players after they join.
Drop the completed weapon, assign ownership to the first player who picks it up, and persist/display ownership.
Add
/falixweapons:owned [weapon name]and enforce one craft per weapon globally.
The implementation will use persistent weapon-state data for global one-time crafting and ownership, while ritual settings remain configurable per weapon in rituals.yml; the bossbar template/color/style will be configurable in config.yml.
Implemented:
Rituals now have configurable:
Crafting duration
Required materials and activation items
Ritual coordinates
Activation radius
Active rituals display a configurable boss bar showing:
Weapon name
World and coordinates
Remaining time
Players joining while a ritual is active automatically receive the boss bar.
When the timer ends, the weapon drops at the ritual location.
The first player to pick up the weapon becomes its owner.
Weapon ownership is saved persistently in
weapon-ownership.yml.Each weapon can only be crafted once globally.
Added public command:
/falixweapons owned <weapon>Supports weapon IDs and full display names.
Added ownership tab completion.
Added configurable ownership and ritual messages.
Configure ritual items, duration, and coordinates in:
plugins/FalixWeapons/rituals.yml
Configure the boss bar in:
plugins/FalixWeapons/config.yml
make a texture/resource pack for this plugin . Iam giving u items picture make a working resource pack with it
Locate the supplied weapon images and current resource-pack/plugin structure.
Add the five item textures, model definitions, and item overrides for the weapon base materials.
Package a usable resource pack ZIP and configure the plugin/resource-pack metadata if the project supports it.
The project has no image files mounted, so I can add the complete 1.21.4 resource-pack structure and plugin model assignments now, but the exact five supplied PNG pixels cannot be embedded until the images are uploaded as PNG files (or copied into the project). I’ll keep the pack wired to the required filenames so those files can be dropped in directly.
Added the resource-pack structure and connected the plugin to it.
Changes:
Added configurable item model paths for all five weapons.
Uses the 1.21.4
minecraft:item_modelcomponent, not CustomModelData.Added the requested item model JSON definitions.
Added model files for:
Abyssal Mace
Frostfang Dagger
Tempest Bow
Inferno Blade
Graveborn Scythe
Added
pack.mcmetafor Minecraft 1.21.4.Added a Gradle task:
gradle resourcePack
This creates:
build/distributions/FalixWeapons-ResourcePack.zip
The uploaded pictures are not available as actual PNG files inside the project, so place them in:
resource-pack/assets/customweapons/textures/item/
with these exact names:
abyssal_mace.png
frostfang_dagger.png
tempest_bow.png
inferno_blade.png
graveborn_scythe.png
Once those PNG files are added, run gradle resourcePack to generate the working ZIP.
how to run gradle resourcepack
Run the command from the plugin project’s root folder—the folder containing build.gradle.
Windows
Open Command Prompt or PowerShell:
gradlew.bat resourcePack
If Gradle is installed globally:
gradle resourcePack
Linux/macOS
./gradlew resourcePack
Or, if Gradle is installed globally:
gradle resourcePack
The task name is case-sensitive: use resourcePack, not resourcepack.
The generated resource pack will be located at:
build/distributions/FalixWeapons-ResourcePack.zip
Upload that ZIP to your server’s resource-pack hosting location or distribute it to players. Ensure the five PNG files are placed in:
resource-pack/assets/customweapons/textures/item/
give me a file fully completed
I can provide the complete resource-pack ZIP, but the five image previews are not available as downloadable image files in the project. Minecraft requires real .png textures, so I cannot create a working pack using only the chat previews.
Please upload the five images as files:
abyssal_mace.png
tempest_bow.png
inferno_blade.png
graveborn_scythe.png
frostfang_dagger.png
After they are uploaded, I can place them into the pack and provide the completed:
FalixWeapons-ResourcePack.zip
The required texture directory is:
resource-pack/assets/customweapons/textures/item/
The JSON model files are already prepared; only the five actual PNG files are missing.
this file contains png but the pack isnt working help
--- 📎 Attached 10 file(s):
File: abyssal_mace.json
{
"model": {
"type": "minecraft:model",
"model": "customweapons:item/abyssal_mace"
}
}
File: frostfang_dagger.json
{
"model": {
"type": "minecraft:model",
"model": "customweapons:item/frostfang_dagger"
}
}
File: graveborn_scythe.json
{
"model": {
"type": "minecraft:model",
"model": "customweapons:item/graveborn_scythe"
}
}
File: inferno_blade.json
{
"model": {
"type": "minecraft:model",
"model": "customweapons:item/inferno_blade"
}
}
File: tempest_bow.json
{
"model": {
"type": "minecraft:model",
"model": "customweapons:item/tempest_bow"
}
}
File: abyssal_mace (1).json
{
"parent": "minecraft:item/handheld",
"textures": {
"layer0": "customweapons:item/abyssal_mace"
}
}
File: frostfang_dagger (2).json
{
"parent": "minecraft:item/handheld",
"textures": {
"layer0": "customweapons:item/frostfang_dagger"
}
}
File: graveborn_scythe (3).json
{
"parent": "minecraft:item/handheld",
"textures": {
"layer0": "customweapons:item/graveborn_scythe"
}
}
File: inferno_blade (4).json
{
"parent": "minecraft:item/handheld",
"textures": {
"layer0": "customweapons:item/inferno_blade"
}
}
File: tempest_bow (5).json
{
"parent": "minecraft:item/bow",
"textures": {
"layer0": "customweapons:item/tempest_bow"
}
}
The resource pack is not working because the project currently contains zero actual .png files. The JSON model files are present, but Minecraft cannot render them without textures.
I verified the required structure. It must be:
FalixWeapons-ResourcePack.zip
├── pack.mcmeta
└── assets
└── customweapons
├── items
│ ├── abyssal_mace.json
│ ├── frostfang_dagger.json
│ ├── graveborn_scythe.json
│ ├── inferno_blade.json
│ └── tempest_bow.json
├── models
│ └── item
│ ├── abyssal_mace.json
│ ├── frostfang_dagger.json
│ ├── graveborn_scythe.json
│ ├── inferno_blade.json
│ └── tempest_bow.json
└── textures
└── item
├── abyssal_mace.png
├── frostfang_dagger.png
├── graveborn_scythe.png
├── inferno_blade.png
└── tempest_bow.png
Create this folder:
resource-pack/assets/customweapons/textures/item/
Then save the images with these exact names:
abyssal_mace.png
frostfang_dagger.png
graveborn_scythe.png
inferno_blade.png
tempest_bow.png
Do not use names such as:
abyssal_mace (1).png
The image previews shown in chat are not currently available as binary PNG files inside the project. The JSON files alone cannot contain the image textures.
After adding the PNGs, run from the project folder:
gradlew.bat resourcePack
The ZIP will be created at:
build/distributions/FalixWeapons-ResourcePack.zip
Check the ZIP directly. When opened, pack.mcmeta must be immediately visible at the top level—not inside another resource-pack folder.
Finally:
Remove the old server resource pack.
Upload the new ZIP.
Press
F3 + Tin Minecraft.Give yourself a newly created weapon, since older items may not have the
item_modelcomponent.Confirm the server is running Minecraft/Paper 1.21.4 or newer.
The plugin configuration is already using the correct item model IDs, for example:
item-model: customweapons:abyssal_mace
Upload the five actual PNG files as file attachments—not only image previews—and the completed ZIP can be assembled from them.
where to run gradlew.bt
Run gradlew.bat from the root folder of your plugin project—the folder containing:
build.gradle
gradlew.bat
src/
resource-pack/
Windows steps
Open the project folder in File Explorer.
Click the address bar, type:
cmd
Press Enter.
Run:
gradlew.bat resourcePack
You can also use PowerShell:
.\gradlew.bat resourcePack
The generated ZIP will be here:
build\distributions\FalixWeapons-ResourcePack.zip
Make sure the file is named gradlew.bat, not gradlew.bt.
If gradlew.bat does not exist, run:
gradle resourcePack
provided Gradle is installed globally.
gradlew.bat is not recognised as inter or external showing and also with gradle only
That error means either:
You are not inside the project folder, or
gradlew.batis missing, and Gradle is not installed.
Option 1: Check the project folder
Open the folder containing build.gradle, then click the File Explorer address bar, type:
cmd
Press Enter and run:
dir
You should see:
build.gradle
src
resource-pack
If gradlew.bat is listed, run:
gradlew.bat resourcePack
In PowerShell, use:
.\gradlew.bat resourcePack
Option 2: Gradle is not installed
If both gradlew.bat and gradle are not recognized, install Gradle first.
You also need Java installed. Check it with:
java -version
Then install Gradle and reopen Command Prompt. Verify:
gradle -v
Finally, from the project folder run:
gradle resourcePack
The output will be:
build\distributions\FalixWeapons-ResourcePack.zip
Option 3: Create the ZIP without Gradle
You can create the resource pack manually.
Open the resource-pack folder. It must contain:
pack.mcmeta
assets
Do not open the assets folder and zip its contents. The ZIP must have pack.mcmeta at the top level.
From inside the resource-pack folder, run PowerShell:
Compress-Archive -Path pack.mcmeta, assets -DestinationPath ..\FalixWeapons-ResourcePack.zip -Force
This creates:
FalixWeapons-ResourcePack.zip
in the plugin project folder.
The ZIP should look like this when opened:
FalixWeapons-ResourcePack.zip
├── pack.mcmeta
└── assets
└── customweapons
If gradlew.bat is missing, the easiest immediate solution is Option 3.
i made zip but textures are not showing
The problem is that the resource pack currently has the JSON files, but no actual PNG texture files. I checked the project, and there are zero files under:
resource-pack/assets/customweapons/textures/item/
JSON files only tell Minecraft where to find a texture; they do not contain the image.
Your ZIP must have this exact structure:
FalixWeapons-ResourcePack.zip
├── pack.mcmeta
└── assets
└── customweapons
├── items
│ ├── abyssal_mace.json
│ ├── frostfang_dagger.json
│ ├── graveborn_scythe.json
│ ├── inferno_blade.json
│ └── tempest_bow.json
├── models
│ └── item
│ ├── abyssal_mace.json
│ ├── frostfang_dagger.json
│ ├── graveborn_scythe.json
│ ├── inferno_blade.json
│ └── tempest_bow.json
└── textures
└── item
├── abyssal_mace.png
├── frostfang_dagger.png
├── graveborn_scythe.png
├── inferno_blade.png
└── tempest_bow.png
Create the missing folder:
resource-pack\assets\customweapons\textures\item
Place the five real image files there. The filenames must match exactly:
abyssal_mace.png
frostfang_dagger.png
graveborn_scythe.png
inferno_blade.png
tempest_bow.png
Do not use names such as:
abyssal_mace (1).png
Abyssal_Mace.png
abyssal-mace.png
Then recreate the ZIP. In PowerShell, open the resource-pack folder and run:
Compress-Archive -Path pack.mcmeta, assets -DestinationPath ..\FalixWeapons-ResourcePack.zip -Force
When opening the ZIP, pack.mcmeta must be visible immediately. This is incorrect:
FalixWeapons-ResourcePack.zip
└── resource-pack
├── pack.mcmeta
└── assets
This is correct:
FalixWeapons-ResourcePack.zip
├── pack.mcmeta
└── assets
Also verify that:
The server is Minecraft/Paper 1.21.4 or newer.
You are using the newly generated weapon item.
You installed the resource pack through the server or selected it in Minecraft.
Press
F3 + Tafter replacing the ZIP.The PNG files are actual PNGs, not renamed
.jpgfiles.
The JSON files you attached are valid for the 1.21.4 item-model system. The missing/misplaced PNG files are the reason the textures are not rendering.
i uploaded png but still not working isnt it is because the jso have customweapons:item but plugin name is falixweapons?
No. The resource-pack namespace does not have to match the plugin name.
FalixWeapons is the plugin name, while customweapons is the resource-pack namespace. This is valid:
assets/customweapons/
with references such as:
"model": "customweapons:item/abyssal_mace"
Your ZIP must contain:
assets/
└── customweapons/
├── items/
│ └── abyssal_mace.json
├── models/
│ └── item/
│ └── abyssal_mace.json
└── textures/
└── item/
└── abyssal_mace.png
The plugin must give the item this component:
minecraft:item_model = customweapons:abyssal_mace
If you want the namespace to match the plugin, change every location consistently:
assets/falixweapons/items/abyssal_mace.json
assets/falixweapons/models/item/abyssal_mace.json
assets/falixweapons/textures/item/abyssal_mace.png
Then change the model JSON to:
{
"parent": "minecraft:item/handheld",
"textures": {
"layer0": "falixweapons:item/abyssal_mace"
}
}
And the item component to:
falixweapons:abyssal_mace
Do not mix customweapons and falixweapons.
The most likely checks are:
Open the ZIP and confirm
pack.mcmetais at the root.Confirm the PNG is inside
assets/customweapons/textures/item/.Confirm the PNG is named exactly
abyssal_mace.png, notabyssal_mace (1).png.Confirm the ZIP is loaded in Minecraft.
Press
F3 + T.Test with a newly created weapon item.
Ensure the plugin gives
customweapons:abyssal_mace, not only a renamed diamond sword.
root means?
Root means the first/top level inside the ZIP file.
When you open your ZIP, you should immediately see:
pack.mcmeta
assets
Correct:
FalixWeapons-ResourcePack.zip
├── pack.mcmeta
└── assets
└── customweapons
Incorrect:
FalixWeapons-ResourcePack.zip
└── resource-pack
├── pack.mcmeta
└── assets
Also incorrect:
FalixWeapons-ResourcePack.zip
└── FalixWeapons-ResourcePack
├── pack.mcmeta
└── assets
To create the correct ZIP on Windows:
Open the actual
resource-packfolder.Confirm it directly contains
pack.mcmetaandassets.Select
pack.mcmetaand theassetsfolder.Right-click and choose Compress to ZIP file.
Or run this from inside the resource-pack folder:
Compress-Archive -Path pack.mcmeta, assets -DestinationPath ..\FalixWeapons-ResourcePack.zip -Force
Then open the generated ZIP. pack.mcmeta and assets must be visible immediately.
tme mcmeta is at 2nd after assets but it is showing in resource pack mnu
That is fine. The order does not matter. If pack.mcmeta appears second after assets, that is only how the ZIP viewer sorts the files.
This is correct:
FalixWeapons-ResourcePack.zip
├── assets
└── pack.mcmeta
The important part is that both are at the same level. It must not look like this:
FalixWeapons-ResourcePack.zip
└── resource-pack
├── assets
└── pack.mcmeta
Since the pack appears in Minecraft’s resource-pack menu, Minecraft is reading pack.mcmeta. The problem is probably the item model or texture path.
Open the ZIP and verify the complete path is exactly:
assets/customweapons/items/abyssal_mace.json
assets/customweapons/models/item/abyssal_mace.json
assets/customweapons/textures/item/abyssal_mace.png
The model file should contain:
{
"parent": "minecraft:item/handheld",
"textures": {
"layer0": "customweapons:item/abyssal_mace"
}
}
Then press:
F3 + T
and test with a newly created weapon.
Also confirm:
You are using Minecraft 1.21.4 or newer.
The PNG is named exactly
abyssal_mace.png.The plugin gives the item model
customweapons:abyssal_mace.You are not only renaming a normal diamond sword.
The ZIP does not contain another extra folder around
assetsandpack.mcmeta.
If the pack loads in the menu but the item is still normal, the ZIP root is most likely correct; the item is probably not receiving the customweapons:abyssal_mace item model.
it says { "model": { "type": "minecraft:model", "model": "customweapons:item/abyssal_mace" } }
That JSON is correct for:
assets/customweapons/items/abyssal_mace.json
It tells Minecraft:
customweapons:abyssal_mace
→ customweapons:item/abyssal_mace
You must also have this separate file:
assets/customweapons/models/item/abyssal_mace.json
with:
{
"parent": "minecraft:item/handheld",
"textures": {
"layer0": "customweapons:item/abyssal_mace"
}
}
And the PNG must be here:
assets/customweapons/textures/item/abyssal_mace.png
Your plugin configuration already correctly uses:
item-model: customweapons:abyssal_mace
So do not change customweapons to falixweapons unless you change every folder and reference.
Check these exact points:
The JSON you posted is inside
assets/customweapons/items/.The model JSON is inside
assets/customweapons/models/item/.The PNG is inside
assets/customweapons/textures/item/.Recreate the ZIP after adding the PNG.
Replace the old pack in Minecraft.
Press
F3 + T.Get a new weapon using the plugin.
If the posted JSON was accidentally placed in models/item/abyssal_mace.json, move it to the items folder—the two JSON files must be different.
in model it says handheld and in items it says only models
That is exactly correct. Minecraft uses two different JSON files:
1. Item definition
Path:
assets/customweapons/items/abyssal_mace.json
Contents:
{
"model": {
"type": "minecraft:model",
"model": "customweapons:item/abyssal_mace"
}
}
This points to the model file.
2. Model definition
Path:
assets/customweapons/models/item/abyssal_mace.json
Contents:
{
"parent": "minecraft:item/handheld",
"textures": {
"layer0": "customweapons:item/abyssal_mace"
}
}
This points to the texture:
assets/customweapons/textures/item/abyssal_mace.png
Your structure should be:
assets/
└── customweapons/
├── items/
│ └── abyssal_mace.json
├── models/
│ └── item/
│ └── abyssal_mace.json
└── textures/
└── item/
└── abyssal_mace.png
handheld is normal—it controls how the item is held and rendered. The important remaining check is that the plugin actually gives the item:
minecraft:item_model=customweapons:abyssal_mace
A normal renamed diamond sword will not use the new model automatically. After replacing the pack, press F3 + T and obtain a newly created weapon.
still not working
The namespace is not the problem. I checked the project: the JSON chain and plugin code are correct, but the project still contains no PNG files. The ZIP you created likely contains PNGs in the wrong place or was created before adding them.
For abyssal_mace, the exact path must be:
resource-pack/assets/customweapons/textures/item/abyssal_mace.png
Not:
textures/items/
textures/customweapons/
assets/falixweapons/
The final ZIP must show:
pack.mcmeta
assets/customweapons/items/abyssal_mace.json
assets/customweapons/models/item/abyssal_mace.json
assets/customweapons/textures/item/abyssal_mace.png
From inside the resource-pack folder, run:
Get-ChildItem -Recurse
Confirm the PNG appears under:
assets\customweapons\textures\item\
Then recreate the ZIP:
Compress-Archive -Path pack.mcmeta, assets -DestinationPath ..\FalixWeapons-ResourcePack.zip -Force
Open the new ZIP and verify the PNG is inside it. Then:
Remove the old resource pack from Minecraft.
Add/select the new ZIP.
Press
F3 + T.Obtain a newly created weapon.
Also confirm you are using Minecraft 1.21.4 or newer. This project uses the newer minecraft:item_model system, which does not work correctly on older client versions.
The plugin is already setting:
customweapons:abyssal_mace
so changing the namespace to falixweapons is unnecessary.
how to open powershell in sesourcepack folder
Method 1: From File Explorer
Open your
resource-packfolder.Click the folder’s address bar at the top.
Type:
powershell
Press Enter.
PowerShell will open already inside the resource-pack folder.
Then run:
Get-ChildItem -Recurse
You should see:
assets\customweapons\textures\item\abyssal_mace.png
Method 2: Right-click
Open the
resource-packfolder.Hold Shift and right-click an empty area inside the folder.
Choose Open PowerShell window here.
On newer Windows versions, choose:
Open in Terminal
Create the ZIP
Once PowerShell is open inside resource-pack, run:
Compress-Archive -Path pack.mcmeta, assets -DestinationPath ..\FalixWeapons-ResourcePack.zip -Force
The new ZIP will be created in the folder above resource-pack.
u r saying in main resourcepack folder where all packs are or only wepaons one
Only the weapons resource-pack folder—the folder containing the files for this plugin.
It should look like:
weapons-resource-pack/
├── pack.mcmeta
└── assets/
└── customweapons/
├── items/
├── models/
└── textures/
Open PowerShell inside weapons-resource-pack, not in the main folder containing multiple packs.
The folder you choose must directly contain:
pack.mcmeta
assets
Then run:
Get-ChildItem -Recurse
After confirming the files, create the ZIP with:
Compress-Archive -Path pack.mcmeta, assets -DestinationPath ..\FalixWeapons-ResourcePack.zip -Force
The generated FalixWeapons-ResourcePack.zip is the file you add to Minecraft.
there is code after childitem ta is running rapidly
That command is listing every file and folder inside the weapons pack. Lots of scrolling can be normal.
Press Ctrl + C to stop it, then run this smaller check:
Test-Path ".\assets\customweapons\textures\item\abyssal_mace.png"
It should return:
True
If it returns True, create the ZIP:
Compress-Archive -Path pack.mcmeta, assets -DestinationPath ..\FalixWeapons-ResourcePack.zip -Force
If it returns False, the PNG is not in the correct location. The exact path must be:
weapons-resource-pack\assets\customweapons\textures\item\abyssal_mace.png
it is false
False means the PNG is not in the required location.
Inside your weapons resource-pack folder, create this folder path:
assets\customweapons\textures\item
Then place the texture file inside it and rename it exactly:
abyssal_mace.png
The final structure must be:
weapons-resource-pack
├── pack.mcmeta
└── assets
└── customweapons
├── items
├── models
└── textures
└── item
└── abyssal_mace.png
If you already have a PNG somewhere, find it with:
Get-ChildItem -Recurse -Filter *.png
Then move or copy that PNG into:
assets\customweapons\textures\item\
Make sure Windows has not named it:
abyssal_mace.png.png
After placing it, run:
Test-Path ".\assets\customweapons\textures\item\abyssal_mace.png"
It must return:
True
If the command finds no PNG at all, you need to add or create the weapon texture first.
i have placed it how can i show it to u?
You can show me in either of these ways:
Option 1: Send a screenshot
Take a screenshot showing:
The folder address bar.
The
assetsfolder expanded.This path visible:
assets\customweapons\textures\item\abyssal_mace.png
Upload the screenshot here using the attachment/image button.
Option 2: Paste PowerShell results
Run these commands inside the weapons resource-pack folder:
Get-Location
Test-Path ".\assets\customweapons\textures\item\abyssal_mace.png"
Get-ChildItem ".\assets\customweapons\textures\item"
Copy and paste everything PowerShell prints here.
The screenshot shows the PNG is in the correct location inside the ZIP:
assets\customweapons\textures\item\abyssal_mace.png
The “Extract all” button and “Compressed size” column mean you are viewing a ZIP archive. That is why PowerShell returned False—the path does not exist as a normal folder.
Do this:
Close the ZIP window.
Right-click the
weaponsZIP file.Select Extract All.
Extract it to a new folder, for example:
weapons-extracted
Open the extracted
weapons-extractedfolder. It must directly contain:
pack.mcmeta
assets
Click the address bar, type:
powershell
Run:
Test-Path ".\assets\customweapons\textures\item\abyssal_mace.png"
It should return:
True
The PNG shown in your screenshot appears correctly named because Windows is hiding .png extensions. Make sure the extracted ZIP does not contain an extra outer folder, such as:
weapons-extracted\weapons\assets
It must be:
weapons-extracted\assets
After checking, compress pack.mcmeta and assets into a new ZIP and use that ZIP as the Minecraft resource pack.
it says true now
Good—that means the texture is in the correct location.
Now, while PowerShell is still open in the folder containing pack.mcmeta and assets, run:
Compress-Archive -Path pack.mcmeta, assets -DestinationPath ..\FalixWeapons-ResourcePack.zip -Force
Then:
Go up one folder.
Find
FalixWeapons-ResourcePack.zip.Add that ZIP to Minecraft’s resource packs.
Press F3 + T to reload resources.
Obtain a new Abyssal Mace.
The ZIP must open directly to:
pack.mcmeta
assets
—not to an extra folder such as:
weapons-extracted\pack.mcmeta
textures not working
The plugin’s model paths are correct. The most likely problem is that the final ZIP being used by Minecraft does not contain the PNG, even though your extracted folder does.
Open the exact FalixWeapons-ResourcePack.zip you installed and verify it opens directly like this:
FalixWeapons-ResourcePack.zip
├── pack.mcmeta
└── assets
└── customweapons
├── items
├── models
└── textures
└── item
└── abyssal_mace.png
There must not be an extra folder level:
FalixWeapons-ResourcePack.zip
└── weapons-extracted
└── assets
Recreate the ZIP from the folder where pack.mcmeta and assets are directly located:
Compress-Archive -Path pack.mcmeta, assets -DestinationPath ..\FalixWeapons-ResourcePack.zip -Force
Then:
Put this newly created ZIP in Minecraft’s
resourcepacksfolder.Enable it in Options → Resource Packs.
Press F3 + T.
Get a new Abyssal Mace from the plugin.
Also confirm the texture is a real PNG, not a renamed JPG:
Get-Item ".\assets\customweapons\textures\item\abyssal_mace.png" | Select-Object Name, Length
Length should be greater than 0.
If it still shows the normal mace, send a screenshot of the inside of the final ZIP, including the top-level pack.mcmeta and assets folders.
after writing powershell in addrwess bar it shows only c:
That is okay if PowerShell shows something like:
PS C:\>
It means PowerShell opened in the C: drive, not in your resource-pack folder.
Easiest method
Open the extracted resource-pack folder—the one containing
pack.mcmetaandassets.Click the File Explorer address bar at the top.
Type:
powershell
Press Enter.
PowerShell should now show a path similar to:
PS C:\Users\YourName\Desktop\weapons-extracted>
Then run:
Test-Path ".\assets\customweapons\textures\item\abyssal_mace.png"
It should say:
True
If it still opens at C:\
Type this command, replacing the path with your actual folder path:
cd "C:\Users\YourName\Desktop\weapons-extracted"
Then check:
Test-Path ".\assets\customweapons\textures\item\abyssal_mace.png"
The folder PowerShell is opened in must directly contain:
pack.mcmeta
assets
it says it cannot remove bcz it is being used by another process
That means the ZIP file is open or being used. Close:
The ZIP window
Any File Explorer window showing the ZIP
Minecraft
PowerShell windows currently inside the ZIP
Then create it with a new filename so Windows does not need to replace the locked file:
Compress-Archive -Path pack.mcmeta, assets -DestinationPath ..\FalixWeapons-ResourcePack-v2.zip
Use FalixWeapons-ResourcePack-v2.zip in Minecraft.
If it still fails, restart Windows Explorer:
Press Ctrl + Shift + Esc.
Find Windows Explorer.
Right-click it and choose Restart.
Run the compression command again.
Make sure you run the command from the extracted folder containing both:
pack.mcmeta
assets
done now next? after removing
Now recreate the resource-pack ZIP and install it:
Open the extracted folder that directly contains:
pack.mcmeta
assets
Click the folder’s address bar, type
powershell, and press Enter.Run:
Compress-Archive -Path .\pack.mcmeta, .\assets -DestinationPath "$env:USERPROFILE\Desktop\FalixWeapons-ResourcePack.zip" -Force
Open your Desktop and copy
FalixWeapons-ResourcePack.zipinto Minecraft’sresourcepacksfolder:
%appdata%\.minecraft\resourcepacks
In Minecraft, go to Options → Resource Packs and enable it.
Press:
F3 + T
Obtain a new Abyssal Mace and test it.
When you open the final ZIP, its first level must show exactly:
pack.mcmeta
assets
Not an extra folder around them.
why u said desktop falixweapons?
FalixWeapons-ResourcePack.zip was just an example filename I chose so it would be easy to find on your Desktop. It is not required.
You can name it anything, for example:
weapons.zip
The important part is that the ZIP contains these directly at its top level:
pack.mcmeta
assets
You can also save it in any folder. For example, to create weapons.zip in the current parent folder:
Compress-Archive -Path .\pack.mcmeta, .\assets -DestinationPath ..\weapons.zip -Force
Then use that ZIP as your Minecraft resource pack.
make the plugin weapons use the base minecraft weapon without texture pack but add custom model data from 1001 to 1005 so that i can make a texture pack according to their custom model data . And Make every ability of weapons can be used anywhere without targeting or targeting and make abyssal mace ability 2 jump 30 blocks highers
Change weapon items to use vanilla base materials with custom model data
1001–1005.Remove ability location/target restrictions so abilities work with or without a target.
Increase Abyssal Mace ability 2’s jump height to 30 blocks and verify the ability code.
Task 1: I’ll replace the current item-model component with vanilla materials plus numeric custom model data, using 1001 through 1005 in weapon order. The existing weapon IDs and abilities will remain unchanged.
Weapon item models: changed to vanilla materials with custom model data
1001–1005.Ability use rules: next I’m tracing the activation and targeting code so abilities can activate in open areas and with valid targets.
Abyssal Mace ability 2: I’ll update its jump height after the ability flow is identified.
The ability code already uses the player’s location or facing direction for most abilities; the remaining blockers are the bow’s special interaction path, projectile-only Thunderbolt, passive-only Phoenix Rebirth, and null target handling. I’ll make those abilities self-centered when no target exists while preserving nearby-target effects.
Implemented:
Weapons now use vanilla Minecraft materials with custom model data:
Abyssal Mace:
1001Graveborn Scythe:
1002Inferno Blade:
1003Tempest Bow:
1004Frostfang Dagger:
1005
Removed the old
item-modelcomponent usage.All weapon abilities can activate without requiring a selected target.
Tempest Bow abilities now activate directly:
Normal right-click: Thunderbolt
Sneak right-click: Tempest Shot
Phoenix Rebirth can now activate manually and still works passively.
Added safe handling when no nearby target exists.
Abyssal Mace’s Void Grasp jump velocity is now set to
30.0.
Restart the server or run the plugin reload command, then create new weapons. Your resource-pack item overrides should use the matching vanilla material and CustomModelData values 1001–1005.
make the plugin ritual like it will shown like a structure the ritual is invisible and after ritual it gets dropped but ritual must be shown like the weapon should be shown in a long version but players cant pick it up until its completed
Inspect the existing ritual/weapon-drop flow and identify the current ritual display, completion, and pickup code.
Replace the invisible ritual presentation with a visible structure and an upright/long weapon display.
Prevent pickup during the ritual, then drop the completed weapon normally after the ritual finishes.
Implemented the visible ritual system.
Rituals now show a virtual structure made from:
Crying obsidian altar
Eight obsidian pillars
Glowing weapon display in the center
The weapon is displayed vertically and stretched into a long version.
The displayed weapon uses the actual custom-model-data weapon item.
Players cannot pick up the displayed weapon because it uses an
ItemDisplay, not a dropped item.Completed rituals remove the structure and weapon display, then drop the real weapon.
Stale ritual drops are blocked from pickup until the ritual is marked completed.
Displays are removed safely when the plugin shuts down.
Restart the server/plugin, then start a new ritual to see the structure.
package me.falix.weapons;
import me.falix.weapons.ability.AbilityManager;
import me.falix.weapons.ability.CooldownManager;
import me.falix.weapons.ability.UnlockManager;
import me.falix.weapons.command.FalixWeaponsCommand;
import me.falix.weapons.command.FalixWeaponsTabCompleter;
import me.falix.weapons.config.ConfigManager;
import me.falix.weapons.data.PlayerDataManager;
import me.falix.weapons.data.WeaponOwnershipManager;
import me.falix.weapons.listener.CombatListener;
import me.falix.weapons.listener.KillListener;
import me.falix.weapons.listener.PlayerListener;
import me.falix.weapons.listener.ProjectileListener;
import me.falix.weapons.listener.WeaponInteractListener;
import me.falix.weapons.listener.WeaponOwnershipListener;
import me.falix.weapons.ritual.RitualManager;
import me.falix.weapons.weapon.WeaponManager;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;
public final class FalixWeapons extends JavaPlugin {
private ConfigManager configManager;
private PlayerDataManager playerDataManager;
private WeaponOwnershipManager weaponOwnershipManager;
private WeaponManager weaponManager;
private AbilityManager abilityManager;
private RitualManager ritualManager;
@Override
public void onEnable() {
configManager = new ConfigManager(this);
playerDataManager = new PlayerDataManager(this);
weaponOwnershipManager = new WeaponOwnershipManager(this);
weaponManager = new WeaponManager(this, configManager, playerDataManager);
UnlockManager unlocks = new UnlockManager(configManager, playerDataManager);
CooldownManager cooldowns = new CooldownManager();
abilityManager = new AbilityManager(this, configManager, weaponManager, unlocks, cooldowns);
ritualManager = new RitualManager(this, configManager, weaponManager, weaponOwnershipManager);
CombatListener combat = new CombatListener(weaponManager, abilityManager);
Bukkit.getPluginManager().registerEvents(new WeaponInteractListener(weaponManager, abilityManager), this);
Bukkit.getPluginManager().registerEvents(new ProjectileListener(weaponManager, abilityManager), this);
Bukkit.getPluginManager().registerEvents(combat, this);
Bukkit.getPluginManager().registerEvents(new KillListener(combat, unlocks, configManager), this);
Bukkit.getPluginManager().registerEvents(new PlayerListener(this), this);
Bukkit.getPluginManager().registerEvents(new WeaponOwnershipListener(configManager, weaponManager, weaponOwnershipManager), this);
var command = getCommand("falixweapons");
if (command != null) {
command.setExecutor(new FalixWeaponsCommand(this, configManager, weaponManager, ritualManager, weaponOwnershipManager));
command.setTabCompleter(new FalixWeaponsTabCompleter());
}
Bukkit.getScheduler().runTaskTimer(this, cooldowns::cleanup, 20L * 60L, 20L * 60L);
getLogger().info("FalixWeapons enabled with five legendary weapons.");
}
@Override
public void onDisable() {
if (playerDataManager != null) playerDataManager.save();
if (weaponOwnershipManager != null) weaponOwnershipManager.save();
if (ritualManager != null) ritualManager.shutdown();
}
public void reloadPlugin() {
configManager.reload();
playerDataManager.reload();
}
public AbilityManager getAbilityManager() { return abilityManager; }
public RitualManager getRitualManager() { return ritualManager; }
}