Help with "

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

    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!

Status
Not open for further replies.

RobinJ24

Member
Apr 24, 2019
1
0
0
29
Skript version: 2.3.6
Minecraft version: 1.13.2

I'm trying to make a weed plugin like this:

on rightclick on air holding a paper:
if name of tool of player is "Joint":
apply slowness 2 without particles to player for 1 minute
apply hunger 2 without particles to player for 1 minute
apply weakness 2 without particles to player for 1 minute
apply nausea 2 without particles to player for 40 seconds
remove paper from player

However, it gives the status effects when right clicking with any paper. How do I make it so that it does nothing when right-clicking with regular paper?
[doublepost=1556062526,1556062396][/doublepost]I've accidentally borked the title. It should be "Help with right click-arguments", or if the mod can think of something more descriptive then maybe you can change it.
 
Code:
on right click:
    if player's held item is paper named "Joint":
        apply slowness 2 without particles to player for 1 minute
        apply hunger 2 without particles to player for 1 minute
        apply weakness 2 without particles to player for 1 minute
        apply nausea 2 without particles to player for 40 seconds
        remove paper from player
I think you do it like that
[doublepost=1557687066,1557686974][/doublepost]if the "apply effect" lines dont work you can do
Code:
make console execute command "/effect"
 
Status
Not open for further replies.