Moblib

Description

Entity Library (moblib) 🔗

Low-level high-performance entity library

About 🔗

No dependencies. Licensed under the MIT License. Written by Lars Mueller aka LMD or appguru(eu).

  • GitHub - sources, issue tracking, contributing
  • Discord - discussion, chatting
  • Minetest Forum - (more organized) discussion
  • ContentDB - releases (cloning from GitHub is recommended)

API 🔗

Mostly self-documenting code. Mod namespace is moblib, containing all variables & functions.

vector get_rotation(vector direction) 🔗

Returns rotation required to rotate a z-facing model in direction.

vector get_wield_rotation(vector direction) 🔗

Same as get_rotation but for wield_images.

vector get_direction(vector rotation) 🔗

Inverse of get_rotation.

register_entity(name, def) 🔗

register_entity(text name, table def) 🔗

moblib.register_entity(name, {
    initial_properties =  {...},
    lua_properties = {
        moveresult = {
            collisions = nil,
            axes = nil,
            old_velocity = nil,
            acceleration_dependent = nil
        },
        staticdata = "json" or "lua"
    },
    on_step = ...,
    ...
})

Reviews

Review

Do you recommend this mod?

  • No reviews, yet.

Releases

2022-11-18

Download

2022-11-18 17:29 UTC

2022-11-18 🔗

No release notes

rolling-19

Download

Luanti 5.0+

2022-01-05 11:13 UTC

rolling-19 🔗

No release notes

rolling-18

Download

Luanti 5.0+

2022-01-05 10:57 UTC

rolling-18 🔗

No release notes

rolling-17

Download

Luanti 5.0+

2021-01-17 17:23 UTC

rolling-17 🔗

No release notes

rolling-16

Download

Luanti 5.0+

2020-12-20 13:28 UTC

rolling-16 🔗

No release notes

All releases