help with my skript

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

spicy

Member
Nov 22, 2023
2
0
1
how do i make it so that when you get a rare drop it spawns a firework? i dont know what the error is except it just says firework error
Code:
on death:

    if victim is {_imz}:

        if attacker is a player:

            chance of 1%:

                drop {rpgitem::zweaponhandle} at location of victim

                send "&eYou just found a &r&2Zombified weapon handle&r&a 1%% drop chance" to attacker

                play sound "level_up" to attacker

                launch "burst" firework at location of victim timed 0 coloured "light_blue" #IDK FIREWORKS ERROR HERE

also theres an error with a crafting recipe with custom items i have already defined
Code:
on load:

    register new shaped recipe for iron sword named "&l&7Zombie sword" using air, {rpgitem::zsteelblock}, air, air, {rpgitem::zsteelblock}, air, {rpgitem::zweaponhandle}, air #IDK RECIPES ERROR HERE

someone please help me
 
instead of
Code:
on chance of 1%
use:
Code:
on death:
  if attacker is player:
    set {random} to a random integer between 1 and 100
    if {random} is 1:
     drop {rpgitem::zweaponhandle} at location of victim
     send "&eYou just found a &r&2Zombified weapon handle&r&a 1%% drop chance" to attacker
     play sound "level_up" to attacker
     launch "burst" firework at location of victim timed 0 coloured "light_blue" #IDK FIREWORKS ERROR HERE

Also make sure that {rpgitem::zweaponhandle} is defined

If this does not work, please send me the error message.
 
instead of
Code:
on chance of 1%
use:
Code:
on death:
  if attacker is player:
    set {random} to a random integer between 1 and 100
    if {random} is 1:
     drop {rpgitem::zweaponhandle} at location of victim
     send "&eYou just found a &r&2Zombified weapon handle&r&a 1%% drop chance" to attacker
     play sound "level_up" to attacker
     launch "burst" firework at location of victim timed 0 coloured "light_blue" #IDK FIREWORKS ERROR HERE

Also make sure that {rpgitem::zweaponhandle} is defined

If this does not work, please send me the error message.
whats the difference between them?, also i want the firework to explode as soon as its spawned but i cant get that to happen