2023-06-16 00:26:19 -04:00
|
|
|
-- creative/init.lua
|
|
|
|
|
|
|
|
-- Load support for MT game translation.
|
|
|
|
local S
|
|
|
|
|
|
|
|
if minetest.get_translator ~= nil then
|
|
|
|
S = minetest.get_translator("creative") -- 5.x translation function
|
|
|
|
else
|
|
|
|
if minetest.get_modpath("intllib") then
|
|
|
|
dofile(minetest.get_modpath("intllib") .. "/init.lua")
|
|
|
|
if intllib.make_gettext_pair then
|
|
|
|
S = intllib.make_gettext_pair() -- new gettext method
|
|
|
|
else
|
|
|
|
S = intllib.Getter() -- old text file method
|
|
|
|
end
|
|
|
|
else -- boilerplate function
|
|
|
|
S = function(str, ...)
|
|
|
|
local args = {...}
|
|
|
|
return str:gsub("@%d+", function(match)
|
|
|
|
return args[tonumber(match:sub(2))]
|
|
|
|
end)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
2018-02-15 11:07:23 +00:00
|
|
|
|
2023-06-14 11:48:58 -04:00
|
|
|
local is_50 = minetest.has_feature("object_use_texture_alpha")
|
2023-06-16 00:26:19 -04:00
|
|
|
local is_53 = minetest.has_feature("object_step_has_moveresult")
|
|
|
|
local is_54 = minetest.has_feature("direct_velocity_on_players")
|
|
|
|
|
|
|
|
creative = {}
|
|
|
|
creative.get_translator = S
|
|
|
|
creative.is_50 = is_50
|
|
|
|
creative.is_53 = is_53
|
|
|
|
creative.is_54 = is_54
|
2023-06-14 11:48:58 -04:00
|
|
|
|
|
|
|
local privs_description = "Allow player to use creative inventory"
|
|
|
|
local privs_definition = {}
|
|
|
|
|
2023-06-16 00:26:19 -04:00
|
|
|
local function update_sfinv(name)
|
|
|
|
minetest.after(0, function()
|
|
|
|
local player = minetest.get_player_by_name(name)
|
|
|
|
if player then
|
|
|
|
if sfinv.get_page(player):sub(1, 9) == "creative:" then
|
|
|
|
sfinv.set_page(player, sfinv.get_homepage_name(player))
|
|
|
|
else
|
|
|
|
sfinv.set_player_inventory_formspec(player)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end)
|
|
|
|
end
|
|
|
|
|
2023-06-14 11:48:58 -04:00
|
|
|
if is_50 then
|
|
|
|
privs_definition = {
|
|
|
|
description = privs_description,
|
|
|
|
give_to_singleplayer = false,
|
|
|
|
give_to_admin = false,
|
|
|
|
on_grant = update_sfinv,
|
|
|
|
on_revoke = update_sfinv
|
|
|
|
}
|
|
|
|
else
|
|
|
|
privs_definition = {
|
2023-06-16 00:26:19 -04:00
|
|
|
description = privs_description,
|
2023-06-14 11:48:58 -04:00
|
|
|
give_to_singleplayer = false
|
|
|
|
}
|
|
|
|
end
|
|
|
|
|
|
|
|
minetest.register_privilege("creative", privs_definition)
|
2023-06-11 06:17:29 -04:00
|
|
|
|
2018-02-15 12:03:19 +00:00
|
|
|
local creative_mode_cache = minetest.settings:get_bool("creative_mode")
|
2018-02-15 11:07:23 +00:00
|
|
|
|
2023-07-13 22:25:19 -04:00
|
|
|
function minetest.is_creative_enabled(name)
|
|
|
|
if name == "" then
|
|
|
|
return creative_mode_cache
|
2023-06-11 06:17:29 -04:00
|
|
|
else
|
|
|
|
return minetest.check_player_privs(name, {creative = true}) or creative_mode_cache
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2023-07-13 22:25:19 -04:00
|
|
|
-- backguard compatibility
|
|
|
|
function creative.is_creative(name)
|
2023-06-11 06:17:29 -04:00
|
|
|
if name == "" then
|
2023-07-13 22:25:19 -04:00
|
|
|
return creative_mode_cache
|
|
|
|
else
|
|
|
|
return minetest.check_player_privs(name, {creative = true}) or creative_mode_cache
|
2023-06-11 06:17:29 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2023-07-13 22:25:19 -04:00
|
|
|
|
2023-06-11 06:17:29 -04:00
|
|
|
-- For backwards compatibility:
|
2018-02-15 11:07:23 +00:00
|
|
|
function creative.is_enabled_for(name)
|
2023-06-11 06:17:29 -04:00
|
|
|
return creative.is_creative(name)
|
2018-02-15 11:07:23 +00:00
|
|
|
end
|
|
|
|
|
2018-02-18 12:24:57 +00:00
|
|
|
local player_inventory = {}
|
|
|
|
local inventory_cache = {}
|
|
|
|
|
|
|
|
local function init_creative_cache(items)
|
|
|
|
inventory_cache[items] = {}
|
|
|
|
local i_cache = inventory_cache[items]
|
|
|
|
|
|
|
|
for name, def in pairs(items) do
|
2018-05-23 14:26:03 +01:00
|
|
|
if def.groups and def.groups.not_in_creative_inventory ~= 1 and
|
2018-02-18 12:24:57 +00:00
|
|
|
def.description and def.description ~= "" then
|
|
|
|
i_cache[name] = def
|
|
|
|
end
|
|
|
|
end
|
|
|
|
table.sort(i_cache)
|
|
|
|
return i_cache
|
|
|
|
end
|
|
|
|
|
|
|
|
function creative.init_creative_inventory(player)
|
|
|
|
local player_name = player:get_player_name()
|
|
|
|
player_inventory[player_name] = {
|
|
|
|
size = 0,
|
|
|
|
filter = "",
|
2023-06-16 00:26:19 -04:00
|
|
|
start_i = 0,
|
|
|
|
old_filter = nil, -- use only for caching in update_creative_inventory
|
|
|
|
old_content = nil
|
2018-02-18 12:24:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
minetest.create_detached_inventory("creative_" .. player_name, {
|
|
|
|
allow_move = function(inv, from_list, from_index, to_list, to_index, count, player2)
|
|
|
|
local name = player2 and player2:get_player_name() or ""
|
|
|
|
if not creative.is_enabled_for(name) or
|
|
|
|
to_list == "main" then
|
|
|
|
return 0
|
|
|
|
end
|
|
|
|
return count
|
|
|
|
end,
|
|
|
|
allow_put = function(inv, listname, index, stack, player2)
|
|
|
|
return 0
|
|
|
|
end,
|
|
|
|
allow_take = function(inv, listname, index, stack, player2)
|
|
|
|
local name = player2 and player2:get_player_name() or ""
|
|
|
|
if not creative.is_enabled_for(name) then
|
|
|
|
return 0
|
|
|
|
end
|
|
|
|
return -1
|
|
|
|
end,
|
|
|
|
on_move = function(inv, from_list, from_index, to_list, to_index, count, player2)
|
|
|
|
end,
|
|
|
|
on_take = function(inv, listname, index, stack, player2)
|
|
|
|
if stack and stack:get_count() > 0 then
|
|
|
|
minetest.log("action", player_name .. " takes " .. stack:get_name().. " from creative inventory")
|
|
|
|
end
|
|
|
|
end,
|
|
|
|
}, player_name)
|
|
|
|
|
|
|
|
return player_inventory[player_name]
|
|
|
|
end
|
|
|
|
|
2023-06-16 00:26:19 -04:00
|
|
|
local NO_MATCH = 999
|
|
|
|
local function match(s, filter)
|
|
|
|
if filter == "" then
|
|
|
|
return 0
|
|
|
|
end
|
|
|
|
if s:lower():find(filter, 1, true) then
|
|
|
|
return #s - #filter
|
|
|
|
end
|
|
|
|
return NO_MATCH
|
|
|
|
end
|
|
|
|
|
|
|
|
local function description(def, lang_code)
|
|
|
|
local s = def.description
|
|
|
|
if creative.is_53 then
|
|
|
|
if lang_code then
|
|
|
|
s = minetest.get_translated_string(lang_code, s)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
return s:gsub("\n.*", "") -- First line only
|
|
|
|
end
|
|
|
|
|
2018-02-18 12:24:57 +00:00
|
|
|
function creative.update_creative_inventory(player_name, tab_content)
|
|
|
|
local inv = player_inventory[player_name] or
|
|
|
|
creative.init_creative_inventory(minetest.get_player_by_name(player_name))
|
2018-05-24 15:19:12 +01:00
|
|
|
local player_inv = minetest.get_inventory({type = "detached", name = "creative_" .. player_name})
|
2018-02-18 12:24:57 +00:00
|
|
|
|
2023-06-16 00:26:19 -04:00
|
|
|
if inv.filter == inv.old_filter and tab_content == inv.old_content then
|
|
|
|
return
|
|
|
|
end
|
|
|
|
inv.old_filter = inv.filter
|
|
|
|
inv.old_content = tab_content
|
|
|
|
|
2018-05-24 15:19:12 +01:00
|
|
|
local items = inventory_cache[tab_content] or init_creative_cache(tab_content)
|
2018-02-18 12:24:57 +00:00
|
|
|
|
2023-06-16 00:26:19 -04:00
|
|
|
local lang = minetest.settings:get("language") or "en"
|
|
|
|
local player_info = minetest.get_player_information(player_name)
|
|
|
|
|
|
|
|
if is_53 then
|
|
|
|
if player_info and player_info.lang_code ~= "" then
|
|
|
|
lang = player_info.lang_code
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
local creative_list = {}
|
|
|
|
local order = {}
|
2018-02-18 12:24:57 +00:00
|
|
|
for name, def in pairs(items) do
|
2023-06-16 00:26:19 -04:00
|
|
|
local m = match(description(def), inv.filter)
|
|
|
|
if m > 0 then
|
|
|
|
m = math.min(m, match(description(def, lang), inv.filter))
|
|
|
|
end
|
|
|
|
if m > 0 then
|
|
|
|
m = math.min(m, match(name, inv.filter))
|
|
|
|
end
|
|
|
|
|
|
|
|
if m < NO_MATCH then
|
2018-02-18 12:24:57 +00:00
|
|
|
creative_list[#creative_list+1] = name
|
2023-06-16 00:26:19 -04:00
|
|
|
-- Sort by match value first so closer matches appear earlier
|
|
|
|
order[name] = string.format("%02d", m) .. name
|
2018-02-18 12:24:57 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2023-06-16 00:26:19 -04:00
|
|
|
table.sort(creative_list, function(a, b) return order[a] < order[b] end)
|
|
|
|
|
2018-02-18 12:24:57 +00:00
|
|
|
player_inv:set_size("main", #creative_list)
|
|
|
|
player_inv:set_list("main", creative_list)
|
|
|
|
inv.size = #creative_list
|
|
|
|
end
|
|
|
|
|
|
|
|
-- Create the trash field
|
2023-06-16 00:26:19 -04:00
|
|
|
local trash = minetest.create_detached_inventory("trash", {
|
2018-02-18 12:24:57 +00:00
|
|
|
-- Allow the stack to be placed and remove it in on_put()
|
|
|
|
-- This allows the creative inventory to restore the stack
|
|
|
|
allow_put = function(inv, listname, index, stack, player)
|
|
|
|
return stack:get_count()
|
|
|
|
end,
|
|
|
|
on_put = function(inv, listname)
|
|
|
|
inv:set_list(listname, {})
|
|
|
|
end,
|
|
|
|
})
|
|
|
|
trash:set_size("main", 1)
|
|
|
|
|
|
|
|
creative.formspec_add = ""
|
|
|
|
|
2018-05-24 15:19:12 +01:00
|
|
|
function creative.register_tab(name, title, items)
|
2018-02-18 12:24:57 +00:00
|
|
|
sfinv.register_page("creative:" .. name, {
|
|
|
|
title = title,
|
|
|
|
is_in_nav = function(self, player, context)
|
|
|
|
return creative.is_enabled_for(player:get_player_name())
|
|
|
|
end,
|
|
|
|
get = function(self, player, context)
|
|
|
|
local player_name = player:get_player_name()
|
|
|
|
creative.update_creative_inventory(player_name, items)
|
|
|
|
local inv = player_inventory[player_name]
|
|
|
|
local start_i = inv.start_i or 0
|
2023-06-16 00:26:19 -04:00
|
|
|
local pagenum = math.floor(inv.start_i / (4*8) + 1)
|
|
|
|
local pagemax = math.max(math.ceil(inv.size / (4*8)), 1)
|
|
|
|
local esc = minetest.formspec_escape
|
2018-02-18 12:24:57 +00:00
|
|
|
return sfinv.make_formspec(player, context,
|
2023-06-16 00:26:19 -04:00
|
|
|
(inv.size == 0 and ("label[3,2;>_<]") or "") ..
|
|
|
|
"label[5.8,4.15;" .. minetest.colorize("#FFFF00", tostring(pagenum)) .. " / " .. tostring(pagemax) .. "]" ..
|
2018-02-18 12:24:57 +00:00
|
|
|
[[
|
2023-06-16 00:26:19 -04:00
|
|
|
image[4,3.9;0.8,0.8;creative_trash_icon.png]
|
2018-02-18 12:24:57 +00:00
|
|
|
listcolors[#00000069;#5A5A5A;#141318;#30434C;#FFF]
|
|
|
|
list[current_player;main;0,4.7;8,1;]
|
|
|
|
list[current_player;main;0,5.85;8,3;8]
|
2023-06-16 00:26:19 -04:00
|
|
|
list[detached:trash;main;4,3.9;1,1;]
|
2018-02-18 12:24:57 +00:00
|
|
|
listring[]
|
2023-06-16 00:26:19 -04:00
|
|
|
button[5,4.05;0.8,0.8;creative_prev;<]
|
|
|
|
button[7.25,4.05;0.8,0.8;creative_next;>]
|
|
|
|
button[2.63,4.05;0.8,0.8;creative_search;?]
|
|
|
|
button[3.25,4.05;0.8,0.8;creative_clear;X]
|
2018-02-18 12:24:57 +00:00
|
|
|
]] ..
|
2023-06-16 00:26:19 -04:00
|
|
|
"tooltip[creative_search;" .. esc(S("Search")) .. "]" ..
|
|
|
|
"tooltip[creative_clear;" .. esc(S("Reset")) .. "]" ..
|
|
|
|
"tooltip[creative_prev;" .. esc(S("Previous page")) .. "]" ..
|
|
|
|
"tooltip[creative_next;" .. esc(S("Next page")) .. "]" ..
|
|
|
|
"listring[current_player;main]" ..
|
|
|
|
"field_close_on_enter[creative_filter;false]" ..
|
|
|
|
"field[0.3,4.2;2.8,1.2;creative_filter;;" .. esc(inv.filter) .. "]" ..
|
2018-02-18 12:24:57 +00:00
|
|
|
"listring[detached:creative_" .. player_name .. ";main]" ..
|
2023-06-16 00:26:19 -04:00
|
|
|
"list[detached:creative_" .. player_name .. ";main;0,0;8,4;" .. tostring(inv.start_i) .. "]" ..
|
2018-05-24 15:19:12 +01:00
|
|
|
default.get_hotbar_bg(0,4.7) ..
|
|
|
|
default.gui_bg .. default.gui_bg_img .. default.gui_slots
|
2018-02-18 12:24:57 +00:00
|
|
|
.. creative.formspec_add, false)
|
|
|
|
end,
|
|
|
|
on_enter = function(self, player, context)
|
|
|
|
local player_name = player:get_player_name()
|
|
|
|
local inv = player_inventory[player_name]
|
|
|
|
if inv then
|
|
|
|
inv.start_i = 0
|
|
|
|
end
|
|
|
|
end,
|
|
|
|
on_player_receive_fields = function(self, player, context, fields)
|
|
|
|
local player_name = player:get_player_name()
|
|
|
|
local inv = player_inventory[player_name]
|
|
|
|
assert(inv)
|
|
|
|
|
|
|
|
if fields.creative_clear then
|
|
|
|
inv.start_i = 0
|
|
|
|
inv.filter = ""
|
2023-06-16 00:26:19 -04:00
|
|
|
--creative.update_creative_inventory(player_name, items)
|
2018-02-18 12:24:57 +00:00
|
|
|
sfinv.set_player_inventory_formspec(player, context)
|
2023-06-16 00:26:19 -04:00
|
|
|
elseif (fields.creative_search or
|
|
|
|
fields.key_enter_field == "creative_filter")
|
|
|
|
and fields.creative_filter then
|
2018-02-18 12:24:57 +00:00
|
|
|
inv.start_i = 0
|
2023-06-16 00:26:19 -04:00
|
|
|
inv.filter = fields.creative_filter:sub(1, 128) -- truncate to a sane length
|
|
|
|
:gsub("[%z\1-\8\11-\31\127]", "") -- strip naughty control characters (keeps \t and \n)
|
|
|
|
:lower() -- search is case insensitive
|
|
|
|
--creative.update_creative_inventory(player_name, items)
|
2018-02-18 12:24:57 +00:00
|
|
|
sfinv.set_player_inventory_formspec(player, context)
|
|
|
|
elseif not fields.quit then
|
|
|
|
local start_i = inv.start_i or 0
|
|
|
|
|
|
|
|
if fields.creative_prev then
|
2023-06-16 00:26:19 -04:00
|
|
|
start_i = start_i - 4*8
|
2018-02-18 12:24:57 +00:00
|
|
|
if start_i < 0 then
|
2023-06-16 00:26:19 -04:00
|
|
|
start_i = inv.size - (inv.size % (4*8))
|
2018-02-18 12:24:57 +00:00
|
|
|
if inv.size == start_i then
|
2023-06-16 00:26:19 -04:00
|
|
|
start_i = math.max(0, inv.size - (4*8))
|
2018-02-18 12:24:57 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
elseif fields.creative_next then
|
2023-06-16 00:26:19 -04:00
|
|
|
start_i = start_i + 4*8
|
2018-02-18 12:24:57 +00:00
|
|
|
if start_i >= inv.size then
|
|
|
|
start_i = 0
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
inv.start_i = start_i
|
|
|
|
sfinv.set_player_inventory_formspec(player, context)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
})
|
|
|
|
end
|
|
|
|
|
2023-06-16 00:26:19 -04:00
|
|
|
-- Sort registered items
|
|
|
|
local registered_nodes = {}
|
|
|
|
local registered_tools = {}
|
|
|
|
local registered_craftitems = {}
|
|
|
|
|
|
|
|
local tab_items = function()
|
|
|
|
for name, def in pairs(minetest.registered_items) do
|
|
|
|
local group = def.groups or {}
|
|
|
|
|
|
|
|
local nogroup = not (group.node or group.tool or group.craftitem)
|
|
|
|
if group.node or (nogroup and minetest.registered_nodes[name]) then
|
|
|
|
registered_nodes[name] = def
|
|
|
|
elseif group.tool or (nogroup and minetest.registered_tools[name]) then
|
|
|
|
registered_tools[name] = def
|
|
|
|
elseif group.craftitem or (nogroup and minetest.registered_craftitems[name]) then
|
|
|
|
registered_craftitems[name] = def
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
if minetest.register_on_mods_loaded then
|
|
|
|
minetest.register_on_mods_loaded(tab_items)
|
|
|
|
else
|
|
|
|
minetest.after(0.1, tab_items)
|
|
|
|
end
|
|
|
|
|
|
|
|
creative.register_tab("all", S("Creative"), minetest.registered_items)
|
|
|
|
--creative.register_tab("nodes", S("Nodes"), minetest.registered_nodes)
|
|
|
|
--creative.register_tab("tools", S("Tools"), minetest.registered_tools)
|
|
|
|
--creative.register_tab("craftitems", S("Items"), minetest.registered_craftitems)
|
2018-02-18 12:24:57 +00:00
|
|
|
|
|
|
|
local old_homepage_name = sfinv.get_homepage_name
|
|
|
|
function sfinv.get_homepage_name(player)
|
|
|
|
if creative.is_enabled_for(player:get_player_name()) then
|
|
|
|
return "creative:all"
|
|
|
|
else
|
|
|
|
return old_homepage_name(player)
|
|
|
|
end
|
|
|
|
end
|
2018-02-15 11:07:23 +00:00
|
|
|
|
2018-02-18 11:22:37 +00:00
|
|
|
|
2023-06-16 00:26:19 -04:00
|
|
|
if minetest.is_creative_enabled("") then
|
|
|
|
local hand_hack = function()
|
|
|
|
-- Dig time is modified according to difference (leveldiff) between tool
|
|
|
|
-- 'maxlevel' and node 'level'. Digtime is divided by the larger of
|
|
|
|
-- leveldiff and 1.
|
|
|
|
-- To speed up digging in creative, hand 'maxlevel' and 'digtime' have been
|
|
|
|
-- increased such that nodes of differing levels have an insignificant
|
|
|
|
-- effect on digtime.
|
2018-02-15 11:07:23 +00:00
|
|
|
local digtime = 42
|
|
|
|
local caps = {times = {digtime, digtime, digtime}, uses = 0, maxlevel = 256}
|
|
|
|
|
|
|
|
minetest.register_item(":", {
|
|
|
|
type = "none",
|
|
|
|
wield_image = "wieldhand.png",
|
|
|
|
wield_scale = {x = 1, y = 1, z = 2.5},
|
|
|
|
range = 10,
|
|
|
|
tool_capabilities = {
|
|
|
|
full_punch_interval = 0.5,
|
|
|
|
max_drop_level = 3,
|
|
|
|
groupcaps = {
|
|
|
|
crumbly = caps,
|
|
|
|
cracky = caps,
|
|
|
|
snappy = caps,
|
|
|
|
choppy = caps,
|
|
|
|
oddly_breakable_by_hand = caps,
|
2023-06-16 00:26:19 -04:00
|
|
|
-- dig_immediate group doesn't use value 1. Value 3 is instant dig
|
|
|
|
dig_immediate = {times = {[2] = digtime, [3] = 0}, uses = 0, maxlevel = 256},
|
2018-02-15 11:07:23 +00:00
|
|
|
},
|
|
|
|
damage_groups = {fleshy = 10},
|
|
|
|
}
|
|
|
|
})
|
2023-06-16 00:26:19 -04:00
|
|
|
end
|
|
|
|
if minetest.register_on_mods_loaded then
|
|
|
|
minetest.register_on_mods_loaded(hand_hack)
|
|
|
|
else
|
|
|
|
minetest.after(0.2, hand_hack)
|
|
|
|
end
|
2018-02-15 11:07:23 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
-- Unlimited node placement
|
|
|
|
minetest.register_on_placenode(function(pos, newnode, placer, oldnode, itemstack)
|
2023-06-16 00:26:19 -04:00
|
|
|
if placer then
|
|
|
|
if placer:is_player() then
|
|
|
|
return creative.is_creative(placer:get_player_name())
|
|
|
|
end
|
2018-02-15 12:03:19 +00:00
|
|
|
end
|
2018-02-15 11:07:23 +00:00
|
|
|
end)
|
|
|
|
|
2023-06-16 00:26:19 -04:00
|
|
|
-- Don't pick up if the item is already in the inventory only in hard creative single
|
|
|
|
if creative_mode_cache then
|
|
|
|
local old_handle_node_drops = minetest.handle_node_drops
|
|
|
|
function minetest.handle_node_drops(pos, drops, digger)
|
|
|
|
if not digger then
|
|
|
|
if not digger:is_player() then
|
|
|
|
if not creative.is_creative(digger:get_player_name()) then
|
|
|
|
return old_handle_node_drops(pos, drops, digger)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
local inv = digger:get_inventory()
|
|
|
|
if inv then
|
|
|
|
for _, item in ipairs(drops) do
|
|
|
|
if not inv:contains_item("main", item, true) then
|
|
|
|
inv:add_item("main", item)
|
|
|
|
end
|
2018-02-15 11:07:23 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
2023-06-16 00:26:19 -04:00
|
|
|
|
|
|
|
print("[creative] mod loaded")
|
|
|
|
|