Code Monkey home page Code Monkey logo

sketch's Introduction

日本語 | English

Sketch

A mcfunction framework for easily building inventory menus

Sketch v2 0 0_en
The datapack for this example is located in the Example directory

Supported Versions

  • 1.20.x
  • 1.19.4

Download

See Releases

Dependencies

To use this datapack, the following datapacks must be installed

Usage

#> menu:main/

item replace block 10000 0 10000 container.0 with minecraft:gray_stained_glass_pane
data modify storage sketch: in.key set value "f"
function sketch:api/register_item/button

item replace block 10000 0 10000 container.0 with minecraft:gold_block
data modify storage sketch: in.key set value "G"
data modify storage sketch: in.listener set value "give"
function sketch:api/register_item/button


data modify storage sketch: in.contents append value [f, f, f, f, f, f, f, f, f]
data modify storage sketch: in.contents append value [f, -, -, -, G, -, -, -, f]
data modify storage sketch: in.contents append value [f, f, f, f, f, f, f, f, f]

data modify storage sketch: in.id set value "main"
function sketch:api/build/auto
#> menu:main/listener

execute if data storage sketch: callback{listener:"give"} run give @s minecraft:gold_block 1

For detailed instructions, see here

Cautionary Points

  • Forceload the coordinates 10000 10000 and place the shulker box at the following coordinates
    • 10000 0 10000
    • 10000 1 10000
    • 10000 2 10000

About Previous Versions

If you have been using an previous version of Sketch, you can delete objects that are no longer needed by running the following command.

scoreboard objectives remove SketchDrop
scoreboard objectives remove SketchId

setblock 10000 -64 10000 minecraft:air

Contact

https://twitter.com/rarula_

License

CC0-1.0

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.