mirror of
https://github.com/reload-gtn/mtsr_modpack.git
synced 2024-11-15 18:20:59 +03:00
add new mod hotbar 16
This commit is contained in:
parent
0a0d1556d5
commit
9bce42429e
11
hotbar_16/init.lua
Normal file
11
hotbar_16/init.lua
Normal file
@ -0,0 +1,11 @@
|
||||
minetest.register_privilege("builder", {
|
||||
description = "Privilege for builders",
|
||||
give_to_singleplayer = false
|
||||
})
|
||||
|
||||
minetest.register_on_joinplayer(function(player)
|
||||
if minetest.check_player_privs(player, {builder=true}) then
|
||||
player:hud_set_hotbar_itemcount(tonumber(16))
|
||||
player:hud_set_hotbar_image("")
|
||||
end
|
||||
end)
|
4
hotbar_16/mod.conf
Normal file
4
hotbar_16/mod.conf
Normal file
@ -0,0 +1,4 @@
|
||||
name = hotbar_16
|
||||
description = Hot panel for builders with 16 cells
|
||||
min_minetest_version = 5.7
|
||||
title = Hotbar 16
|
Loading…
Reference in New Issue
Block a user