Solved parsed as a item type

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

yzlm

Member
Feb 25, 2021
16
0
1
23
hello guys i need help

Code:
set {_block} to "%1 of player's tool%" parsed as a item type


 if player has 1 of {_block}: ##this section gives FALSE if tool named like "&eEnder Stone"

remove 1 of {_block} from player's inventory ### and its not correct too if item has a name
[doublepost=1619789625,1619741779][/doublepost]up
[doublepost=1619812431][/doublepost]up+
[doublepost=1619869787][/doublepost]anyone?
[doublepost=1619896416][/doublepost]++up
 
You want to remove an item with a name from a player's inventory?
[doublepost=1619954050,1619953391][/doublepost]
Code:
  set {_tool} to player's tool
  set name of {_tool} to name of player's tool
  if player's inventory contains {_tool}:
Anyway I think this is what you want
 
thanks man i love you
  1. if player's inventory contains {_tool}: this section helped me
 
Status
Not open for further replies.