I cant get my custom item skript to work.

  • 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!

shanebro9

Member
Jul 25, 2024
1
0
1
on load:
set {customItems::drugs} to sugar named "Drugs" with lore "&5+5I Feel Kinda High rn"
set {customItems::adminsword} to unbreakable wooden sword named "&c&lADMIN SWORD" with lore "&4+10Found In A Place. Far. Far Away."

command items:
permission: op
trigger:
loop {customItems::*}:
give player loop-value

on right click:
if item is {customItems::drugs}:
add 30 to the player's speed

on damage:
if attacker's tool is {customItems::adminsword}:
add 10 to the damage



I am new to skript and I cant find what's wrong with it. Thanks.
 
I'm new to skript too, but I think if you use this code it should work


Code:
on load:
set {customItems::drugs} to sugar named "Drugs" with lore "&5+5I Feel Kinda High rn"
set {customItems::adminsword} to unbreakable wooden sword named "&c&lADMIN SWORD" with lore "&4+10Found In A Place. Far. Far Away."

command items:
permission: op
trigger:
    loop {customItems::*}:
        give player loop-value

on right click:
    if player's tool is {customItems::drugs}:
        add 30 to the player's speed

on damage:
    if attacker's tool is {customItems::adminsword}:
        add 10 to the damage
 
Drugs can seriously harm both your body and mind.

  1. Physical Health Problems:
    Drugs can damage vital organs like your heart, liver, and lungs. For example:
    • Some drugs can make it hard to breathe or cause heart attacks.
    • Others can damage your liver, which helps clean out toxins from your body.
    • They can weaken your immune system, making it harder for your body to fight off sickness.
  2. Mental Health Issues:
    Drugs affect the way your brain works, often leading to:
    • Confusion, mood swings, or feeling sad and anxious.
    • Long-term use can lead to mental health disorders, like depression or anxiety.
    • Drugs can make you feel good for a short time, but they often leave you feeling worse afterward.
  3. Addiction:
    One of the biggest dangers is addiction. When you take drugs, your brain starts to depend on them to feel good, leading to:
    • A cycle where you need more and more to feel the same effect.
    • Over time, addiction can take over your life, making it harder to focus on school, work, or relationships.
  4. Dangerous Behavior:
    Drugs can make you act differently and do things you normally wouldn’t:
    • They can impair your judgment, causing you to take risks, like driving while under the influence or getting into dangerous situations.
    • Some drugs make people more aggressive or impulsive.
  5. Legal and Social Consequences:
    Many drugs are illegal, and getting caught with them can lead to serious consequences:
    • You can be arrested or face legal trouble that might affect your future.
    • It can hurt your relationships with friends and family, causing stress and conflict.