Skip to content

Instantly share code, notes, and snippets.

@GreenXenith GreenXenith/stocking.lua Secret
Created Nov 1, 2017

Embed
What would you like to do?
bool
local storage = minetest.get_mod_storage()
function stocking.enable_can_fill()
storage:set_string("can_fill", "true")
end
minetest.register_chatcommand("enable_fill", {
privs = {protection_bypass = true},
func = function(name, param)
stocking.enable_can_fill()
minetest.chat_send_player(name, "Stockings are now fillable.")
end
})
function stocking.disable_can_fill()
storage:set_string("can_fill", "false")
end
minetest.register_chatcommand("disable_fill", {
privs = {protection_bypass = false},
func = function(name, param)
stocking.disable_can_fill()
minetest.chat_send_player(name, "Stockings are no longer fillable.")
end
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.