Jump to content

When i try to do "player is holding" with items that can be stacked, it only accepts if i have 1 of the certain item


zonf_

Recommended Posts

on rightclick:
	if player has {rawwolfmeat} in main hand:
		if clicked block is campfire:
			cancel event
			wait 1 tick
			send "test" to player
			remove 1 of {rawwolfmeat} from player's inventory
			give 1 of {cookedwolfmeat} to player

Example: if i hold 3 on {rawwolfmeat}, the skript doesnt think i hold {rawwolfmeat}

Link to comment
Share on other sites

7 hours ago, zonf_ said:
on rightclick:
	if player has {rawwolfmeat} in main hand:
		if clicked block is campfire:
			cancel event
			wait 1 tick
			send "test" to player
			remove 1 of {rawwolfmeat} from player's inventory
			give 1 of {cookedwolfmeat} to player

Example: if i hold 3 on {rawwolfmeat}, the skript doesnt think i hold {rawwolfmeat}

Try if player's held item contains 3 of {rawwolfmeat}:

 

 

image.png.bc433d6489d70ad831075fe76809b993.png
 

Lifestealed | Minecraft Servers
 

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 - Present

 

Link to comment
Share on other sites

  • 6 months later...
  • 2 weeks later...

for anyone still looking, compare a relative amount:

 

on rightclick:
	1 of player's tool = campfire:
		send "CLICK WITH CAMPFIRE!!"

 

Minecraft Ranks
[DEFAULT] - 9th October 2020
[PRO] - 21st November 2020
[PATRON] - 27th October 2021

Proficiency
Python - 8 Years
C/C++ - 5 Years
Skript - 4 Years
Javascript - 3 Year
Java - 1 Year

Links
Discord - kegnh#1234

 
Link to comment
Share on other sites

  • 4 months later...

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...