Giter Club home page Giter Club logo

server-on-smelly-api's Introduction

Chest GUI Template

A template made so simpily that you can create a page/chest screen, as easy as writting a few letters. Check out this incredidably made chest GUI and its easy to write framework.

Documentation

Editing the static_pages.js

The static_pages.js is the file that stores all static pages in the chest gui. This is a simple file that stores screens, items, and slot ids in 1 file.

Creating a Page:

This code will create a page with the id of smelly:page1 this is very important because this is what links the pages

new Page(`smelly:page2`, 54, "default")
  .createItem(40, "minecraft:barrier", 1, 0, "close", "Close GUI");

To make pages link to each other create another page and use the page action to link them:

new Page(`home`, 54, "default")
  .createItem(40, "minecraft:stick", 1, 0, "page:smelly:page2", "Go back home");

This code line shows some stuff that might be confusing but as you can see im creating a item at slot 40, that item is the id "minecraft:stick" it has 1 item in its stack and a data value of 0, When this item is grabbed it runs the item action "page:smelly:page2" witch means when it is grabbed it will switch the current chest GUI page to "smelly:page2", This id is found when creating the page above

Support

For support, join the discord: https://discord.gg/3GvfCDdTqY

server-on-smelly-api's People

Contributors

leaftail1880 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.