Hi,
I want to check if player has some modded item and give some item
Here is an example code
I want to check if player has some modded item and give some item
Here is an example code
Code:
command /example:
trigger:
set metadata tag "example" of player to chest inventory with 3 rows named "example"
set {_item1} to "TAC_M92FS" #Here I tried to set gui slot 0 to modded item
set slot 0 of metadata tag "gunstore" of player to {_item1} named "&a&lexample"
open (metadata tag "example" of player) to player
on inventory click:
event-inventory = (metadata tag "example" of player):
cancel event
index of event-slot = 0:
if player has 10 modded_coins: #Here it checks for an item
give {_item1} to player
close inventory of player