All Mods Resource Packs Data Packs Shaders Modpacks Plugins
NeoGeckoJS

NeoGeckoJS

by MrClockwork • Downloads: 0 • Followers: 0
Description
Gallery
Changelog
Versions

Gecko JS

Use GeckoLib to create animatable block/item/armor by simply using KubeJS!

This mod was originally made for Forge 1.20.1 and had no Modrinth Version, however this both ports and updates the mod for NeoForge 1.21.1 with just about perfect 1:1 replication so any original scripts and assets work almost the same!

What're some examples?

Any of the original examples should work pretty much the exact same, again it's just about 1:1.

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()

})

Item Example:

StartupEvents.registry('item', event => {
    event.create('cool_sword', 'anim_sword')
        .tier('diamond')
        .defaultGeoModel()
        .addController(controller => {
            controller.addAnimation(state => {
                if (state.isMoving()) {
                    return state.setAndContinue(RawAnimation.begin().thenLoop("walk"))
                }
                return state.setAndContinue(RawAnimation.begin().thenLoop("idle"))
            })
        })
})

Armor Example:

event.create('fancy_helmet', 'anim_helmet')
    .material('iron')
    .defaultGeoModel()
    .armorItemUseGeoModel() // Makes the item icon use the 3D model
    .boneVisibility((renderer, slot) => {
        // Hide a specific bone on the armor model
        renderer.hideBone("extra_antenna") 
    })

Blocks Example:

StartupEvents.registry('block', event => {
    event.create('animated_pillar', 'animatable')
        .defaultGeoModel()
        .addController(controller => {
            controller.addAnimation(state => {
                return state.setAndContinue(RawAnimation.begin().thenLoop("spin"))
            })
        })
})

All Versions

+ Add Version
Name Game version Platforms Published Downloads Actions
1.21.1
Neoforge
4mo ago 1
1.21.1
Neoforge
5mo ago 1
Minor Patch to resolve a NeoForge Version issue with most mods, This is a version made for NeoForge 2.1.228 over NeoForge 2.1.233 like the initial upload.
Initial Release of GeckoJS, Functions 1:1 with the original GeckoJS on CurseForge that was made for Forge 1.20.1 so any original scripts from then should work with this! This version was the inital release and due to me being tired as hell when I compiled, I forgot to alter the NeoForge version to be lower than latest for some mods that have yet to update to 2.1.233, The other v1.0.1 version is the version your going to want for most mods / modpacks.
NeoGeckoJS Icon
Download NeoGeckoJS
Select game version
Select platform