describe range of hotbar lengths
parent
b8f429c57f
commit
a7af7259af
2
init.lua
2
init.lua
|
@ -39,7 +39,7 @@ end)
|
||||||
|
|
||||||
minetest.register_chatcommand("hotbar", {
|
minetest.register_chatcommand("hotbar", {
|
||||||
params = "[size]",
|
params = "[size]",
|
||||||
description = "Sets the size of your hotbar",
|
description = "Sets the size of your hotbar, from 1 to 32 slots, default 16",
|
||||||
func = function(name, slots)
|
func = function(name, slots)
|
||||||
local size = set_hotbar_size(minetest.get_player_by_name(name), slots)
|
local size = set_hotbar_size(minetest.get_player_by_name(name), slots)
|
||||||
player_hotbar_settings[name] = size
|
player_hotbar_settings[name] = size
|
||||||
|
|
Loading…
Reference in New Issue