Overview
About This Club
Professionally skripted generator survival in a bedrock box.
Server Name
lavas.minehut.gg
Website
Discord Server
- What's new in this club
-
Posts
-
PrecedingMC 11
Post moved to the Skript Discussion category, please ensure you're posting in the correct place next time! You can use something like this to give player a named item. This example gives a player 1 diamond named "Test" in green:
give player 1 of diamond named "&a&lTest"
-
So I wanted to know how to make a skript where it gives the player an item with a name. But I can not figure it out. Please help!
-
_Tarna_ 876
Getting a server plan and joining the server directly will remove that intermediate lobby.
-
_Tarna_ 876
What are you stuck on? Also you should use metadata to make GUIs. Like this:
command /shop: trigger: set {_gui} to chest inventory with 3 rows named "Shop" set slot 0 of {_gui} with diamond named "Diamond: $50" set metadata tag "shop" of player to {_gui} open {_gui} to player on inventory click: event-inventory is metadata tag "shop" of player cancel event if index of event-slot is 0: # remove money, give diamond
And if you want to make it even better, look into using functions to simplify the process and so you don't have to manually specify each item and its price and click action.
-
V0listic 0
command /menu:trigger:set {_menu} to a new chest inventory with 3 row named "&6 Menu"set slot 13 of {_menu} to diamond named "&9Shop" # is the name of diamond itemopen {_menu} to playeron inventory click: # Listen for players clicking in an inventory.name of event-inventory is "&6 Menu"cancel eventset {_menu} to a new chest inventory with 3 row named "&9Shop" # opens a new chest called shopset slot 13 of {_menu} to diamond named "&2Buy for $157"open {_menu} to playeron inventory click:name of event-inventory is "&9Shop"cancel eventset {_menu} to a new chest inventory named "Buy"set slot integers from 0 to 26 of {_menu} to grey stained glass pane with name " "set slot 13 of {_menu} to diamond named "diamond" # is the name of diamond itemset slot 12 of {_menu} to red stained glass pane named "&4-1"set slot 14 of {_menu} to green stained glass pane named "&2+1"set slot 22 of {_menu} to green dye named "&aConfirm"set slot 4 of {_menu} to red dye named "&cCancel"open {_menu} to playeron inventory click:name of event-inventory is "&aBuy"cancel eventif index of event-slot is 4:close player's inventoryon inventory click:name of event-inventory is "&aBuy"cancel eventif index of event-slot is 13:
-