Jump to content

Simple /rules gui Feel free to make bigger and edit


Recommended Posts

command /rules:
    trigger:
        open virtual chest inventory with size 3 named "&4&lRules" to player
        format gui slot 0 of player with red stained glass pane named "&4&l" 
        format gui slot 1 of player with red stained glass pane named "&4&l" 
        format gui slot 2 of player with red stained glass pane named "&4&l" 
        format gui slot 3 of player with red stained glass pane named "&4&l" 
        format gui slot 4 of player with red stained glass pane named "&4&l" 
        format gui slot 5 of player with red stained glass pane named "&4&l" 
        format gui slot 6 of player with red stained glass pane named "&4&l" 
        format gui slot 7 of player with red stained glass pane named "&4&l" 
        format gui slot 8 of player with red stained glass pane named "&4&l" 
        format gui slot 9 of player with red stained glass pane named "&4&l" 
        format gui slot 17 of player with red stained glass pane named "&4&l" 
        format gui slot 18 of player with red stained glass pane named "&4&l" 
        format gui slot 19 of player with red stained glass pane named "&4&l" 
        format gui slot 20 of player with red stained glass pane named "&4&l" 
        format gui slot 26 of player with red stained glass pane named "&4&l" 
        format gui slot 25 of player with red stained glass pane named "&4&l" 
        format gui slot 24 of player with red stained glass pane named "&4&l" 
        format gui slot 23 of player with red stained glass pane named "&4&l" 
        format gui slot 22 of player with red stained glass pane named "&4&l" 
        format gui slot 21 of player with red stained glass pane named "&4&l" 
        format gui slot 11 of player with barrier named "&c&lNo spamming" with lore "&7&lSpamiing temp mute depending on how much spam it is" 
        format gui slot 13 of player with barrier named "&c&lNo racial slurs" with lore "&7&lracial slurs = 1 - 7 days ban" 
        format gui slot 15 of player with barrier named "&c&lNo online dating" with lore "&7&lonline dating = 1 day mute"

Link to post
Share on other sites

you can just do this to format the glass panes easier 

format gui slots (integers between 0 and 21) of player with red stained glass pane named "&4&l"

This will set all slots in the gui to a glass pane. Then any other formats at the end will replace the glass pane on that slot.

Discord - Tarna256#8675

In-game name - _Tarna_

---------------------------------------------------------

[VIP] - 7/27/2020

Support - 7/8/20 | 11/3/20

Helper  - 11/3/20 - 2/21/21

Moderator - 2/21/21 - 5/17/21

---------------------------------------------------------
image.png.2111009afbd8bef10966ba9ede35a199.pngimage.png.70849a9b84e0347ce107b8e3eaee312c.png
 

Link to post
Share on other sites
On 5/3/2021 at 11:47 AM, Tarnerd said:

you can just do this to format the glass panes easier 


format gui slots (integers between 0 and 21) of player with red stained glass pane named "&4&l"

This will set all slots in the gui to a glass pane. Then any other formats at the end will replace the glass pane on that slot.

You can also use a function to just do the border. Here's something I made for a navigator.

Spoiler

function generateBorders(p: player , r: integer):
    set {_i} to -1
    loop 9 times:
        add 1 to {_i}
        add {_i} to {_border::*}
    loop ({_r} - 2) times:
        add 1 to {_i}
        add {_i} to {_border::*}
        add 8 to {_i}
        add {_i} to {_border::*}
    loop 9 times:
        add 1 to {_i}
        add {_i} to {_border::*}
    format gui slot {_border::*} of {_p} with black glass pane named "&7"

Copy the code above and add it to the top of the script.

You just throw in the player and amount of rows and the function will take care of it for you. Here's an example:

Spoiler

# something goes up here.
open virtual chest with size 3 named "&cExample GUI" to player
generateBorders(player, 3)
format gui slot 13 of player with paper named "&cExample Item"
# something will usually go down here.

This is just an example. Please don't paste this into a script and expect it to work first-try.

 

Loading signature...
duh.gif.8b527aec819aa6aec1163679bc32d922.gif

Link to post
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...