icecordisback
📎 1 file 16,762 chars
📄
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
Kodari AI
KodariSep 11 at 1:41 pm 3
FalixWeapons
A comprehensive Paper 1.21+ plugin introducing five legendary weapons with unique abilities, unlock systems, and ritual crafting. Features include Abyssal Mace with void/gravity powers, Inferno Blade with fire/phoenix abilities, Tempest Bow with storm/lightning attacks, Frostfang Dagger with ice/assassin skills, and Graveborn Scythe with death/soul powers. Each weapon has two abilities (second locked behind 25 kills), centralized cooldown management, persistent player progress tracking, configurable PvP controls, world restrictions, and ritual-based acquisition. Uses modern item_model system with CustomModelData fallback, comprehensive YAML configuration, and optimized performance for SMP servers.
  1. Create the Gradle/Paper project and resource configuration.

  2. Implement weapon identification, item generation, persistence, unlocks, and cooldowns.

  3. Implement all five weapons’ abilities, projectile handling, PvP/world safety, and kill tracking.

  4. 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:

Shell
./gradlew build

The plugin JAR will be generated in build/libs/.

icecordisback

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

Kodari AI
KodariSep 11 at 1:53 pm 2
  1. Remove the resource-pack compatibility code and its configuration/metadata.

  2. Update the five custom weapons with the requested base materials, enchantments, and unbreakable behavior.

  1. Removed resource-pack compatibility:

    • Removed item_model and CustomModelData handling.

    • Removed model settings from weapons.yml and WeaponType.

    • Updated the README to remove resource-pack instructions.

  2. Added requested weapon enchantments and levels:

    • Abyssal Mace

    • Graveborn Scythe

    • Inferno Blade

    • Tempest Bow

    • Frostfang Dagger

  3. Updated Graveborn Scythe to use NETHERITE_HOE, following the Base Items mapping. Existing config keeps all weapons unbreakable by default.

icecordisback

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" } }

Kodari AI
KodariSep 11 at 2:13 pm 1
  1. Update the Graveborn Scythe base material to NETHERITE_AXE and apply the requested full-width weapon names.

  2. 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_mace

    • customweapons:item/frostfang_dagger

    • customweapons:item/tempest_bow

    • customweapons:item/inferno_blade

    • customweapons:item/graveborn_scythe

The model paths are applied through ItemMeta#setItemModel(...), matching the JSON structure provided.

icecordisback

change the .jar file name to FalixWeapons-V1.jar

Kodari AI
KodariSep 11 at 2:15 pm 1

Updated the Gradle build configuration so the generated plugin JAR is named:

FalixWeapons-V1.jar

icecordisback

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

Kodari AI
KodariSep 11 at 2:29 pm 4
  1. Update weapon prefixes with the requested color, underline, bold, and full-width formatting.

  2. Remove custom model data/item-model handling.

  3. Move all weapon settings into config.yml, including materials, names, enchantments, and unbreakable state.

  • Updated weapon prefixes:

    • Abyssal Mace: &5&u&l

    • Tempest Bow: &3&l&u

    • Inferno Blade: &4&l&u

    • Graveborn Scythe: &8&l&u

    • Frostfang 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.

icecordisback

when seeing the plugin description in minecraft server by /plugins add author IceCord

Kodari AI
KodariSep 11 at 2:36 pm 1

Updated the plugin author shown by /plugins to IceCord.

icecordisback

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

Kodari AI
KodariSep 11 at 2:53 pm 3
  1. Add configurable ritual crafting with per-weapon duration, required items, and ritual coordinates.

  2. Announce active ritual coordinates through a boss bar to online players and players after they join.

  3. Drop the completed weapon, assign ownership to the first player who picks it up, and persist/display ownership.

  4. 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

icecordisback

make a texture/resource pack for this plugin . Iam giving u items picture make a working resource pack with it

5 images attached
Kodari AI
KodariSep 11 at 4:02 pm 2
  1. Locate the supplied weapon images and current resource-pack/plugin structure.

  2. Add the five item textures, model definitions, and item overrides for the weapon base materials.

  3. 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_model component, 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.mcmeta for Minecraft 1.21.4.

  • Added a Gradle task:

Shell
gradle resourcePack

This creates:

Plain Text
build/distributions/FalixWeapons-ResourcePack.zip

The uploaded pictures are not available as actual PNG files inside the project, so place them in:

Plain Text
resource-pack/assets/customweapons/textures/item/

with these exact names:

Plain Text
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.

icecordisback

how to run gradle resourcepack

Kodari AI
KodariSep 11 at 4:11 pm 1

Run the command from the plugin project’s root folder—the folder containing build.gradle.

Windows

Open Command Prompt or PowerShell:

Shell
gradlew.bat resourcePack

If Gradle is installed globally:

Shell
gradle resourcePack

Linux/macOS

Shell
./gradlew resourcePack

Or, if Gradle is installed globally:

Shell
gradle resourcePack

The task name is case-sensitive: use resourcePack, not resourcepack.

The generated resource pack will be located at:

Plain Text
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:

Plain Text
resource-pack/assets/customweapons/textures/item/
icecordisback

give me a file fully completed

Kodari AI
KodariSep 11 at 4:19 pm 1

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:

Plain Text
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:

Plain Text
FalixWeapons-ResourcePack.zip

The required texture directory is:

Plain Text
resource-pack/assets/customweapons/textures/item/

The JSON model files are already prepared; only the five actual PNG files are missing.

icecordisback

this file contains png but the pack isnt working help

--- 📎 Attached 10 file(s):

File: abyssal_mace.json

json
{
  "model": {
    "type": "minecraft:model",
    "model": "customweapons:item/abyssal_mace"
  }
}

File: frostfang_dagger.json

json
{
  "model": {
    "type": "minecraft:model",
    "model": "customweapons:item/frostfang_dagger"
  }
}

File: graveborn_scythe.json

json
{
  "model": {
    "type": "minecraft:model",
    "model": "customweapons:item/graveborn_scythe"
  }
}

File: inferno_blade.json

json
{
  "model": {
    "type": "minecraft:model",
    "model": "customweapons:item/inferno_blade"
  }
}

File: tempest_bow.json

json
{
  "model": {
    "type": "minecraft:model",
    "model": "customweapons:item/tempest_bow"
  }
}

File: abyssal_mace (1).json

json
{
  "parent": "minecraft:item/handheld",
  "textures": {
    "layer0": "customweapons:item/abyssal_mace"
  }
}

File: frostfang_dagger (2).json

json
{
  "parent": "minecraft:item/handheld",
  "textures": {
    "layer0": "customweapons:item/frostfang_dagger"
  }
}

File: graveborn_scythe (3).json

json
{
  "parent": "minecraft:item/handheld",
  "textures": {
    "layer0": "customweapons:item/graveborn_scythe"
  }
}

File: inferno_blade (4).json

json
{
  "parent": "minecraft:item/handheld",
  "textures": {
    "layer0": "customweapons:item/inferno_blade"
  }
}

File: tempest_bow (5).json

json
{
  "parent": "minecraft:item/bow",
  "textures": {
    "layer0": "customweapons:item/tempest_bow"
  }
}
5 images attached
Kodari AI
KodariSep 11 at 4:21 pm 1

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:

Plain Text
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:

Plain Text
resource-pack/assets/customweapons/textures/item/

Then save the images with these exact names:

Plain Text
abyssal_mace.png
frostfang_dagger.png
graveborn_scythe.png
inferno_blade.png
tempest_bow.png

Do not use names such as:

Plain Text
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:

Shell
gradlew.bat resourcePack

The ZIP will be created at:

Plain Text
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:

  1. Remove the old server resource pack.

  2. Upload the new ZIP.

  3. Press F3 + T in Minecraft.

  4. Give yourself a newly created weapon, since older items may not have the item_model component.

  5. 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:

YAML
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.

icecordisback

where to run gradlew.bt

Kodari AI
KodariSep 11 at 4:22 pm 1

Run gradlew.bat from the root folder of your plugin project—the folder containing:

Plain Text
build.gradle
gradlew.bat
src/
resource-pack/

Windows steps

  1. Open the project folder in File Explorer.

  2. Click the address bar, type:

Plain Text
cmd
  1. Press Enter.

  2. Run:

Shell
gradlew.bat resourcePack

You can also use PowerShell:

Powershell
.\gradlew.bat resourcePack

The generated ZIP will be here:

Plain Text
build\distributions\FalixWeapons-ResourcePack.zip

Make sure the file is named gradlew.bat, not gradlew.bt.

If gradlew.bat does not exist, run:

Shell
gradle resourcePack

provided Gradle is installed globally.

icecordisback

gradlew.bat is not recognised as inter or external showing and also with gradle only

Kodari AI
KodariSep 11 at 4:26 pm 1

That error means either:

  1. You are not inside the project folder, or

  2. gradlew.bat is 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:

Plain Text
cmd

Press Enter and run:

Shell
dir

You should see:

Plain Text
build.gradle
src
resource-pack

If gradlew.bat is listed, run:

Shell
gradlew.bat resourcePack

In PowerShell, use:

Powershell
.\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:

Shell
java -version

Then install Gradle and reopen Command Prompt. Verify:

Shell
gradle -v

Finally, from the project folder run:

Shell
gradle resourcePack

The output will be:

Plain Text
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:

Plain Text
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:

Powershell
Compress-Archive -Path pack.mcmeta, assets -DestinationPath ..\FalixWeapons-ResourcePack.zip -Force

This creates:

Plain Text
FalixWeapons-ResourcePack.zip

in the plugin project folder.

The ZIP should look like this when opened:

Plain Text
FalixWeapons-ResourcePack.zip
├── pack.mcmeta
└── assets
    └── customweapons

If gradlew.bat is missing, the easiest immediate solution is Option 3.

icecordisback

i made zip but textures are not showing

Kodari AI
KodariSep 11 at 4:51 pm 1

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:

Plain Text
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:

Plain Text
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:

Plain Text
resource-pack\assets\customweapons\textures\item

Place the five real image files there. The filenames must match exactly:

Plain Text
abyssal_mace.png
frostfang_dagger.png
graveborn_scythe.png
inferno_blade.png
tempest_bow.png

Do not use names such as:

Plain Text
abyssal_mace (1).png
Abyssal_Mace.png
abyssal-mace.png

Then recreate the ZIP. In PowerShell, open the resource-pack folder and run:

Powershell
Compress-Archive -Path pack.mcmeta, assets -DestinationPath ..\FalixWeapons-ResourcePack.zip -Force

When opening the ZIP, pack.mcmeta must be visible immediately. This is incorrect:

Plain Text
FalixWeapons-ResourcePack.zip
└── resource-pack
    ├── pack.mcmeta
    └── assets

This is correct:

Plain Text
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 + T after replacing the ZIP.

  • The PNG files are actual PNGs, not renamed .jpg files.

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.

icecordisback

i uploaded png but still not working isnt it is because the jso have customweapons:item but plugin name is falixweapons?

Kodari AI
KodariSep 11 at 4:53 pm 1

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:

Plain Text
assets/customweapons/

with references such as:

JSON
"model": "customweapons:item/abyssal_mace"

Your ZIP must contain:

Plain Text
assets/
└── customweapons/
    ├── items/
    │   └── abyssal_mace.json
    ├── models/
    │   └── item/
    │       └── abyssal_mace.json
    └── textures/
        └── item/
            └── abyssal_mace.png

The plugin must give the item this component:

Plain Text
minecraft:item_model = customweapons:abyssal_mace

If you want the namespace to match the plugin, change every location consistently:

Plain Text
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:

JSON
{
  "parent": "minecraft:item/handheld",
  "textures": {
    "layer0": "falixweapons:item/abyssal_mace"
  }
}

And the item component to:

Plain Text
falixweapons:abyssal_mace

Do not mix customweapons and falixweapons.

The most likely checks are:

  1. Open the ZIP and confirm pack.mcmeta is at the root.

  2. Confirm the PNG is inside assets/customweapons/textures/item/.

  3. Confirm the PNG is named exactly abyssal_mace.png, not abyssal_mace (1).png.

  4. Confirm the ZIP is loaded in Minecraft.

  5. Press F3 + T.

  6. Test with a newly created weapon item.

  7. Ensure the plugin gives customweapons:abyssal_mace, not only a renamed diamond sword.

icecordisback

root means?

Kodari AI
KodariSep 11 at 4:53 pm 1

Root means the first/top level inside the ZIP file.

When you open your ZIP, you should immediately see:

Plain Text
pack.mcmeta
assets

Correct:

Plain Text
FalixWeapons-ResourcePack.zip
├── pack.mcmeta
└── assets
    └── customweapons

Incorrect:

Plain Text
FalixWeapons-ResourcePack.zip
└── resource-pack
    ├── pack.mcmeta
    └── assets

Also incorrect:

Plain Text
FalixWeapons-ResourcePack.zip
└── FalixWeapons-ResourcePack
    ├── pack.mcmeta
    └── assets

To create the correct ZIP on Windows:

  1. Open the actual resource-pack folder.

  2. Confirm it directly contains pack.mcmeta and assets.

  3. Select pack.mcmeta and the assets folder.

  4. Right-click and choose Compress to ZIP file.

Or run this from inside the resource-pack folder:

Powershell
Compress-Archive -Path pack.mcmeta, assets -DestinationPath ..\FalixWeapons-ResourcePack.zip -Force

Then open the generated ZIP. pack.mcmeta and assets must be visible immediately.

icecordisback

tme mcmeta is at 2nd after assets but it is showing in resource pack mnu

Kodari AI
KodariSep 11 at 4:54 pm 1

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:

Plain Text
FalixWeapons-ResourcePack.zip
├── assets
└── pack.mcmeta

The important part is that both are at the same level. It must not look like this:

Plain Text
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:

Plain Text
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:

JSON
{
  "parent": "minecraft:item/handheld",
  "textures": {
    "layer0": "customweapons:item/abyssal_mace"
  }
}

Then press:

Plain Text
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 assets and pack.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.

icecordisback

it says { "model": { "type": "minecraft:model", "model": "customweapons:item/abyssal_mace" } }

Kodari AI
KodariSep 11 at 4:55 pm 1

That JSON is correct for:

Plain Text
assets/customweapons/items/abyssal_mace.json

It tells Minecraft:

Plain Text
customweapons:abyssal_mace
→ customweapons:item/abyssal_mace

You must also have this separate file:

Plain Text
assets/customweapons/models/item/abyssal_mace.json

with:

JSON
{
  "parent": "minecraft:item/handheld",
  "textures": {
    "layer0": "customweapons:item/abyssal_mace"
  }
}

And the PNG must be here:

Plain Text
assets/customweapons/textures/item/abyssal_mace.png

Your plugin configuration already correctly uses:

YAML
item-model: customweapons:abyssal_mace

So do not change customweapons to falixweapons unless you change every folder and reference.

Check these exact points:

  1. The JSON you posted is inside assets/customweapons/items/.

  2. The model JSON is inside assets/customweapons/models/item/.

  3. The PNG is inside assets/customweapons/textures/item/.

  4. Recreate the ZIP after adding the PNG.

  5. Replace the old pack in Minecraft.

  6. Press F3 + T.

  7. 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.

icecordisback

in model it says handheld and in items it says only models

Kodari AI
KodariSep 11 at 4:57 pm 1

That is exactly correct. Minecraft uses two different JSON files:

1. Item definition

Path:

Plain Text
assets/customweapons/items/abyssal_mace.json

Contents:

JSON
{
  "model": {
    "type": "minecraft:model",
    "model": "customweapons:item/abyssal_mace"
  }
}

This points to the model file.

2. Model definition

Path:

Plain Text
assets/customweapons/models/item/abyssal_mace.json

Contents:

JSON
{
  "parent": "minecraft:item/handheld",
  "textures": {
    "layer0": "customweapons:item/abyssal_mace"
  }
}

This points to the texture:

Plain Text
assets/customweapons/textures/item/abyssal_mace.png

Your structure should be:

Plain Text
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:

Plain Text
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.

icecordisback

still not working

Kodari AI
KodariSep 11 at 4:59 pm 1

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:

Plain Text
resource-pack/assets/customweapons/textures/item/abyssal_mace.png

Not:

Plain Text
textures/items/
textures/customweapons/
assets/falixweapons/

The final ZIP must show:

Plain Text
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:

Powershell
Get-ChildItem -Recurse

Confirm the PNG appears under:

Plain Text
assets\customweapons\textures\item\

Then recreate the ZIP:

Powershell
Compress-Archive -Path pack.mcmeta, assets -DestinationPath ..\FalixWeapons-ResourcePack.zip -Force

Open the new ZIP and verify the PNG is inside it. Then:

  1. Remove the old resource pack from Minecraft.

  2. Add/select the new ZIP.

  3. Press F3 + T.

  4. 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:

Plain Text
customweapons:abyssal_mace

so changing the namespace to falixweapons is unnecessary.

icecordisback

how to open powershell in sesourcepack folder

Kodari AI
KodariSep 11 at 4:59 pm 1

Method 1: From File Explorer

  1. Open your resource-pack folder.

  2. Click the folder’s address bar at the top.

  3. Type:

Plain Text
powershell
  1. Press Enter.

PowerShell will open already inside the resource-pack folder.

Then run:

Powershell
Get-ChildItem -Recurse

You should see:

Plain Text
assets\customweapons\textures\item\abyssal_mace.png

Method 2: Right-click

  1. Open the resource-pack folder.

  2. Hold Shift and right-click an empty area inside the folder.

  3. Choose Open PowerShell window here.

On newer Windows versions, choose:

Plain Text
Open in Terminal

Create the ZIP

Once PowerShell is open inside resource-pack, run:

Powershell
Compress-Archive -Path pack.mcmeta, assets -DestinationPath ..\FalixWeapons-ResourcePack.zip -Force

The new ZIP will be created in the folder above resource-pack.

icecordisback

u r saying in main resourcepack folder where all packs are or only wepaons one

Kodari AI
KodariSep 11 at 5:01 pm 1

Only the weapons resource-pack folder—the folder containing the files for this plugin.

It should look like:

Plain Text
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:

Plain Text
pack.mcmeta
assets

Then run:

Powershell
Get-ChildItem -Recurse

After confirming the files, create the ZIP with:

Powershell
Compress-Archive -Path pack.mcmeta, assets -DestinationPath ..\FalixWeapons-ResourcePack.zip -Force

The generated FalixWeapons-ResourcePack.zip is the file you add to Minecraft.

icecordisback

there is code after childitem ta is running rapidly

Kodari AI
KodariSep 11 at 5:02 pm 1

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:

Powershell
Test-Path ".\assets\customweapons\textures\item\abyssal_mace.png"

It should return:

Plain Text
True

If it returns True, create the ZIP:

Powershell
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:

Plain Text
weapons-resource-pack\assets\customweapons\textures\item\abyssal_mace.png
icecordisback

it is false

Kodari AI
KodariSep 11 at 5:04 pm 1

False means the PNG is not in the required location.

Inside your weapons resource-pack folder, create this folder path:

Plain Text
assets\customweapons\textures\item

Then place the texture file inside it and rename it exactly:

Plain Text
abyssal_mace.png

The final structure must be:

Plain Text
weapons-resource-pack
├── pack.mcmeta
└── assets
    └── customweapons
        ├── items
        ├── models
        └── textures
            └── item
                └── abyssal_mace.png

If you already have a PNG somewhere, find it with:

Powershell
Get-ChildItem -Recurse -Filter *.png

Then move or copy that PNG into:

Plain Text
assets\customweapons\textures\item\

Make sure Windows has not named it:

Plain Text
abyssal_mace.png.png

After placing it, run:

Powershell
Test-Path ".\assets\customweapons\textures\item\abyssal_mace.png"

It must return:

Plain Text
True

If the command finds no PNG at all, you need to add or create the weapon texture first.

icecordisback

i have placed it how can i show it to u?

Kodari AI
KodariSep 11 at 5:07 pm 1

You can show me in either of these ways:

Option 1: Send a screenshot

Take a screenshot showing:

  1. The folder address bar.

  2. The assets folder expanded.

  3. This path visible:

Plain Text
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:

Powershell
Get-Location
Test-Path ".\assets\customweapons\textures\item\abyssal_mace.png"
Get-ChildItem ".\assets\customweapons\textures\item"

Copy and paste everything PowerShell prints here.

icecordisback
1 image attached
Kodari AI
KodariSep 11 at 5:08 pm 1

The screenshot shows the PNG is in the correct location inside the ZIP:

Plain Text
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:

  1. Close the ZIP window.

  2. Right-click the weapons ZIP file.

  3. Select Extract All.

  4. Extract it to a new folder, for example:

Plain Text
weapons-extracted
  1. Open the extracted weapons-extracted folder. It must directly contain:

Plain Text
pack.mcmeta
assets
  1. Click the address bar, type:

Plain Text
powershell
  1. Run:

Powershell
Test-Path ".\assets\customweapons\textures\item\abyssal_mace.png"

It should return:

Plain Text
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:

Plain Text
weapons-extracted\weapons\assets

It must be:

Plain Text
weapons-extracted\assets

After checking, compress pack.mcmeta and assets into a new ZIP and use that ZIP as the Minecraft resource pack.

icecordisback

it says true now

Kodari AI
KodariSep 11 at 5:11 pm 1

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:

Powershell
Compress-Archive -Path pack.mcmeta, assets -DestinationPath ..\FalixWeapons-ResourcePack.zip -Force

Then:

  1. Go up one folder.

  2. Find FalixWeapons-ResourcePack.zip.

  3. Add that ZIP to Minecraft’s resource packs.

  4. Press F3 + T to reload resources.

  5. Obtain a new Abyssal Mace.

The ZIP must open directly to:

Plain Text
pack.mcmeta
assets

—not to an extra folder such as:

Plain Text
weapons-extracted\pack.mcmeta
icecordisback

textures not working

Kodari AI
KodariSep 11 at 5:14 pm 1

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:

Plain Text
FalixWeapons-ResourcePack.zip
├── pack.mcmeta
└── assets
    └── customweapons
        ├── items
        ├── models
        └── textures
            └── item
                └── abyssal_mace.png

There must not be an extra folder level:

Plain Text
FalixWeapons-ResourcePack.zip
└── weapons-extracted
    └── assets

Recreate the ZIP from the folder where pack.mcmeta and assets are directly located:

Powershell
Compress-Archive -Path pack.mcmeta, assets -DestinationPath ..\FalixWeapons-ResourcePack.zip -Force

Then:

  1. Put this newly created ZIP in Minecraft’s resourcepacks folder.

  2. Enable it in Options → Resource Packs.

  3. Press F3 + T.

  4. Get a new Abyssal Mace from the plugin.

Also confirm the texture is a real PNG, not a renamed JPG:

Powershell
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.

icecordisback

after writing powershell in addrwess bar it shows only c:

Kodari AI
KodariSep 11 at 5:16 pm 1

That is okay if PowerShell shows something like:

Plain Text
PS C:\>

It means PowerShell opened in the C: drive, not in your resource-pack folder.

Easiest method

  1. Open the extracted resource-pack folder—the one containing pack.mcmeta and assets.

  2. Click the File Explorer address bar at the top.

  3. Type:

Plain Text
powershell
  1. Press Enter.

PowerShell should now show a path similar to:

Plain Text
PS C:\Users\YourName\Desktop\weapons-extracted>

Then run:

Powershell
Test-Path ".\assets\customweapons\textures\item\abyssal_mace.png"

It should say:

Plain Text
True

If it still opens at C:\

Type this command, replacing the path with your actual folder path:

Powershell
cd "C:\Users\YourName\Desktop\weapons-extracted"

Then check:

Powershell
Test-Path ".\assets\customweapons\textures\item\abyssal_mace.png"

The folder PowerShell is opened in must directly contain:

Plain Text
pack.mcmeta
assets
icecordisback

it says it cannot remove bcz it is being used by another process

Kodari AI
KodariSep 11 at 5:18 pm 1

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:

Powershell
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:

  1. Press Ctrl + Shift + Esc.

  2. Find Windows Explorer.

  3. Right-click it and choose Restart.

  4. Run the compression command again.

Make sure you run the command from the extracted folder containing both:

Plain Text
pack.mcmeta
assets
icecordisback

done now next? after removing

Kodari AI
KodariSep 11 at 5:19 pm 1

Now recreate the resource-pack ZIP and install it:

  1. Open the extracted folder that directly contains:

Plain Text
pack.mcmeta
assets
  1. Click the folder’s address bar, type powershell, and press Enter.

  2. Run:

Powershell
Compress-Archive -Path .\pack.mcmeta, .\assets -DestinationPath "$env:USERPROFILE\Desktop\FalixWeapons-ResourcePack.zip" -Force
  1. Open your Desktop and copy FalixWeapons-ResourcePack.zip into Minecraft’s resourcepacks folder:

Plain Text
%appdata%\.minecraft\resourcepacks
  1. In Minecraft, go to Options → Resource Packs and enable it.

  2. Press:

Plain Text
F3 + T
  1. Obtain a new Abyssal Mace and test it.

When you open the final ZIP, its first level must show exactly:

Plain Text
pack.mcmeta
assets

Not an extra folder around them.

icecordisback

why u said desktop falixweapons?

Kodari AI
KodariSep 11 at 5:21 pm 1

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:

Plain Text
weapons.zip

The important part is that the ZIP contains these directly at its top level:

Plain Text
pack.mcmeta
assets

You can also save it in any folder. For example, to create weapons.zip in the current parent folder:

Powershell
Compress-Archive -Path .\pack.mcmeta, .\assets -DestinationPath ..\weapons.zip -Force

Then use that ZIP as your Minecraft resource pack.

icecordisback

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

Kodari AI
KodariSep 12 at 6:06 am 3
  1. Change weapon items to use vanilla base materials with custom model data 1001–1005.

  2. Remove ability location/target restrictions so abilities work with or without a target.

  3. 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.

  1. Weapon item models: changed to vanilla materials with custom model data 1001–1005.

  2. Ability use rules: next I’m tracing the activation and targeting code so abilities can activate in open areas and with valid targets.

  3. 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: 1001

    • Graveborn Scythe: 1002

    • Inferno Blade: 1003

    • Tempest Bow: 1004

    • Frostfang Dagger: 1005

  • Removed the old item-model component 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.

icecordisback

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

Kodari AI
KodariSep 12 at 12:23 pm 2
  1. Inspect the existing ritual/weapon-drop flow and identify the current ritual display, completion, and pickup code.

  2. Replace the invisible ritual presentation with a visible structure and an upright/long weapon display.

  3. 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.

Kodari can make mistakes. Review important code before using.
Files
resource-pack
src
build.gradle
README.md
settings.gradle
Code
42 2,353
src/main/java/me/falix/weapons/FalixWeapons.java
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; }
}