determinuje1

Zrob miecz ktory pod ppm strzela pociskiem ktory po uderzeniu w gracza bierze 4 serca nie zaleznie od zbroi i zaturwa na 10 sekund nazwij go miecz pnączy i cooldown na ten miecz to 60 sekund i komenda zeby go zdobyc to /dawajmieczpnaczy i jest tylko dla op custom model data to 6781

Kodari AI
KodariApr 6 at 11:43 am 4,529 (v2)

I’ll create a custom sword plugin with a freezing projectile attack.

VineSword
A custom sword plugin that shoots freezing projectiles on right-click. When the projectile hits a player, it deals 4 hearts of true damage (ignoring armor) and freezes them for 10 seconds. Features a 60-second cooldown system and includes an OP-only command to obtain the sword. The sword has custom model data support for resource pack integration.

Created VineSword plugin!

Instrukcje dla użytkownika:

  1. Skopiuj plik miecz_pnaczy.sk do folderu plugins/Skript/scripts/

  2. Użyj komendy /sk reload miecz_pnaczy lub zrestartuj serwer

  3. Jako OP użyj /dawajmieczpnaczy aby otrzymać miecz

Funkcje:

  • ✓ Miecz strzela pociskiem po PPM

  • ✓ 4 serca obrażeń (ignoruje zbroję)

  • ✓ 10 sekund zamrożenia (slowness + mining fatigue)

  • ✓ 60 sekund cooldownu

  • ✓ Custom model data 6781 (gotowe na resource pack)

  • ✓ Tylko dla OP

determinuje1

everything is great just change it to netherite sword with sharpness 5

Kodari AI
KodariApr 6 at 11:44 am 2,155 (v2)

I’ll read the current file first to see what needs to be changed.

I’ll update the file to change it from a diamond sword to a netherite sword with sharpness 5.

Changed the sword from diamond to netherite with sharpness 5 enchantment. Use /sk reload miecz_pnaczy to apply the changes!

Kodari can make mistakes. Review important code before using.
Files
miecz_pnaczy.sk
Code
1 45
miecz_pnaczy.sk
# Miecz Pnączy - Vine Sword
# Custom sword that shoots freezing projectiles
# Version: 1.0

options:
    sword-name: &6Miecz Pnączy
    cooldown-duration: 60

on script load:
    send "&a[VineSword] Skrypt załadowany!" to console

command /dawajmieczpnaczy:
    permission: minecraft.command.op
    permission message: &cTylko operatorzy mogą użyć tej komendy!
    trigger:
        give player 1 netherite sword of sharpness 5 named "{@sword-name}" with custom model data 6781
        send "&aOtrzymałeś {@sword-name}&a!" to player

on right click:
    if player's tool is a netherite sword:
        if name of player's tool is "{@sword-name}":
            if {vine.cooldown::%player%} is set:
                if {vine.cooldown::%player%} > now:
                    set {_remaining} to difference between {vine.cooldown::%player%} and now
                    send "&cMusisz poczekać jeszcze %{_remaining}% przed następnym użyciem!" to player
                    cancel event
                    stop
                else:
                    delete {vine.cooldown::%player%}
            shoot a snowball from player at speed 2
            set {vine.projectile::%shot projectile%} to player
            set {vine.cooldown::%player%} to {@cooldown-duration} seconds from now
            send "&aWystrzelono pocisk z {@sword-name}&a!" to player
            cancel event

on projectile hit:
    if {vine.projectile::%projectile%} is set:
        if victim is a player:
            set {_shooter} to {vine.projectile::%projectile%}
            remove 8 from victim's health
            apply slowness 255 to victim for 10 seconds
            apply mining fatigue 255 to victim for 10 seconds
            send "&cZostałeś trafiony przez {@sword-name}&c! Jesteś zamrożony na 10 sekund!" to victim
            send "&aTrafiono %victim%!" to {_shooter}
        delete {vine.projectile::%projectile%}