your current location:首页 > news>Screen js mineCraft

Screen js mineCraft

2024-12-15 02:33:27|Myriagame |source:minecraft skins

This is a Kubejs expansion for creating menu (GUI).

Function:

Square;

Block entity;

Entity (planned).

The following is an example:

 StartuPEVENTS.Registry ('BLOCK', Event => {Event.create ('EXAMPLE_BLOCK', 'Entity'). DNESS (1.0) .displayName ('Example block') .ntity (builder => {// adds a blockIntity ONTO This Block Builder.ticker (Level, POS, State, BE) => {// A Tick Method, C, C, C, C Alled on Block Entity Tick if (!Level.isClientSide) {// Always Check Side, The Tick Method is Called on Both Client and Server If (Level.getgametime ()%20 === 0) { If (level.getBlockstate (pos.above ()) === Blocks.air.DefaultBlockstate ()) {level.setBlock (pos.above (), blocks.glass.defaultBlockstate (), 3), 3)

} Else {level.setblock (pos.above (), blocks.air.defaultBlockstate (), 3)}} be_logger.info ( 'Aaa aaa')}}). SaveCallback (Level, POS, be, TAG) => {// Called on Blockntity Save, DON'T SEE WOHY You Would Ever Need These Tbf, But they're Here Tag.putint ("Tagvalueaa", be.getpersisten tdata (). Getint ('Progress')})}).LoadCallback ((Level, POS, BE, TAG) => {//

Called on blockity load, same as about be.getpersisistentdata (). Putint ("Progress", tag.getint ("tagvalueaa")}). => Tag = {Progress: 0, Example_value_FOR_EXTRA_SAVED_DATA: '0mg This IZCrazyyy '}) // Adds a' DEFAULT 'Saved Value, Added on Block Entity Creation (Place ETC) // [1st Param: Compoundtag Consumer] .addddddddddddddddddddddddddddd ValidBlock ('Example_block') // Adds A Valid Block this can attach to,UseEless In Normal Circumstances (Except if you want to attach to multible blocks) .hasgui () // if screenjs is installed, MARKS this blockity

As having a gui, doeSn't do anything otherwise .ItemHandler (27) // Adds A Basic Item Handler to this block entity, use something like powerfuljs for more a dvanced functionality // [1st Param: Slot Count]. EnergyHandler (10000,1000, 1000) // adds a basic fel handler, say as about // [1st Param: Max Energy, 2nd Param: Max Input, 3rd Param: Max Output] .fluidHandl ER (1000, Stack => TRUE) // Adds ABasic Fluid Handler // [1st Param: Max Amount, 2nd Param: Fluid Filter]})})

Minecraft images

The goal of MC Encyclopedia (MCMOD.CN) is to provide players with a better environment for MOD learning and research, and accept and cultivate more hardcore players.Provide Minecraft (Minecraft) MOD (module) item data introduction, tutorial strategy and MOD download, and is committed to improving the player's game experience.About the encyclopedia Encyclopedia help development log Donate Encyclopedia to follow the encyclopedia B station = "Fa Fa-Anagle-Right"> Opinions feedback Email © CopyRight Mc Encyclopedia 2013-2024 mcmod.cn |

Minecraft images

In addition to other statements, MCMOD.CN, all open public editing content uses the BY-NC-SA 3.0 protocol.

Minecraft images