Skip to content

Examples (Geckolib 4)

Tslat edited this page Nov 4, 2024 · 10 revisions

Examples

GeckoLib comes with several example implementations of its various features.

In GeckoLib4.5, the examples were split out of the base library and into their own repositories. For more info, select the option below for your current version

GeckoLib4-4.4 (1.19.3->1.20.4)

Note

GeckoLib's example implementations 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

property 'geckolib.disable_examples', 'true'

Entities

GeckoLib has 8 example entities:

Blocks

GeckoLib has the Gecko 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

GeckoArmorItem and WolfArmorItem are animated armor examples 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

GeckoLib4.5+ (1.20.5+)

Note

In GeckoLib4.5+, the example implementations were split off into their own repository with a branch for each loader and one for multiloader.

These were designed to be barebones implementations, so that implementation details can be seen with minimal fluff.

Entities

GeckoLib has 8 example entities:

Blocks

GeckoLib has the Gecko 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

GeckoArmorItem and WolfArmorItem are animated armor examples that plays an idle animation only when all 4 armor pieces are equipped.

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