Complex clientmodding questions.
Posted: Fri Oct 09, 2020 01:02
I am developing a general Gui replacement (modeled after the ps2 game RTX Red Rock) and I have been running into a few issues.
1. How do I get the inventory of minetest.localplayer? player:get_inventory() doesn't exist for it.
2. how do I get the tiles of a server sent node definition? minetest.get_node_definition() returns everything except tiles it seems.
3. How do I disable the breathbar, hotbar and hotbar selection indicator? the healthbar can be removed with player:hud_remove() but the breath and hotbar won't disappear even if I remove all huds from id -50000 to 50000. the hud_flags system appears to be server-side only, and none of them reside in the minetest.ui table like the minimap does.
( I may not be able to reply quickly as internet access is patchy for me currently.)
1. How do I get the inventory of minetest.localplayer? player:get_inventory() doesn't exist for it.
2. how do I get the tiles of a server sent node definition? minetest.get_node_definition() returns everything except tiles it seems.
3. How do I disable the breathbar, hotbar and hotbar selection indicator? the healthbar can be removed with player:hud_remove() but the breath and hotbar won't disappear even if I remove all huds from id -50000 to 50000. the hud_flags system appears to be server-side only, and none of them reside in the minetest.ui table like the minimap does.
( I may not be able to reply quickly as internet access is patchy for me currently.)