Jump to content

How do i fill a gui with 1 item without doing a bunch of format gui slots


pnguin

Recommended Posts

Hi there! So i just wanted to know how to how a gui with 1 item without doing a bunch of format gui slots

heres a part of my code if u need it or someth

command /pu [<offline player>] [<text>]:
	permission message: &cNo perms!
	permission: mod
	trigger:
		if arg-1 is set:
			if arg-2 is not set:
				open virtual chest with size 6 named "&9&lPUNISH &b&l● &3&o%arg-1%" to player
				format gui slot 13 of player with book named "&c&lPunish &7» &c&o%arg-1%" with lore "&cChoose punishment" and "&cfor &c&o%arg-1%" 
				format gui slot 0 of player with barrier named "&c&lClose" to close

 

I used to play Minehut I guess?
Yeah, I still watch the forums for some reason. (15/5/2023)
Link to comment
Share on other sites

are you using TuSKe?

If I have helped you out in your post or you liked what I posted, please upvote and react to my post! It helps me a lot!

Some Minehut Links:

Server Rules • Staff Applications • News & Updates • Reports • Appeals


Minehut: VIP (07/04/2021 --> Current)
Elestra/Versa Realms: Manager (12/04/2021 --> Current)

If you have any questions contact me!
My Discord: BanditEagle#2481
My Spigot Profile: https://www.spigotmc.org/members/banditeagle.935281/
My IGN: BanditEagle

Link to comment
Share on other sites

Just now, BanditEagle said:

are you using TuSKe?

Dont ask me to use another addon to make gui's lol i always work with TuSKe gui's

I used to play Minehut I guess?
Yeah, I still watch the forums for some reason. (15/5/2023)
Link to comment
Share on other sites

Just now, pizzaschut said:

Dont ask me to use another addon to make gui's lol i always work with TuSKe gui's

nono dw i just wanted to make sure

try this:

command /pu [<offline player>] [<text>]:
	permission message: &cNo perms!
	permission: mod
	trigger:
		if arg-1 is set:
			if arg-2 is not set:
				create a gui virtual chest named "&9&lPUNISH &b&l● &3&o%arg-1%" with 6 rows:
				    format gui slot 13 book named "&c&lPunish &7» &c&o%arg-1%" with lore "&cChoose punishment" and "&cfor &c&o%arg-1%" 
				    format gui slot 0 with barrier named "&c&lClose" to close
                open last gui to player

on inventory click:
    inventory name of current inventory of player is "&9&lPUNISH &b&l● &3&o%text%":
        cancel event
        clicked slot is 0:
            close inventory

i have low hopes of it working, but try it out

If I have helped you out in your post or you liked what I posted, please upvote and react to my post! It helps me a lot!

Some Minehut Links:

Server Rules • Staff Applications • News & Updates • Reports • Appeals


Minehut: VIP (07/04/2021 --> Current)
Elestra/Versa Realms: Manager (12/04/2021 --> Current)

If you have any questions contact me!
My Discord: BanditEagle#2481
My Spigot Profile: https://www.spigotmc.org/members/banditeagle.935281/
My IGN: BanditEagle

Link to comment
Share on other sites

looks like indentation issues. fix that.

If I have helped you out in your post or you liked what I posted, please upvote and react to my post! It helps me a lot!

Some Minehut Links:

Server Rules • Staff Applications • News & Updates • Reports • Appeals


Minehut: VIP (07/04/2021 --> Current)
Elestra/Versa Realms: Manager (12/04/2021 --> Current)

If you have any questions contact me!
My Discord: BanditEagle#2481
My Spigot Profile: https://www.spigotmc.org/members/banditeagle.935281/
My IGN: BanditEagle

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