Jump to content

Skript help with Item command


JbLmao

Recommended Posts

Hello everyone I have been making a server and wanted to add some features to it

I made a script with which when you join you receive an item chest and called lobby in slot 0 . I wanted it so that when I right click it it runs a specific command

Here is my code

on join:
   set slot 0 of player to chest named "&8» &bLobby &8«"
     on rightclick with chest:
if name of tool of player is "&8» &bLobby &8«":  
wait 1 tick
         execute player command "/lucky list"

this code shows errors please help . I have already made the other command /lucky list

Link to comment
Share on other sites

2 minutes ago, JbLmao said:

Hello everyone I have been making a server and wanted to add some features to it

I made a script with which when you join you receive an item chest and called lobby in slot 0 . I wanted it so that when I right click it it runs a specific command

Here is my code


on join:
   set slot 0 of player to chest named "&8» &bLobby &8«"
     on rightclick with chest:
if name of tool of player is "&8» &bLobby &8«":  
wait 1 tick
         execute player command "/lucky list"

this code shows errors please help . I have already made the other command /lucky list

your indent is wrong, it would be:

on join:
	set slot 0 of player to chest named "&8» &bLobby &8«"
     
on rightclick with chest:
	if name of tool of player is "&8» &bLobby &8«":  
		wait 1 tick
		execute player command "/lucky list"

 

Discord: neo?#1200

First JoinDecember 17th, 2015

VIP: 23/08/2019

Minecraft Username: nullific

santioNERD.png.c68b0fda25a448bcbe3278033a7987b2.png

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