Currently Broken, but making progress.
After Width: | Height: | Size: 647 B |
|
@ -1,12 +0,0 @@
|
|||
Minetest Game mod: creative
|
||||
===========================
|
||||
See license.txt for license information.
|
||||
|
||||
Authors of source code
|
||||
----------------------
|
||||
Originally by Perttu Ahola (celeron55) <celeron55@gmail.com> (MIT)
|
||||
Jean-Patrick G. (kilbith) <jeanpatrick.guerrero@gmail.com> (MIT)
|
||||
|
||||
Author of media (textures)
|
||||
--------------------------
|
||||
Jean-Patrick G. (kilbith) <jeanpatrick.guerrero@gmail.com> (CC BY-SA 3.0)
|
|
@ -1,2 +0,0 @@
|
|||
default
|
||||
sfinv
|
|
@ -1,63 +0,0 @@
|
|||
creative = {}
|
||||
|
||||
local creative_mode_cache = minetest.settings:get_bool("creative_mode")
|
||||
|
||||
function creative.is_enabled_for(name)
|
||||
return creative_mode_cache
|
||||
end
|
||||
|
||||
dofile(minetest.get_modpath("creative") .. "/inventory.lua")
|
||||
|
||||
if creative_mode_cache then
|
||||
-- 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.
|
||||
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,
|
||||
},
|
||||
damage_groups = {fleshy = 10},
|
||||
}
|
||||
})
|
||||
end
|
||||
|
||||
-- Unlimited node placement
|
||||
minetest.register_on_placenode(function(pos, newnode, placer, oldnode, itemstack)
|
||||
if placer and placer:is_player() then
|
||||
return creative.is_enabled_for(placer:get_player_name())
|
||||
end
|
||||
end)
|
||||
|
||||
-- Don't pick up if the item is already in the inventory
|
||||
local old_handle_node_drops = minetest.handle_node_drops
|
||||
function minetest.handle_node_drops(pos, drops, digger)
|
||||
if not digger or not digger:is_player() or
|
||||
not creative.is_enabled_for(digger:get_player_name()) then
|
||||
return old_handle_node_drops(pos, drops, digger)
|
||||
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
|
||||
end
|
||||
end
|
||||
end
|
|
@ -1,193 +0,0 @@
|
|||
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
|
||||
if def.groups.not_in_creative_inventory ~= 1 and
|
||||
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 = "",
|
||||
start_i = 0
|
||||
}
|
||||
|
||||
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
|
||||
|
||||
function creative.update_creative_inventory(player_name, tab_content)
|
||||
local creative_list = {}
|
||||
local inv = player_inventory[player_name] or
|
||||
creative.init_creative_inventory(minetest.get_player_by_name(player_name))
|
||||
local player_inv = minetest.get_inventory({type = "detached", name = "creative_" .. player_name})
|
||||
|
||||
local items = inventory_cache[tab_content] or init_creative_cache(tab_content)
|
||||
|
||||
for name, def in pairs(items) do
|
||||
if def.name:find(inv.filter, 1, true) or
|
||||
def.description:lower():find(inv.filter, 1, true) then
|
||||
creative_list[#creative_list+1] = name
|
||||
end
|
||||
end
|
||||
|
||||
table.sort(creative_list)
|
||||
player_inv:set_size("main", #creative_list)
|
||||
player_inv:set_list("main", creative_list)
|
||||
inv.size = #creative_list
|
||||
end
|
||||
|
||||
-- Create the trash field
|
||||
local trash = minetest.create_detached_inventory("creative_trash", {
|
||||
-- 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 = ""
|
||||
|
||||
function creative.register_tab(name, title, items)
|
||||
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
|
||||
local pagenum = math.floor(start_i / (3*8) + 1)
|
||||
local pagemax = math.ceil(inv.size / (3*8))
|
||||
return sfinv.make_formspec(player, context,
|
||||
"label[6.2,3.35;" .. minetest.colorize("#FFFF00", tostring(pagenum)) .. " / " .. tostring(pagemax) .. "]" ..
|
||||
[[
|
||||
image[4.06,3.4;0.8,0.8;creative_trash_icon.png]
|
||||
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]
|
||||
list[detached:creative_trash;main;4,3.3;1,1;]
|
||||
listring[]
|
||||
button[5.4,3.2;0.8,0.9;creative_prev;<]
|
||||
button[7.25,3.2;0.8,0.9;creative_next;>]
|
||||
button[2.1,3.4;0.8,0.5;creative_search;?]
|
||||
button[2.75,3.4;0.8,0.5;creative_clear;X]
|
||||
tooltip[creative_search;Search]
|
||||
tooltip[creative_clear;Reset]
|
||||
tooltip[creative_prev;Previous page]
|
||||
tooltip[creative_next;Next page]
|
||||
listring[current_player;main]
|
||||
field_close_on_enter[creative_filter;false]
|
||||
]] ..
|
||||
"field[0.3,3.5;2.2,1;creative_filter;;" .. minetest.formspec_escape(inv.filter) .. "]" ..
|
||||
"listring[detached:creative_" .. player_name .. ";main]" ..
|
||||
"list[detached:creative_" .. player_name .. ";main;0,0;8,3;" .. tostring(start_i) .. "]" ..
|
||||
default.get_hotbar_bg(0,4.7) ..
|
||||
default.gui_bg .. default.gui_bg_img .. default.gui_slots
|
||||
.. 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 = ""
|
||||
creative.update_creative_inventory(player_name, items)
|
||||
sfinv.set_player_inventory_formspec(player, context)
|
||||
elseif fields.creative_search or
|
||||
fields.key_enter_field == "creative_filter" then
|
||||
inv.start_i = 0
|
||||
inv.filter = fields.creative_filter:lower()
|
||||
creative.update_creative_inventory(player_name, items)
|
||||
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
|
||||
start_i = start_i - 3*8
|
||||
if start_i < 0 then
|
||||
start_i = inv.size - (inv.size % (3*8))
|
||||
if inv.size == start_i then
|
||||
start_i = math.max(0, inv.size - (3*8))
|
||||
end
|
||||
end
|
||||
elseif fields.creative_next then
|
||||
start_i = start_i + 3*8
|
||||
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
|
||||
|
||||
creative.register_tab("all", "All", minetest.registered_items)
|
||||
creative.register_tab("nodes", "Nodes", minetest.registered_nodes)
|
||||
creative.register_tab("tools", "Tools", minetest.registered_tools)
|
||||
creative.register_tab("craftitems", "Items", minetest.registered_craftitems)
|
||||
|
||||
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
|
|
@ -1,60 +0,0 @@
|
|||
License of source code
|
||||
----------------------
|
||||
|
||||
The MIT License (MIT)
|
||||
Copyright (C) 2012-2016 Perttu Ahola (celeron55) <celeron55@gmail.com>
|
||||
Copyright (C) 2015-2016 Jean-Patrick G. (kilbith) <jeanpatrick.guerrero@gmail.com>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this
|
||||
software and associated documentation files (the "Software"), to deal in the Software
|
||||
without restriction, including without limitation the rights to use, copy, modify, merge,
|
||||
publish, distribute, sublicense, and/or sell copies of the Software, and to permit
|
||||
persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or
|
||||
substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
|
||||
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
|
||||
PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
|
||||
FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
||||
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
DEALINGS IN THE SOFTWARE.
|
||||
|
||||
For more details:
|
||||
https://opensource.org/licenses/MIT
|
||||
|
||||
|
||||
Licenses of media (textures)
|
||||
----------------------------
|
||||
|
||||
Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0)
|
||||
Copyright (C) 2016 Jean-Patrick G. (kilbith) <jeanpatrick.guerrero@gmail.com>
|
||||
|
||||
You are free to:
|
||||
Share — copy and redistribute the material in any medium or format.
|
||||
Adapt — remix, transform, and build upon the material for any purpose, even commercially.
|
||||
The licensor cannot revoke these freedoms as long as you follow the license terms.
|
||||
|
||||
Under the following terms:
|
||||
|
||||
Attribution — You must give appropriate credit, provide a link to the license, and
|
||||
indicate if changes were made. You may do so in any reasonable manner, but not in any way
|
||||
that suggests the licensor endorses you or your use.
|
||||
|
||||
ShareAlike — If you remix, transform, or build upon the material, you must distribute
|
||||
your contributions under the same license as the original.
|
||||
|
||||
No additional restrictions — You may not apply legal terms or technological measures that
|
||||
legally restrict others from doing anything the license permits.
|
||||
|
||||
Notices:
|
||||
|
||||
You do not have to comply with the license for elements of the material in the public
|
||||
domain or where your use is permitted by an applicable exception or limitation.
|
||||
No warranties are given. The license may not give you all of the permissions necessary
|
||||
for your intended use. For example, other rights such as publicity, privacy, or moral
|
||||
rights may limit how you use the material.
|
||||
|
||||
For more details:
|
||||
http://creativecommons.org/licenses/by-sa/3.0/
|
Before Width: | Height: | Size: 179 B |
|
@ -1,135 +0,0 @@
|
|||
default = {}
|
||||
default.gui_bg = "bgcolor[#080808BB;true]"
|
||||
default.gui_bg_img = "background[5,5;1,1;gui_formbg.png;true]"
|
||||
default.gui_slots = "listcolors[#00000069;#5A5A5A;#141318;#30434C;#FFF]"
|
||||
|
||||
function default.get_hotbar_bg(x,y)
|
||||
local out = ""
|
||||
for i=0,7,1 do
|
||||
out = out .."image["..x+i..","..y..";1,1;gui_hb_bg.png]"
|
||||
end
|
||||
return out
|
||||
end
|
||||
|
||||
default.gui_survival_form = "size[8,8.5]"..
|
||||
default.gui_bg..
|
||||
default.gui_bg_img..
|
||||
default.gui_slots..
|
||||
"list[current_player;main;0,4.25;8,1;]"..
|
||||
"list[current_player;main;0,5.5;8,3;8]"..
|
||||
"list[current_player;craft;1.75,0.5;3,3;]"..
|
||||
"list[current_player;craftpreview;5.75,1.5;1,1;]"..
|
||||
"image[4.75,1.5;1,1;gui_furnace_arrow_bg.png^[transformR270]"..
|
||||
"listring[current_player;main]"..
|
||||
"listring[current_player;craft]"..
|
||||
default.get_hotbar_bg(0,4.25)
|
||||
|
||||
|
||||
minetest.register_node("default:concrete", {
|
||||
tiles = {"default_concrete.png"},
|
||||
is_ground_content = true,
|
||||
groups = {oddly_breakable_by_hand = 1},
|
||||
})
|
||||
|
||||
minetest.register_node("default:metal", {
|
||||
tiles = {"default_metal.png"},
|
||||
is_ground_content = true,
|
||||
groups = {oddly_breakable_by_hand = 1},
|
||||
})
|
||||
|
||||
minetest.register_node("default:light_on_1", {
|
||||
tiles = {"default_light_on_1.png"},
|
||||
use_texture_alpha = true,
|
||||
drawtype = "mesh",
|
||||
mesh = "default_light_1.obj",
|
||||
is_ground_content = true,
|
||||
groups = {oddly_breakable_by_hand = 1},
|
||||
paramtype = "light",
|
||||
light_source = 14,
|
||||
})
|
||||
|
||||
minetest.register_node("default:light_on_2", {
|
||||
tiles = {"default_light_on_1.png"},
|
||||
use_texture_alpha = true,
|
||||
drawtype = "mesh",
|
||||
mesh = "default_light_2.obj",
|
||||
is_ground_content = true,
|
||||
groups = {oddly_breakable_by_hand = 1},
|
||||
paramtype = "light",
|
||||
light_source = 14,
|
||||
})
|
||||
|
||||
minetest.register_node("default:light_on_3", {
|
||||
tiles = {"default_light_on_1.png"},
|
||||
use_texture_alpha = true,
|
||||
drawtype = "mesh",
|
||||
mesh = "default_light_3.obj",
|
||||
is_ground_content = true,
|
||||
groups = {oddly_breakable_by_hand = 1},
|
||||
paramtype = "light",
|
||||
light_source = 14,
|
||||
})
|
||||
|
||||
minetest.register_node("default:light_on_4", {
|
||||
tiles = {"default_light_on_1.png"},
|
||||
use_texture_alpha = true,
|
||||
drawtype = "mesh",
|
||||
mesh = "default_light_4.obj",
|
||||
is_ground_content = true,
|
||||
groups = {oddly_breakable_by_hand = 1},
|
||||
paramtype = "light",
|
||||
light_source = 14,
|
||||
})
|
||||
|
||||
c_concrete = minetest.get_content_id("default:concrete")
|
||||
c_metal = minetest.get_content_id("default:metal")
|
||||
|
||||
c_light_1 = minetest.get_content_id("default:light_on_1")
|
||||
c_light_2 = minetest.get_content_id("default:light_on_2")
|
||||
c_light_3 = minetest.get_content_id("default:light_on_3")
|
||||
c_light_4 = minetest.get_content_id("default:light_on_4")
|
||||
|
||||
minetest.set_mapgen_params({mgname = "singlenode", flags = "nolight"})
|
||||
|
||||
local data = {}
|
||||
|
||||
minetest.register_on_generated(function(minp, maxp, seed)
|
||||
|
||||
local vm, emin, emax = minetest.get_mapgen_object("voxelmanip")
|
||||
local area = VoxelArea:new{MinEdge = emin, MaxEdge = emax}
|
||||
vm:get_data(data)
|
||||
|
||||
for z = minp.z, maxp.z do
|
||||
for y = minp.y, maxp.y do
|
||||
local vi = area:index(minp.x, y, z)
|
||||
for x = minp.x, maxp.x do
|
||||
|
||||
if y % 10 == 0 then
|
||||
data[vi] = c_concrete
|
||||
elseif (y+1) % 10 == 0 then
|
||||
data[vi] = c_metal
|
||||
elseif (y+2) % 10 == 0 then
|
||||
if x % 2 == 0 then
|
||||
if z % 2 == 0 then
|
||||
data[vi] = c_light_1
|
||||
else
|
||||
data[vi] = c_light_3
|
||||
end
|
||||
else
|
||||
if z % 2 == 0 then
|
||||
data[vi] = c_light_2
|
||||
else
|
||||
data[vi] = c_light_4
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
vi = vi + 1
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
vm:set_data(data)
|
||||
vm:calc_lighting()
|
||||
vm:write_to_map()
|
||||
end)
|
|
@ -1,77 +0,0 @@
|
|||
# Blender v2.79 (sub 0) OBJ File: ''
|
||||
# www.blender.org
|
||||
mtllib default_light_1.mtl
|
||||
o Cube
|
||||
v 0.375000 -0.250000 0.500000
|
||||
v 0.375000 -0.500000 0.500000
|
||||
v 0.500000 -0.500000 0.500000
|
||||
v 0.500000 -0.250000 0.500000
|
||||
v 0.500000 -0.500000 -0.500000
|
||||
v 0.500000 -0.250000 -0.500000
|
||||
v 0.375000 -0.250000 -0.375000
|
||||
v 0.375000 -0.500000 -0.375000
|
||||
v 0.500000 -0.500000 -0.375000
|
||||
v 0.500000 -0.250000 -0.375000
|
||||
v -0.500000 -0.250000 -0.500000
|
||||
v -0.500000 -0.500000 -0.500000
|
||||
v -0.500000 -0.250000 -0.375000
|
||||
v -0.500000 -0.500000 -0.375000
|
||||
v 0.375000 -0.250000 0.500000
|
||||
v 0.375000 -0.500000 0.500000
|
||||
v 0.375000 -0.250000 -0.375000
|
||||
v 0.375000 -0.500000 -0.375000
|
||||
vt -0.000000 0.875000
|
||||
vt 0.125000 0.875000
|
||||
vt 0.125000 1.000000
|
||||
vt -0.000000 1.000000
|
||||
vt 0.000000 1.000000
|
||||
vt 0.000000 0.875000
|
||||
vt 0.125000 0.875000
|
||||
vt 1.000000 0.875000
|
||||
vt 1.000000 1.000000
|
||||
vt 0.125000 1.000000
|
||||
vt 0.125000 1.000000
|
||||
vt 0.000000 1.000000
|
||||
vt 0.000000 0.875000
|
||||
vt 0.125000 0.875000
|
||||
vt 0.000000 0.875000
|
||||
vt 0.125000 0.875000
|
||||
vt 0.125000 1.000000
|
||||
vt 0.000000 1.000000
|
||||
vt -0.000000 0.875000
|
||||
vt 0.125000 0.875000
|
||||
vt 0.125000 1.000000
|
||||
vt 0.125000 0.000000
|
||||
vt 0.000000 0.000000
|
||||
vt 0.000000 1.000000
|
||||
vt 0.000000 0.875000
|
||||
vt 0.000000 0.875000
|
||||
vt 0.125000 0.875000
|
||||
vt 0.125000 0.875000
|
||||
vt 0.125000 1.000000
|
||||
vt -0.000000 1.000000
|
||||
vt -0.000000 0.875000
|
||||
vt 0.125000 1.000000
|
||||
vt 0.000000 1.000000
|
||||
vt 0.125000 1.000000
|
||||
vt -0.000000 1.000000
|
||||
vt -0.000000 0.875000
|
||||
vt 0.125000 0.875000
|
||||
vn 0.0000 0.0000 1.0000
|
||||
vn 0.0000 -1.0000 -0.0000
|
||||
vn -0.0000 1.0000 -0.0000
|
||||
vn -0.0000 -0.0000 -1.0000
|
||||
vn 1.0000 0.0000 -0.0000
|
||||
vn -1.0000 -0.0000 0.0000
|
||||
usemtl Material
|
||||
s off
|
||||
f 1/1/1 2/2/1 3/3/1 4/4/1
|
||||
f 5/5/2 9/6/2 8/7/2 14/8/2 12/9/2
|
||||
f 7/10/3 10/11/3 6/12/3 11/13/3 13/14/3
|
||||
f 7/15/3 1/16/3 4/17/3 10/18/3
|
||||
f 6/12/4 5/19/4 12/20/4 11/21/4
|
||||
f 2/22/2 8/7/2 9/6/2 3/23/2
|
||||
f 3/3/5 9/24/5 5/5/5 6/25/5 10/26/5 4/27/5
|
||||
f 11/28/6 12/29/6 14/30/6 13/31/6
|
||||
f 13/14/1 14/32/1 8/33/1 7/15/1
|
||||
f 15/34/6 17/35/6 18/36/6 16/37/6
|
|
@ -1,77 +0,0 @@
|
|||
# Blender v2.79 (sub 0) OBJ File: ''
|
||||
# www.blender.org
|
||||
o Cube
|
||||
v 0.500000 -0.250000 -0.375000
|
||||
v 0.500000 -0.500000 -0.375000
|
||||
v 0.500000 -0.500000 -0.500000
|
||||
v 0.500000 -0.250000 -0.500000
|
||||
v -0.500000 -0.500000 -0.500000
|
||||
v -0.500000 -0.250000 -0.500000
|
||||
v -0.375000 -0.250000 -0.375000
|
||||
v -0.375000 -0.500000 -0.375000
|
||||
v -0.375000 -0.500000 -0.500000
|
||||
v -0.375000 -0.250000 -0.500000
|
||||
v -0.500000 -0.250000 0.500001
|
||||
v -0.500000 -0.500000 0.500000
|
||||
v -0.375000 -0.250000 0.500000
|
||||
v -0.375000 -0.500000 0.500000
|
||||
v 0.500000 -0.250000 -0.375000
|
||||
v 0.500000 -0.500000 -0.375000
|
||||
v -0.375000 -0.250000 -0.375000
|
||||
v -0.375000 -0.500000 -0.375000
|
||||
vt -0.000000 0.875000
|
||||
vt 0.125000 0.875000
|
||||
vt 0.125000 1.000000
|
||||
vt -0.000000 1.000000
|
||||
vt 0.000000 1.000000
|
||||
vt 0.125000 1.000000
|
||||
vt 0.125000 0.875000
|
||||
vt 0.125000 0.000000
|
||||
vt 0.000000 0.000000
|
||||
vt 0.125000 1.000000
|
||||
vt 0.125000 1.000000
|
||||
vt 0.000000 1.000000
|
||||
vt 0.000000 0.875000
|
||||
vt 0.125000 0.875000
|
||||
vt 0.000000 0.875000
|
||||
vt 0.125000 0.875000
|
||||
vt 0.125000 1.000000
|
||||
vt 0.000000 1.000000
|
||||
vt -0.000000 0.875000
|
||||
vt 0.125000 0.875000
|
||||
vt 0.125000 1.000000
|
||||
vt 1.000000 1.000000
|
||||
vt 0.125000 1.000000
|
||||
vt 0.125000 0.875000
|
||||
vt 1.000000 0.875000
|
||||
vt 0.000000 1.000000
|
||||
vt 0.000000 0.875000
|
||||
vt 0.000000 0.875000
|
||||
vt 0.125000 0.875000
|
||||
vt 0.125000 0.875000
|
||||
vt 0.125000 1.000000
|
||||
vt -0.000000 1.000000
|
||||
vt -0.000000 0.875000
|
||||
vt 0.125000 1.000000
|
||||
vt 0.000000 1.000000
|
||||
vt 0.125000 1.000000
|
||||
vt -0.000000 1.000000
|
||||
vt -0.000000 0.875000
|
||||
vt 0.125000 0.875000
|
||||
vn 1.0000 0.0000 -0.0000
|
||||
vn -0.0000 -1.0000 -0.0000
|
||||
vn -0.0000 1.0000 0.0000
|
||||
vn -1.0000 -0.0000 0.0000
|
||||
vn -0.0000 0.0000 -1.0000
|
||||
vn 0.0000 -0.0000 1.0000
|
||||
s off
|
||||
f 1/1/1 2/2/1 3/3/1 4/4/1
|
||||
f 5/5/2 9/6/2 8/7/2 14/8/2 12/9/2
|
||||
f 7/10/3 10/11/3 6/12/3 11/13/3 13/14/3
|
||||
f 7/15/3 1/16/3 4/17/3 10/18/3
|
||||
f 6/12/4 5/19/4 12/20/4 11/21/4
|
||||
f 2/22/2 8/23/2 9/24/2 3/25/2
|
||||
f 3/3/5 9/26/5 5/5/5 6/27/5 10/28/5 4/29/5
|
||||
f 11/30/6 12/31/6 14/32/6 13/33/6
|
||||
f 13/14/1 14/34/1 8/35/1 7/15/1
|
||||
f 15/36/6 17/37/6 18/38/6 16/39/6
|
|
@ -1,77 +0,0 @@
|
|||
# Blender v2.79 (sub 0) OBJ File: ''
|
||||
# www.blender.org
|
||||
o Cube
|
||||
v -0.500000 -0.250000 0.375000
|
||||
v -0.500000 -0.500000 0.375000
|
||||
v -0.499999 -0.500000 0.500000
|
||||
v -0.499999 -0.250000 0.500000
|
||||
v 0.500000 -0.500000 0.500000
|
||||
v 0.500000 -0.250000 0.499999
|
||||
v 0.375000 -0.250000 0.375000
|
||||
v 0.375000 -0.500000 0.375000
|
||||
v 0.375000 -0.500000 0.500000
|
||||
v 0.375001 -0.250000 0.500000
|
||||
v 0.499999 -0.250000 -0.500001
|
||||
v 0.499999 -0.500000 -0.500000
|
||||
v 0.375000 -0.250000 -0.500001
|
||||
v 0.374999 -0.500000 -0.500000
|
||||
v -0.500000 -0.250000 0.375000
|
||||
v -0.500000 -0.500000 0.375000
|
||||
v 0.375000 -0.250000 0.375000
|
||||
v 0.375000 -0.500000 0.375000
|
||||
vt -0.000000 0.875000
|
||||
vt 0.125000 0.875000
|
||||
vt 0.125000 1.000000
|
||||
vt -0.000000 1.000000
|
||||
vt 0.000000 1.000000
|
||||
vt 0.125000 1.000000
|
||||
vt 0.125000 0.875000
|
||||
vt 0.125000 0.000000
|
||||
vt 0.000000 0.000000
|
||||
vt 0.125000 1.000000
|
||||
vt 0.125000 1.000000
|
||||
vt 0.000000 1.000000
|
||||
vt 0.000000 0.875000
|
||||
vt 0.125000 0.875000
|
||||
vt 0.000000 0.875000
|
||||
vt 0.125000 0.875000
|
||||
vt 0.125000 1.000000
|
||||
vt 0.000000 1.000000
|
||||
vt -0.000000 0.875000
|
||||
vt 0.125000 0.875000
|
||||
vt 0.125000 1.000000
|
||||
vt 1.000000 1.000000
|
||||
vt 0.125000 1.000000
|
||||
vt 0.125000 0.875000
|
||||
vt 1.000000 0.875000
|
||||
vt 0.000000 1.000000
|
||||
vt 0.000000 0.875000
|
||||
vt 0.000000 0.875000
|
||||
vt 0.125000 0.875000
|
||||
vt 0.125000 0.875000
|
||||
vt 0.125000 1.000000
|
||||
vt -0.000000 1.000000
|
||||
vt -0.000000 0.875000
|
||||
vt 0.125000 1.000000
|
||||
vt 0.000000 1.000000
|
||||
vt 0.125000 1.000000
|
||||
vt -0.000000 1.000000
|
||||
vt -0.000000 0.875000
|
||||
vt 0.125000 0.875000
|
||||
vn -1.0000 0.0000 0.0000
|
||||
vn 0.0000 -1.0000 0.0000
|
||||
vn 0.0000 1.0000 -0.0000
|
||||
vn 1.0000 -0.0000 -0.0000
|
||||
vn 0.0000 0.0000 1.0000
|
||||
vn -0.0000 -0.0000 -1.0000
|
||||
s off
|
||||
f 1/1/1 2/2/1 3/3/1 4/4/1
|
||||
f 5/5/2 9/6/2 8/7/2 14/8/2 12/9/2
|
||||
f 7/10/3 10/11/3 6/12/3 11/13/3 13/14/3
|
||||
f 7/15/3 1/16/3 4/17/3 10/18/3
|
||||
f 6/12/4 5/19/4 12/20/4 11/21/4
|
||||
f 2/22/2 8/23/2 9/24/2 3/25/2
|
||||
f 3/3/5 9/26/5 5/5/5 6/27/5 10/28/5 4/29/5
|
||||
f 11/30/6 12/31/6 14/32/6 13/33/6
|
||||
f 13/14/1 14/34/1 8/35/1 7/15/1
|
||||
f 15/36/6 17/37/6 18/38/6 16/39/6
|
|
@ -1,75 +0,0 @@
|
|||
# Blender v2.79 (sub 0) OBJ File: ''
|
||||
# www.blender.org
|
||||
o Cube
|
||||
v -0.375000 -0.250000 -0.500000
|
||||
v -0.375000 -0.500000 -0.500000
|
||||
v -0.500000 -0.500000 -0.500000
|
||||
v -0.500000 -0.250000 -0.500000
|
||||
v -0.500000 -0.500000 0.500000
|
||||
v -0.500000 -0.250000 0.500000
|
||||
v -0.375000 -0.250000 0.375000
|
||||
v -0.375000 -0.500000 0.375000
|
||||
v -0.500000 -0.500000 0.375000
|
||||
v -0.500000 -0.250000 0.375000
|
||||
v 0.500001 -0.250000 0.500000
|
||||
v 0.500000 -0.500000 0.500000
|
||||
v 0.500000 -0.250000 0.375000
|
||||
v 0.500000 -0.500000 0.375000
|
||||
v -0.375000 -0.250000 -0.500000
|
||||
v -0.375000 -0.500000 -0.500000
|
||||
v -0.375000 -0.250000 0.375000
|
||||
v -0.375000 -0.500000 0.375000
|
||||
vt -0.000000 0.875000
|
||||
vt 0.125000 0.875000
|
||||
vt 0.125000 1.000000
|
||||
vt -0.000000 1.000000
|
||||
vt 0.000000 1.000000
|
||||
vt 0.000000 0.875000
|
||||
vt 0.125000 0.875000
|
||||
vt 1.000000 0.875000
|
||||
vt 1.000000 1.000000
|
||||
vt 0.125000 1.000000
|
||||
vt 0.125000 1.000000
|
||||
vt 0.000000 1.000000
|
||||
vt 0.000000 0.875000
|
||||
vt 0.125000 0.875000
|
||||
vt 0.000000 0.875000
|
||||
vt 0.125000 0.875000
|
||||
vt 0.125000 1.000000
|
||||
vt 0.000000 1.000000
|
||||
vt -0.000000 0.875000
|
||||
vt 0.125000 0.875000
|
||||
vt 0.125000 1.000000
|
||||
vt 0.125000 0.000000
|
||||
vt 0.000000 0.000000
|
||||
vt 0.000000 1.000000
|
||||
vt 0.000000 0.875000
|
||||
vt 0.000000 0.875000
|
||||
vt 0.125000 0.875000
|
||||
vt 0.125000 0.875000
|
||||
vt 0.125000 1.000000
|
||||
vt -0.000000 1.000000
|
||||
vt -0.000000 0.875000
|
||||
vt 0.125000 1.000000
|
||||
vt 0.000000 1.000000
|
||||
vt 0.125000 1.000000
|
||||
vt -0.000000 1.000000
|
||||
vt -0.000000 0.875000
|
||||
vt 0.125000 0.875000
|
||||
vn -0.0000 0.0000 -1.0000
|
||||
vn -0.0000 -1.0000 0.0000
|
||||
vn 0.0000 1.0000 0.0000
|
||||
vn 0.0000 -0.0000 1.0000
|
||||
vn -1.0000 0.0000 0.0000
|
||||
vn 1.0000 -0.0000 -0.0000
|
||||
s off
|
||||
f 1/1/1 2/2/1 3/3/1 4/4/1
|
||||
f 5/5/2 9/6/2 8/7/2 14/8/2 12/9/2
|
||||
f 7/10/3 10/11/3 6/12/3 11/13/3 13/14/3
|
||||
f 7/15/3 1/16/3 4/17/3 10/18/3
|
||||
f 6/12/4 5/19/4 12/20/4 11/21/4
|
||||
f 2/22/2 8/7/2 9/6/2 3/23/2
|
||||
f 3/3/5 9/24/5 5/5/5 6/25/5 10/26/5 4/27/5
|
||||
f 11/28/6 12/29/6 14/30/6 13/31/6
|
||||
f 13/14/1 14/32/1 8/33/1 7/15/1
|
||||
f 15/34/6 17/35/6 18/36/6 16/37/6
|
Before Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 987 B |
Before Width: | Height: | Size: 987 B |
Before Width: | Height: | Size: 989 B |
Before Width: | Height: | Size: 1011 B |
|
@ -0,0 +1,44 @@
|
|||
minetest.register_on_mapgen_init(function()
|
||||
minetest.set_mapgen_params({mgname = "flat", flags = "nolakes, nohills, nocaves, nodungeons"})
|
||||
end)
|
||||
|
||||
minetest.register_node("mapgen:filler", {
|
||||
is_ground_content = true,
|
||||
})
|
||||
|
||||
-- base mapgen requirements
|
||||
|
||||
minetest.register_alias("mapgen_stone", "mapgen:filler")
|
||||
minetest.register_alias("mapgen_dirt", "mapgen:filler")
|
||||
minetest.register_alias("mapgen_dirt_with_grass", "air")
|
||||
minetest.register_alias("mapgen_sand", "air")
|
||||
minetest.register_alias("mapgen_water_source", "air")
|
||||
minetest.register_alias("mapgen_river_water_source", "air")
|
||||
minetest.register_alias("mapgen_lava_source", "air")
|
||||
minetest.register_alias("mapgen_gravel", "air")
|
||||
minetest.register_alias("mapgen_desert_stone", "air")
|
||||
minetest.register_alias("mapgen_desert_sand", "air")
|
||||
minetest.register_alias("mapgen_dirt_with_snow", "air")
|
||||
minetest.register_alias("mapgen_snowblock", "air")
|
||||
minetest.register_alias("mapgen_snow", "air")
|
||||
minetest.register_alias("mapgen_ice", "air")
|
||||
minetest.register_alias("mapgen_sandstone", "air")
|
||||
|
||||
-- Flora
|
||||
|
||||
minetest.register_alias("mapgen_tree", "air")
|
||||
minetest.register_alias("mapgen_leaves", "air")
|
||||
minetest.register_alias("mapgen_apple", "air")
|
||||
minetest.register_alias("mapgen_jungletree", "air")
|
||||
minetest.register_alias("mapgen_jungleleaves", "air")
|
||||
minetest.register_alias("mapgen_junglegrass", "air")
|
||||
minetest.register_alias("mapgen_pine_tree", "air")
|
||||
minetest.register_alias("mapgen_pine_needles", "air")
|
||||
|
||||
-- Dungeons
|
||||
|
||||
minetest.register_alias("mapgen_cobble", "air")
|
||||
minetest.register_alias("mapgen_stair_cobble", "air")
|
||||
minetest.register_alias("mapgen_mossycobble", "air")
|
||||
minetest.register_alias("mapgen_sandstonebrick", "air")
|
||||
minetest.register_alias("mapgen_stair_sandstonebrick", "air")
|
|
@ -0,0 +1,2 @@
|
|||
name = mapgen
|
||||
description = Mapgen definitions and utilities
|
|
@ -1,13 +0,0 @@
|
|||
Minetest Game mod: screwdriver
|
||||
==============================
|
||||
See license.txt for license information.
|
||||
|
||||
License of source code
|
||||
----------------------
|
||||
Originally by RealBadAngel, Maciej Kasatkin (LGPL 2.1)
|
||||
Various Minetest developers and contributors (LGPL 2.1)
|
||||
|
||||
License of media (textures)
|
||||
---------------------------
|
||||
Created by Gambit (CC BY-SA 3.0):
|
||||
screwdriver.png
|
|
@ -1,171 +0,0 @@
|
|||
screwdriver = {}
|
||||
|
||||
screwdriver.ROTATE_FACE = 1
|
||||
screwdriver.ROTATE_AXIS = 2
|
||||
screwdriver.disallow = function(pos, node, user, mode, new_param2)
|
||||
return false
|
||||
end
|
||||
screwdriver.rotate_simple = function(pos, node, user, mode, new_param2)
|
||||
if mode ~= screwdriver.ROTATE_FACE then
|
||||
return false
|
||||
end
|
||||
end
|
||||
|
||||
-- For attached wallmounted nodes: returns true if rotation is valid
|
||||
-- simplified version of minetest:builtin/game/falling.lua#L148.
|
||||
local function check_attached_node(pos, rotation)
|
||||
local d = minetest.wallmounted_to_dir(rotation)
|
||||
local p2 = vector.add(pos, d)
|
||||
local n = minetest.get_node(p2).name
|
||||
local def2 = minetest.registered_nodes[n]
|
||||
if def2 and not def2.walkable then
|
||||
return false
|
||||
end
|
||||
return true
|
||||
end
|
||||
|
||||
screwdriver.rotate = {}
|
||||
|
||||
local facedir_tbl = {
|
||||
[screwdriver.ROTATE_FACE] = {
|
||||
[0] = 1, [1] = 2, [2] = 3, [3] = 0,
|
||||
[4] = 5, [5] = 6, [6] = 7, [7] = 4,
|
||||
[8] = 9, [9] = 10, [10] = 11, [11] = 8,
|
||||
[12] = 13, [13] = 14, [14] = 15, [15] = 12,
|
||||
[16] = 17, [17] = 18, [18] = 19, [19] = 16,
|
||||
[20] = 21, [21] = 22, [22] = 23, [23] = 20,
|
||||
},
|
||||
[screwdriver.ROTATE_AXIS] = {
|
||||
[0] = 4, [1] = 4, [2] = 4, [3] = 4,
|
||||
[4] = 8, [5] = 8, [6] = 8, [7] = 8,
|
||||
[8] = 12, [9] = 12, [10] = 12, [11] = 12,
|
||||
[12] = 16, [13] = 16, [14] = 16, [15] = 16,
|
||||
[16] = 20, [17] = 20, [18] = 20, [19] = 20,
|
||||
[20] = 0, [21] = 0, [22] = 0, [23] = 0,
|
||||
},
|
||||
}
|
||||
|
||||
screwdriver.rotate.facedir = function(pos, node, mode)
|
||||
local rotation = node.param2 % 32 -- get first 5 bits
|
||||
local other = node.param2 - rotation
|
||||
rotation = facedir_tbl[mode][rotation] or 0
|
||||
return rotation + other
|
||||
end
|
||||
|
||||
screwdriver.rotate.colorfacedir = screwdriver.rotate.facedir
|
||||
|
||||
local wallmounted_tbl = {
|
||||
[screwdriver.ROTATE_FACE] = {[2] = 5, [3] = 4, [4] = 2, [5] = 3, [1] = 0, [0] = 1},
|
||||
[screwdriver.ROTATE_AXIS] = {[2] = 5, [3] = 4, [4] = 2, [5] = 1, [1] = 0, [0] = 3}
|
||||
}
|
||||
|
||||
screwdriver.rotate.wallmounted = function(pos, node, mode)
|
||||
local rotation = node.param2 % 8 -- get first 3 bits
|
||||
local other = node.param2 - rotation
|
||||
rotation = wallmounted_tbl[mode][rotation] or 0
|
||||
if minetest.get_item_group(node.name, "attached_node") ~= 0 then
|
||||
-- find an acceptable orientation
|
||||
for i = 1, 5 do
|
||||
if not check_attached_node(pos, rotation) then
|
||||
rotation = wallmounted_tbl[mode][rotation] or 0
|
||||
else
|
||||
break
|
||||
end
|
||||
end
|
||||
end
|
||||
return rotation + other
|
||||
end
|
||||
|
||||
screwdriver.rotate.colorwallmounted = screwdriver.rotate.wallmounted
|
||||
|
||||
-- Handles rotation
|
||||
screwdriver.handler = function(itemstack, user, pointed_thing, mode, uses)
|
||||
if pointed_thing.type ~= "node" then
|
||||
return
|
||||
end
|
||||
|
||||
local pos = pointed_thing.under
|
||||
local player_name = user and user:get_player_name() or ""
|
||||
|
||||
if minetest.is_protected(pos, player_name) then
|
||||
minetest.record_protection_violation(pos, player_name)
|
||||
return
|
||||
end
|
||||
|
||||
local node = minetest.get_node(pos)
|
||||
local ndef = minetest.registered_nodes[node.name]
|
||||
if not ndef then
|
||||
return itemstack
|
||||
end
|
||||
-- can we rotate this paramtype2?
|
||||
local fn = screwdriver.rotate[ndef.paramtype2]
|
||||
if not fn and not ndef.on_rotate then
|
||||
return itemstack
|
||||
end
|
||||
|
||||
local should_rotate = true
|
||||
local new_param2
|
||||
if fn then
|
||||
new_param2 = fn(pos, node, mode)
|
||||
else
|
||||
new_param2 = node.param2
|
||||
end
|
||||
|
||||
-- Node provides a handler, so let the handler decide instead if the node can be rotated
|
||||
if ndef.on_rotate then
|
||||
-- Copy pos and node because callback can modify it
|
||||
local result = ndef.on_rotate(vector.new(pos),
|
||||
{name = node.name, param1 = node.param1, param2 = node.param2},
|
||||
user, mode, new_param2)
|
||||
if result == false then -- Disallow rotation
|
||||
return itemstack
|
||||
elseif result == true then
|
||||
should_rotate = false
|
||||
end
|
||||
elseif ndef.on_rotate == false then
|
||||
return itemstack
|
||||
elseif ndef.can_dig and not ndef.can_dig(pos, user) then
|
||||
return itemstack
|
||||
end
|
||||
|
||||
if should_rotate and new_param2 ~= node.param2 then
|
||||
node.param2 = new_param2
|
||||
minetest.swap_node(pos, node)
|
||||
minetest.check_for_falling(pos)
|
||||
end
|
||||
|
||||
if not (creative and creative.is_enabled_for and
|
||||
creative.is_enabled_for(player_name)) then
|
||||
itemstack:add_wear(65535 / ((uses or 200) - 1))
|
||||
end
|
||||
|
||||
return itemstack
|
||||
end
|
||||
|
||||
-- Screwdriver
|
||||
minetest.register_tool("screwdriver:screwdriver", {
|
||||
description = "Screwdriver (left-click rotates face, right-click rotates axis)",
|
||||
inventory_image = "screwdriver.png",
|
||||
on_use = function(itemstack, user, pointed_thing)
|
||||
screwdriver.handler(itemstack, user, pointed_thing, screwdriver.ROTATE_FACE, 200)
|
||||
return itemstack
|
||||
end,
|
||||
on_place = function(itemstack, user, pointed_thing)
|
||||
screwdriver.handler(itemstack, user, pointed_thing, screwdriver.ROTATE_AXIS, 200)
|
||||
return itemstack
|
||||
end,
|
||||
})
|
||||
|
||||
|
||||
minetest.register_craft({
|
||||
output = "screwdriver:screwdriver",
|
||||
recipe = {
|
||||
{"default:steel_ingot"},
|
||||
{"group:stick"}
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_alias("screwdriver:screwdriver1", "screwdriver:screwdriver")
|
||||
minetest.register_alias("screwdriver:screwdriver2", "screwdriver:screwdriver")
|
||||
minetest.register_alias("screwdriver:screwdriver3", "screwdriver:screwdriver")
|
||||
minetest.register_alias("screwdriver:screwdriver4", "screwdriver:screwdriver")
|
|
@ -1,50 +0,0 @@
|
|||
License of source code
|
||||
----------------------
|
||||
|
||||
GNU Lesser General Public License, version 2.1
|
||||
Copyright (C) 2013-2016 RealBadAngel, Maciej Kasatkin
|
||||
Copyright (C) 2013-2016 Various Minetest developers and contributors
|
||||
|
||||
This program is free software; you can redistribute it and/or modify it under the terms
|
||||
of the GNU Lesser General Public License as published by the Free Software Foundation;
|
||||
either version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
||||
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
See the GNU Lesser General Public License for more details:
|
||||
https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html
|
||||
|
||||
|
||||
Licenses of media (textures)
|
||||
----------------------------
|
||||
|
||||
Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0)
|
||||
Copyright (C) 2013-2016 Gambit
|
||||
|
||||
You are free to:
|
||||
Share — copy and redistribute the material in any medium or format.
|
||||
Adapt — remix, transform, and build upon the material for any purpose, even commercially.
|
||||
The licensor cannot revoke these freedoms as long as you follow the license terms.
|
||||
|
||||
Under the following terms:
|
||||
|
||||
Attribution — You must give appropriate credit, provide a link to the license, and
|
||||
indicate if changes were made. You may do so in any reasonable manner, but not in any way
|
||||
that suggests the licensor endorses you or your use.
|
||||
|
||||
ShareAlike — If you remix, transform, or build upon the material, you must distribute
|
||||
your contributions under the same license as the original.
|
||||
|
||||
No additional restrictions — You may not apply legal terms or technological measures that
|
||||
legally restrict others from doing anything the license permits.
|
||||
|
||||
Notices:
|
||||
|
||||
You do not have to comply with the license for elements of the material in the public
|
||||
domain or where your use is permitted by an applicable exception or limitation.
|
||||
No warranties are given. The license may not give you all of the permissions necessary
|
||||
for your intended use. For example, other rights such as publicity, privacy, or moral
|
||||
rights may limit how you use the material.
|
||||
|
||||
For more details:
|
||||
http://creativecommons.org/licenses/by-sa/3.0/
|
Before Width: | Height: | Size: 182 B |
|
@ -1,21 +0,0 @@
|
|||
Simple Fast Inventory
|
||||
====================
|
||||
|
||||
![SFINV Screeny](https://cdn.pbrd.co/images/1yQhd1TI.png)
|
||||
|
||||
A cleaner, simpler, solution to having an advanced inventory in Minetest.
|
||||
|
||||
Written by rubenwardy.
|
||||
License: MIT
|
||||
|
||||
See game_api.txt for this mod's API
|
||||
|
||||
License of source code and media files:
|
||||
---------------------------------------
|
||||
Copyright (C) 2016 rubenwardy <rubenwardy@gmail.com>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@ -1,182 +0,0 @@
|
|||
sfinv = {
|
||||
pages = {},
|
||||
pages_unordered = {},
|
||||
contexts = {},
|
||||
enabled = true
|
||||
}
|
||||
|
||||
function sfinv.register_page(name, def)
|
||||
assert(name, "Invalid sfinv page. Requires a name")
|
||||
assert(def, "Invalid sfinv page. Requires a def[inition] table")
|
||||
assert(def.get, "Invalid sfinv page. Def requires a get function.")
|
||||
assert(not sfinv.pages[name], "Attempt to register already registered sfinv page " .. dump(name))
|
||||
|
||||
sfinv.pages[name] = def
|
||||
def.name = name
|
||||
table.insert(sfinv.pages_unordered, def)
|
||||
end
|
||||
|
||||
function sfinv.override_page(name, def)
|
||||
assert(name, "Invalid sfinv page override. Requires a name")
|
||||
assert(def, "Invalid sfinv page override. Requires a def[inition] table")
|
||||
local page = sfinv.pages[name]
|
||||
assert(page, "Attempt to override sfinv page " .. dump(name) .. " which does not exist.")
|
||||
for key, value in pairs(def) do
|
||||
page[key] = value
|
||||
end
|
||||
end
|
||||
|
||||
function sfinv.get_nav_fs(player, context, nav, current_idx)
|
||||
-- Only show tabs if there is more than one page
|
||||
if #nav > 1 then
|
||||
return "tabheader[0,0;sfinv_nav_tabs;" .. table.concat(nav, ",") ..
|
||||
";" .. current_idx .. ";true;false]"
|
||||
else
|
||||
return ""
|
||||
end
|
||||
end
|
||||
|
||||
local theme_main = "bgcolor[#080808BB;true]" .. default.gui_bg ..
|
||||
default.gui_bg_img
|
||||
|
||||
local theme_inv = default.gui_slots .. [[
|
||||
list[current_player;main;0,4.7;8,1;]
|
||||
list[current_player;main;0,5.85;8,3;8]
|
||||
]]
|
||||
|
||||
function sfinv.make_formspec(player, context, content, show_inv, size)
|
||||
local tmp = {
|
||||
size or "size[8,8.6]",
|
||||
theme_main,
|
||||
sfinv.get_nav_fs(player, context, context.nav_titles, context.nav_idx),
|
||||
content
|
||||
}
|
||||
if show_inv then
|
||||
tmp[#tmp + 1] = theme_inv
|
||||
end
|
||||
return table.concat(tmp, "")
|
||||
end
|
||||
|
||||
function sfinv.get_homepage_name(player)
|
||||
return "sfinv:crafting"
|
||||
end
|
||||
|
||||
function sfinv.get_formspec(player, context)
|
||||
-- Generate navigation tabs
|
||||
local nav = {}
|
||||
local nav_ids = {}
|
||||
local current_idx = 1
|
||||
for i, pdef in pairs(sfinv.pages_unordered) do
|
||||
if not pdef.is_in_nav or pdef:is_in_nav(player, context) then
|
||||
nav[#nav + 1] = pdef.title
|
||||
nav_ids[#nav_ids + 1] = pdef.name
|
||||
if pdef.name == context.page then
|
||||
current_idx = #nav_ids
|
||||
end
|
||||
end
|
||||
end
|
||||
context.nav = nav_ids
|
||||
context.nav_titles = nav
|
||||
context.nav_idx = current_idx
|
||||
|
||||
-- Generate formspec
|
||||
local page = sfinv.pages[context.page] or sfinv.pages["404"]
|
||||
if page then
|
||||
return page:get(player, context)
|
||||
else
|
||||
local old_page = context.page
|
||||
local home_page = sfinv.get_homepage_name(player)
|
||||
|
||||
if old_page == home_page then
|
||||
minetest.log("error", "[sfinv] Couldn't find " .. dump(old_page) ..
|
||||
", which is also the old page")
|
||||
|
||||
return ""
|
||||
end
|
||||
|
||||
context.page = home_page
|
||||
assert(sfinv.pages[context.page], "[sfinv] Invalid homepage")
|
||||
minetest.log("warning", "[sfinv] Couldn't find " .. dump(old_page) ..
|
||||
" so switching to homepage")
|
||||
|
||||
return sfinv.get_formspec(player, context)
|
||||
end
|
||||
end
|
||||
|
||||
function sfinv.get_or_create_context(player)
|
||||
local name = player:get_player_name()
|
||||
local context = sfinv.contexts[name]
|
||||
if not context then
|
||||
context = {
|
||||
page = sfinv.get_homepage_name(player)
|
||||
}
|
||||
sfinv.contexts[name] = context
|
||||
end
|
||||
return context
|
||||
end
|
||||
|
||||
function sfinv.set_context(player, context)
|
||||
sfinv.contexts[player:get_player_name()] = context
|
||||
end
|
||||
|
||||
function sfinv.set_player_inventory_formspec(player, context)
|
||||
local fs = sfinv.get_formspec(player,
|
||||
context or sfinv.get_or_create_context(player))
|
||||
player:set_inventory_formspec(fs)
|
||||
end
|
||||
|
||||
function sfinv.set_page(player, pagename)
|
||||
local context = sfinv.get_or_create_context(player)
|
||||
local oldpage = sfinv.pages[context.page]
|
||||
if oldpage and oldpage.on_leave then
|
||||
oldpage:on_leave(player, context)
|
||||
end
|
||||
context.page = pagename
|
||||
local page = sfinv.pages[pagename]
|
||||
if page.on_enter then
|
||||
page:on_enter(player, context)
|
||||
end
|
||||
sfinv.set_player_inventory_formspec(player, context)
|
||||
end
|
||||
|
||||
minetest.register_on_joinplayer(function(player)
|
||||
if sfinv.enabled then
|
||||
sfinv.set_player_inventory_formspec(player)
|
||||
end
|
||||
end)
|
||||
|
||||
minetest.register_on_leaveplayer(function(player)
|
||||
sfinv.contexts[player:get_player_name()] = nil
|
||||
end)
|
||||
|
||||
minetest.register_on_player_receive_fields(function(player, formname, fields)
|
||||
if formname ~= "" or not sfinv.enabled then
|
||||
return false
|
||||
end
|
||||
|
||||
-- Get Context
|
||||
local name = player:get_player_name()
|
||||
local context = sfinv.contexts[name]
|
||||
if not context then
|
||||
sfinv.set_player_inventory_formspec(player)
|
||||
return false
|
||||
end
|
||||
|
||||
-- Was a tab selected?
|
||||
if fields.sfinv_nav_tabs and context.nav then
|
||||
local tid = tonumber(fields.sfinv_nav_tabs)
|
||||
if tid and tid > 0 then
|
||||
local id = context.nav[tid]
|
||||
local page = sfinv.pages[id]
|
||||
if id and page then
|
||||
sfinv.set_page(player, id)
|
||||
end
|
||||
end
|
||||
else
|
||||
-- Pass event to page
|
||||
local page = sfinv.pages[context.page]
|
||||
if page and page.on_player_receive_fields then
|
||||
return page:on_player_receive_fields(player, context, fields)
|
||||
end
|
||||
end
|
||||
end)
|
|
@ -1 +0,0 @@
|
|||
default
|
|
@ -1,22 +0,0 @@
|
|||
dofile(minetest.get_modpath("sfinv") .. "/api.lua")
|
||||
|
||||
sfinv.register_page("sfinv:crafting", {
|
||||
title = "Crafting",
|
||||
get = function(self, player, context)
|
||||
return sfinv.make_formspec(player, context, [[
|
||||
list[current_player;craft;1.75,0.5;3,3;]
|
||||
list[current_player;craftpreview;5.75,1.5;1,1;]
|
||||
image[4.75,1.5;1,1;gui_furnace_arrow_bg.png^[transformR270]
|
||||
listring[current_player;main]
|
||||
listring[current_player;craft]
|
||||
image[0,4.75;1,1;gui_hb_bg.png]
|
||||
image[1,4.75;1,1;gui_hb_bg.png]
|
||||
image[2,4.75;1,1;gui_hb_bg.png]
|
||||
image[3,4.75;1,1;gui_hb_bg.png]
|
||||
image[4,4.75;1,1;gui_hb_bg.png]
|
||||
image[5,4.75;1,1;gui_hb_bg.png]
|
||||
image[6,4.75;1,1;gui_hb_bg.png]
|
||||
image[7,4.75;1,1;gui_hb_bg.png]
|
||||
]], true)
|
||||
end
|
||||
})
|
|
@ -0,0 +1,3 @@
|
|||
minetest.register_on_joinplayer(function(player)
|
||||
player:set_sky("#b0aca8", "plain", {}, false)
|
||||
end)
|
|
@ -0,0 +1,43 @@
|
|||
minetest.register_node("warehouse:concrete", {
|
||||
description = "Base Floor Node, Do Not Place",
|
||||
tiles = {"warehouse_concrete.png"},
|
||||
is_ground_content = true,
|
||||
})
|
||||
|
||||
minetest.register_node("warehouse:rack", {
|
||||
description = "Racks, or big metal shelves that hold boxes",
|
||||
drawtype = "mesh",
|
||||
mesh = "warehouse_rack.obj",
|
||||
tiles = {name = "warehouse_rack.png", backface_culling = false},
|
||||
is_ground_content = true,
|
||||
})
|
||||
|
||||
minetest.register_biome({
|
||||
name = "warehouse",
|
||||
node_top = "warehouse:concrete",
|
||||
depth_top = 1,
|
||||
heat_point = 0,
|
||||
humidity_point = 50,
|
||||
})
|
||||
|
||||
|
||||
minetest.register_decoration({
|
||||
deco_type = "simple",
|
||||
decoration = "warehouse:rack",
|
||||
place_on = "warehouse:concrete",
|
||||
sidelen = 16,
|
||||
biomes = {"warehouse"},
|
||||
place_offset_y = -1,
|
||||
flags = "force_placement",
|
||||
max_y = 31000,
|
||||
min_y = 0,
|
||||
|
||||
noise_params = {
|
||||
offset = 0,
|
||||
scale = 1,
|
||||
spread = {x = 16, y = 16, z = 16},
|
||||
seed = 329,
|
||||
octaves = 1,
|
||||
persist = 0.5
|
||||
},
|
||||
})
|
|
@ -0,0 +1,2 @@
|
|||
name = warehouse
|
||||
depends = mapgen
|
|
@ -0,0 +1,546 @@
|
|||
# Blender v2.80 (sub 64) OBJ File: 'rack.blend'
|
||||
# www.blender.org
|
||||
mtllib warehouse_rack.mtl
|
||||
o Cube
|
||||
v 1.500000 7.500000 -0.500000
|
||||
v 1.500000 0.500000 -0.500000
|
||||
v 1.500000 7.500000 0.500000
|
||||
v 1.500000 0.500000 0.500000
|
||||
v -0.500000 7.500000 -0.500000
|
||||
v -0.500000 0.500000 -0.500000
|
||||
v -0.500000 7.500000 0.500000
|
||||
v -0.500000 0.500000 0.500000
|
||||
v -0.375000 0.500000 -0.500000
|
||||
v -0.375000 1.500000 0.500000
|
||||
v -0.375000 0.500000 0.500000
|
||||
v -0.375000 1.500000 -0.500000
|
||||
v 1.375000 0.500000 0.500000
|
||||
v 1.375000 1.500000 -0.500000
|
||||
v 1.375000 0.500000 -0.500000
|
||||
v 1.375000 7.500000 0.500000
|
||||
v -0.500000 0.500000 0.375000
|
||||
v 1.500000 1.500000 0.375000
|
||||
v -0.500000 1.500000 0.375000
|
||||
v 1.500000 0.500000 0.375000
|
||||
v -0.375000 7.500000 0.375000
|
||||
v 1.375000 7.500000 0.375000
|
||||
v -0.500000 1.500000 -0.375000
|
||||
v 1.500000 0.500000 -0.375000
|
||||
v -0.500000 0.500000 -0.375000
|
||||
v 1.500000 7.500000 -0.375000
|
||||
v -0.375000 7.500000 -0.375000
|
||||
v 1.375000 7.500000 -0.375000
|
||||
v 1.375000 1.250000 0.500000
|
||||
v -0.375000 1.250000 0.500000
|
||||
v 1.500000 1.250000 -0.375000
|
||||
v 1.500000 1.250000 0.375000
|
||||
v -0.500000 1.250000 0.375000
|
||||
v -0.500000 1.250000 -0.375000
|
||||
v -0.375000 1.250000 -0.500000
|
||||
v 1.375000 1.250000 -0.500000
|
||||
v 1.500000 1.500000 -0.375000
|
||||
v 1.375000 1.500000 0.500000
|
||||
v -0.375000 7.500000 0.500000
|
||||
v 1.375000 7.500000 -0.500000
|
||||
v -0.500000 7.500000 0.375000
|
||||
v -0.375000 7.500000 -0.500000
|
||||
v 1.500000 7.500000 0.375000
|
||||
v -0.500000 7.500000 -0.375000
|
||||
v 1.500000 2.500000 -0.375000
|
||||
v -0.500000 2.375000 -0.375000
|
||||
v -0.500000 2.375000 0.375000
|
||||
v 1.500000 2.375000 0.375000
|
||||
v 1.500000 2.375000 -0.375000
|
||||
v -0.500000 2.500000 -0.375000
|
||||
v -0.500000 2.500000 0.375000
|
||||
v 1.500000 2.500000 0.375000
|
||||
v 1.375000 0.500000 -0.375000
|
||||
v 1.375000 0.500000 0.375000
|
||||
v -0.375000 0.500000 0.375000
|
||||
v -0.375000 0.500000 -0.375000
|
||||
v -0.375000 2.375000 0.500000
|
||||
v 1.375000 2.375000 0.500000
|
||||
v -0.375000 2.500000 0.500000
|
||||
v 1.375000 2.500000 0.500000
|
||||
v -0.375000 3.375000 0.500000
|
||||
v 1.375000 3.375000 0.500000
|
||||
v -0.375000 3.500000 0.500000
|
||||
v 1.375000 3.500000 0.500000
|
||||
v -0.375000 4.375000 0.500000
|
||||
v 1.375000 4.375000 0.500000
|
||||
v -0.375000 4.500000 0.500000
|
||||
v 1.375000 4.500000 0.500000
|
||||
v -0.375000 5.375000 0.500000
|
||||
v 1.375000 5.375000 0.500000
|
||||
v -0.375000 5.500000 0.500000
|
||||
v 1.375000 5.500000 0.500000
|
||||
v -0.375000 6.375000 0.500000
|
||||
v 1.375000 6.375000 0.500000
|
||||
v -0.375000 6.500000 0.500000
|
||||
v 1.375000 6.500000 0.500000
|
||||
v -0.375000 7.375000 0.500000
|
||||
v 1.375000 7.375000 0.500000
|
||||
v -0.375000 7.500000 0.500000
|
||||
v 1.375000 7.500000 0.500000
|
||||
v -0.375000 2.375000 -0.500000
|
||||
v 1.375000 2.375000 -0.500000
|
||||
v -0.375000 2.500000 -0.500000
|
||||
v 1.375000 2.500000 -0.500000
|
||||
v -0.375000 3.375000 -0.500000
|
||||
v 1.375000 3.375000 -0.500000
|
||||
v -0.375000 3.500000 -0.500000
|
||||
v 1.375000 3.500000 -0.500000
|
||||
v -0.375000 4.375000 -0.500000
|
||||
v 1.375000 4.375000 -0.500000
|
||||
v -0.375000 4.500000 -0.500000
|
||||
v 1.375000 4.500000 -0.500000
|
||||
v -0.375000 5.375000 -0.500000
|
||||
v 1.375000 5.375000 -0.500000
|
||||
v -0.375000 5.500000 -0.500000
|
||||
v 1.375000 5.500000 -0.500000
|
||||
v -0.375000 6.375000 -0.500000
|
||||
v 1.375000 6.375000 -0.500000
|
||||
v -0.375000 6.500000 -0.500000
|
||||
v 1.375000 6.500000 -0.500000
|
||||
v -0.375000 7.375000 -0.500000
|
||||
v 1.375000 7.375000 -0.500000
|
||||
v -0.375000 7.500000 -0.500000
|
||||
v 1.375000 7.500000 -0.500000
|
||||
v 1.500000 3.500000 -0.375000
|
||||
v -0.500000 3.375000 -0.375000
|
||||
v -0.500000 3.375000 0.375000
|
||||
v 1.500000 3.375000 0.375000
|
||||
v 1.500000 3.375000 -0.375000
|
||||
v -0.500000 3.500000 -0.375000
|
||||
v -0.500000 3.500000 0.375000
|
||||
v 1.500000 3.500000 0.375000
|
||||
v 1.500000 4.500000 -0.375000
|
||||
v -0.500000 4.375000 -0.375000
|
||||
v -0.500000 4.375000 0.375000
|
||||
v 1.500000 4.375000 0.375000
|
||||
v 1.500000 4.375000 -0.375000
|
||||
v -0.500000 4.500000 -0.375000
|
||||
v -0.500000 4.500000 0.375000
|
||||
v 1.500000 4.500000 0.375000
|
||||
v 1.500000 5.500000 -0.375000
|
||||
v -0.500000 5.375000 -0.375000
|
||||
v -0.500000 5.375000 0.375000
|
||||
v 1.500000 5.375000 0.375000
|
||||
v 1.500000 5.375000 -0.375000
|
||||
v -0.500000 5.500000 -0.375000
|
||||
v -0.500000 5.500000 0.375000
|
||||
v 1.500000 5.500000 0.375000
|
||||
v 1.500000 6.500000 -0.375000
|
||||
v -0.500000 6.375000 -0.375000
|
||||
v -0.500000 6.375000 0.375000
|
||||
v 1.500000 6.375000 0.375000
|
||||
v 1.500000 6.375000 -0.375000
|
||||
v -0.500000 6.500000 -0.375000
|
||||
v -0.500000 6.500000 0.375000
|
||||
v 1.500000 6.500000 0.375000
|
||||
v 1.500000 7.500000 -0.375000
|
||||
v -0.500000 7.375000 -0.375000
|
||||
v -0.500000 7.375000 0.375000
|
||||
v 1.500000 7.375000 0.375000
|
||||
v 1.500000 7.375000 -0.375000
|
||||
v -0.500000 7.500000 -0.375000
|
||||
v -0.500000 7.500000 0.375000
|
||||
v 1.500000 7.500000 0.375000
|
||||
v -0.500000 1.500000 0.500000
|
||||
v 1.500000 1.500000 0.500000
|
||||
v -0.500000 1.500000 -0.500000
|
||||
v 1.500000 1.500000 -0.500000
|
||||
v -0.500000 2.500000 0.500000
|
||||
v 1.500000 2.500000 0.500000
|
||||
v -0.500000 2.500000 -0.500000
|
||||
v 1.500000 2.500000 -0.500000
|
||||
v -0.500000 3.500000 0.500000
|
||||
v 1.500000 3.500000 0.500000
|
||||
v -0.500000 3.500000 -0.500000
|
||||
v 1.500000 3.500000 -0.500000
|
||||
v -0.500000 4.500000 0.500000
|
||||
v 1.500000 4.500000 0.500000
|
||||
v -0.500000 4.500000 -0.500000
|
||||
v 1.500000 4.500000 -0.500000
|
||||
v -0.500000 5.500000 0.500000
|
||||
v 1.500000 5.500000 0.500000
|
||||
v -0.500000 5.500000 -0.500000
|
||||
v 1.500000 5.500000 -0.500000
|
||||
v -0.500000 6.500000 0.500000
|
||||
v 1.500000 6.500000 0.500000
|
||||
v -0.500000 6.500000 -0.500000
|
||||
v 1.500000 6.500000 -0.500000
|
||||
v -0.500000 7.500000 0.500000
|
||||
v 1.500000 7.500000 0.500000
|
||||
v -0.500000 7.500000 -0.500000
|
||||
v 1.500000 7.500000 -0.500000
|
||||
v -0.375000 0.562500 0.500000
|
||||
v -0.375000 0.562500 -0.500000
|
||||
v 1.375000 0.562500 -0.500000
|
||||
v 1.500000 0.562500 0.375000
|
||||
v -0.500000 0.562500 0.375000
|
||||
v -0.500000 0.562500 -0.375000
|
||||
v 1.375000 0.500000 0.500000
|
||||
v -0.375000 0.500000 0.500000
|
||||
v 1.500000 0.500000 -0.375000
|
||||
v 1.500000 0.500000 0.375000
|
||||
v -0.500000 0.500000 0.375000
|
||||
v -0.500000 0.500000 -0.375000
|
||||
v -0.375000 0.500000 -0.500000
|
||||
v 1.375000 0.500000 -0.500000
|
||||
v 1.500000 0.562500 -0.375000
|
||||
v 1.375000 0.562500 0.500000
|
||||
v -0.500000 0.562500 0.500000
|
||||
v 1.500000 0.562500 0.500000
|
||||
v -0.500000 0.562500 -0.500000
|
||||
v 1.500000 0.562500 -0.500000
|
||||
v -0.500000 1.250000 0.500000
|
||||
v 1.500000 1.250000 0.500000
|
||||
v -0.500000 1.250000 -0.500000
|
||||
v 1.500000 1.250000 -0.500000
|
||||
v -0.500000 2.375000 0.500000
|
||||
v 1.500000 2.375000 0.500000
|
||||
v -0.500000 2.375000 -0.500000
|
||||
v 1.500000 2.375000 -0.500000
|
||||
v -0.500000 3.375000 0.500000
|
||||
v 1.500000 3.375000 0.500000
|
||||
v -0.500000 3.375000 -0.500000
|
||||
v 1.500000 3.375000 -0.500000
|
||||
v -0.500000 4.375000 0.500000
|
||||
v 1.500000 4.375000 0.500000
|
||||
v -0.500000 4.375000 -0.500000
|
||||
v 1.500000 4.375000 -0.500000
|
||||
v -0.500000 5.375000 0.500000
|
||||
v 1.500000 5.375000 0.500000
|
||||
v -0.500000 5.375000 -0.500000
|
||||
v 1.500000 5.375000 -0.500000
|
||||
v -0.500000 6.375000 0.500000
|
||||
v 1.500000 6.375000 0.500000
|
||||
v -0.500000 6.375000 -0.500000
|
||||
v 1.500000 6.375000 -0.500000
|
||||
v -0.500000 7.375000 0.500000
|
||||
v 1.500000 7.375000 0.500000
|
||||
v -0.500000 7.375000 -0.500000
|
||||
v 1.500000 7.375000 -0.500000
|
||||
vt 0.020408 -0.000000
|
||||
vt 0.020408 7.000000
|
||||
vt -0.000000 7.000000
|
||||
vt -0.000000 -0.000000
|
||||
vt 0.020408 -0.000000
|
||||
vt 0.020408 7.000000
|
||||
vt -0.000000 7.000000
|
||||
vt -0.000000 -0.000000
|
||||
vt 0.020408 0.000000
|
||||
vt 0.020408 7.000000
|
||||
vt 0.000000 7.000000
|
||||
vt 0.000000 0.000000
|
||||
vt 0.020408 0.000000
|
||||
vt 0.020408 7.000000
|
||||
vt 0.000000 7.000000
|
||||
vt 0.000000 0.000000
|
||||
vt 0.020408 0.000000
|
||||
vt 0.020408 7.000000
|
||||
vt -0.000000 7.000000
|
||||
vt -0.000000 0.000000
|
||||
vt 0.714286 0.750000
|
||||
vt 1.000000 0.750000
|
||||
vt 1.000000 0.500000
|
||||
vt 0.714286 0.500000
|
||||
vt 0.020408 0.000000
|
||||
vt 0.020408 7.000000
|
||||
vt 0.000000 7.000000
|
||||
vt 0.000000 0.000000
|
||||
vt 0.877551 0.875000
|
||||
vt 1.000000 0.875000
|
||||
vt 1.000000 0.750000
|
||||
vt 0.877551 0.750000
|
||||
vt 0.020408 0.000000
|
||||
vt 0.020408 7.000000
|
||||
vt 0.000000 7.000000
|
||||
vt 0.000000 0.000000
|
||||
vt 0.714286 0.750000
|
||||
vt 1.000000 0.750000
|
||||
vt 1.000000 0.500000
|
||||
vt 0.714286 0.500000
|
||||
vt 0.020408 0.000000
|
||||
vt 0.020408 7.000000
|
||||
vt -0.000000 7.000000
|
||||
vt -0.000000 0.000000
|
||||
vt 0.877551 0.875000
|
||||
vt 1.000000 0.875000
|
||||
vt 1.000000 0.750000
|
||||
vt 0.877551 0.750000
|
||||
vt 0.877551 0.500000
|
||||
vt 1.000000 0.500000
|
||||
vt 1.000000 0.250000
|
||||
vt 0.877551 0.250000
|
||||
vt 0.877551 0.500000
|
||||
vt 1.000000 0.500000
|
||||
vt 1.000000 0.250000
|
||||
vt 0.877551 0.250000
|
||||
vt 0.020408 -0.000000
|
||||
vt 0.020408 7.000000
|
||||
vt 0.000000 7.000000
|
||||
vt 0.000000 -0.000000
|
||||
vt 0.000000 -0.000000
|
||||
vt 0.020408 -0.000000
|
||||
vt 0.020408 7.000000
|
||||
vt 0.000000 7.000000
|
||||
vt 0.020408 -0.000000
|
||||
vt 0.020408 7.000000
|
||||
vt -0.000000 7.000000
|
||||
vt -0.000000 -0.000000
|
||||
vt 0.020408 7.000000
|
||||
vt 0.000000 7.000000
|
||||
vt 0.000000 0.000000
|
||||
vt 0.020408 0.000000
|
||||
vt 0.020408 0.000000
|
||||
vt 0.020408 7.000000
|
||||
vt -0.000000 7.000000
|
||||
vt -0.000000 0.000000
|
||||
vt 0.000000 0.000000
|
||||
vt 0.020408 0.000000
|
||||
vt 0.020408 7.000000
|
||||
vt 0.000000 7.000000
|
||||
vt -0.000000 -0.000000
|
||||
vt 0.020408 -0.000000
|
||||
vt 0.020408 7.000000
|
||||
vt -0.000000 7.000000
|
||||
vt 0.020408 7.000000
|
||||
vt 0.000000 7.000000
|
||||
vt 0.000000 0.000000
|
||||
vt 0.020408 0.000000
|
||||
vt 0.714286 0.875000
|
||||
vt 1.000000 0.875000
|
||||
vt 1.000000 1.000000
|
||||
vt 0.714286 1.000000
|
||||
vt 0.714286 0.875000
|
||||
vt 1.000000 0.875000
|
||||
vt 1.000000 1.000000
|
||||
vt 0.714286 1.000000
|
||||
vt 0.714286 0.875000
|
||||
vt 1.000000 0.875000
|
||||
vt 1.000000 1.000000
|
||||
vt 0.714286 1.000000
|
||||
vt 0.714286 0.875000
|
||||
vt 1.000000 0.875000
|
||||
vt 1.000000 1.000000
|
||||
vt 0.714286 1.000000
|
||||
vt 0.714286 0.875000
|
||||
vt 1.000000 0.875000
|
||||
vt 1.000000 1.000000
|
||||
vt 0.714286 1.000000
|
||||
vt 0.714286 0.875000
|
||||
vt 1.000000 0.875000
|
||||
vt 1.000000 1.000000
|
||||
vt 0.714286 1.000000
|
||||
vt 1.000000 0.875000
|
||||
vt 0.714286 0.875000
|
||||
vt 0.714286 1.000000
|
||||
vt 1.000000 1.000000
|
||||
vt 1.000000 0.875000
|
||||
vt 0.714286 0.875000
|
||||
vt 0.714286 1.000000
|
||||
vt 1.000000 1.000000
|
||||
vt 1.000000 0.875000
|
||||
vt 0.714286 0.875000
|
||||
vt 0.714286 1.000000
|
||||
vt 1.000000 1.000000
|
||||
vt 1.000000 0.875000
|
||||
vt 0.714286 0.875000
|
||||
vt 0.714286 1.000000
|
||||
vt 1.000000 1.000000
|
||||
vt 1.000000 0.875000
|
||||
vt 0.714286 0.875000
|
||||
vt 0.714286 1.000000
|
||||
vt 1.000000 1.000000
|
||||
vt 1.000000 0.875000
|
||||
vt 0.714286 0.875000
|
||||
vt 0.714286 1.000000
|
||||
vt 1.000000 1.000000
|
||||
vt 0.877551 0.875000
|
||||
vt 1.000000 0.875000
|
||||
vt 1.000000 0.750000
|
||||
vt 0.877551 0.750000
|
||||
vt 0.877551 0.875000
|
||||
vt 1.000000 0.875000
|
||||
vt 1.000000 0.750000
|
||||
vt 0.877551 0.750000
|
||||
vt 0.877551 0.875000
|
||||
vt 1.000000 0.875000
|
||||
vt 1.000000 0.750000
|
||||
vt 0.877551 0.750000
|
||||
vt 0.877551 0.875000
|
||||
vt 1.000000 0.875000
|
||||
vt 1.000000 0.750000
|
||||
vt 0.877551 0.750000
|
||||
vt 0.877551 0.875000
|
||||
vt 1.000000 0.875000
|
||||
vt 1.000000 0.750000
|
||||
vt 0.877551 0.750000
|
||||
vt 0.877551 0.875000
|
||||
vt 1.000000 0.875000
|
||||
vt 1.000000 0.750000
|
||||
vt 0.877551 0.750000
|
||||
vt 0.877551 0.875000
|
||||
vt 1.000000 0.875000
|
||||
vt 1.000000 0.750000
|
||||
vt 0.877551 0.750000
|
||||
vt 0.877551 0.875000
|
||||
vt 1.000000 0.875000
|
||||
vt 1.000000 0.750000
|
||||
vt 0.877551 0.750000
|
||||
vt 0.877551 0.875000
|
||||
vt 1.000000 0.875000
|
||||
vt 1.000000 0.750000
|
||||
vt 0.877551 0.750000
|
||||
vt 0.877551 0.875000
|
||||
vt 1.000000 0.875000
|
||||
vt 1.000000 0.750000
|
||||
vt 0.877551 0.750000
|
||||
vt 0.346939 0.000000
|
||||
vt 0.673469 0.000000
|
||||
vt 0.673469 1.000000
|
||||
vt 0.346939 1.000000
|
||||
vt 0.020408 0.000000
|
||||
vt 0.346939 0.000000
|
||||
vt 0.346939 1.000000
|
||||
vt 0.020408 1.000000
|
||||
vt 0.020408 0.000000
|
||||
vt 0.346939 0.000000
|
||||
vt 0.346939 1.000000
|
||||
vt 0.020408 1.000000
|
||||
vt 0.020408 0.000000
|
||||
vt 0.346939 0.000000
|
||||
vt 0.346939 1.000000
|
||||
vt 0.020408 1.000000
|
||||
vt 0.020408 0.000000
|
||||
vt 0.346939 0.000000
|
||||
vt 0.346939 1.000000
|
||||
vt 0.020408 1.000000
|
||||
vt 0.020408 0.000000
|
||||
vt 0.346939 0.000000
|
||||
vt 0.346939 1.000000
|
||||
vt 0.020408 1.000000
|
||||
vt 0.020408 0.000000
|
||||
vt 0.346939 0.000000
|
||||
vt 0.346939 1.000000
|
||||
vt 0.020408 1.000000
|
||||
vt 0.714286 0.250000
|
||||
vt 1.000000 0.250000
|
||||
vt 1.000000 0.187500
|
||||
vt 0.714286 0.187500
|
||||
vt 0.714286 0.250000
|
||||
vt 1.000000 0.250000
|
||||
vt 1.000000 0.187500
|
||||
vt 0.714286 0.187500
|
||||
vt 0.877551 0.187500
|
||||
vt 1.000000 0.187500
|
||||
vt 1.000000 0.125000
|
||||
vt 0.877551 0.125000
|
||||
vt 0.877551 0.187500
|
||||
vt 1.000000 0.187500
|
||||
vt 1.000000 0.125000
|
||||
vt 0.877551 0.125000
|
||||
vt 0.020408 0.000000
|
||||
vt 0.346939 0.000000
|
||||
vt 0.346939 1.000000
|
||||
vt 0.020408 1.000000
|
||||
vt 0.346939 0.000000
|
||||
vt 0.673469 0.000000
|
||||
vt 0.673469 1.000000
|
||||
vt 0.346939 1.000000
|
||||
vt 0.020408 0.000000
|
||||
vt 0.346939 0.000000
|
||||
vt 0.346939 1.000000
|
||||
vt 0.020408 1.000000
|
||||
vt 0.020408 0.000000
|
||||
vt 0.346939 0.000000
|
||||
vt 0.346939 1.000000
|
||||
vt 0.020408 1.000000
|
||||
vt 0.020408 0.000000
|
||||
vt 0.346939 0.000000
|
||||
vt 0.346939 1.000000
|
||||
vt 0.020408 1.000000
|
||||
vt 0.020408 0.000000
|
||||
vt 0.346939 0.000000
|
||||
vt 0.346939 1.000000
|
||||
vt 0.020408 1.000000
|
||||
vt 0.020408 0.000000
|
||||
vt 0.346939 0.000000
|
||||
vt 0.346939 1.000000
|
||||
vt 0.020408 1.000000
|
||||
vt 0.020408 0.000000
|
||||
vt 0.346939 0.000000
|
||||
vt 0.346939 1.000000
|
||||
vt 0.020408 1.000000
|
||||
vn 0.0000 0.0000 1.0000
|
||||
vn -1.0000 0.0000 0.0000
|
||||
vn 1.0000 0.0000 0.0000
|
||||
vn 0.0000 0.0000 -1.0000
|
||||
vn 0.0000 1.0000 0.0000
|
||||
usemtl Material
|
||||
s off
|
||||
f 11/1/1 39/2/1 7/3/1 8/4/1
|
||||
f 25/5/2 44/6/2 5/7/2 6/8/2
|
||||
f 20/9/3 43/10/3 3/11/3 4/12/3
|
||||
f 15/13/4 40/14/4 1/15/4 2/16/4
|
||||
f 6/17/4 5/18/4 42/19/4 9/20/4
|
||||
f 14/21/1 12/22/1 35/23/1 36/24/1
|
||||
f 4/25/1 3/26/1 16/27/1 13/28/1
|
||||
f 50/29/3 51/30/3 47/31/3 46/32/3
|
||||
f 8/33/2 7/34/2 41/35/2 17/36/2
|
||||
f 10/37/4 38/38/4 29/39/4 30/40/4
|
||||
f 2/41/3 1/42/3 26/43/3 24/44/3
|
||||
f 52/45/2 45/46/2 49/47/2 48/48/2
|
||||
f 18/49/2 37/50/2 31/51/2 32/52/2
|
||||
f 23/53/3 19/54/3 33/55/3 34/56/3
|
||||
f 17/57/4 41/58/4 21/59/4 55/60/4
|
||||
f 11/61/3 55/62/3 21/63/3 39/64/3
|
||||
f 9/65/3 42/66/3 27/67/3 56/68/3
|
||||
f 27/69/1 44/70/1 25/71/1 56/72/1
|
||||
f 24/73/1 26/74/1 28/75/1 53/76/1
|
||||
f 15/77/2 53/78/2 28/79/2 40/80/2
|
||||
f 54/81/2 13/82/2 16/83/2 22/84/2
|
||||
f 22/85/4 43/86/4 20/87/4 54/88/4
|
||||
f 57/89/1 58/90/1 60/91/1 59/92/1
|
||||
f 61/93/1 62/94/1 64/95/1 63/96/1
|
||||
f 65/97/1 66/98/1 68/99/1 67/100/1
|
||||
f 69/101/1 70/102/1 72/103/1 71/104/1
|
||||
f 73/105/1 74/106/1 76/107/1 75/108/1
|
||||
f 77/109/1 78/110/1 80/111/1 79/112/1
|
||||
f 81/113/1 82/114/1 84/115/1 83/116/1
|
||||
f 85/117/1 86/118/1 88/119/1 87/120/1
|
||||
f 89/121/1 90/122/1 92/123/1 91/124/1
|
||||
f 93/125/1 94/126/1 96/127/1 95/128/1
|
||||
f 97/129/1 98/130/1 100/131/1 99/132/1
|
||||
f 101/133/1 102/134/1 104/135/1 103/136/1
|
||||
f 110/137/3 111/138/3 107/139/3 106/140/3
|
||||
f 112/141/2 105/142/2 109/143/2 108/144/2
|
||||
f 118/145/3 119/146/3 115/147/3 114/148/3
|
||||
f 120/149/2 113/150/2 117/151/2 116/152/2
|
||||
f 126/153/3 127/154/3 123/155/3 122/156/3
|
||||
f 128/157/2 121/158/2 125/159/2 124/160/2
|
||||
f 134/161/3 135/162/3 131/163/3 130/164/3
|
||||
f 136/165/2 129/166/2 133/167/2 132/168/2
|
||||
f 142/169/3 143/170/3 139/171/3 138/172/3
|
||||
f 144/173/2 137/174/2 141/175/2 140/176/2
|
||||
f 145/177/5 146/178/5 148/179/5 147/180/5
|
||||
f 149/181/5 150/182/5 152/183/5 151/184/5
|
||||
f 153/185/5 154/186/5 156/187/5 155/188/5
|
||||
f 157/189/5 158/190/5 160/191/5 159/192/5
|
||||
f 161/193/5 162/194/5 164/195/5 163/196/5
|
||||
f 165/197/5 166/198/5 168/199/5 167/200/5
|
||||
f 169/201/5 170/202/5 172/203/5 171/204/5
|
||||
f 175/205/1 174/206/1 185/207/1 186/208/1
|
||||
f 173/209/4 188/210/4 179/211/4 180/212/4
|
||||
f 176/213/2 187/214/2 181/215/2 182/216/2
|
||||
f 178/217/3 177/218/3 183/219/3 184/220/3
|
||||
f 189/221/5 190/222/5 192/223/5 191/224/5
|
||||
f 193/225/5 194/226/5 196/227/5 195/228/5
|
||||
f 197/229/5 198/230/5 200/231/5 199/232/5
|
||||
f 201/233/5 202/234/5 204/235/5 203/236/5
|
||||
f 205/237/5 206/238/5 208/239/5 207/240/5
|
||||
f 209/241/5 210/242/5 212/243/5 211/244/5
|
||||
f 213/245/5 214/246/5 216/247/5 215/248/5
|
||||
f 217/249/5 218/250/5 220/251/5 219/252/5
|
Before Width: | Height: | Size: 986 B After Width: | Height: | Size: 927 B |
After Width: | Height: | Size: 364 B |