dofile(path.."/eating_mechanics.lua")
dofile(path.."/flowing.lua")
dofile(path.."/fall_damage.lua")
+dofile(path.."/suffocation.lua")
minetest.register_chatcommand("sethome", {
params = "nil",
description = "Use this to set your home. Can be returned to by setting /home",
- privs = {},
+ privs = {home = true},
func = function(name)
local time = minetest.get_us_time()/1000000
local player = minetest.get_player_by_name(name)
minetest.register_chatcommand("home", {
params = "nil",
description = "Use this to set your home. Can be returned to by setting /home",
- privs = {},
+ privs = {home = true},
func = function(name)
local time = minetest.get_us_time()/1000000
local player = minetest.get_player_by_name(name)
minetest.chat_send_player(name, diff.." more second"..s.." until you can run that command.")
end
end,
-})
\ No newline at end of file
+})
+
+minetest.register_privilege("home", {
+ description = "Player can use /home and /sethome.",
+ give_to_singleplayer = false,
+})
-- Dont show cheat button if priv is missing
- Take damage when inside blocks
- Bucket sounds
- Background images for armor in inventory