What are you searching for?

SmartBrainLib

SmartBrainLib

A brain library for Minecraft, making the brain system easier to use and manage

download 3.3M Downloads · favorite 266 Followers · Updated 1 month ago
Fabric Forge Library Mobs Neoforge Quilt Utility 1.16.5 1.18.2 1.19 1.19.1 1.19.2 +20 more

Versions

inventory_2
NeoForge 1.21.11

1.16.11 · 1 month ago · 378.03 KB

Release download
Neoforge 1.21.11
inventory_2
Fabric 1.21.11

1.16.11 · 1 month ago · 371.00 KB

Release download
Fabric 1.21.11
inventory_2
1.16.11.1

1.16.11.1 · 3 months ago · 378.25 KB

Release download
Forge 1.21.10
inventory_2
NeoForge 1.21.10

1.16.11 · 4 months ago · 378.35 KB

Release download
Neoforge 1.21.10
inventory_2
Fabric 1.21.10

1.16.11 · 4 months ago · 371.39 KB

Release download
Fabric 1.21.10

About

A brain library for Minecraft, making the brain system easier to use and manage.

What is this?

The brain system in Minecraft is an almost cryptic new entity AI system that Mojang introduced to handle more complex mobs, and allow for more advanced entity handling.

Unfortunately Mojang's implementation is lacking, and overly complex.

Additionally, it's also done in a rather inefficient way, which means that overall the system is not worth using in place of the existing goals system.

This library aims to overhaul the brain system, making it actually usable, and configurable.

Note however, that the existing goal system will still be simpler at face value - the brain system is intended for more complex interactions, but it can also be fun to experiment with.

So what does SmartBrainLib do?

SBL is a multi-facet approach to the brain system, and will continue to expand and improve as I use it.

Here are its main features:

Auto-handles memory types

Don't worry about having to work out which memory modules to register for your entity.

Dynamic sensors

Sensors can now be dynamically configured and handled. This allows for much more advanced and flexible sensors

Advanced behaviours

Utilise built-in, or create new behaviours based on an extensible behaviour class, which builds in callbacks, predication, cooldowns, and more.

Runtime-safe behaviour modification

Add, remove, and modify behaviours dynamically from an existing entity.

Optimisation

SBL replaces almost the entirety of the vanilla brain system's functions, using high-efficiency functions to remove the inefficiencies in as many areas as possible of the brain. Done right, an SBL entity could be even more efficient than one using goals!

Additional sensors, behaviours, and memory types

SBL builds in additional modules for use in any entity, with more to come over time.

Added utility functions

As well as the expected brain functionality, SBL additionally adds additional helpers, such as:

  • Optimised level entity-getter functions
  • Developer-friendly Random library
  • Brain interface utility for adding/removing brain content from non-SBL entities

How do I use it?

The library is documented on its Wiki Page




If you have issues or want to contribute, please jump on the Github Page and make your voice heard

open_in_new View on Modrinth
Compatibility
Client: Unsupported Server: Required
gavel MPL-2.0

Conversation

What are your thoughts?

Related projects

Library
Fabric API
Fabric API

by modmuss50

Lightweight and modular API providing common hooks and intercompatibility measures utilized by mods using the Fabric toolchain.

download 128.4M
favorite 27,401
Library
Cloth Config API
Cloth Config API

by shedaniel

Configuration Library for Minecraft Mods

download 94.4M
favorite 13,670
Optimization Utility
FerriteCore
FerriteCore

by malte0811

Memory usage optimizations

download 84.3M
favorite 12,712
Utility
Mod Menu
Mod Menu

by Prospector

Adds a mod menu to view the list of mods you have installed.

download 77.7M
favorite 22,127
lock Cookie consent

SkinMC uses cookies to provide functionality and features.