Skip to content

Examples (Geckolib 4)

Tslat edited this page Apr 16, 2024 · 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

NOTE: This is not required on GeckoLib 4.5 and above

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

Clone this wiki locally