TPH's Wielditem

Description

Aims to combine what a bunch of mods do - all into one! With intent to provide a rich and extensive API, with lots of information and events provided to the programmer.

wieldlight module intends to do what https://content.luanti.org/packages/bell07/wielded_light/ does (CURRENTLY is NOT as extensive! As noted further below), however allows for events and callbacks alike

wield3d module intends to do what https://content.luanti.org/packages/LMD/visible_wielditem/ + https://content.luanti.org/packages/stu/wield3d/ do, but with extended functionality. Such as being able to easily place and define where the wield3d should go, with all sorts of events and item callbacks for one's ease! AS WELL AS A FUNCTION FOR HIDING IT IF NEED BE!!!

The overall sauce of the mod aims to do what https://content.luanti.org/packages/mt-mods/wield_events/ does, but with providing much more information, and with more events and item callbacks.

CURRENTLY this release is a stable demonstration. The functionality for module code is quite ugly (but does allow for you to remove modules as you please!), and wieldlight NEEDS more functionality for interactions with liquids.

Reviews

Review

Do you recommend this mod?

Releases

1.1

Download

Luanti 5.0+

2025-09-26 11:34 UTC

Bug + Crash + API fixes 🔗

Was making a mod to use this mod - and forgot - I REALLY SHOULD HAVE TESTED THIS MOD BEFORE RELEASE!

Now that I have, this is the needed bug fixes for it

Fixes API documentation as well and adds a features table

Fixes wield3d_despawn event + item callback

1

Download

Luanti 5.0+

2025-09-22 12:08 UTC

1 - Initialization 🔗

First public release! With possible demonstrative mods to be added

Barebones functionality for wield3d and wieldlight modules

General API and API docs created

Module functionality

All releases

Information

Provides

tph_wielditem

Dependencies

Required
events_api
Optional
metatable_metamethods

Information

Type
Mod
Technical Name
tph_wielditem
Languages
English
License
MIT
Maintenance State
Work in Progress
Added
2025-09-22 11:58 UTC
Maintainers
TPH

Used By