NeoGeckoJS
No reviews yet
Use GeckoLib to create animatable block/item/armor by KubeJS now on NeoForge!
Provides a framework or library for other mods to use.
Neoforge is a fork of the Minecraft Forge available for versions 1.20.1+ of Minecraft. Many Forge mods are compatible with Neoforge and vice versa.
Community voices
Reviews
Click once to include, again to exclude, again to clear
No reviews yet. Be the first to review this project!
Get it on
Available Platforms
Compatibility
Supported Environments
About
Project Details
For authors
Embed Badge
If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.
Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.
Identifiers
Platform IDs
Resources
External Links
About
Description
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"))
})
})
})
Versions
Files
Relations
Project Relations
More like this
Similar Mods
Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.
On ModDex
Community snapshot
By the numbers
Statistics
Want to reach Minecraft players?
We're looking for a server hosting partner to feature here and other parts of the site. Interested? Send us a message!
Get in touchGet it on
Available Platforms
On ModDex
Community snapshot
By the numbers
Statistics
Resources