Back to mods
GeckoJS project artwork

CurseForge · Minecraft mod

GeckoJS

Use Geckolib to create animatable block/item/armor by KubeJS

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which GeckoJS release should I use?

Updated 4 months ago
Latest stable file GeckoJS-2101neoforge-1.6.0
Game version 1.21.1
Loader NeoForge

GeckoJS-2101neoforge-1.6.0 targets 1.21.1 with NeoForge. The project page does not say whether this file belongs on the client, dedicated server, or both. All 4 required mods have matching files.

Where it goes

Is GeckoJS required on the client, server, or both?

The project page does not say whether this file belongs on the client, dedicated server, or both.

Client Source doesn’t say
Dedicated server Source doesn’t say
Loader for this release NeoForge
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

The source does not explicitly classify this release as client-only or server-only.

What else does GeckoJS-2101neoforge-1.6.0 need?

GeckoJS-2101neoforge-1.6.0. Change the file and its required mods may change too.

All 4 required mods have matching files

Install KubeJS, GeckoLib, Better Advanced Tooltips, Rhino first. We found matching files for this game-version and loader setup. 2 come through another mod in the chain.

2 listed on this file 2 pulled in by those mods
KubeJS Needed by GeckoJS-2101neoforge-1.6.0
required
Matching file found Matched file: KubeJS NeoForge 2101.7.2-build.381
GeckoLib Needed by GeckoJS-2101neoforge-1.6.0
required
Matching file found Matched file: NeoForge 1.21.1 4.9.3
Better Advanced Tooltips Needed by KubeJS
pulled in
Matching file found Matched file: better-advanced-tooltips-2101.1.0-build.5.jar
Rhino Needed by KubeJS
pulled in
Matching file found Matched file: Rhino 2101.2.7-build.85

2 extra mods were pulled in by other dependencies. Indented rows show who needs each one. We only count dependency files that match this setup. A file for another loader does not fill the gap.

Before you install it

Add GeckoJS without breaking your instance.

Built for GeckoJS-2101neoforge-1.6.0. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use GeckoJS-2101neoforge-1.6.0. It targets 1.21.1 with NeoForge; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    Install KubeJS, GeckoLib, Better Advanced Tooltips, Rhino first. We found matching files for this game-version and loader setup. 2 come through another mod in the chain.

  3. 03

    Put it on the correct side

    The project page does not say whether this file belongs on the client, dedicated server, or both.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside GeckoJS-2101neoforge-1.6.0. It opens that exact file at the source.

About this project

What does GeckoJS add?

Gecko JS

Use GeckoLib to create animatable block/item/armor by KubeJS

Simple Example

Startup script


StartupEvents.registry("block", event => {

    const rotating = RawAnimation.begin().thenLoop("rotating");

    event.create("geckojs:example_block", "animatable")

        .box(1, 1, 1, 15, 15, 15, true)

        .animatableBlockEntity(blockEntity => {

            blockEntity.addController(state => state.setAndContinue(rotating))

        })

        .defaultGeoModel()

})

Model assets/geckojs/geo/block/example_block.geo.json


{

    "format_version": "1.12.0",

    "minecraft:geometry": [

        {

            "description": {

                "identifier": "geometry.example_block",

                "texture_width": 48,

                "texture_height": 48,

                "visible_bounds_width": 3,

                "visible_bounds_height": 2.5,

                "visible_bounds_offset": [0, 0.75, 0]

            },

            "bones": [

                {

                    "name": "bone",

                    "pivot": [0, 8, 0],

                    "cubes": [

                        {

                            "origin": [-7, 1, -7],

                            "size": [14, 14, 14],

                            "uv": {

                                "north": {"uv": [0, 0], "uv_size": [14, 14]},

                                "east": {"uv": [0, 14], "uv_size": [14, 14]},

                                "south": {"uv": [14, 0], "uv_size": [14, 14]},

                                "west": {"uv": [14, 14], "uv_size": [14, 14]},

                                "up": {"uv": [0, 28], "uv_size": [14, 14]},

                                "down": {"uv": [28, 14], "uv_size": [14, -14]}

                            }

                        }

                    ]

                }

            ]

        }

    ]

}

Animation assets/geckojs/animations/block/example_block.animations.json


{

    "format_version": "1.8.0",

    "animations": {

        "rotating": {

            "loop": true,

            "animation_length": 3,

            "bones": {

                "bone": {

                    "rotation": {

                        "vector": ["Math.sin(query.anim_time*90)*180", "Math.cos(query.anim_time*90)*180", "Math.sin(query.anim_time*90)*180"]

                    }

                }

            }

        }

    },

    "geckolib_format_version": 2

}

Texture assets/geckojs/textures/block/example_block.png

example_block.png

Project description from CurseForge.

Pick your setup

GeckoJS by Minecraft version and loader

Choose the version and loader you play, then open the matching release.

2 available setups

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

GeckoJS versions and loaders

8 of 8 releases match

Looking for an older file? The official CurseForge project page is in Resources.