Jump to content

Skript not working with named items in stacks


kxden

Recommended Posts

Hello! right now im making a skript that has throwable explosive jalapenos (which are ink sacs), but it wont work if the player is holding more than one of the jalapenos, and will only work if your holding 1. Here is the skript: 

 

on right click:
    if player is holding ink sac named "jalapeno popper":
        shoot egg at speed 1.5
        remove ink sac named "jalapeno popper" from player
    
on damage:
    if attacker has ink sac named "jalapeno popper":
        create a safe explosion of force 5 at victim

 

if anyone could help that would be awesome thanks

Link to comment
Share on other sites

16 minutes ago, kxden said:

Hello! right now im making a skript that has throwable explosive jalapenos (which are ink sacs), but it wont work if the player is holding more than one of the jalapenos, and will only work if your holding 1. Here is the skript: 

 

on right click:
    if player is holding ink sac named "jalapeno popper":
        shoot egg at speed 1.5
        remove ink sac named "jalapeno popper" from player
    
on damage:
    if attacker has ink sac named "jalapeno popper":
        create a safe explosion of force 5 at victim

 

if anyone could help that would be awesome thanks

Try if player's held item contains ink sac named "jalapeno popper":

 

 

image.png.bc433d6489d70ad831075fe76809b993.png
 

Owner of Lifestealed, Labs, Encore, UNOfficially and Observed
 

OG [VIP] 12/26/20 - 10/27/2021
OG [PRO] 12/27/21 - 11/18/2022
OG [LEGEND] 11/18/2022 - 3/14/2023
[DEFAULT] 3/14/2023 - 5/8/2024

[MOD] 5/8/2024 - Present

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...