Skip to content

Examples (Geckolib 3)

Tslat edited this page Jul 3, 2023 · 10 revisions

Examples

GeckoLib includes several example implementations of its various features.

These are only present while in development environments, and can be accessed during debug runs or through the IDE in the example package

Disabling Geckolib Dev Mode Only Examples

If for some reason you don't want GeckoLib to have its built-in example items/blocks/entities/etc while in dev, add the below property to your run configuration in your build.gradle file

args '-Dgeckolib.disable_examples=true'

Entities

GeckoLib has 4 example entities:

Video Tutorials

Forge

Baby Entities

Variant Entities

Basic Swing Attack Animations

Fabric

Baby Entities

Variant Entities

Basic Swing Attack Animations

Blocks

GeckoLib has the Habitat and Fertilizer example block models. The Habitat is a static single-animation block and the Fertilizer switches models, textures, and animations based on the current rain state.

Items

The JackInTheBoxItem is an example animated item that plays music and an animation on right click.

Armor

The GeckoArmorItem is an animated armor example that plays an idle animation only when all 4 armor pieces are equipped.

Replaced Entities

The ReplacedCreeperEntity is an example of a GeckoLib animated model dynamically replacing an existing vanilla entity model

Table of Contents

Geckolib 3
Geckolib 4

Hosted By: Cloudsmith

Package repository hosting is graciously provided by Cloudsmith.

Cloudsmith is the only fully hosted, cloud-native, universal package management solution that enables your organization to create, store and share packages in any format, to any place, with total confidence.

Clone this wiki locally