Cottages update

master
Brandon 2015-07-30 21:07:09 -05:00
parent d0314fa5d7
commit b4c8f519c7
37 changed files with 4439 additions and 478 deletions

View File

@ -1,23 +1,71 @@
minetest.register_entity(":__builtin:item", {
-- Minetest: builtin/item_entity.lua (5th July 2015)
function core.spawn_item(pos, item)
-- Take item in any format
local stack = ItemStack(item)
local obj = core.add_entity(pos, "__builtin:item")
obj:get_luaentity():set_item(stack:to_string())
return obj
end
-- If item_entity_ttl is not set, enity will have default life time
-- Setting it to -1 disables the feature
local time_to_live = tonumber(core.setting_get("item_entity_ttl")) or 180 -- 3 mins
-- If destroy_item is 1 then dropped items will burn inside lava
local destroy_item = tonumber(core.setting_get("destroy_item")) or 1
-- Particle effects when item removed
local function add_effects(pos)
minetest.add_particlespawner({
amount = 1,
time = 0.25,
minpos = pos,
maxpos = pos,
minvel = {x = -1, y = 2, z = -1},
maxvel = {x = 1, y = 5, z = 1},
minacc = vector.new(),
maxacc = vector.new(),
minexptime = 1,
maxexptime = 3,
minsize = 1,
maxsize = 4,
texture = "tnt_smoke.png",
})
end
core.register_entity(":__builtin:item", {
initial_properties = {
hp_max = 1,
physical = true,
collisionbox = {-0.17,-0.17,-0.17, 0.17,0.17,0.17},
visual = "sprite",
visual_size = {x=0.5, y=0.5},
collide_with_objects = false,
collisionbox = {-0.3, -0.3, -0.3, 0.3, 0.3, 0.3},
visual = "wielditem",
visual_size = {x = 0.4, y = 0.4},
textures = {""},
spritediv = {x=1, y=1},
initial_sprite_basepos = {x=0, y=0},
spritediv = {x = 1, y = 1},
initial_sprite_basepos = {x = 0, y = 0},
is_visible = false,
timer = 0,
},
itemstring = '',
physical_state = true,
age = 0,
set_item = function(self, itemstring)
self.itemstring = itemstring
local stack = ItemStack(itemstring)
local count = stack:get_count()
local max_count = stack:get_stack_max()
if count > max_count then
count = max_count
self.itemstring = stack:get_name().." "..max_count
end
local s = 0.2 + 0.1 * (count / max_count)
local c = s
local itemtable = stack:to_table()
local itemname = nil
if itemtable then
@ -25,90 +73,218 @@ minetest.register_entity(":__builtin:item", {
end
local item_texture = nil
local item_type = ""
if minetest.registered_items[itemname] then
item_texture = minetest.registered_items[itemname].inventory_image
item_type = minetest.registered_items[itemname].type
if core.registered_items[itemname] then
item_texture = core.registered_items[itemname].inventory_image
item_type = core.registered_items[itemname].type
end
local prop = {
is_visible = true,
visual = "sprite",
textures = {"unknown_item.png"}
visual = "wielditem",
textures = {itemname},
visual_size = {x = s, y = s},
collisionbox = {-c, -c, -c, c, c, c},
automatic_rotate = math.pi * 0.5,
}
if item_texture and item_texture ~= "" then
prop.visual = "sprite"
prop.textures = {item_texture}
prop.visual_size = {x=0.50, y=0.50}
else
prop.visual = "wielditem"
prop.textures = {itemname}
prop.visual_size = {x=0.20, y=0.20}
prop.automatic_rotate = math.pi * 0.25
end
self.object:set_properties(prop)
end,
get_staticdata = function(self)
--return self.itemstring
return minetest.serialize({
return core.serialize({
itemstring = self.itemstring,
always_collect = self.always_collect,
timer = self.timer,
age = self.age
})
end,
on_activate = function(self, staticdata, dtime_s)
if string.sub(staticdata, 1, string.len("return")) == "return" then
local data = minetest.deserialize(staticdata)
local data = core.deserialize(staticdata)
if data and type(data) == "table" then
self.itemstring = data.itemstring
self.always_collect = data.always_collect
self.timer = data.timer
if not self.timer then
self.timer = 0
if data.age then
self.age = data.age + dtime_s
else
self.age = dtime_s
end
self.timer = self.timer+dtime_s
end
else
self.itemstring = staticdata
end
self.object:set_armor_groups({immortal=1})
self.object:setvelocity({x=0, y=2, z=0})
self.object:setacceleration({x=0, y=-10, z=0})
self.object:set_armor_groups({immortal = 1})
self.object:setvelocity({x = 0, y = 2, z = 0})
self.object:setacceleration({x = 0, y = -10, z = 0})
self:set_item(self.itemstring)
end,
try_merge_with = function(self, own_stack, object, obj)
local stack = ItemStack(obj.itemstring)
if own_stack:get_name() == stack:get_name() and stack:get_free_space() > 0 then
local overflow = false
local count = stack:get_count() + own_stack:get_count()
local max_count = stack:get_stack_max()
if count > max_count then
overflow = true
count = count - max_count
else
self.itemstring = ''
end
local pos = object:getpos()
pos.y = pos.y + (count - stack:get_count()) / max_count * 0.15
object:moveto(pos, false)
local s, c
local max_count = stack:get_stack_max()
local name = stack:get_name()
if not overflow then
obj.itemstring = name .. " " .. count
s = 0.2 + 0.1 * (count / max_count)
c = s
object:set_properties({
visual_size = {x = s, y = s},
collisionbox = {-c, -c, -c, c, c, c}
})
self.object:remove()
-- merging succeeded
return true
else
s = 0.4
c = 0.3
object:set_properties({
visual_size = {x = s, y = s},
collisionbox = {-c, -c, -c, c, c, c}
})
obj.itemstring = name .. " " .. max_count
s = 0.2 + 0.1 * (count / max_count)
c = s
self.object:set_properties({
visual_size = {x = s, y = s},
collisionbox = {-c, -c, -c, c, c, c}
})
self.itemstring = name .. " " .. count
end
end
-- merging didn't succeed
return false
end,
on_step = function(self, dtime)
local time = minetest.setting_get("remove_items")
if not time then
time = 300
end
if not self.timer then
self.timer = 0
end
self.timer = self.timer + dtime
if time ~= 0 and (self.timer > time) then
self.object:remove()
end
local p = self.object:getpos()
local vel = self.object:getvelocity()
self.object:setacceleration({x=((vel.x)*-1), y=-10, z=((vel.z)*-1)})
local name = minetest.env:get_node(p).name
if name == "default:lava_flowing" or name == "default:lava_source" then
minetest.sound_play("builtin_item_lava", {pos=self.object:getpos()})
self.age = self.age + dtime
if time_to_live > 0 and self.age > time_to_live then
self.itemstring = ''
add_effects(self.object:getpos())
self.object:remove()
return
end
local p = self.object:getpos()
p.y = p.y - 0.5
local node = core.get_node_or_nil(p)
local in_unloaded = (node == nil)
if in_unloaded then
-- Don't infinetly fall into unloaded map
self.object:setvelocity({x = 0, y = 0, z = 0})
self.object:setacceleration({x = 0, y = 0, z = 0})
self.physical_state = false
self.object:set_properties({physical = false})
return
end
local nn = node.name
-- If item drops into lava then destroy if enabled
if destroy_item > 0 and minetest.get_item_group(nn, "lava") > 0 then
minetest.sound_play("builtin_item_lava", {
pos = p,
max_hear_distance = 6,
gain = 0.5
})
self.object:remove()
add_effects(p)
return
end
p.y = p.y + 0.5
-- Flowing water pushes item along
local nod = minetest.get_node_or_nil(p)
if nod and minetest.registered_nodes[nod.name].liquidtype == "flowing" then
local pos = self.object:getpos()
pos = vector.round(pos)
local p2 = node.param2
if p2 > 6 then p2 = 0 end
local v = self.object:getvelocity()
nod = minetest.get_node({x = pos.x + 1, y = pos.y, z = pos.z})
if minetest.registered_nodes[nod.name].liquidtype == "flowing"
and nod.param2 < p2 and nod.param2 < 7 then
v.x = 0.8
end
nod = minetest.get_node({x = pos.x - 1, y = pos.y, z = pos.z})
if minetest.registered_nodes[nod.name].liquidtype == "flowing"
and nod.param2 < p2 and nod.param2 < 7 then
v.x = -0.8
end
nod = minetest.get_node({x = pos.x, y = pos.y, z = pos.z + 1})
if minetest.registered_nodes[nod.name].liquidtype == "flowing"
and nod.param2 < p2 and nod.param2 < 7 then
v.z = 0.8
end
nod = minetest.get_node({x = pos.x, y = pos.y, z = pos.z - 1})
if minetest.registered_nodes[nod.name].liquidtype == "flowing"
and nod.param2 < p2 and nod.param2 < 7 then
v.z = -0.8
end
self.object:setvelocity(v)
return
end
p.y = p.y - 0.5
-- If node is not registered or node is walkably solid and resting on nodebox
if not core.registered_nodes[nn]
or core.registered_nodes[nn].walkable
and self.object:getvelocity().y == 0 then
if self.physical_state then
local own_stack = ItemStack(self.object:get_luaentity().itemstring)
-- Merge with close entities of the same item
for _, object in ipairs(core.get_objects_inside_radius(p, 1.0)) do
local obj = object:get_luaentity()
if obj and obj.name == "__builtin:item"
and obj.physical_state == false then
if self:try_merge_with(own_stack, object, obj) then
return
end
end
end
self.object:setvelocity({x = 0, y = 0, z = 0})
self.object:setacceleration({x = 0, y = 0, z = 0})
self.physical_state = false
self.object:set_properties({physical = false})
end
else
if not self.physical_state then
self.object:setvelocity({x = 0, y = 0, z = 0})
self.object:setacceleration({x = 0, y = -10, z = 0})
self.physical_state = true
self.object:set_properties({physical = true})
end
end
end,
on_punch = function(self, hitter)
if self.itemstring ~= '' then
hitter:get_inventory():add_item("main", self.itemstring)
local left = hitter:get_inventory():add_item("main", self.itemstring)
if not left:is_empty() then
self.itemstring = left:to_string()
return
end
end
self.itemstring = ''
self.object:remove()
end,
})
if minetest.setting_get("log_mods") then
minetest.log("action", "builtin_item loaded")
end
})

675
mods/cottages/LICENSE Executable file
View File

@ -0,0 +1,675 @@
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for
software and other kinds of works.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users. We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors. You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights. Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received. You must make sure that they, too, receive
or can get the source code. And you must show them these terms so they
know their rights.
Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.
For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software. For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.
Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so. This is fundamentally incompatible with the aim of
protecting users' freedom to change the software. The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable. Therefore, we
have designed this version of the GPL to prohibit the practice for those
products. If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary. To prevent this, the GPL assures that
patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The Corresponding Source for a work in source code form is that
same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Use with the GNU Affero General Public License.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
{one line to give the program's name and a brief idea of what it does.}
Copyright (C) {year} {name of author}
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 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 General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:
{project} Copyright (C) {year} {fullname}
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
<http://www.gnu.org/licenses/>.
The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
<http://www.gnu.org/philosophy/why-not-lgpl.html>.

90
mods/cottages/README.md Executable file
View File

@ -0,0 +1,90 @@
Contains nodes for building medieval houses.
This used to be part of my random_buildings modpack, found under
https://github.com/Sokomine/random_buildings
It is now its own mod as all other mods in the modpack have been
superseded by newer versions.
For more information about this mod, please refer to
https://forum.minetest.net/viewtopic.php?id=5120
The thread introduces the nodes, shows crafting receipes and provides a place
to discuss about the mod.
Special functions:
* Window shutters use an abm to automaticly close at night and open at day.
* The treshing place can be used to seperate harvested wheat into wheat seeds
and straw. The straw is useful for roofing purposes, straw bales etc.
* The handmill turns wheat seeds into flour.
* With anvil and hammer, tools can be repaired.
* The barrels do not yet have any further functionality. They may be used for
brewing in the future. Until then, punching makes them rotate and switch from
standing to lying on the ground.
Liscence of this mod: GPLv3
Autor: Sokomine
---
--- Textures and media:
---
VanessaE (CC-by-SA 3.0):
cottages_waonwheel.png
cottages_homedecor_shingles_asphalt.png
cottages_homedecor_shingles_terracotta.png
cottages_homedecor_shingles_wood.png
cottages_sleepingmat.png
cottages_barrel.png
CC-by-SA; done by GloopMaster (CC-by-SA):
glooptest_tool_steelhammer.png
badger436 (created for this mod; CC BY-SA 3.0):
cottages_feldweg.png
Some textures are taken from
https://github.com/minetest/minetest_game
and renamed (default_NAME.png -> cottages_NAME.png)
Cisoun's WTFPL texture pack:
cottages_stone.png (for anvil and handmill)
cottages_wool.png
Zeg9 (CC BY-SA 3.0):
cottages_steel_block.png (for steel hatch and stovepipie)
MasterGollum (WTFPL, darkage mod):
cottages_darkage_straw_bale.png
cottages_darkage_straw.png
cottages_reet.png (straw texture changed in color)
Sokomine (CC-by-SA 3.0):
cottages_glass_pane.png (modification of default_glass.png)
cottages_loam.png (part of a real loam wall)
Copyright (C) 2010-2012 celeron55, Perttu Ahola <celeron55@gmail.com>
Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0)
http://creativecommons.org/licenses/by-sa/3.0/
cottages_clay.png (washing place, stairs and slab)
From the supplied minimal game:
cottages_minimal_wood.png
PilzAdam (WTFPL; default and beds mod):
cottages_junglewood.png
cottages_beds_bed_side.png
cottages_beds_bed_side_top_l.png
cottages_beds_bed_side_top_r.png
cottages_beds_bed_top_bottom.png
cottages_beds_bed_top_top.png
Derived from Universal schema.jpg by Stefanie Lindener, which can be found here: http://de.wikipedia.org/w/index.php?title=Datei:Universal_schema.jpg&filetimestamp=20060510110309& The texture is CC-by-sa 2.0/de.
cottages_slate.png
Textures not provided but used (need to be supplied by a default mod):
default_wood.png
default_tree.png
default_dirt.png
default_grass_side.png
default_chest_top.png
default_chest_side.png
default_chest_front.png
default_stick.png
farming_wheat.png

99
mods/cottages/adaptions.lua Executable file
View File

@ -0,0 +1,99 @@
-- some games may not have the default nodes;
-- change this so that craft receipes work!
-- used for: anvil, hammer, barrel, steel hatch, stove pipe, wagon wheel, handmill.
cottages.craftitem_steel = "default:steel_ingot";
-- used for: hammer, wood+steel hatch, fence gate, bed, table, bench, shelf,
-- washing place, wagon wheel, glass pane, flat wood, handmill,
-- operating the treshing floor.
cottages.craftitem_stick = "group:stick";
-- used for: treshing floor, handmill, slate roof, vertical slate
cottages.craftitem_stone = "default:stone";
-- used for: window shutter, half door, half door inverted, fence gate,
-- bed, bench, shelf, roof connector, vertical slate
cottages.craftitem_wood = "group:wood";
-- used for: half door
cottages.craftitem_door = "doors:door_wood";
-- used for: small fence
cottages.craftitem_fence = "default:fence_wood";
-- used for: bed (head+foot), wool for tents
cottages.craftitem_wool = "wool:white";
-- used for: washing place, loam
cottages.craftitem_clay = "default:clay";
-- used for: wagon wheel
cottages.craftitem_iron = "default:iron_lump";
-- used for: dirt road, brown roof (if no homedecor is installed)
cottages.craftitem_dirt = "default:dirt";
-- used for: loam
cottages.craftitem_sand = "default:sand";
-- used for: glass pane
cottages.craftitem_glass = "default:glass";
-- used for: reet roof, reet block
cottages.craftitem_papyrus = "default:papyrus";
-- used for: black roof (if no homedecor is installed)
cottages.craftitem_coal_lump = "default:coal_lump";
-- used for: red roof (if no homedecor is installed)
cottages.craftitem_clay_brick = "default:clay_brick";
-- used for: treshing floor
cottages.craftitem_junglewood = "default:junglewood";
cottages.craftitem_chest_locked = "default:chest_locked";
-- used for: hatch, table
cottages.craftitem_slab_wood = "stairs:slab_wood";
-- texture used for fence gate and bed posts
cottages.texture_furniture = "default_wood.png";
-- texture for the side of roof nodes
cottages.texture_roof_sides = "default_wood.png";
-- if the default wood node does not exist, use an alternate wood texture
-- (which is also used for furnitures and doors in this mod)
if( not( minetest.registered_nodes['default:wood'])) then
cottages.texture_roof_sides = "cottages_minimal_wood.png";
cottages.texture_furniture = "cottages_minimal_wood.png";
end
cottages.texture_chest = {"default_chest_top.png", "default_chest_top.png", "default_chest_side.png",
"default_chest_side.png", "default_chest_side.png", "default_chest_front.png"};
-- the treshing floor produces wheat seeds
cottages.craftitem_seed_wheat = "farming:seed_wheat";
cottages.texture_wheat_seed = "farming_wheat_seed.png";
cottages.texture_stick = "default_stick.png";
-- texture for roofs where the tree bark is the main roof texture
cottages.textures_roof_wood = "default_tree.png";
if( not( minetest.registered_nodes["default:tree"])) then
-- realtest has diffrent barks; the spruce one seems to be the most fitting
if( minetest.registered_nodes["trees:spruce_log" ]) then
cottages.textures_roof_wood = "trees_spruce_trunk.png";
-- this is also an indicator that we are dealing with realtest;
cottages.craftitem_steel = "metals:pig_iron_ingot";
-- stone exists, but is hard to obtain; chiseled stone is more suitable
cottages.craftitem_stone = "default:stone_flat";
-- there are far more diffrent wood tpyes
cottages.craftitem_wood = "group:planks";
cottages.craftitem_door = "doors:door_birch";
cottages.craftitem_fence = "group:fence";
cottages.craftitem_clay = "grounds:clay_lump";
cottages.craftitem_iron = "group:plank"; -- iron lumps would be too specific
cottages.craftitem_coal_lump = "minerals:charcoal";
cottages.craftitem_junglewood = "trees:chestnut_planks";
cottages.craftitem_slab_wood = "group:plank";
cottages.texture_chest = { "spruce_chest_top.png", "spruce_chest_top.png", "spruce_chest_side.png",
"spruce_chest_side.png", "spruce_chest_side.png", "spruce_chest_front.png"};
-- wheat is called spelt in RealTest
cottages.craftitem_seed_wheat = 'farming:seed_spelt';
cottages.texture_wheat_seed = 'farming_spelt_seed.png';
cottages.texture_stick = 'trees_maple_stick.png';
else
-- does not look so well in this case as it's no bark; but what else shall we do?
cottages.textures_roof_wood = "cottages_minimal_wood.png";
end
end
if( not( minetest.registered_nodes["wool:white"])) then
cottages.craftitem_wool = "cottages:wool";
end

View File

@ -1,5 +1,7 @@
default
default?
farming
stairs?
homedecor?
intllib?
trees?
wool?

View File

@ -1,9 +1,12 @@
-- Version: 2.0
-- Version: 2.2
-- Autor: Sokomine
-- License: GPLv3
--
-- Modified:
-- 27.07.15 Moved into its own repository.
-- Made sure textures and craft receipe indigrents are available or can be replaced.
-- Took care of "unregistered globals" warnings.
-- 23.01.14 Added conversion receipes in case of installed castle-mod (has its own anvil)
-- 23.01.14 Added hammer and anvil as decoration and for repairing tools.
-- Added hatches (wood and steel).
@ -19,8 +22,21 @@
cottages = {}
-- uncomment parts you do not want
-- Boilerplate to support localized strings if intllib mod is installed.
if minetest.get_modpath( "intllib" ) and intllib then
cottages.S = intllib.Getter()
else
cottages.S = function(s) return s end
end
--cottages.config_use_mesh_barrel = false;
--cottages.config_use_mesh_handmill = true;
-- set alternate crafting materials and textures where needed
-- (i.e. in combination with realtest)
dofile(minetest.get_modpath("cottages").."/adaptions.lua");
-- uncomment parts you do not want
dofile(minetest.get_modpath("cottages").."/nodes_furniture.lua");
dofile(minetest.get_modpath("cottages").."/nodes_historic.lua");
dofile(minetest.get_modpath("cottages").."/nodes_straw.lua");
@ -29,7 +45,10 @@ dofile(minetest.get_modpath("cottages").."/nodes_doorlike.lua");
dofile(minetest.get_modpath("cottages").."/nodes_fences.lua");
dofile(minetest.get_modpath("cottages").."/nodes_roof.lua");
dofile(minetest.get_modpath("cottages").."/nodes_barrel.lua");
dofile(minetest.get_modpath("cottages").."/nodes_chests.lua");
--dofile(minetest.get_modpath("cottages").."/nodes_chests.lua");
-- this is only required and useful if you run versions of the random_buildings mod where the nodes where defined inside that mod
dofile(minetest.get_modpath("cottages").."/alias.lua");
-- variable no longer needed
cottages.S = nil;

View File

@ -0,0 +1,543 @@
# Blender v2.69 (sub 0) OBJ File: 'barrel.blend'
# www.blender.org
o Cylinder
v 0.092835 -0.500001 -0.466712
v 0.092835 0.500000 -0.466712
v 0.264371 -0.500001 -0.395660
v 0.264371 0.500000 -0.395660
v 0.395660 -0.500001 -0.264371
v 0.395660 0.500000 -0.264371
v 0.466712 -0.500001 -0.092835
v 0.466712 0.500000 -0.092835
v 0.466712 -0.500001 0.092835
v 0.466712 0.500000 0.092835
v 0.395660 -0.500001 0.264371
v 0.395660 0.500000 0.264371
v 0.264371 -0.500001 0.395660
v 0.264371 0.500000 0.395660
v 0.092835 -0.500001 0.466712
v 0.092835 0.500000 0.466712
v -0.092835 -0.500001 0.466712
v -0.092835 0.500000 0.466712
v -0.264371 -0.500001 0.395660
v -0.264371 0.500000 0.395660
v -0.395660 -0.500001 0.264371
v -0.395660 0.500000 0.264371
v -0.466712 -0.500001 0.092835
v -0.466712 0.500000 0.092835
v -0.466712 -0.500001 -0.092835
v -0.466712 0.500000 -0.092835
v -0.395660 -0.500001 -0.264371
v -0.395660 0.500000 -0.264371
v -0.264371 -0.500001 -0.395660
v -0.264371 0.500000 -0.395660
v -0.092835 -0.500001 -0.466713
v -0.092835 0.500000 -0.466713
v 0.095930 0.413334 -0.482270
v 0.273184 -0.413334 -0.408849
v 0.408849 -0.413334 -0.273184
v 0.482270 -0.413334 -0.095929
v 0.482270 -0.413334 0.095930
v 0.408849 -0.413334 0.273184
v 0.273184 -0.413334 0.408849
v 0.095929 -0.413334 0.482270
v -0.095929 -0.413334 0.482270
v -0.273184 -0.413334 0.408849
v -0.408849 -0.413334 0.273184
v -0.482270 -0.413334 0.095929
v -0.482270 -0.413334 -0.095930
v -0.408849 -0.413334 -0.273184
v -0.273184 -0.413334 -0.408849
v -0.095929 -0.413334 -0.482270
v 0.095930 -0.413334 -0.482270
v 0.273184 0.413334 -0.408849
v 0.408849 0.413334 -0.273184
v 0.482270 0.413334 -0.095929
v 0.482270 0.413334 0.095930
v 0.408849 0.413334 0.273184
v 0.273184 0.413334 0.408849
v 0.095929 0.413334 0.482270
v -0.095929 0.413334 0.482270
v -0.273184 0.413334 0.408849
v -0.408849 0.413334 0.273184
v -0.482270 0.413334 0.095929
v -0.482270 0.413334 -0.095930
v -0.408849 0.413334 -0.273184
v -0.273184 0.413334 -0.408849
v -0.095929 0.413334 -0.482270
v 0.099128 0.114830 -0.498352
v 0.282294 -0.114831 -0.422482
v 0.422482 -0.114831 -0.282294
v 0.498352 -0.114831 -0.099128
v 0.498352 -0.114831 0.099128
v 0.422482 -0.114831 0.282294
v 0.282294 -0.114831 0.422482
v 0.099128 -0.114831 0.498352
v -0.099128 -0.114831 0.498352
v -0.282294 -0.114831 0.422482
v -0.422482 -0.114831 0.282294
v -0.498352 -0.114831 0.099128
v -0.498352 -0.114831 -0.099128
v -0.422482 -0.114831 -0.282294
v -0.282293 -0.114831 -0.422482
v -0.099128 -0.114831 -0.498352
v 0.099128 -0.114831 -0.498352
v 0.282294 0.114830 -0.422482
v 0.422482 0.114830 -0.282294
v 0.498352 0.114830 -0.099128
v 0.498352 0.114830 0.099128
v 0.422482 0.114830 0.282294
v 0.282294 0.114830 0.422482
v 0.099128 0.114830 0.498352
v -0.099128 0.114830 0.498352
v -0.282294 0.114830 0.422482
v -0.422482 0.114830 0.282294
v -0.498352 0.114830 0.099128
v -0.498352 0.114830 -0.099128
v -0.422482 0.114830 -0.282294
v -0.282293 0.114830 -0.422482
v -0.099128 0.114830 -0.498352
v 0.083551 -0.500001 -0.420041
v 0.083551 0.500000 -0.420041
v 0.237934 -0.500001 -0.356094
v 0.237934 0.500000 -0.356094
v 0.356094 -0.500001 -0.237934
v 0.356094 0.500000 -0.237934
v 0.420041 -0.500001 -0.083551
v 0.420041 0.500000 -0.083551
v 0.420041 -0.500001 0.083551
v 0.420041 0.500000 0.083551
v 0.356094 -0.500001 0.237934
v 0.356094 0.500000 0.237934
v 0.237934 -0.500001 0.356094
v 0.237934 0.500000 0.356094
v 0.083551 -0.500001 0.420041
v 0.083551 0.500000 0.420041
v -0.083551 -0.500001 0.420041
v -0.083551 0.500000 0.420041
v -0.237934 -0.500001 0.356094
v -0.237934 0.500000 0.356094
v -0.356094 -0.500001 0.237934
v -0.356094 0.500000 0.237934
v -0.420041 -0.500001 0.083551
v -0.420041 0.500000 0.083551
v -0.420041 -0.500001 -0.083551
v -0.420041 0.500000 -0.083551
v -0.356094 -0.500001 -0.237934
v -0.356094 0.500000 -0.237934
v -0.237934 -0.500001 -0.356094
v -0.237934 0.500000 -0.356094
v -0.083551 -0.500001 -0.420041
v -0.083551 0.500000 -0.420041
v 0.086337 0.413334 -0.434043
v 0.245866 -0.413335 -0.367964
v 0.367964 -0.413335 -0.245866
v 0.434043 -0.413335 -0.086336
v 0.434043 -0.413335 0.086337
v 0.367964 -0.413335 0.245866
v 0.245866 -0.413335 0.367964
v 0.086337 -0.413335 0.434043
v -0.086336 -0.413335 0.434043
v -0.245866 -0.413335 0.367964
v -0.367964 -0.413335 0.245866
v -0.434043 -0.413335 0.086337
v -0.434043 -0.413335 -0.086337
v -0.367964 -0.413335 -0.245866
v -0.245865 -0.413335 -0.367964
v -0.086336 -0.413335 -0.434043
v 0.086337 -0.413335 -0.434043
v 0.245866 0.413334 -0.367964
v 0.367964 0.413334 -0.245866
v 0.434043 0.413334 -0.086336
v 0.434043 0.413334 0.086337
v 0.367964 0.413334 0.245866
v 0.245866 0.413334 0.367964
v 0.086337 0.413334 0.434043
v -0.086336 0.413334 0.434043
v -0.245866 0.413334 0.367964
v -0.367964 0.413334 0.245866
v -0.434043 0.413334 0.086337
v -0.434043 0.413334 -0.086337
v -0.367964 0.413334 -0.245866
v -0.245865 0.413334 -0.367964
v -0.086336 0.413334 -0.434043
v 0.089216 0.114830 -0.448517
v 0.254064 -0.114831 -0.380234
v 0.380234 -0.114831 -0.254064
v 0.448517 -0.114831 -0.089215
v 0.448517 -0.114831 0.089216
v 0.380234 -0.114831 0.254064
v 0.254064 -0.114831 0.380234
v 0.089216 -0.114831 0.448517
v -0.089215 -0.114831 0.448517
v -0.254064 -0.114831 0.380234
v -0.380234 -0.114831 0.254064
v -0.448517 -0.114831 0.089216
v -0.448517 -0.114831 -0.089216
v -0.380234 -0.114831 -0.254064
v -0.254064 -0.114831 -0.380234
v -0.089215 -0.114831 -0.448517
v 0.089216 -0.114831 -0.448517
v 0.254064 0.114830 -0.380234
v 0.380234 0.114830 -0.254064
v 0.448517 0.114830 -0.089215
v 0.448517 0.114830 0.089216
v 0.380234 0.114830 0.254064
v 0.254064 0.114830 0.380234
v 0.089216 0.114830 0.448517
v -0.089215 0.114830 0.448517
v -0.254064 0.114830 0.380234
v -0.380234 0.114830 0.254064
v -0.448517 0.114830 0.089216
v -0.448517 0.114830 -0.089216
v -0.380234 0.114830 -0.254064
v -0.254064 0.114830 -0.380234
v -0.089215 0.114830 -0.448517
v 0.087776 -0.352645 -0.441280
v -0.087776 -0.352645 -0.441280
v -0.249965 -0.352645 -0.374099
v -0.374099 -0.352645 -0.249965
v -0.441280 -0.352645 -0.087776
v -0.441280 -0.352645 0.087776
v -0.374099 -0.352645 0.249965
v -0.249965 -0.352645 0.374099
v -0.087776 -0.352645 0.441280
v 0.087776 -0.352645 0.441280
v 0.249965 -0.352645 0.374099
v 0.374099 -0.352645 0.249965
v 0.441280 -0.352645 0.087776
v 0.441280 -0.352645 -0.087776
v 0.374099 -0.352645 -0.249965
v 0.249965 -0.352645 -0.374099
v 0.000000 -0.352645 0.000000
v -0.000000 -0.413334 0.000000
vt 0.211538 0.442308
vt 0.211538 0.467949
vt 0.108974 0.467949
vt 0.108974 0.442308
vt 0.314103 0.442308
vt 0.314103 0.467949
vt 0.416667 0.442308
vt 0.416667 0.467949
vt 0.006410 0.467949
vt 0.006410 0.442308
vt 0.211792 0.993590
vt 0.117562 0.954728
vt 0.262789 0.738327
vt 0.211538 0.006410
vt 0.108974 0.006410
vt 0.108974 0.032051
vt 0.211538 0.032051
vt 0.314103 0.006410
vt 0.314103 0.032051
vt 0.416667 0.006410
vt 0.416667 0.032051
vt 0.006410 0.006410
vt 0.006410 0.032051
vt 0.211361 0.993526
vt 0.117394 0.954505
vt 0.262040 0.737637
vt 0.045447 0.882467
vt 0.006475 0.788381
vt 0.006410 0.686569
vt 0.045263 0.592532
vt 0.117118 0.520586
vt 0.204627 0.488094
vt 0.312719 0.481748
vt 0.406687 0.520769
vt 0.478633 0.592807
vt 0.517605 0.686893
vt 0.517670 0.788705
vt 0.478816 0.882742
vt 0.406962 0.954687
vt 0.313044 0.993590
vt 0.045441 0.882922
vt 0.006410 0.789102
vt 0.006410 0.687551
vt 0.045442 0.593732
vt 0.117562 0.521925
vt 0.211793 0.483064
vt 0.313787 0.483064
vt 0.408016 0.521926
vt 0.480136 0.593732
vt 0.519168 0.687551
vt 0.519168 0.789103
vt 0.480136 0.882922
vt 0.408016 0.954728
vt 0.313786 0.993590
vt 0.416667 0.397436
vt 0.314103 0.397436
vt 0.211538 0.397436
vt 0.108974 0.397436
vt 0.006410 0.397436
vt 0.314103 0.185897
vt 0.314103 0.282051
vt 0.211538 0.282051
vt 0.211538 0.185897
vt 0.108974 0.282051
vt 0.108974 0.185897
vt 0.006410 0.282051
vt 0.006410 0.185897
vt 0.416667 0.185897
vt 0.416667 0.282051
vt 0.416667 0.076923
vt 0.314103 0.076923
vt 0.211538 0.076923
vt 0.108974 0.076923
vt 0.006410 0.076923
vt 0.429487 0.397436
vt 0.532051 0.397436
vt 0.532051 0.442308
vt 0.429487 0.442308
vt 0.634615 0.397436
vt 0.634615 0.442308
vt 0.737179 0.397436
vt 0.737179 0.442308
vt 0.839744 0.397436
vt 0.839744 0.442308
vt 0.532051 0.185897
vt 0.634615 0.185897
vt 0.634615 0.282051
vt 0.532051 0.282051
vt 0.737179 0.185897
vt 0.737179 0.282051
vt 0.839744 0.185897
vt 0.839744 0.282051
vt 0.429487 0.185897
vt 0.429487 0.282051
vt 0.429487 0.032051
vt 0.532051 0.032051
vt 0.532051 0.076923
vt 0.429487 0.076923
vt 0.634615 0.032051
vt 0.634615 0.076923
vt 0.737179 0.032051
vt 0.737179 0.076923
vt 0.839744 0.032051
vt 0.839744 0.076923
s off
f 14/1 110/2 112/3 16/4
f 12/5 108/6 110/2 14/1
f 10/7 106/8 108/6 12/5
f 8/4 104/3 106/9 10/10
f 6/1 102/2 104/3 8/4
f 4/5 100/6 102/2 6/1
f 2/7 98/8 100/6 4/5
f 32/4 128/3 98/9 2/10
f 30/1 126/2 128/3 32/4
f 28/5 124/6 126/2 30/1
f 26/7 122/8 124/6 28/5
f 24/4 120/3 122/9 26/10
f 22/1 118/2 120/3 24/4
f 20/5 116/6 118/2 22/1
f 18/7 114/8 116/6 20/5
f 16/4 112/3 114/9 18/10
f 145/11 130/12 210/13
f 13/14 15/15 111/16 109/17
f 11/18 13/14 109/17 107/19
f 9/20 11/18 107/19 105/21
f 7/15 9/22 105/23 103/16
f 5/14 7/15 103/16 101/17
f 3/18 5/14 101/17 99/19
f 1/20 3/18 99/19 97/21
f 31/15 1/22 97/23 127/16
f 29/14 31/15 127/16 125/17
f 27/18 29/14 125/17 123/19
f 25/20 27/18 123/19 121/21
f 23/15 25/22 121/23 119/16
f 21/14 23/15 119/16 117/17
f 19/18 21/14 117/17 115/19
f 17/20 19/18 115/19 113/21
f 15/15 17/22 113/23 111/16
f 194/24 195/25 209/26
f 195/25 196/27 209/26
f 196/27 197/28 209/26
f 197/28 198/29 209/26
f 198/29 199/30 209/26
f 199/30 200/31 209/26
f 200/31 201/32 209/26
f 201/32 202/33 209/26
f 202/33 203/34 209/26
f 203/34 204/35 209/26
f 204/35 205/36 209/26
f 205/36 206/37 209/26
f 206/37 207/38 209/26
f 207/38 208/39 209/26
f 208/39 193/40 209/26
f 193/40 194/24 209/26
f 130/12 131/41 210/13
f 131/41 132/42 210/13
f 132/42 133/43 210/13
f 133/43 134/44 210/13
f 134/44 135/45 210/13
f 135/45 136/46 210/13
f 136/46 137/47 210/13
f 137/47 138/48 210/13
f 138/48 139/49 210/13
f 139/49 140/50 210/13
f 140/50 141/51 210/13
f 141/51 142/52 210/13
f 142/52 143/53 210/13
f 143/53 144/54 210/13
f 144/54 145/11 210/13
s 1
f 33/55 2/7 4/5 50/56
f 50/56 4/5 6/1 51/57
f 51/57 6/1 8/4 52/58
f 52/58 8/4 10/10 53/59
f 53/55 10/7 12/5 54/56
f 54/56 12/5 14/1 55/57
f 55/57 14/1 16/4 56/58
f 56/58 16/4 18/10 57/59
f 57/55 18/7 20/5 58/56
f 58/56 20/5 22/1 59/57
f 59/57 22/1 24/4 60/58
f 60/58 24/4 26/10 61/59
f 61/55 26/7 28/5 62/56
f 62/56 28/5 30/1 63/57
f 64/58 32/4 2/10 33/59
f 63/57 30/1 32/4 64/58
f 66/60 82/61 83/62 67/63
f 67/63 83/62 84/64 68/65
f 68/65 84/64 85/66 69/67
f 69/68 85/69 86/61 70/60
f 70/60 86/61 87/62 71/63
f 71/63 87/62 88/64 72/65
f 72/65 88/64 89/66 73/67
f 73/68 89/69 90/61 74/60
f 74/60 90/61 91/62 75/63
f 75/63 91/62 92/64 76/65
f 76/65 92/64 93/66 77/67
f 77/68 93/69 94/61 78/60
f 78/60 94/61 95/62 79/63
f 80/65 96/64 65/66 81/67
f 79/63 95/62 96/64 80/65
f 65/69 33/55 50/56 82/61
f 82/61 50/56 51/57 83/62
f 83/62 51/57 52/58 84/64
f 84/64 52/58 53/59 85/66
f 85/69 53/55 54/56 86/61
f 86/61 54/56 55/57 87/62
f 87/62 55/57 56/58 88/64
f 88/64 56/58 57/59 89/66
f 89/69 57/55 58/56 90/61
f 90/61 58/56 59/57 91/62
f 91/62 59/57 60/58 92/64
f 92/64 60/58 61/59 93/66
f 93/69 61/55 62/56 94/61
f 94/61 62/56 63/57 95/62
f 96/64 64/58 33/59 65/66
f 95/62 63/57 64/58 96/64
f 1/21 49/70 34/71 3/19
f 3/19 34/71 35/72 5/17
f 5/17 35/72 36/73 7/16
f 7/16 36/73 37/74 9/23
f 9/21 37/70 38/71 11/19
f 11/19 38/71 39/72 13/17
f 13/17 39/72 40/73 15/16
f 15/16 40/73 41/74 17/23
f 17/21 41/70 42/71 19/19
f 19/19 42/71 43/72 21/17
f 21/17 43/72 44/73 23/16
f 23/16 44/73 45/74 25/23
f 25/21 45/70 46/71 27/19
f 27/19 46/71 47/72 29/17
f 31/16 48/73 49/74 1/23
f 29/17 47/72 48/73 31/16
f 49/70 81/68 66/60 34/71
f 34/71 66/60 67/63 35/72
f 35/72 67/63 68/65 36/73
f 36/73 68/65 69/67 37/74
f 37/70 69/68 70/60 38/71
f 38/71 70/60 71/63 39/72
f 39/72 71/63 72/65 40/73
f 40/73 72/65 73/67 41/74
f 41/70 73/68 74/60 42/71
f 42/71 74/60 75/63 43/72
f 43/72 75/63 76/65 44/73
f 44/73 76/65 77/67 45/74
f 45/70 77/68 78/60 46/71
f 46/71 78/60 79/63 47/72
f 48/73 80/65 81/67 49/74
f 47/72 79/63 80/65 48/73
f 65/69 82/61 66/60 81/68
f 129/75 146/76 100/77 98/78
f 146/76 147/79 102/80 100/77
f 147/79 148/81 104/82 102/80
f 148/81 149/83 106/84 104/82
f 149/75 150/76 108/77 106/78
f 150/76 151/79 110/80 108/77
f 151/79 152/81 112/82 110/80
f 152/81 153/83 114/84 112/82
f 153/75 154/76 116/77 114/78
f 154/76 155/79 118/80 116/77
f 155/79 156/81 120/82 118/80
f 156/81 157/83 122/84 120/82
f 157/75 158/76 124/77 122/78
f 158/76 159/79 126/80 124/77
f 160/81 129/83 98/84 128/82
f 159/79 160/81 128/82 126/80
f 162/85 163/86 179/87 178/88
f 163/86 164/89 180/90 179/87
f 164/89 165/91 181/92 180/90
f 165/93 166/85 182/88 181/94
f 166/85 167/86 183/87 182/88
f 167/86 168/89 184/90 183/87
f 168/89 169/91 185/92 184/90
f 169/93 170/85 186/88 185/94
f 170/85 171/86 187/87 186/88
f 171/86 172/89 188/90 187/87
f 172/89 173/91 189/92 188/90
f 173/93 174/85 190/88 189/94
f 174/85 175/86 191/87 190/88
f 176/89 177/91 161/92 192/90
f 175/86 176/89 192/90 191/87
f 161/94 178/88 146/76 129/75
f 178/88 179/87 147/79 146/76
f 179/87 180/90 148/81 147/79
f 180/90 181/92 149/83 148/81
f 181/94 182/88 150/76 149/75
f 182/88 183/87 151/79 150/76
f 183/87 184/90 152/81 151/79
f 184/90 185/92 153/83 152/81
f 185/94 186/88 154/76 153/75
f 186/88 187/87 155/79 154/76
f 187/87 188/90 156/81 155/79
f 188/90 189/92 157/83 156/81
f 189/94 190/88 158/76 157/75
f 190/88 191/87 159/79 158/76
f 192/90 161/92 129/83 160/81
f 191/87 192/90 160/81 159/79
f 97/95 99/96 130/97 145/98
f 99/96 101/99 131/100 130/97
f 101/99 103/101 132/102 131/100
f 103/101 105/103 133/104 132/102
f 105/95 107/96 134/97 133/98
f 107/96 109/99 135/100 134/97
f 109/99 111/101 136/102 135/100
f 111/101 113/103 137/104 136/102
f 113/95 115/96 138/97 137/98
f 115/96 117/99 139/100 138/97
f 117/99 119/101 140/102 139/100
f 119/101 121/103 141/104 140/102
f 121/95 123/96 142/97 141/98
f 123/96 125/99 143/100 142/97
f 127/101 97/103 145/104 144/102
f 125/99 127/101 144/102 143/100
f 193/98 208/97 162/85 177/93
f 208/97 207/100 163/86 162/85
f 207/100 206/102 164/89 163/86
f 206/102 205/104 165/91 164/89
f 205/98 204/97 166/85 165/93
f 204/97 203/100 167/86 166/85
f 203/100 202/102 168/89 167/86
f 202/102 201/104 169/91 168/89
f 201/98 200/97 170/85 169/93
f 200/97 199/100 171/86 170/85
f 199/100 198/102 172/89 171/86
f 198/102 197/104 173/91 172/89
f 197/98 196/97 174/85 173/93
f 196/97 195/100 175/86 174/85
f 194/102 193/104 177/91 176/89
f 195/100 194/102 176/89 175/86
f 161/94 177/93 162/85 178/88

View File

@ -0,0 +1,453 @@
# Blender v2.69 (sub 0) OBJ File: 'barrel-closed.blend'
# www.blender.org
o Cylinder
v 0.092835 -0.500001 -0.466712
v 0.092835 0.500000 -0.466712
v 0.264371 -0.500001 -0.395660
v 0.264371 0.500000 -0.395660
v 0.395660 -0.500001 -0.264371
v 0.395660 0.500000 -0.264371
v 0.466712 -0.500001 -0.092835
v 0.466712 0.500000 -0.092835
v 0.466712 -0.500001 0.092835
v 0.466712 0.500000 0.092835
v 0.395660 -0.500001 0.264371
v 0.395660 0.500000 0.264371
v 0.264371 -0.500001 0.395660
v 0.264371 0.500000 0.395660
v 0.092835 -0.500001 0.466712
v 0.092835 0.500000 0.466712
v -0.092835 -0.500001 0.466712
v -0.092835 0.500000 0.466712
v -0.264371 -0.500001 0.395660
v -0.264371 0.500000 0.395660
v -0.395660 -0.500001 0.264371
v -0.395660 0.500000 0.264371
v -0.466712 -0.500001 0.092835
v -0.466712 0.500000 0.092835
v -0.466712 -0.500001 -0.092835
v -0.466712 0.500000 -0.092835
v -0.395660 -0.500001 -0.264371
v -0.395660 0.500000 -0.264371
v -0.264371 -0.500001 -0.395660
v -0.264371 0.500000 -0.395660
v -0.092835 -0.500001 -0.466713
v -0.092835 0.500000 -0.466713
v 0.095930 0.413334 -0.482270
v 0.273184 -0.413334 -0.408849
v 0.408849 -0.413334 -0.273184
v 0.482270 -0.413334 -0.095929
v 0.482270 -0.413334 0.095930
v 0.408849 -0.413334 0.273184
v 0.273184 -0.413334 0.408849
v 0.095929 -0.413334 0.482270
v -0.095929 -0.413334 0.482270
v -0.273184 -0.413334 0.408849
v -0.408849 -0.413334 0.273184
v -0.482270 -0.413334 0.095929
v -0.482270 -0.413334 -0.095930
v -0.408849 -0.413334 -0.273184
v -0.273184 -0.413334 -0.408849
v -0.095929 -0.413334 -0.482270
v 0.095930 -0.413334 -0.482270
v 0.273184 0.413334 -0.408849
v 0.408849 0.413334 -0.273184
v 0.482270 0.413334 -0.095929
v 0.482270 0.413334 0.095930
v 0.408849 0.413334 0.273184
v 0.273184 0.413334 0.408849
v 0.095929 0.413334 0.482270
v -0.095929 0.413334 0.482270
v -0.273184 0.413334 0.408849
v -0.408849 0.413334 0.273184
v -0.482270 0.413334 0.095929
v -0.482270 0.413334 -0.095930
v -0.408849 0.413334 -0.273184
v -0.273184 0.413334 -0.408849
v -0.095929 0.413334 -0.482270
v 0.099128 0.114830 -0.498352
v 0.282294 -0.114831 -0.422482
v 0.422482 -0.114831 -0.282294
v 0.498352 -0.114831 -0.099128
v 0.498352 -0.114831 0.099128
v 0.422482 -0.114831 0.282294
v 0.282294 -0.114831 0.422482
v 0.099128 -0.114831 0.498352
v -0.099128 -0.114831 0.498352
v -0.282294 -0.114831 0.422482
v -0.422482 -0.114831 0.282294
v -0.498352 -0.114831 0.099128
v -0.498352 -0.114831 -0.099128
v -0.422482 -0.114831 -0.282294
v -0.282293 -0.114831 -0.422482
v -0.099128 -0.114831 -0.498352
v 0.099128 -0.114831 -0.498352
v 0.282294 0.114830 -0.422482
v 0.422482 0.114830 -0.282294
v 0.498352 0.114830 -0.099128
v 0.498352 0.114830 0.099128
v 0.422482 0.114830 0.282294
v 0.282294 0.114830 0.422482
v 0.099128 0.114830 0.498352
v -0.099128 0.114830 0.498352
v -0.282294 0.114830 0.422482
v -0.422482 0.114830 0.282294
v -0.498352 0.114830 0.099128
v -0.498352 0.114830 -0.099128
v -0.422482 0.114830 -0.282294
v -0.282293 0.114830 -0.422482
v -0.099128 0.114830 -0.498352
v 0.083551 -0.500001 -0.420041
v 0.083551 0.500000 -0.420041
v 0.237934 -0.500001 -0.356094
v 0.237934 0.500000 -0.356094
v 0.356094 -0.500001 -0.237934
v 0.356094 0.500000 -0.237934
v 0.420041 -0.500001 -0.083551
v 0.420041 0.500000 -0.083551
v 0.420041 -0.500001 0.083551
v 0.420041 0.500000 0.083551
v 0.356094 -0.500001 0.237934
v 0.356094 0.500000 0.237934
v 0.237934 -0.500001 0.356094
v 0.237934 0.500000 0.356094
v 0.083551 -0.500001 0.420041
v 0.083551 0.500000 0.420041
v -0.083551 -0.500001 0.420041
v -0.083551 0.500000 0.420041
v -0.237934 -0.500001 0.356094
v -0.237934 0.500000 0.356094
v -0.356094 -0.500001 0.237934
v -0.356094 0.500000 0.237934
v -0.420041 -0.500001 0.083551
v -0.420041 0.500000 0.083551
v -0.420041 -0.500001 -0.083551
v -0.420041 0.500000 -0.083551
v -0.356094 -0.500001 -0.237934
v -0.356094 0.500000 -0.237934
v -0.237934 -0.500001 -0.356094
v -0.237934 0.500000 -0.356094
v -0.083551 -0.500001 -0.420041
v -0.083551 0.500000 -0.420041
v 0.086337 0.413334 -0.434043
v 0.245866 -0.413335 -0.367964
v 0.367964 -0.413335 -0.245866
v 0.434043 -0.413335 -0.086336
v 0.434043 -0.413335 0.086337
v 0.367964 -0.413335 0.245866
v 0.245866 -0.413335 0.367964
v 0.086337 -0.413335 0.434043
v -0.086336 -0.413335 0.434043
v -0.245866 -0.413335 0.367964
v -0.367964 -0.413335 0.245866
v -0.434043 -0.413335 0.086337
v -0.434043 -0.413335 -0.086337
v -0.367964 -0.413335 -0.245866
v -0.245865 -0.413335 -0.367964
v -0.086336 -0.413335 -0.434043
v 0.086337 -0.413335 -0.434043
v 0.245866 0.413334 -0.367964
v 0.367964 0.413334 -0.245866
v 0.434043 0.413334 -0.086336
v 0.434043 0.413334 0.086337
v 0.367964 0.413334 0.245866
v 0.245866 0.413334 0.367964
v 0.086337 0.413334 0.434043
v -0.086336 0.413334 0.434043
v -0.245866 0.413334 0.367964
v -0.367964 0.413334 0.245866
v -0.434043 0.413334 0.086337
v -0.434043 0.413334 -0.086337
v -0.367964 0.413334 -0.245866
v -0.245865 0.413334 -0.367964
v -0.086336 0.413334 -0.434043
v 0.087776 0.428605 -0.441280
v -0.087776 0.428605 -0.441280
v -0.249965 0.428605 -0.374099
v -0.374099 0.428605 -0.249965
v -0.441280 0.428605 -0.087776
v -0.441280 0.428605 0.087776
v -0.374099 0.428605 0.249965
v -0.249965 0.428605 0.374099
v -0.087776 0.428605 0.441280
v 0.087776 0.428605 0.441280
v 0.249965 0.428605 0.374099
v 0.374099 0.428605 0.249965
v 0.441280 0.428605 0.087776
v 0.441280 0.428605 -0.087776
v 0.374099 0.428605 -0.249965
v 0.249965 0.428605 -0.374099
v 0.000000 0.428605 0.000000
v -0.000000 -0.413334 0.000000
vt 0.211538 0.442308
vt 0.211538 0.467949
vt 0.108974 0.467949
vt 0.108974 0.442308
vt 0.314103 0.442308
vt 0.314103 0.467949
vt 0.416667 0.442308
vt 0.416667 0.467949
vt 0.006410 0.467949
vt 0.006410 0.442308
vt 0.211792 0.993590
vt 0.117562 0.954728
vt 0.262789 0.738327
vt 0.211538 0.006410
vt 0.108974 0.006410
vt 0.108974 0.032051
vt 0.211538 0.032051
vt 0.314103 0.006410
vt 0.314103 0.032051
vt 0.416667 0.006410
vt 0.416667 0.032051
vt 0.006410 0.006410
vt 0.006410 0.032051
vt 0.211361 0.993526
vt 0.117394 0.954505
vt 0.262040 0.737637
vt 0.045447 0.882467
vt 0.006475 0.788381
vt 0.006410 0.686569
vt 0.045263 0.592532
vt 0.117118 0.520586
vt 0.204627 0.488094
vt 0.312719 0.481748
vt 0.406687 0.520769
vt 0.478633 0.592807
vt 0.517605 0.686893
vt 0.517670 0.788705
vt 0.478816 0.882742
vt 0.406962 0.954687
vt 0.313044 0.993590
vt 0.045441 0.882922
vt 0.006410 0.789102
vt 0.006410 0.687551
vt 0.045442 0.593732
vt 0.117562 0.521925
vt 0.211793 0.483064
vt 0.313787 0.483064
vt 0.408016 0.521926
vt 0.480136 0.593732
vt 0.519168 0.687551
vt 0.519168 0.789103
vt 0.480136 0.882922
vt 0.408016 0.954728
vt 0.313786 0.993590
vt 0.416667 0.397436
vt 0.314103 0.397436
vt 0.211538 0.397436
vt 0.108974 0.397436
vt 0.006410 0.397436
vt 0.314103 0.185897
vt 0.314103 0.282051
vt 0.211538 0.282051
vt 0.211538 0.185897
vt 0.108974 0.282051
vt 0.108974 0.185897
vt 0.006410 0.282051
vt 0.006410 0.185897
vt 0.416667 0.185897
vt 0.416667 0.282051
vt 0.416667 0.076923
vt 0.314103 0.076923
vt 0.211538 0.076923
vt 0.108974 0.076923
vt 0.006410 0.076923
vt 0.429487 0.397436
vt 0.532051 0.397436
vt 0.532051 0.442308
vt 0.429487 0.442308
vt 0.634615 0.397436
vt 0.634615 0.442308
vt 0.737179 0.397436
vt 0.737179 0.442308
vt 0.839744 0.397436
vt 0.839744 0.442308
vt 0.429487 0.032051
vt 0.532051 0.032051
vt 0.532051 0.076923
vt 0.429487 0.076923
vt 0.634615 0.032051
vt 0.634615 0.076923
vt 0.737179 0.032051
vt 0.737179 0.076923
vt 0.839744 0.032051
vt 0.839744 0.076923
s off
f 14/1 110/2 112/3 16/4
f 12/5 108/6 110/2 14/1
f 10/7 106/8 108/6 12/5
f 8/4 104/3 106/9 10/10
f 6/1 102/2 104/3 8/4
f 4/5 100/6 102/2 6/1
f 2/7 98/8 100/6 4/5
f 32/4 128/3 98/9 2/10
f 30/1 126/2 128/3 32/4
f 28/5 124/6 126/2 30/1
f 26/7 122/8 124/6 28/5
f 24/4 120/3 122/9 26/10
f 22/1 118/2 120/3 24/4
f 20/5 116/6 118/2 22/1
f 18/7 114/8 116/6 20/5
f 16/4 112/3 114/9 18/10
f 145/11 130/12 178/13
f 13/14 15/15 111/16 109/17
f 11/18 13/14 109/17 107/19
f 9/20 11/18 107/19 105/21
f 7/15 9/22 105/23 103/16
f 5/14 7/15 103/16 101/17
f 3/18 5/14 101/17 99/19
f 1/20 3/18 99/19 97/21
f 31/15 1/22 97/23 127/16
f 29/14 31/15 127/16 125/17
f 27/18 29/14 125/17 123/19
f 25/20 27/18 123/19 121/21
f 23/15 25/22 121/23 119/16
f 21/14 23/15 119/16 117/17
f 19/18 21/14 117/17 115/19
f 17/20 19/18 115/19 113/21
f 15/15 17/22 113/23 111/16
f 162/24 163/25 177/26
f 163/25 164/27 177/26
f 164/27 165/28 177/26
f 165/28 166/29 177/26
f 166/29 167/30 177/26
f 167/30 168/31 177/26
f 168/31 169/32 177/26
f 169/32 170/33 177/26
f 170/33 171/34 177/26
f 171/34 172/35 177/26
f 172/35 173/36 177/26
f 173/36 174/37 177/26
f 174/37 175/38 177/26
f 175/38 176/39 177/26
f 176/39 161/40 177/26
f 161/40 162/24 177/26
f 130/12 131/41 178/13
f 131/41 132/42 178/13
f 132/42 133/43 178/13
f 133/43 134/44 178/13
f 134/44 135/45 178/13
f 135/45 136/46 178/13
f 136/46 137/47 178/13
f 137/47 138/48 178/13
f 138/48 139/49 178/13
f 139/49 140/50 178/13
f 140/50 141/51 178/13
f 141/51 142/52 178/13
f 142/52 143/53 178/13
f 143/53 144/54 178/13
f 144/54 145/11 178/13
s 1
f 33/55 2/7 4/5 50/56
f 50/56 4/5 6/1 51/57
f 51/57 6/1 8/4 52/58
f 52/58 8/4 10/10 53/59
f 53/55 10/7 12/5 54/56
f 54/56 12/5 14/1 55/57
f 55/57 14/1 16/4 56/58
f 56/58 16/4 18/10 57/59
f 57/55 18/7 20/5 58/56
f 58/56 20/5 22/1 59/57
f 59/57 22/1 24/4 60/58
f 60/58 24/4 26/10 61/59
f 61/55 26/7 28/5 62/56
f 62/56 28/5 30/1 63/57
f 64/58 32/4 2/10 33/59
f 63/57 30/1 32/4 64/58
f 66/60 82/61 83/62 67/63
f 67/63 83/62 84/64 68/65
f 68/65 84/64 85/66 69/67
f 69/68 85/69 86/61 70/60
f 70/60 86/61 87/62 71/63
f 71/63 87/62 88/64 72/65
f 72/65 88/64 89/66 73/67
f 73/68 89/69 90/61 74/60
f 74/60 90/61 91/62 75/63
f 75/63 91/62 92/64 76/65
f 76/65 92/64 93/66 77/67
f 77/68 93/69 94/61 78/60
f 78/60 94/61 95/62 79/63
f 80/65 96/64 65/66 81/67
f 79/63 95/62 96/64 80/65
f 65/69 33/55 50/56 82/61
f 82/61 50/56 51/57 83/62
f 83/62 51/57 52/58 84/64
f 84/64 52/58 53/59 85/66
f 85/69 53/55 54/56 86/61
f 86/61 54/56 55/57 87/62
f 87/62 55/57 56/58 88/64
f 88/64 56/58 57/59 89/66
f 89/69 57/55 58/56 90/61
f 90/61 58/56 59/57 91/62
f 91/62 59/57 60/58 92/64
f 92/64 60/58 61/59 93/66
f 93/69 61/55 62/56 94/61
f 94/61 62/56 63/57 95/62
f 96/64 64/58 33/59 65/66
f 95/62 63/57 64/58 96/64
f 1/21 49/70 34/71 3/19
f 3/19 34/71 35/72 5/17
f 5/17 35/72 36/73 7/16
f 7/16 36/73 37/74 9/23
f 9/21 37/70 38/71 11/19
f 11/19 38/71 39/72 13/17
f 13/17 39/72 40/73 15/16
f 15/16 40/73 41/74 17/23
f 17/21 41/70 42/71 19/19
f 19/19 42/71 43/72 21/17
f 21/17 43/72 44/73 23/16
f 23/16 44/73 45/74 25/23
f 25/21 45/70 46/71 27/19
f 27/19 46/71 47/72 29/17
f 31/16 48/73 49/74 1/23
f 29/17 47/72 48/73 31/16
f 49/70 81/68 66/60 34/71
f 34/71 66/60 67/63 35/72
f 35/72 67/63 68/65 36/73
f 36/73 68/65 69/67 37/74
f 37/70 69/68 70/60 38/71
f 38/71 70/60 71/63 39/72
f 39/72 71/63 72/65 40/73
f 40/73 72/65 73/67 41/74
f 41/70 73/68 74/60 42/71
f 42/71 74/60 75/63 43/72
f 43/72 75/63 76/65 44/73
f 44/73 76/65 77/67 45/74
f 45/70 77/68 78/60 46/71
f 46/71 78/60 79/63 47/72
f 48/73 80/65 81/67 49/74
f 47/72 79/63 80/65 48/73
f 65/69 82/61 66/60 81/68
f 129/75 146/76 100/77 98/78
f 146/76 147/79 102/80 100/77
f 147/79 148/81 104/82 102/80
f 148/81 149/83 106/84 104/82
f 149/75 150/76 108/77 106/78
f 150/76 151/79 110/80 108/77
f 151/79 152/81 112/82 110/80
f 152/81 153/83 114/84 112/82
f 153/75 154/76 116/77 114/78
f 154/76 155/79 118/80 116/77
f 155/79 156/81 120/82 118/80
f 156/81 157/83 122/84 120/82
f 157/75 158/76 124/77 122/78
f 158/76 159/79 126/80 124/77
f 160/81 129/83 98/84 128/82
f 159/79 160/81 128/82 126/80
f 97/85 99/86 130/87 145/88
f 99/86 101/89 131/90 130/87
f 101/89 103/91 132/92 131/90
f 103/91 105/93 133/94 132/92
f 105/85 107/86 134/87 133/88
f 107/86 109/89 135/90 134/87
f 109/89 111/91 136/92 135/90
f 111/91 113/93 137/94 136/92
f 113/85 115/86 138/87 137/88
f 115/86 117/89 139/90 138/87
f 117/89 119/91 140/92 139/90
f 119/91 121/93 141/94 140/92
f 121/85 123/86 142/87 141/88
f 123/86 125/89 143/90 142/87
f 127/91 97/93 145/94 144/92
f 125/89 127/91 144/92 143/90

View File

@ -0,0 +1,453 @@
# Blender v2.69 (sub 0) OBJ File: 'barrel-closed.blend'
# www.blender.org
o Cylinder
v 0.500001 0.092835 -0.466712
v -0.500000 0.092835 -0.466712
v 0.500001 0.264371 -0.395660
v -0.500000 0.264371 -0.395660
v 0.500001 0.395660 -0.264371
v -0.500000 0.395660 -0.264371
v 0.500001 0.466712 -0.092835
v -0.500000 0.466713 -0.092835
v 0.500001 0.466712 0.092835
v -0.500000 0.466713 0.092835
v 0.500001 0.395660 0.264371
v -0.500000 0.395660 0.264371
v 0.500001 0.264371 0.395660
v -0.500000 0.264371 0.395660
v 0.500001 0.092835 0.466712
v -0.500000 0.092835 0.466712
v 0.500001 -0.092835 0.466712
v -0.500000 -0.092835 0.466712
v 0.500001 -0.264371 0.395660
v -0.500000 -0.264371 0.395660
v 0.500001 -0.395660 0.264372
v -0.500000 -0.395660 0.264371
v 0.500001 -0.466713 0.092835
v -0.500000 -0.466712 0.092835
v 0.500001 -0.466713 -0.092835
v -0.500000 -0.466712 -0.092835
v 0.500001 -0.395660 -0.264371
v -0.500000 -0.395660 -0.264372
v 0.500001 -0.264371 -0.395660
v -0.500000 -0.264371 -0.395660
v 0.500001 -0.092835 -0.466712
v -0.500000 -0.092835 -0.466713
v -0.413334 0.095930 -0.482270
v 0.413335 0.273184 -0.408849
v 0.413335 0.408849 -0.273184
v 0.413335 0.482270 -0.095929
v 0.413335 0.482270 0.095930
v 0.413335 0.408849 0.273184
v 0.413334 0.273184 0.408849
v 0.413334 0.095929 0.482270
v 0.413334 -0.095930 0.482270
v 0.413334 -0.273184 0.408849
v 0.413334 -0.408849 0.273184
v 0.413334 -0.482270 0.095930
v 0.413334 -0.482270 -0.095929
v 0.413334 -0.408849 -0.273184
v 0.413334 -0.273184 -0.408849
v 0.413334 -0.095929 -0.482270
v 0.413335 0.095929 -0.482270
v -0.413334 0.273184 -0.408849
v -0.413334 0.408849 -0.273184
v -0.413334 0.482270 -0.095929
v -0.413334 0.482270 0.095929
v -0.413334 0.408849 0.273184
v -0.413334 0.273184 0.408849
v -0.413334 0.095930 0.482270
v -0.413334 -0.095929 0.482270
v -0.413334 -0.273184 0.408849
v -0.413334 -0.408849 0.273184
v -0.413334 -0.482270 0.095929
v -0.413334 -0.482270 -0.095930
v -0.413334 -0.408849 -0.273184
v -0.413334 -0.273184 -0.408849
v -0.413334 -0.095929 -0.482270
v -0.114830 0.099128 -0.498352
v 0.114831 0.282294 -0.422482
v 0.114831 0.422482 -0.282294
v 0.114831 0.498352 -0.099128
v 0.114831 0.498352 0.099128
v 0.114831 0.422482 0.282294
v 0.114831 0.282294 0.422482
v 0.114831 0.099128 0.498352
v 0.114831 -0.099128 0.498352
v 0.114831 -0.282294 0.422482
v 0.114831 -0.422482 0.282294
v 0.114831 -0.498352 0.099128
v 0.114831 -0.498352 -0.099128
v 0.114831 -0.422482 -0.282294
v 0.114831 -0.282293 -0.422482
v 0.114831 -0.099128 -0.498352
v 0.114831 0.099128 -0.498352
v -0.114830 0.282294 -0.422482
v -0.114830 0.422482 -0.282294
v -0.114830 0.498352 -0.099128
v -0.114830 0.498352 0.099128
v -0.114830 0.422482 0.282294
v -0.114830 0.282294 0.422482
v -0.114830 0.099128 0.498352
v -0.114830 -0.099128 0.498352
v -0.114830 -0.282293 0.422482
v -0.114830 -0.422482 0.282294
v -0.114830 -0.498352 0.099128
v -0.114830 -0.498352 -0.099128
v -0.114830 -0.422482 -0.282294
v -0.114830 -0.282293 -0.422482
v -0.114830 -0.099128 -0.498352
v 0.500001 0.083551 -0.420041
v -0.500000 0.083552 -0.420041
v 0.500001 0.237934 -0.356094
v -0.500000 0.237934 -0.356094
v 0.500001 0.356094 -0.237934
v -0.500000 0.356094 -0.237934
v 0.500001 0.420041 -0.083551
v -0.500000 0.420041 -0.083551
v 0.500001 0.420041 0.083552
v -0.500000 0.420041 0.083551
v 0.500001 0.356094 0.237934
v -0.500000 0.356094 0.237934
v 0.500001 0.237934 0.356094
v -0.500000 0.237934 0.356094
v 0.500001 0.083551 0.420041
v -0.500000 0.083551 0.420041
v 0.500001 -0.083551 0.420041
v -0.500000 -0.083551 0.420041
v 0.500001 -0.237934 0.356094
v -0.500000 -0.237934 0.356094
v 0.500001 -0.356094 0.237934
v -0.500000 -0.356094 0.237934
v 0.500001 -0.420041 0.083551
v -0.500000 -0.420041 0.083551
v 0.500001 -0.420041 -0.083551
v -0.500000 -0.420041 -0.083552
v 0.500001 -0.356094 -0.237934
v -0.500000 -0.356094 -0.237934
v 0.500001 -0.237934 -0.356094
v -0.500000 -0.237934 -0.356094
v 0.500001 -0.083551 -0.420041
v -0.500000 -0.083551 -0.420041
v -0.413334 0.086337 -0.434043
v 0.413335 0.245866 -0.367964
v 0.413335 0.367964 -0.245866
v 0.413335 0.434043 -0.086336
v 0.413335 0.434043 0.086337
v 0.413335 0.367964 0.245866
v 0.413335 0.245866 0.367964
v 0.413334 0.086336 0.434043
v 0.413334 -0.086337 0.434043
v 0.413334 -0.245866 0.367964
v 0.413334 -0.367964 0.245866
v 0.413334 -0.434043 0.086337
v 0.413334 -0.434043 -0.086337
v 0.413334 -0.367964 -0.245866
v 0.413335 -0.245865 -0.367964
v 0.413335 -0.086336 -0.434043
v 0.413335 0.086336 -0.434043
v -0.413334 0.245866 -0.367964
v -0.413334 0.367964 -0.245866
v -0.413334 0.434043 -0.086337
v -0.413334 0.434043 0.086337
v -0.413334 0.367964 0.245866
v -0.413334 0.245866 0.367964
v -0.413334 0.086337 0.434043
v -0.413334 -0.086336 0.434043
v -0.413334 -0.245865 0.367964
v -0.413334 -0.367964 0.245866
v -0.413334 -0.434043 0.086337
v -0.413334 -0.434043 -0.086337
v -0.413334 -0.367964 -0.245866
v -0.413334 -0.245865 -0.367964
v -0.413334 -0.086336 -0.434043
v -0.428605 0.087776 -0.441280
v -0.428605 -0.087776 -0.441280
v -0.428605 -0.249965 -0.374099
v -0.428605 -0.374099 -0.249965
v -0.428605 -0.441280 -0.087776
v -0.428605 -0.441280 0.087776
v -0.428605 -0.374099 0.249965
v -0.428605 -0.249965 0.374099
v -0.428605 -0.087776 0.441280
v -0.428605 0.087776 0.441280
v -0.428605 0.249965 0.374099
v -0.428605 0.374099 0.249965
v -0.428605 0.441280 0.087776
v -0.428605 0.441280 -0.087776
v -0.428605 0.374099 -0.249965
v -0.428605 0.249965 -0.374099
v -0.428605 0.000000 -0.000000
v 0.413334 -0.000000 0.000000
vt 0.211538 0.442308
vt 0.211538 0.467949
vt 0.108974 0.467949
vt 0.108974 0.442308
vt 0.314103 0.442308
vt 0.314103 0.467949
vt 0.416667 0.442308
vt 0.416667 0.467949
vt 0.006410 0.467949
vt 0.006410 0.442308
vt 0.211792 0.993590
vt 0.117562 0.954728
vt 0.262789 0.738327
vt 0.211538 0.006410
vt 0.108974 0.006410
vt 0.108974 0.032051
vt 0.211538 0.032051
vt 0.314103 0.006410
vt 0.314103 0.032051
vt 0.416667 0.006410
vt 0.416667 0.032051
vt 0.006410 0.006410
vt 0.006410 0.032051
vt 0.211361 0.993526
vt 0.117394 0.954505
vt 0.262040 0.737637
vt 0.045447 0.882467
vt 0.006475 0.788381
vt 0.006410 0.686569
vt 0.045263 0.592532
vt 0.117118 0.520586
vt 0.204627 0.488094
vt 0.312719 0.481748
vt 0.406687 0.520769
vt 0.478633 0.592807
vt 0.517605 0.686893
vt 0.517670 0.788705
vt 0.478816 0.882742
vt 0.406962 0.954687
vt 0.313044 0.993590
vt 0.045441 0.882922
vt 0.006410 0.789102
vt 0.006410 0.687551
vt 0.045442 0.593732
vt 0.117562 0.521925
vt 0.211793 0.483064
vt 0.313787 0.483064
vt 0.408016 0.521926
vt 0.480136 0.593732
vt 0.519168 0.687551
vt 0.519168 0.789103
vt 0.480136 0.882922
vt 0.408016 0.954728
vt 0.313786 0.993590
vt 0.416667 0.397436
vt 0.314103 0.397436
vt 0.211538 0.397436
vt 0.108974 0.397436
vt 0.006410 0.397436
vt 0.314103 0.185897
vt 0.314103 0.282051
vt 0.211538 0.282051
vt 0.211538 0.185897
vt 0.108974 0.282051
vt 0.108974 0.185897
vt 0.006410 0.282051
vt 0.006410 0.185897
vt 0.416667 0.185897
vt 0.416667 0.282051
vt 0.416667 0.076923
vt 0.314103 0.076923
vt 0.211538 0.076923
vt 0.108974 0.076923
vt 0.006410 0.076923
vt 0.429487 0.397436
vt 0.532051 0.397436
vt 0.532051 0.442308
vt 0.429487 0.442308
vt 0.634615 0.397436
vt 0.634615 0.442308
vt 0.737179 0.397436
vt 0.737179 0.442308
vt 0.839744 0.397436
vt 0.839744 0.442308
vt 0.429487 0.032051
vt 0.532051 0.032051
vt 0.532051 0.076923
vt 0.429487 0.076923
vt 0.634615 0.032051
vt 0.634615 0.076923
vt 0.737179 0.032051
vt 0.737179 0.076923
vt 0.839744 0.032051
vt 0.839744 0.076923
s off
f 14/1 110/2 112/3 16/4
f 12/5 108/6 110/2 14/1
f 10/7 106/8 108/6 12/5
f 8/4 104/3 106/9 10/10
f 6/1 102/2 104/3 8/4
f 4/5 100/6 102/2 6/1
f 2/7 98/8 100/6 4/5
f 32/4 128/3 98/9 2/10
f 30/1 126/2 128/3 32/4
f 28/5 124/6 126/2 30/1
f 26/7 122/8 124/6 28/5
f 24/4 120/3 122/9 26/10
f 22/1 118/2 120/3 24/4
f 20/5 116/6 118/2 22/1
f 18/7 114/8 116/6 20/5
f 16/4 112/3 114/9 18/10
f 145/11 130/12 178/13
f 13/14 15/15 111/16 109/17
f 11/18 13/14 109/17 107/19
f 9/20 11/18 107/19 105/21
f 7/15 9/22 105/23 103/16
f 5/14 7/15 103/16 101/17
f 3/18 5/14 101/17 99/19
f 1/20 3/18 99/19 97/21
f 31/15 1/22 97/23 127/16
f 29/14 31/15 127/16 125/17
f 27/18 29/14 125/17 123/19
f 25/20 27/18 123/19 121/21
f 23/15 25/22 121/23 119/16
f 21/14 23/15 119/16 117/17
f 19/18 21/14 117/17 115/19
f 17/20 19/18 115/19 113/21
f 15/15 17/22 113/23 111/16
f 162/24 163/25 177/26
f 163/25 164/27 177/26
f 164/27 165/28 177/26
f 165/28 166/29 177/26
f 166/29 167/30 177/26
f 167/30 168/31 177/26
f 168/31 169/32 177/26
f 169/32 170/33 177/26
f 170/33 171/34 177/26
f 171/34 172/35 177/26
f 172/35 173/36 177/26
f 173/36 174/37 177/26
f 174/37 175/38 177/26
f 175/38 176/39 177/26
f 176/39 161/40 177/26
f 161/40 162/24 177/26
f 130/12 131/41 178/13
f 131/41 132/42 178/13
f 132/42 133/43 178/13
f 133/43 134/44 178/13
f 134/44 135/45 178/13
f 135/45 136/46 178/13
f 136/46 137/47 178/13
f 137/47 138/48 178/13
f 138/48 139/49 178/13
f 139/49 140/50 178/13
f 140/50 141/51 178/13
f 141/51 142/52 178/13
f 142/52 143/53 178/13
f 143/53 144/54 178/13
f 144/54 145/11 178/13
s 1
f 33/55 2/7 4/5 50/56
f 50/56 4/5 6/1 51/57
f 51/57 6/1 8/4 52/58
f 52/58 8/4 10/10 53/59
f 53/55 10/7 12/5 54/56
f 54/56 12/5 14/1 55/57
f 55/57 14/1 16/4 56/58
f 56/58 16/4 18/10 57/59
f 57/55 18/7 20/5 58/56
f 58/56 20/5 22/1 59/57
f 59/57 22/1 24/4 60/58
f 60/58 24/4 26/10 61/59
f 61/55 26/7 28/5 62/56
f 62/56 28/5 30/1 63/57
f 64/58 32/4 2/10 33/59
f 63/57 30/1 32/4 64/58
f 66/60 82/61 83/62 67/63
f 67/63 83/62 84/64 68/65
f 68/65 84/64 85/66 69/67
f 69/68 85/69 86/61 70/60
f 70/60 86/61 87/62 71/63
f 71/63 87/62 88/64 72/65
f 72/65 88/64 89/66 73/67
f 73/68 89/69 90/61 74/60
f 74/60 90/61 91/62 75/63
f 75/63 91/62 92/64 76/65
f 76/65 92/64 93/66 77/67
f 77/68 93/69 94/61 78/60
f 78/60 94/61 95/62 79/63
f 80/65 96/64 65/66 81/67
f 79/63 95/62 96/64 80/65
f 65/69 33/55 50/56 82/61
f 82/61 50/56 51/57 83/62
f 83/62 51/57 52/58 84/64
f 84/64 52/58 53/59 85/66
f 85/69 53/55 54/56 86/61
f 86/61 54/56 55/57 87/62
f 87/62 55/57 56/58 88/64
f 88/64 56/58 57/59 89/66
f 89/69 57/55 58/56 90/61
f 90/61 58/56 59/57 91/62
f 91/62 59/57 60/58 92/64
f 92/64 60/58 61/59 93/66
f 93/69 61/55 62/56 94/61
f 94/61 62/56 63/57 95/62
f 96/64 64/58 33/59 65/66
f 95/62 63/57 64/58 96/64
f 1/21 49/70 34/71 3/19
f 3/19 34/71 35/72 5/17
f 5/17 35/72 36/73 7/16
f 7/16 36/73 37/74 9/23
f 9/21 37/70 38/71 11/19
f 11/19 38/71 39/72 13/17
f 13/17 39/72 40/73 15/16
f 15/16 40/73 41/74 17/23
f 17/21 41/70 42/71 19/19
f 19/19 42/71 43/72 21/17
f 21/17 43/72 44/73 23/16
f 23/16 44/73 45/74 25/23
f 25/21 45/70 46/71 27/19
f 27/19 46/71 47/72 29/17
f 31/16 48/73 49/74 1/23
f 29/17 47/72 48/73 31/16
f 49/70 81/68 66/60 34/71
f 34/71 66/60 67/63 35/72
f 35/72 67/63 68/65 36/73
f 36/73 68/65 69/67 37/74
f 37/70 69/68 70/60 38/71
f 38/71 70/60 71/63 39/72
f 39/72 71/63 72/65 40/73
f 40/73 72/65 73/67 41/74
f 41/70 73/68 74/60 42/71
f 42/71 74/60 75/63 43/72
f 43/72 75/63 76/65 44/73
f 44/73 76/65 77/67 45/74
f 45/70 77/68 78/60 46/71
f 46/71 78/60 79/63 47/72
f 48/73 80/65 81/67 49/74
f 47/72 79/63 80/65 48/73
f 65/69 82/61 66/60 81/68
f 129/75 146/76 100/77 98/78
f 146/76 147/79 102/80 100/77
f 147/79 148/81 104/82 102/80
f 148/81 149/83 106/84 104/82
f 149/75 150/76 108/77 106/78
f 150/76 151/79 110/80 108/77
f 151/79 152/81 112/82 110/80
f 152/81 153/83 114/84 112/82
f 153/75 154/76 116/77 114/78
f 154/76 155/79 118/80 116/77
f 155/79 156/81 120/82 118/80
f 156/81 157/83 122/84 120/82
f 157/75 158/76 124/77 122/78
f 158/76 159/79 126/80 124/77
f 160/81 129/83 98/84 128/82
f 159/79 160/81 128/82 126/80
f 97/85 99/86 130/87 145/88
f 99/86 101/89 131/90 130/87
f 101/89 103/91 132/92 131/90
f 103/91 105/93 133/94 132/92
f 105/85 107/86 134/87 133/88
f 107/86 109/89 135/90 134/87
f 109/89 111/91 136/92 135/90
f 111/91 113/93 137/94 136/92
f 113/85 115/86 138/87 137/88
f 115/86 117/89 139/90 138/87
f 117/89 119/91 140/92 139/90
f 119/91 121/93 141/94 140/92
f 121/85 123/86 142/87 141/88
f 123/86 125/89 143/90 142/87
f 127/91 97/93 145/94 144/92
f 125/89 127/91 144/92 143/90

View File

@ -0,0 +1,543 @@
# Blender v2.69 (sub 0) OBJ File: 'barrel.blend'
# www.blender.org
o Cylinder
v 0.500001 0.092835 -0.466712
v -0.500000 0.092835 -0.466712
v 0.500001 0.264371 -0.395660
v -0.500000 0.264371 -0.395660
v 0.500001 0.395660 -0.264371
v -0.500000 0.395660 -0.264371
v 0.500001 0.466712 -0.092835
v -0.500000 0.466713 -0.092835
v 0.500001 0.466712 0.092835
v -0.500000 0.466713 0.092835
v 0.500001 0.395660 0.264371
v -0.500000 0.395660 0.264371
v 0.500001 0.264371 0.395660
v -0.500000 0.264371 0.395660
v 0.500001 0.092835 0.466712
v -0.500000 0.092835 0.466712
v 0.500001 -0.092835 0.466712
v -0.500000 -0.092835 0.466712
v 0.500001 -0.264371 0.395660
v -0.500000 -0.264371 0.395660
v 0.500001 -0.395660 0.264372
v -0.500000 -0.395660 0.264371
v 0.500001 -0.466713 0.092835
v -0.500000 -0.466712 0.092835
v 0.500001 -0.466713 -0.092835
v -0.500000 -0.466712 -0.092835
v 0.500001 -0.395660 -0.264371
v -0.500000 -0.395660 -0.264372
v 0.500001 -0.264371 -0.395660
v -0.500000 -0.264371 -0.395660
v 0.500001 -0.092835 -0.466712
v -0.500000 -0.092835 -0.466713
v -0.413334 0.095930 -0.482270
v 0.413335 0.273184 -0.408849
v 0.413335 0.408849 -0.273184
v 0.413335 0.482270 -0.095929
v 0.413335 0.482270 0.095930
v 0.413334 0.408849 0.273184
v 0.413334 0.273184 0.408849
v 0.413334 0.095929 0.482270
v 0.413334 -0.095930 0.482270
v 0.413334 -0.273184 0.408849
v 0.413334 -0.408849 0.273184
v 0.413334 -0.482270 0.095930
v 0.413334 -0.482270 -0.095929
v 0.413334 -0.408849 -0.273184
v 0.413334 -0.273184 -0.408849
v 0.413335 -0.095929 -0.482270
v 0.413335 0.095929 -0.482270
v -0.413334 0.273184 -0.408849
v -0.413334 0.408849 -0.273184
v -0.413334 0.482270 -0.095929
v -0.413334 0.482270 0.095929
v -0.413334 0.408849 0.273184
v -0.413334 0.273184 0.408849
v -0.413334 0.095930 0.482270
v -0.413334 -0.095929 0.482270
v -0.413334 -0.273184 0.408849
v -0.413334 -0.408849 0.273184
v -0.413334 -0.482270 0.095929
v -0.413334 -0.482270 -0.095930
v -0.413334 -0.408849 -0.273184
v -0.413334 -0.273184 -0.408849
v -0.413334 -0.095929 -0.482270
v -0.114830 0.099128 -0.498352
v 0.114831 0.282294 -0.422482
v 0.114831 0.422482 -0.282293
v 0.114831 0.498352 -0.099128
v 0.114831 0.498352 0.099128
v 0.114831 0.422482 0.282294
v 0.114831 0.282294 0.422482
v 0.114831 0.099128 0.498352
v 0.114831 -0.099128 0.498352
v 0.114831 -0.282294 0.422482
v 0.114831 -0.422482 0.282294
v 0.114831 -0.498352 0.099128
v 0.114831 -0.498352 -0.099128
v 0.114831 -0.422482 -0.282294
v 0.114831 -0.282293 -0.422482
v 0.114831 -0.099128 -0.498352
v 0.114831 0.099128 -0.498352
v -0.114830 0.282294 -0.422482
v -0.114830 0.422482 -0.282294
v -0.114830 0.498352 -0.099128
v -0.114830 0.498352 0.099128
v -0.114830 0.422482 0.282294
v -0.114830 0.282294 0.422482
v -0.114830 0.099128 0.498352
v -0.114830 -0.099128 0.498352
v -0.114830 -0.282293 0.422482
v -0.114830 -0.422482 0.282294
v -0.114830 -0.498352 0.099128
v -0.114830 -0.498352 -0.099128
v -0.114830 -0.422482 -0.282294
v -0.114830 -0.282293 -0.422482
v -0.114830 -0.099128 -0.498352
v 0.500001 0.083551 -0.420041
v -0.500000 0.083552 -0.420041
v 0.500001 0.237934 -0.356094
v -0.500000 0.237934 -0.356094
v 0.500001 0.356094 -0.237934
v -0.500000 0.356094 -0.237934
v 0.500001 0.420041 -0.083551
v -0.500000 0.420041 -0.083551
v 0.500001 0.420041 0.083552
v -0.500000 0.420041 0.083551
v 0.500001 0.356094 0.237934
v -0.500000 0.356094 0.237934
v 0.500001 0.237934 0.356094
v -0.500000 0.237934 0.356094
v 0.500001 0.083551 0.420041
v -0.500000 0.083551 0.420041
v 0.500001 -0.083551 0.420041
v -0.500000 -0.083551 0.420041
v 0.500001 -0.237934 0.356094
v -0.500000 -0.237934 0.356094
v 0.500001 -0.356094 0.237934
v -0.500000 -0.356094 0.237934
v 0.500001 -0.420041 0.083551
v -0.500000 -0.420041 0.083551
v 0.500001 -0.420041 -0.083551
v -0.500000 -0.420041 -0.083552
v 0.500001 -0.356094 -0.237934
v -0.500000 -0.356094 -0.237934
v 0.500001 -0.237934 -0.356094
v -0.500000 -0.237934 -0.356094
v 0.500001 -0.083551 -0.420041
v -0.500000 -0.083551 -0.420041
v -0.413334 0.086337 -0.434043
v 0.413335 0.245866 -0.367964
v 0.413335 0.367964 -0.245865
v 0.413335 0.434043 -0.086336
v 0.413335 0.434043 0.086337
v 0.413335 0.367964 0.245866
v 0.413335 0.245866 0.367964
v 0.413334 0.086336 0.434043
v 0.413334 -0.086337 0.434043
v 0.413334 -0.245866 0.367964
v 0.413334 -0.367964 0.245866
v 0.413334 -0.434043 0.086337
v 0.413334 -0.434043 -0.086337
v 0.413334 -0.367964 -0.245866
v 0.413335 -0.245865 -0.367964
v 0.413335 -0.086336 -0.434043
v 0.413335 0.086336 -0.434043
v -0.413334 0.245866 -0.367964
v -0.413334 0.367964 -0.245866
v -0.413334 0.434043 -0.086337
v -0.413334 0.434043 0.086337
v -0.413334 0.367964 0.245866
v -0.413334 0.245866 0.367964
v -0.413334 0.086337 0.434043
v -0.413334 -0.086336 0.434043
v -0.413334 -0.245865 0.367964
v -0.413334 -0.367964 0.245866
v -0.413334 -0.434043 0.086337
v -0.413334 -0.434043 -0.086337
v -0.413334 -0.367964 -0.245866
v -0.413334 -0.245865 -0.367964
v -0.413334 -0.086336 -0.434043
v -0.114830 0.089216 -0.448517
v 0.114831 0.254064 -0.380234
v 0.114831 0.380234 -0.254064
v 0.114831 0.448517 -0.089215
v 0.114831 0.448517 0.089216
v 0.114831 0.380234 0.254064
v 0.114831 0.254064 0.380234
v 0.114831 0.089215 0.448517
v 0.114831 -0.089215 0.448517
v 0.114831 -0.254064 0.380234
v 0.114831 -0.380234 0.254064
v 0.114831 -0.448517 0.089216
v 0.114831 -0.448517 -0.089216
v 0.114831 -0.380234 -0.254064
v 0.114831 -0.254064 -0.380234
v 0.114831 -0.089215 -0.448517
v 0.114831 0.089216 -0.448517
v -0.114830 0.254064 -0.380234
v -0.114830 0.380234 -0.254064
v -0.114830 0.448517 -0.089215
v -0.114830 0.448517 0.089216
v -0.114830 0.380234 0.254064
v -0.114830 0.254064 0.380234
v -0.114830 0.089216 0.448517
v -0.114830 -0.089215 0.448517
v -0.114830 -0.254064 0.380234
v -0.114830 -0.380234 0.254064
v -0.114830 -0.448517 0.089216
v -0.114830 -0.448517 -0.089216
v -0.114830 -0.380234 -0.254064
v -0.114830 -0.254064 -0.380234
v -0.114830 -0.089215 -0.448517
v 0.352645 0.087776 -0.441280
v 0.352645 -0.087776 -0.441280
v 0.352645 -0.249965 -0.374099
v 0.352645 -0.374099 -0.249965
v 0.352645 -0.441280 -0.087776
v 0.352645 -0.441280 0.087776
v 0.352645 -0.374099 0.249965
v 0.352645 -0.249965 0.374099
v 0.352645 -0.087776 0.441280
v 0.352645 0.087776 0.441280
v 0.352645 0.249965 0.374099
v 0.352645 0.374099 0.249965
v 0.352645 0.441280 0.087776
v 0.352645 0.441280 -0.087776
v 0.352645 0.374099 -0.249965
v 0.352645 0.249965 -0.374099
v 0.352645 -0.000000 0.000000
v 0.413334 -0.000000 0.000000
vt 0.211538 0.442308
vt 0.211538 0.467949
vt 0.108974 0.467949
vt 0.108974 0.442308
vt 0.314103 0.442308
vt 0.314103 0.467949
vt 0.416667 0.442308
vt 0.416667 0.467949
vt 0.006410 0.467949
vt 0.006410 0.442308
vt 0.211792 0.993590
vt 0.117562 0.954728
vt 0.262789 0.738327
vt 0.211538 0.006410
vt 0.108974 0.006410
vt 0.108974 0.032051
vt 0.211538 0.032051
vt 0.314103 0.006410
vt 0.314103 0.032051
vt 0.416667 0.006410
vt 0.416667 0.032051
vt 0.006410 0.006410
vt 0.006410 0.032051
vt 0.211361 0.993526
vt 0.117394 0.954505
vt 0.262040 0.737637
vt 0.045447 0.882467
vt 0.006475 0.788381
vt 0.006410 0.686569
vt 0.045263 0.592532
vt 0.117118 0.520586
vt 0.204627 0.488094
vt 0.312719 0.481748
vt 0.406687 0.520769
vt 0.478633 0.592807
vt 0.517605 0.686893
vt 0.517670 0.788705
vt 0.478816 0.882742
vt 0.406962 0.954687
vt 0.313044 0.993590
vt 0.045441 0.882922
vt 0.006410 0.789102
vt 0.006410 0.687551
vt 0.045442 0.593732
vt 0.117562 0.521925
vt 0.211793 0.483064
vt 0.313787 0.483064
vt 0.408016 0.521926
vt 0.480136 0.593732
vt 0.519168 0.687551
vt 0.519168 0.789103
vt 0.480136 0.882922
vt 0.408016 0.954728
vt 0.313786 0.993590
vt 0.416667 0.397436
vt 0.314103 0.397436
vt 0.211538 0.397436
vt 0.108974 0.397436
vt 0.006410 0.397436
vt 0.314103 0.185897
vt 0.314103 0.282051
vt 0.211538 0.282051
vt 0.211538 0.185897
vt 0.108974 0.282051
vt 0.108974 0.185897
vt 0.006410 0.282051
vt 0.006410 0.185897
vt 0.416667 0.185897
vt 0.416667 0.282051
vt 0.416667 0.076923
vt 0.314103 0.076923
vt 0.211538 0.076923
vt 0.108974 0.076923
vt 0.006410 0.076923
vt 0.429487 0.397436
vt 0.532051 0.397436
vt 0.532051 0.442308
vt 0.429487 0.442308
vt 0.634615 0.397436
vt 0.634615 0.442308
vt 0.737179 0.397436
vt 0.737179 0.442308
vt 0.839744 0.397436
vt 0.839744 0.442308
vt 0.532051 0.185897
vt 0.634615 0.185897
vt 0.634615 0.282051
vt 0.532051 0.282051
vt 0.737179 0.185897
vt 0.737179 0.282051
vt 0.839744 0.185897
vt 0.839744 0.282051
vt 0.429487 0.185897
vt 0.429487 0.282051
vt 0.429487 0.032051
vt 0.532051 0.032051
vt 0.532051 0.076923
vt 0.429487 0.076923
vt 0.634615 0.032051
vt 0.634615 0.076923
vt 0.737179 0.032051
vt 0.737179 0.076923
vt 0.839744 0.032051
vt 0.839744 0.076923
s off
f 14/1 110/2 112/3 16/4
f 12/5 108/6 110/2 14/1
f 10/7 106/8 108/6 12/5
f 8/4 104/3 106/9 10/10
f 6/1 102/2 104/3 8/4
f 4/5 100/6 102/2 6/1
f 2/7 98/8 100/6 4/5
f 32/4 128/3 98/9 2/10
f 30/1 126/2 128/3 32/4
f 28/5 124/6 126/2 30/1
f 26/7 122/8 124/6 28/5
f 24/4 120/3 122/9 26/10
f 22/1 118/2 120/3 24/4
f 20/5 116/6 118/2 22/1
f 18/7 114/8 116/6 20/5
f 16/4 112/3 114/9 18/10
f 145/11 130/12 210/13
f 13/14 15/15 111/16 109/17
f 11/18 13/14 109/17 107/19
f 9/20 11/18 107/19 105/21
f 7/15 9/22 105/23 103/16
f 5/14 7/15 103/16 101/17
f 3/18 5/14 101/17 99/19
f 1/20 3/18 99/19 97/21
f 31/15 1/22 97/23 127/16
f 29/14 31/15 127/16 125/17
f 27/18 29/14 125/17 123/19
f 25/20 27/18 123/19 121/21
f 23/15 25/22 121/23 119/16
f 21/14 23/15 119/16 117/17
f 19/18 21/14 117/17 115/19
f 17/20 19/18 115/19 113/21
f 15/15 17/22 113/23 111/16
f 194/24 195/25 209/26
f 195/25 196/27 209/26
f 196/27 197/28 209/26
f 197/28 198/29 209/26
f 198/29 199/30 209/26
f 199/30 200/31 209/26
f 200/31 201/32 209/26
f 201/32 202/33 209/26
f 202/33 203/34 209/26
f 203/34 204/35 209/26
f 204/35 205/36 209/26
f 205/36 206/37 209/26
f 206/37 207/38 209/26
f 207/38 208/39 209/26
f 208/39 193/40 209/26
f 193/40 194/24 209/26
f 130/12 131/41 210/13
f 131/41 132/42 210/13
f 132/42 133/43 210/13
f 133/43 134/44 210/13
f 134/44 135/45 210/13
f 135/45 136/46 210/13
f 136/46 137/47 210/13
f 137/47 138/48 210/13
f 138/48 139/49 210/13
f 139/49 140/50 210/13
f 140/50 141/51 210/13
f 141/51 142/52 210/13
f 142/52 143/53 210/13
f 143/53 144/54 210/13
f 144/54 145/11 210/13
s 1
f 33/55 2/7 4/5 50/56
f 50/56 4/5 6/1 51/57
f 51/57 6/1 8/4 52/58
f 52/58 8/4 10/10 53/59
f 53/55 10/7 12/5 54/56
f 54/56 12/5 14/1 55/57
f 55/57 14/1 16/4 56/58
f 56/58 16/4 18/10 57/59
f 57/55 18/7 20/5 58/56
f 58/56 20/5 22/1 59/57
f 59/57 22/1 24/4 60/58
f 60/58 24/4 26/10 61/59
f 61/55 26/7 28/5 62/56
f 62/56 28/5 30/1 63/57
f 64/58 32/4 2/10 33/59
f 63/57 30/1 32/4 64/58
f 66/60 82/61 83/62 67/63
f 67/63 83/62 84/64 68/65
f 68/65 84/64 85/66 69/67
f 69/68 85/69 86/61 70/60
f 70/60 86/61 87/62 71/63
f 71/63 87/62 88/64 72/65
f 72/65 88/64 89/66 73/67
f 73/68 89/69 90/61 74/60
f 74/60 90/61 91/62 75/63
f 75/63 91/62 92/64 76/65
f 76/65 92/64 93/66 77/67
f 77/68 93/69 94/61 78/60
f 78/60 94/61 95/62 79/63
f 80/65 96/64 65/66 81/67
f 79/63 95/62 96/64 80/65
f 65/69 33/55 50/56 82/61
f 82/61 50/56 51/57 83/62
f 83/62 51/57 52/58 84/64
f 84/64 52/58 53/59 85/66
f 85/69 53/55 54/56 86/61
f 86/61 54/56 55/57 87/62
f 87/62 55/57 56/58 88/64
f 88/64 56/58 57/59 89/66
f 89/69 57/55 58/56 90/61
f 90/61 58/56 59/57 91/62
f 91/62 59/57 60/58 92/64
f 92/64 60/58 61/59 93/66
f 93/69 61/55 62/56 94/61
f 94/61 62/56 63/57 95/62
f 96/64 64/58 33/59 65/66
f 95/62 63/57 64/58 96/64
f 1/21 49/70 34/71 3/19
f 3/19 34/71 35/72 5/17
f 5/17 35/72 36/73 7/16
f 7/16 36/73 37/74 9/23
f 9/21 37/70 38/71 11/19
f 11/19 38/71 39/72 13/17
f 13/17 39/72 40/73 15/16
f 15/16 40/73 41/74 17/23
f 17/21 41/70 42/71 19/19
f 19/19 42/71 43/72 21/17
f 21/17 43/72 44/73 23/16
f 23/16 44/73 45/74 25/23
f 25/21 45/70 46/71 27/19
f 27/19 46/71 47/72 29/17
f 31/16 48/73 49/74 1/23
f 29/17 47/72 48/73 31/16
f 49/70 81/68 66/60 34/71
f 34/71 66/60 67/63 35/72
f 35/72 67/63 68/65 36/73
f 36/73 68/65 69/67 37/74
f 37/70 69/68 70/60 38/71
f 38/71 70/60 71/63 39/72
f 39/72 71/63 72/65 40/73
f 40/73 72/65 73/67 41/74
f 41/70 73/68 74/60 42/71
f 42/71 74/60 75/63 43/72
f 43/72 75/63 76/65 44/73
f 44/73 76/65 77/67 45/74
f 45/70 77/68 78/60 46/71
f 46/71 78/60 79/63 47/72
f 48/73 80/65 81/67 49/74
f 47/72 79/63 80/65 48/73
f 65/69 82/61 66/60 81/68
f 129/75 146/76 100/77 98/78
f 146/76 147/79 102/80 100/77
f 147/79 148/81 104/82 102/80
f 148/81 149/83 106/84 104/82
f 149/75 150/76 108/77 106/78
f 150/76 151/79 110/80 108/77
f 151/79 152/81 112/82 110/80
f 152/81 153/83 114/84 112/82
f 153/75 154/76 116/77 114/78
f 154/76 155/79 118/80 116/77
f 155/79 156/81 120/82 118/80
f 156/81 157/83 122/84 120/82
f 157/75 158/76 124/77 122/78
f 158/76 159/79 126/80 124/77
f 160/81 129/83 98/84 128/82
f 159/79 160/81 128/82 126/80
f 162/85 163/86 179/87 178/88
f 163/86 164/89 180/90 179/87
f 164/89 165/91 181/92 180/90
f 165/93 166/85 182/88 181/94
f 166/85 167/86 183/87 182/88
f 167/86 168/89 184/90 183/87
f 168/89 169/91 185/92 184/90
f 169/93 170/85 186/88 185/94
f 170/85 171/86 187/87 186/88
f 171/86 172/89 188/90 187/87
f 172/89 173/91 189/92 188/90
f 173/93 174/85 190/88 189/94
f 174/85 175/86 191/87 190/88
f 176/89 177/91 161/92 192/90
f 175/86 176/89 192/90 191/87
f 161/94 178/88 146/76 129/75
f 178/88 179/87 147/79 146/76
f 179/87 180/90 148/81 147/79
f 180/90 181/92 149/83 148/81
f 181/94 182/88 150/76 149/75
f 182/88 183/87 151/79 150/76
f 183/87 184/90 152/81 151/79
f 184/90 185/92 153/83 152/81
f 185/94 186/88 154/76 153/75
f 186/88 187/87 155/79 154/76
f 187/87 188/90 156/81 155/79
f 188/90 189/92 157/83 156/81
f 189/94 190/88 158/76 157/75
f 190/88 191/87 159/79 158/76
f 192/90 161/92 129/83 160/81
f 191/87 192/90 160/81 159/79
f 97/95 99/96 130/97 145/98
f 99/96 101/99 131/100 130/97
f 101/99 103/101 132/102 131/100
f 103/101 105/103 133/104 132/102
f 105/95 107/96 134/97 133/98
f 107/96 109/99 135/100 134/97
f 109/99 111/101 136/102 135/100
f 111/101 113/103 137/104 136/102
f 113/95 115/96 138/97 137/98
f 115/96 117/99 139/100 138/97
f 117/99 119/101 140/102 139/100
f 119/101 121/103 141/104 140/102
f 121/95 123/96 142/97 141/98
f 123/96 125/99 143/100 142/97
f 127/101 97/103 145/104 144/102
f 125/99 127/101 144/102 143/100
f 193/98 208/97 162/85 177/93
f 208/97 207/100 163/86 162/85
f 207/100 206/102 164/89 163/86
f 206/102 205/104 165/91 164/89
f 205/98 204/97 166/85 165/93
f 204/97 203/100 167/86 166/85
f 203/100 202/102 168/89 167/86
f 202/102 201/104 169/91 168/89
f 201/98 200/97 170/85 169/93
f 200/97 199/100 171/86 170/85
f 199/100 198/102 172/89 171/86
f 198/102 197/104 173/91 172/89
f 197/98 196/97 174/85 173/93
f 196/97 195/100 175/86 174/85
f 194/102 193/104 177/91 176/89
f 195/100 194/102 176/89 175/86
f 161/94 177/93 162/85 178/88

View File

@ -0,0 +1,376 @@
# Blender v2.69 (sub 0) OBJ File: 'handmill.blend'
# www.blender.org
o Cylinder.002
v -0.047835 -0.281250 0.115485
v -0.047835 -0.250000 0.115485
v -0.115485 -0.281250 0.047835
v -0.115485 -0.250000 0.047835
v -0.115485 -0.281250 -0.047835
v -0.115485 -0.250000 -0.047835
v -0.047835 -0.281250 -0.115485
v -0.047835 -0.250000 -0.115485
v 0.047835 -0.281250 -0.115485
v 0.047835 -0.250000 -0.115485
v 0.115485 -0.281250 -0.047835
v 0.115485 -0.250000 -0.047835
v 0.115485 -0.281250 0.047835
v 0.115485 -0.250000 0.047835
v 0.047835 -0.281250 0.115485
v 0.047835 -0.250000 0.115485
v -0.047835 -0.062500 0.115485
v -0.047835 0.000000 0.115485
v -0.115485 -0.062500 0.047835
v -0.115485 0.000000 0.047835
v -0.115485 -0.062500 -0.047835
v -0.115485 0.000000 -0.047835
v -0.047835 -0.062500 -0.115485
v -0.047835 0.000000 -0.115485
v 0.047835 -0.062500 -0.115485
v 0.047835 0.000000 -0.115485
v 0.115485 -0.062500 -0.047835
v 0.115485 0.000000 -0.047835
v 0.115485 -0.062500 0.047835
v 0.115485 0.000000 0.047835
v 0.047835 -0.062500 0.115485
v 0.047835 0.000000 0.115485
v 0.272957 -0.062500 -0.239132
v 0.272957 0.187500 -0.239132
v 0.239133 -0.062500 -0.272957
v 0.239133 0.187500 -0.272957
v 0.239133 -0.062500 -0.320793
v 0.239133 0.187500 -0.320793
v 0.272957 -0.062500 -0.354617
v 0.272957 0.187500 -0.354617
v 0.320793 -0.062500 -0.354617
v 0.320793 0.187500 -0.354617
v 0.354618 -0.062500 -0.320793
v 0.354618 0.187500 -0.320793
v 0.354618 -0.062500 -0.272957
v 0.354618 0.187500 -0.272957
v 0.320793 -0.062500 -0.239132
v 0.320793 0.187500 -0.239132
v 0.272957 0.187500 -0.239132
v 0.239133 0.187500 -0.272957
v 0.239133 0.187500 -0.320793
v 0.272957 0.187500 -0.354617
v 0.320793 0.187500 -0.354617
v 0.354618 0.187500 -0.320793
v 0.354618 0.187500 -0.272957
v 0.320793 0.187500 -0.239132
v -0.097545 -0.062500 0.490393
v -0.097545 -0.250000 0.490393
v -0.097545 -0.500000 0.490393
v -0.097545 -0.281250 0.490393
v -0.277785 -0.500000 0.415735
v -0.277785 -0.281250 0.415735
v -0.415735 -0.500000 0.277785
v -0.415735 -0.281250 0.277785
v -0.490393 -0.500000 0.097545
v -0.490393 -0.281250 0.097545
v -0.490393 -0.500000 -0.097545
v -0.490393 -0.281250 -0.097545
v -0.415735 -0.500000 -0.277785
v -0.415735 -0.281250 -0.277785
v -0.277785 -0.500000 -0.415735
v -0.277785 -0.281250 -0.415735
v -0.097545 -0.500000 -0.490393
v -0.097545 -0.281250 -0.490393
v 0.097545 -0.500000 -0.490393
v 0.097545 -0.281250 -0.490393
v 0.277785 -0.500000 -0.415735
v 0.277785 -0.281250 -0.415735
v 0.415735 -0.500000 -0.277785
v 0.415735 -0.281250 -0.277785
v 0.490393 -0.500000 -0.097545
v 0.490393 -0.281250 -0.097545
v 0.490393 -0.500000 0.097545
v 0.490393 -0.281250 0.097545
v 0.415735 -0.500000 0.277785
v 0.415735 -0.281250 0.277785
v 0.277785 -0.500000 0.415735
v 0.277785 -0.281250 0.415735
v 0.097545 -0.500000 0.490393
v 0.097545 -0.281250 0.490393
v -0.277785 -0.250000 0.415735
v -0.277785 -0.062500 0.415735
v -0.415735 -0.250000 0.277785
v -0.415735 -0.062500 0.277785
v -0.490393 -0.250000 0.097545
v -0.490393 -0.062500 0.097545
v -0.490393 -0.250000 -0.097545
v -0.490393 -0.062500 -0.097545
v -0.415735 -0.250000 -0.277785
v -0.415735 -0.062500 -0.277785
v -0.277785 -0.250000 -0.415735
v -0.277785 -0.062500 -0.415735
v -0.097545 -0.250000 -0.490393
v -0.097545 -0.062500 -0.490393
v 0.097545 -0.250000 -0.490393
v 0.097545 -0.062500 -0.490393
v 0.277785 -0.250000 -0.415735
v 0.277785 -0.062500 -0.415735
v 0.415735 -0.250000 -0.277785
v 0.415735 -0.062500 -0.277785
v 0.490393 -0.250000 -0.097545
v 0.490393 -0.062500 -0.097545
v 0.490393 -0.250000 0.097545
v 0.490393 -0.062500 0.097545
v 0.415735 -0.250000 0.277785
v 0.415735 -0.062500 0.277785
v 0.277785 -0.250000 0.415735
v 0.277785 -0.062500 0.415735
v 0.097545 -0.250000 0.490393
v 0.097545 -0.062500 0.490393
v 0.296875 0.187500 -0.296875
v -0.000000 -0.250000 0.000000
v 0.000000 -0.281250 0.000000
v 0.000000 -0.062500 0.000000
v -0.000000 -0.500000 0.000000
v -0.047835 0.000000 0.115485
v -0.115485 0.000000 0.047835
v -0.115485 0.000000 -0.047835
v -0.047835 0.000000 -0.115485
v 0.047835 0.000000 -0.115485
v 0.115485 0.000000 -0.047835
v 0.115485 0.000000 0.047835
v 0.047835 0.000000 0.115485
v 0.000000 0.000000 -0.000000
vt 0.500000 0.812500
vt 0.500000 0.875000
vt 0.375000 0.875000
vt 0.375000 0.812500
vt 0.250000 0.875000
vt 0.250000 0.812500
vt 0.125000 0.875000
vt 0.125000 0.812500
vt 0.000000 0.875000
vt 0.000000 0.812500
vt 1.000000 0.812500
vt 1.000000 0.875000
vt 0.875000 0.875000
vt 0.875000 0.812500
vt 0.750000 0.875000
vt 0.750000 0.812500
vt 0.625000 0.812500
vt 0.625000 0.875000
vt 0.500000 0.937500
vt 0.500000 1.000000
vt 0.375000 1.000000
vt 0.375000 0.937500
vt 0.250000 1.000000
vt 0.250000 0.937500
vt 0.125000 1.000000
vt 0.125000 0.937500
vt 0.000000 1.000000
vt 0.000000 0.937500
vt 1.000000 0.937500
vt 1.000000 1.000000
vt 0.875000 1.000000
vt 0.875000 0.937500
vt 0.750000 1.000000
vt 0.750000 0.937500
vt 0.625000 0.937500
vt 0.625000 1.000000
vt 0.125000 0.963388
vt 0.088388 1.000000
vt 0.062500 0.937500
vt 0.250000 0.437500
vt 0.250000 0.750000
vt 0.187500 0.750000
vt 0.187500 0.437500
vt 0.125000 0.750000
vt 0.125000 0.437500
vt 0.062500 0.750000
vt 0.062500 0.437500
vt 0.000000 0.750000
vt 0.000000 0.437500
vt 0.500000 0.437500
vt 0.500000 0.750000
vt 0.437500 0.750000
vt 0.437500 0.437500
vt 0.375000 0.750000
vt 0.375000 0.437500
vt 0.312500 0.437500
vt 0.312500 0.750000
vt 0.599456 1.000000
vt 0.783227 0.923879
vt 0.500000 0.500000
vt 0.750000 0.250000
vt 0.750000 0.437500
vt 0.500000 0.250000
vt 0.000000 0.250000
vt 0.000000 0.000000
vt 0.250000 0.000000
vt 0.250000 0.250000
vt 1.000000 0.250000
vt 1.000000 0.437500
vt 0.500000 0.000000
vt 0.750000 0.000000
vt 1.000000 0.000000
vt 0.036612 1.000000
vt 0.000000 0.963388
vt 0.000000 0.911612
vt 0.036612 0.875000
vt 0.088388 0.875000
vt 0.125000 0.911612
vt 0.923880 0.783227
vt 1.000000 0.599456
vt 1.000000 0.400544
vt 0.923880 0.216773
vt 0.783227 0.076120
vt 0.599456 -0.000000
vt 0.400544 -0.000000
vt 0.216773 0.076120
vt 0.076121 0.216773
vt 0.000000 0.400544
vt 0.000000 0.599456
vt 0.076121 0.783227
vt 0.216773 0.923880
vt 0.400544 1.000000
vt 0.076120 0.783227
vt 0.076120 0.216773
vt 0.551777 0.375000
vt 0.625000 0.448223
vt 0.625000 0.551777
vt 0.551777 0.625000
vt 0.448223 0.625000
vt 0.375000 0.551777
vt 0.375000 0.448223
vt 0.448223 0.375000
s off
f 1/1 2/2 4/3 3/4
f 3/4 4/3 6/5 5/6
f 5/6 6/5 8/7 7/8
f 7/8 8/7 10/9 9/10
f 9/11 10/12 12/13 11/14
f 11/14 12/13 14/15 13/16
f 15/17 16/18 2/2 1/1
f 13/16 14/15 16/18 15/17
f 17/19 18/20 20/21 19/22
f 19/22 20/21 22/23 21/24
f 21/24 22/23 24/25 23/26
f 23/26 24/25 26/27 25/28
f 25/29 26/30 28/31 27/32
f 27/32 28/31 30/33 29/34
f 31/35 32/36 18/20 17/19
f 29/34 30/33 32/36 31/35
f 50/37 49/38 121/39
f 33/40 34/41 36/42 35/43
f 35/43 36/42 38/44 37/45
f 37/45 38/44 40/46 39/47
f 39/47 40/46 42/48 41/49
f 41/50 42/51 44/52 43/53
f 43/53 44/52 46/54 45/55
f 47/56 48/57 34/41 33/40
f 45/55 46/54 48/57 47/56
f 58/58 91/59 122/60
f 115/61 116/62 118/50 117/63
f 59/64 60/65 62/66 61/67
f 113/68 114/69 116/62 115/61
f 61/67 62/66 64/70 63/63
f 111/67 112/40 114/49 113/64
f 63/63 64/70 66/71 65/61
f 109/63 110/50 112/40 111/67
f 65/61 66/71 68/72 67/68
f 107/61 108/62 110/50 109/63
f 67/64 68/65 70/66 69/67
f 105/68 106/69 108/62 107/61
f 69/67 70/66 72/70 71/63
f 103/67 104/40 106/49 105/64
f 71/63 72/70 74/71 73/61
f 101/63 102/50 104/40 103/67
f 73/61 74/71 76/72 75/68
f 99/61 100/62 102/50 101/63
f 75/64 76/65 78/66 77/67
f 97/68 98/69 100/62 99/61
f 77/67 78/66 80/70 79/63
f 95/67 96/40 98/49 97/64
f 79/63 80/70 82/71 81/61
f 62/59 60/58 123/60
f 93/63 94/50 96/40 95/67
f 81/61 82/71 84/72 83/68
f 117/63 118/50 120/40 119/67
f 91/61 92/62 94/50 93/63
f 83/64 84/65 86/66 85/67
f 119/67 120/40 57/49 58/64
f 58/68 57/69 92/62 91/61
f 85/67 86/66 88/70 87/63
f 92/59 57/58 124/60
f 89/61 90/71 60/72 59/68
f 87/63 88/70 90/71 89/61
f 59/58 61/59 125/60
f 49/38 56/73 121/39
f 56/73 55/74 121/39
f 55/74 54/75 121/39
f 54/75 53/76 121/39
f 53/76 52/77 121/39
f 52/77 51/78 121/39
f 51/78 50/37 121/39
f 91/59 93/79 122/60
f 93/79 95/80 122/60
f 95/80 97/81 122/60
f 97/81 99/82 122/60
f 99/82 101/83 122/60
f 101/83 103/84 122/60
f 103/84 105/85 122/60
f 105/85 107/86 122/60
f 107/86 109/87 122/60
f 109/87 111/88 122/60
f 111/88 113/89 122/60
f 113/89 115/90 122/60
f 115/90 117/91 122/60
f 117/91 119/92 122/60
f 119/92 58/58 122/60
f 60/58 90/92 123/60
f 90/92 88/91 123/60
f 88/91 86/90 123/60
f 86/90 84/89 123/60
f 84/89 82/88 123/60
f 82/88 80/87 123/60
f 80/87 78/86 123/60
f 78/86 76/85 123/60
f 76/85 74/84 123/60
f 74/84 72/83 123/60
f 72/83 70/82 123/60
f 70/82 68/81 123/60
f 68/81 66/80 123/60
f 66/80 64/79 123/60
f 64/79 62/59 123/60
f 57/58 120/92 124/60
f 120/92 118/91 124/60
f 118/91 116/93 124/60
f 116/93 114/89 124/60
f 114/89 112/88 124/60
f 112/88 110/94 124/60
f 110/94 108/86 124/60
f 108/86 106/85 124/60
f 106/85 104/84 124/60
f 104/84 102/83 124/60
f 102/83 100/82 124/60
f 100/82 98/81 124/60
f 98/81 96/80 124/60
f 96/80 94/79 124/60
f 94/79 92/59 124/60
f 61/59 63/79 125/60
f 63/79 65/80 125/60
f 65/80 67/81 125/60
f 67/81 69/82 125/60
f 69/82 71/83 125/60
f 71/83 73/84 125/60
f 73/84 75/85 125/60
f 75/85 77/86 125/60
f 77/86 79/94 125/60
f 79/94 81/88 125/60
f 81/88 83/89 125/60
f 83/89 85/93 125/60
f 85/93 87/91 125/60
f 87/91 89/92 125/60
f 89/92 59/58 125/60
f 127/95 126/96 134/60
f 126/96 133/97 134/60
f 133/97 132/98 134/60
f 132/98 131/99 134/60
f 131/99 130/100 134/60
f 130/100 129/101 134/60
f 129/101 128/102 134/60
f 134/60 128/102 127/95

View File

@ -0,0 +1,326 @@
# Blender v2.69 (sub 0) OBJ File: 'cottages-tub.blend'
# www.blender.org
o Cylinder
v 0.092835 -0.500001 -0.466712
v 0.264371 -0.500001 -0.395660
v 0.395660 -0.500001 -0.264371
v 0.466712 -0.500001 -0.092835
v 0.466712 -0.500001 0.092835
v 0.395660 -0.500001 0.264371
v 0.264371 -0.500001 0.395660
v 0.092835 -0.500001 0.466712
v -0.092835 -0.500001 0.466712
v -0.264371 -0.500001 0.395660
v -0.395660 -0.500001 0.264371
v -0.466712 -0.500001 0.092835
v -0.466712 -0.500001 -0.092835
v -0.395660 -0.500001 -0.264371
v -0.264371 -0.500001 -0.395660
v -0.092835 -0.500001 -0.466713
v 0.273184 -0.413334 -0.408849
v 0.408849 -0.413334 -0.273184
v 0.482270 -0.413334 -0.095929
v 0.482270 -0.413334 0.095930
v 0.408849 -0.413334 0.273184
v 0.273184 -0.413334 0.408849
v 0.095929 -0.413334 0.482270
v -0.095929 -0.413334 0.482270
v -0.273184 -0.413334 0.408849
v -0.408849 -0.413334 0.273184
v -0.482270 -0.413334 0.095929
v -0.482270 -0.413334 -0.095930
v -0.408849 -0.413334 -0.273184
v -0.273184 -0.413334 -0.408849
v -0.095929 -0.413334 -0.482270
v 0.095930 -0.413334 -0.482270
v 0.282294 -0.114831 -0.422482
v 0.422482 -0.114831 -0.282294
v 0.498352 -0.114831 -0.099128
v 0.498352 -0.114831 0.099128
v 0.422482 -0.114831 0.282294
v 0.282294 -0.114831 0.422482
v 0.099128 -0.114831 0.498352
v -0.099128 -0.114831 0.498352
v -0.282294 -0.114831 0.422482
v -0.422482 -0.114831 0.282294
v -0.498352 -0.114831 0.099128
v -0.498352 -0.114831 -0.099128
v -0.422482 -0.114831 -0.282294
v -0.282293 -0.114831 -0.422482
v -0.099128 -0.114831 -0.498352
v 0.099128 -0.114831 -0.498352
v 0.083551 -0.500001 -0.420041
v 0.237934 -0.500001 -0.356094
v 0.356094 -0.500001 -0.237934
v 0.420041 -0.500001 -0.083551
v 0.420041 -0.500001 0.083551
v 0.356094 -0.500001 0.237934
v 0.237934 -0.500001 0.356094
v 0.083551 -0.500001 0.420041
v -0.083551 -0.500001 0.420041
v -0.237934 -0.500001 0.356094
v -0.356094 -0.500001 0.237934
v -0.420041 -0.500001 0.083551
v -0.420041 -0.500001 -0.083551
v -0.356094 -0.500001 -0.237934
v -0.237934 -0.500001 -0.356094
v -0.083551 -0.500001 -0.420041
v 0.245866 -0.413335 -0.367964
v 0.367964 -0.413335 -0.245866
v 0.434043 -0.413335 -0.086336
v 0.434043 -0.413335 0.086337
v 0.367964 -0.413335 0.245866
v 0.245866 -0.413335 0.367964
v 0.086337 -0.413335 0.434043
v -0.086336 -0.413335 0.434043
v -0.245866 -0.413335 0.367964
v -0.367964 -0.413335 0.245866
v -0.434043 -0.413335 0.086337
v -0.434043 -0.413335 -0.086337
v -0.367964 -0.413335 -0.245866
v -0.245865 -0.413335 -0.367964
v -0.086336 -0.413335 -0.434043
v 0.086337 -0.413335 -0.434043
v 0.254064 -0.114831 -0.380234
v 0.380234 -0.114831 -0.254064
v 0.448517 -0.114831 -0.089215
v 0.448517 -0.114831 0.089216
v 0.380234 -0.114831 0.254064
v 0.254064 -0.114831 0.380234
v 0.089216 -0.114831 0.448517
v -0.089215 -0.114831 0.448517
v -0.254064 -0.114831 0.380234
v -0.380234 -0.114831 0.254064
v -0.448517 -0.114831 0.089216
v -0.448517 -0.114831 -0.089216
v -0.380234 -0.114831 -0.254064
v -0.254064 -0.114831 -0.380234
v -0.089215 -0.114831 -0.448517
v 0.089216 -0.114831 -0.448517
v 0.087776 -0.352645 -0.441280
v -0.087776 -0.352645 -0.441280
v -0.249965 -0.352645 -0.374099
v -0.374099 -0.352645 -0.249965
v -0.441280 -0.352645 -0.087776
v -0.441280 -0.352645 0.087776
v -0.374099 -0.352645 0.249965
v -0.249965 -0.352645 0.374099
v -0.087776 -0.352645 0.441280
v 0.087776 -0.352645 0.441280
v 0.249965 -0.352645 0.374099
v 0.374099 -0.352645 0.249965
v 0.441280 -0.352645 0.087776
v 0.441280 -0.352645 -0.087776
v 0.374099 -0.352645 -0.249965
v 0.249965 -0.352645 -0.374099
v 0.000000 -0.352645 0.000000
v -0.000000 -0.413334 0.000000
vt 0.211792 0.993590
vt 0.117562 0.954728
vt 0.262789 0.738327
vt 0.211538 0.006410
vt 0.108974 0.006410
vt 0.108974 0.032051
vt 0.211538 0.032051
vt 0.314103 0.006410
vt 0.314103 0.032051
vt 0.416667 0.006410
vt 0.416667 0.032051
vt 0.006410 0.006410
vt 0.006410 0.032051
vt 0.211361 0.993526
vt 0.117394 0.954505
vt 0.262040 0.737637
vt 0.045447 0.882467
vt 0.006475 0.788381
vt 0.006410 0.686569
vt 0.045263 0.592532
vt 0.117118 0.520586
vt 0.204627 0.488094
vt 0.312719 0.481748
vt 0.406687 0.520769
vt 0.478633 0.592807
vt 0.517605 0.686893
vt 0.517670 0.788705
vt 0.478816 0.882742
vt 0.406962 0.954687
vt 0.313044 0.993590
vt 0.045441 0.882922
vt 0.006410 0.789102
vt 0.006410 0.687551
vt 0.045442 0.593732
vt 0.117562 0.521925
vt 0.211793 0.483064
vt 0.313787 0.483064
vt 0.408016 0.521926
vt 0.480136 0.593732
vt 0.519168 0.687551
vt 0.519168 0.789103
vt 0.480136 0.882922
vt 0.408016 0.954728
vt 0.313786 0.993590
vt 0.211538 0.442308
vt 0.211538 0.467949
vt 0.108974 0.467949
vt 0.108974 0.442308
vt 0.314103 0.442308
vt 0.314103 0.467949
vt 0.416667 0.442308
vt 0.416667 0.467949
vt 0.006410 0.467949
vt 0.006410 0.442308
vt 0.416667 0.076923
vt 0.314103 0.076923
vt 0.211538 0.076923
vt 0.108974 0.076923
vt 0.006410 0.076923
vt 0.416667 0.185897
vt 0.314103 0.185897
vt 0.211538 0.185897
vt 0.108974 0.185897
vt 0.006410 0.185897
vt 0.429487 0.032051
vt 0.532051 0.032051
vt 0.532051 0.076923
vt 0.429487 0.076923
vt 0.634615 0.032051
vt 0.634615 0.076923
vt 0.737179 0.032051
vt 0.737179 0.076923
vt 0.839744 0.032051
vt 0.839744 0.076923
vt 0.532051 0.185897
vt 0.429487 0.185897
vt 0.634615 0.185897
vt 0.737179 0.185897
vt 0.839744 0.185897
s off
f 80/1 65/2 114/3
f 7/4 8/5 56/6 55/7
f 6/8 7/4 55/7 54/9
f 5/10 6/8 54/9 53/11
f 4/5 5/12 53/13 52/6
f 3/4 4/5 52/6 51/7
f 2/8 3/4 51/7 50/9
f 1/10 2/8 50/9 49/11
f 16/5 1/12 49/13 64/6
f 15/4 16/5 64/6 63/7
f 14/8 15/4 63/7 62/9
f 13/10 14/8 62/9 61/11
f 12/5 13/12 61/13 60/6
f 11/4 12/5 60/6 59/7
f 10/8 11/4 59/7 58/9
f 9/10 10/8 58/9 57/11
f 8/5 9/12 57/13 56/6
f 98/14 99/15 113/16
f 99/15 100/17 113/16
f 100/17 101/18 113/16
f 101/18 102/19 113/16
f 102/19 103/20 113/16
f 103/20 104/21 113/16
f 104/21 105/22 113/16
f 105/22 106/23 113/16
f 106/23 107/24 113/16
f 107/24 108/25 113/16
f 108/25 109/26 113/16
f 109/26 110/27 113/16
f 110/27 111/28 113/16
f 111/28 112/29 113/16
f 112/29 97/30 113/16
f 97/30 98/14 113/16
f 65/2 66/31 114/3
f 66/31 67/32 114/3
f 67/32 68/33 114/3
f 68/33 69/34 114/3
f 69/34 70/35 114/3
f 70/35 71/36 114/3
f 71/36 72/37 114/3
f 72/37 73/38 114/3
f 73/38 74/39 114/3
f 74/39 75/40 114/3
f 75/40 76/41 114/3
f 76/41 77/42 114/3
f 77/42 78/43 114/3
f 78/43 79/44 114/3
f 79/44 80/1 114/3
f 38/45 86/46 87/47 39/48
f 37/49 85/50 86/46 38/45
f 36/51 84/52 85/50 37/49
f 35/48 83/47 84/53 36/54
f 34/45 82/46 83/47 35/48
f 33/49 81/50 82/46 34/45
f 48/51 96/52 81/50 33/49
f 47/48 95/47 96/53 48/54
f 46/45 94/46 95/47 47/48
f 45/49 93/50 94/46 46/45
f 44/51 92/52 93/50 45/49
f 43/48 91/47 92/53 44/54
f 42/45 90/46 91/47 43/48
f 41/49 89/50 90/46 42/45
f 40/51 88/52 89/50 41/49
f 39/48 87/47 88/53 40/54
s 1
f 1/11 32/55 17/56 2/9
f 2/9 17/56 18/57 3/7
f 3/7 18/57 19/58 4/6
f 4/6 19/58 20/59 5/13
f 5/11 20/55 21/56 6/9
f 6/9 21/56 22/57 7/7
f 7/7 22/57 23/58 8/6
f 8/6 23/58 24/59 9/13
f 9/11 24/55 25/56 10/9
f 10/9 25/56 26/57 11/7
f 11/7 26/57 27/58 12/6
f 12/6 27/58 28/59 13/13
f 13/11 28/55 29/56 14/9
f 14/9 29/56 30/57 15/7
f 16/6 31/58 32/59 1/13
f 15/7 30/57 31/58 16/6
f 32/55 48/60 33/61 17/56
f 17/56 33/61 34/62 18/57
f 18/57 34/62 35/63 19/58
f 19/58 35/63 36/64 20/59
f 20/55 36/60 37/61 21/56
f 21/56 37/61 38/62 22/57
f 22/57 38/62 39/63 23/58
f 23/58 39/63 40/64 24/59
f 24/55 40/60 41/61 25/56
f 25/56 41/61 42/62 26/57
f 26/57 42/62 43/63 27/58
f 27/58 43/63 44/64 28/59
f 28/55 44/60 45/61 29/56
f 29/56 45/61 46/62 30/57
f 31/58 47/63 48/64 32/59
f 30/57 46/62 47/63 31/58
f 49/65 50/66 65/67 80/68
f 50/66 51/69 66/70 65/67
f 51/69 52/71 67/72 66/70
f 52/71 53/73 68/74 67/72
f 53/65 54/66 69/67 68/68
f 54/66 55/69 70/70 69/67
f 55/69 56/71 71/72 70/70
f 56/71 57/73 72/74 71/72
f 57/65 58/66 73/67 72/68
f 58/66 59/69 74/70 73/67
f 59/69 60/71 75/72 74/70
f 60/71 61/73 76/74 75/72
f 61/65 62/66 77/67 76/68
f 62/66 63/69 78/70 77/67
f 64/71 49/73 80/74 79/72
f 63/69 64/71 79/72 78/70
f 97/68 112/67 81/75 96/76
f 112/67 111/70 82/77 81/75
f 111/70 110/72 83/78 82/77
f 110/72 109/74 84/79 83/78
f 109/68 108/67 85/75 84/76
f 108/67 107/70 86/77 85/75
f 107/70 106/72 87/78 86/77
f 106/72 105/74 88/79 87/78
f 105/68 104/67 89/75 88/76
f 104/67 103/70 90/77 89/75
f 103/70 102/72 91/78 90/77
f 102/72 101/74 92/79 91/78
f 101/68 100/67 93/75 92/76
f 100/67 99/70 94/77 93/75
f 98/72 97/74 96/79 95/78
f 99/70 98/72 95/78 94/77

View File

@ -7,13 +7,7 @@
-- License of the hammer picture: CC-by-SA; done by GloopMaster; source:
-- https://github.com/GloopMaster/glooptest/blob/master/glooptest/textures/glooptest_tool_steelhammer.png
-- Boilerplate to support localized strings if intllib mod is installed.
local S
if intllib then
S = intllib.Getter()
else
S = function(s) return s end
end
local S = cottages.S
-- the hammer for the anvil
minetest.register_tool("cottages:hammer", {
@ -29,16 +23,35 @@ minetest.register_tool("cottages:hammer", {
cracky={times={[2]=2.00, [3]=1.20}, uses=30, maxlevel=1},
},
damage_groups = {fleshy=6},
},
skill = SKILL_METAL,
}
})
local cottages_anvil_formspec =
"size[8,8]"..
"image[7,3;1,1;glooptest_tool_steelhammer.png]"..
-- "list[current_name;sample;0,0.5;1,1;]"..
"list[current_name;input;2.5,1.5;1,1;]"..
-- "list[current_name;material;5,0;3,3;]"..
"list[current_name;hammer;5,3;1,1;]"..
-- "label[0.0,0.0;Sample:]"..
-- "label[0.0,1.0;(Receipe)]"..
"label[2.5,1.0;"..S("Workpiece:").."]"..
-- "label[6.0,-0.5;Materials:]"..
"label[6.0,2.7;"..S("Optional").."]"..
"label[6.0,3.0;"..S("storage for").."]"..
"label[6.0,3.3;"..S("your hammer").."]"..
"label[0,-0.5;"..S("Anvil").."]"..
"label[0,3.0;"..S("Punch anvil with hammer to").."]"..
"label[0,3.3;"..S("repair tool in workpiece-slot.").."]"..
"list[current_player;main;0,4;8,4;]";
minetest.register_node("cottages:anvil", {
drawtype = "nodebox",
description = S("anvil"),
tiles = {"default_stone.png"}, -- TODO default_steel_block.png, default_obsidian.png are also nice
tiles = {"cottages_stone.png"}, -- TODO default_steel_block.png, default_obsidian.png are also nice
paramtype = "light",
paramtype2 = "facedir",
groups = {cracky=2},
@ -63,13 +76,14 @@ minetest.register_node("cottages:anvil", {
},
on_construct = function(pos)
local meta = minetest.env:get_meta(pos);
local meta = minetest.get_meta(pos);
meta:set_string("infotext", S("Anvil"));
local inv = meta:get_inventory();
inv:set_size("input", 1);
-- inv:set_size("material", 9);
-- inv:set_size("sample", 1);
inv:set_size("hammer", 1);
meta:set_string("formspec", cottages_anvil_formspec );
end,
after_place_node = function(pos, placer)
@ -77,30 +91,13 @@ minetest.register_node("cottages:anvil", {
meta:set_string("owner", placer:get_player_name() or "");
meta:set_string("infotext", S("Anvil (owned by %s)"):format((meta:get_string("owner") or "")));
meta:set_string("formspec",
"size[8,8]"..
"image[7,3;1,1;glooptest_tool_steelhammer.png]"..
-- "list[current_name;sample;0,0.5;1,1;]"..
"list[current_name;input;2.5,1.5;1,1;]"..
-- "list[current_name;material;5,0;3,3;]"..
"list[current_name;hammer;5,3;1,1;]"..
-- "label[0.0,0.0;Sample:]"..
-- "label[0.0,1.0;(Receipe)]"..
"label[2.5,1.0;"..S("Workpiece:").."]"..
-- "label[6.0,-0.5;Materials:]"..
"label[6.0,2.7;"..S("Optional").."]"..
"label[6.0,3.0;"..S("storage for").."]"..
"label[6.0,3.3;"..S("your hammer").."]"..
"label[0,-0.5;"..S("Anvil").."]"..
"label[2.5,-0.5;"..S("Owner: %s"):format(meta:get_string('owner') or "").."]"..
"label[0,3.0;"..S("Punch anvil with hammer to").."]"..
"label[0,3.3;"..S("repair tool in workpiece-slot.").."]"..
"list[current_player;main;0,4;8,4;]");
cottages_anvil_formspec,
"label[2.5,-0.5;"..S("Owner: %s"):format(meta:get_string('owner') or "").."]");
end,
can_dig = function(pos,player)
local meta = minetest.get_meta(pos);
local meta = minetest.get_meta(pos);
local inv = meta:get_inventory();
local owner = meta:get_string('owner');
@ -118,7 +115,7 @@ minetest.register_node("cottages:anvil", {
allow_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player)
local meta = minetest.get_meta(pos)
if( player and player:get_player_name() ~= meta:get_string('owner' )) then
if( player and player:get_player_name() ~= meta:get_string('owner' ) and from_list~="input") then
return 0
end
return count;
@ -126,7 +123,7 @@ minetest.register_node("cottages:anvil", {
allow_metadata_inventory_put = function(pos, listname, index, stack, player)
local meta = minetest.get_meta(pos)
if( player and player:get_player_name() ~= meta:get_string('owner' )) then
if( player and player:get_player_name() ~= meta:get_string('owner' ) and listname~="input") then
return 0;
end
if( listname=='hammer' and stack and stack:get_name() ~= 'cottages:hammer') then
@ -146,7 +143,7 @@ minetest.register_node("cottages:anvil", {
allow_metadata_inventory_take = function(pos, listname, index, stack, player)
local meta = minetest.get_meta(pos)
if( player and player:get_player_name() ~= meta:get_string('owner' )) then
if( player and player:get_player_name() ~= meta:get_string('owner' ) and listname~="input") then
return 0
end
return stack:get_count()
@ -164,8 +161,8 @@ minetest.register_node("cottages:anvil", {
end
local name = puncher:get_player_name();
local meta = minetest.env:get_meta(pos);
local inv = meta:get_inventory();
local meta = minetest.get_meta(pos);
local inv = meta:get_inventory();
local input = inv:get_stack('input',1);
@ -174,13 +171,74 @@ minetest.register_node("cottages:anvil", {
or input:is_empty()
or input:get_name() == "technic:water_can"
or input:get_name() == "technic:lava_can" ) then
meta:set_string("formspec",
cottages_anvil_formspec,
"label[2.5,-0.5;"..S("Owner: %s"):format(meta:get_string('owner') or "").."]");
return;
end
-- 65535 is max damage
local damage_state = 40-math.floor(input:get_wear()/1638);
local tool_name = input:get_name();
local hud_image = "";
if( tool_name
and minetest.registered_items[ tool_name ] ) then
if( minetest.registered_items[ tool_name ].inventory_image ) then
hud_image = minetest.registered_items[ tool_name ].inventory_image;
elseif( minetest.registered_items[ tool_name ].textures
and type(minetest.registered_items[ tool_name ].textures)=='table') then
hud_image = minetest.registered_items[ tool_name ].textures[1];
elseif( minetest.registered_items[ tool_name ].textures
and type(minetest.registered_items[ tool_name ].textures)=='string') then
hud_image = minetest.registered_items[ tool_name ].textures;
end
end
local hud1 = puncher:hud_add({
hud_elem_type = "image",
scale = {x = 15, y = 15},
text = hud_image,
position = {x = 0.5, y = 0.5},
alignment = {x = 0, y = 0}
});
local hud2 = nil;
local hud3 = nil;
if( input:get_wear()>0 ) then
hud2 = puncher:hud_add({
hud_elem_type = "statbar",
text = "default_cloud.png^[colorize:#ff0000:256",
number = 40,
direction = 0, -- left to right
position = {x=0.5, y=0.65},
alignment = {x = 0, y = 0},
offset = {x = -320, y = 0},
size = {x=32, y=32},
})
hud3 = puncher:hud_add({
hud_elem_type = "statbar",
text = "default_cloud.png^[colorize:#00ff00:256",
number = damage_state,
direction = 0, -- left to right
position = {x=0.5, y=0.65},
alignment = {x = 0, y = 0},
offset = {x = -320, y = 0},
size = {x=32, y=32},
});
end
minetest.after(2, function()
if( puncher ) then
puncher:hud_remove(hud1);
puncher:hud_remove(hud2);
puncher:hud_remove(hud3);
end
end)
-- tell the player when the job is done
if( input:get_wear() == 0 ) then
minetest.chat_send_player( puncher:get_player_name(),
S('Your tool has been repaired successfully.'));
-- minetest.chat_send_player( puncher:get_player_name(),
-- S('Your tool has been repaired successfully.'));
return;
end
@ -193,11 +251,12 @@ minetest.register_node("cottages:anvil", {
puncher:set_wielded_item( wielded );
-- do not spam too much
if( math.random( 1,5 )==1 ) then
minetest.chat_send_player( puncher:get_player_name(),
S('Your workpiece improves.'));
end
-- if( math.random( 1,5 )==1 ) then
-- minetest.chat_send_player( puncher:get_player_name(),
-- S('Your workpiece improves.'));
-- end
end,
is_ground_content = false,
})
@ -208,9 +267,9 @@ minetest.register_node("cottages:anvil", {
minetest.register_craft({
output = "cottages:anvil",
recipe = {
{'default:steel_ingot','default:steel_ingot','default:steel_ingot'},
{'', 'default:steel_ingot','' },
{'default:steel_ingot','default:steel_ingot','default:steel_ingot'} },
{cottages.craftitem_steel,cottages.craftitem_steel,cottages.craftitem_steel},
{'', cottages.craftitem_steel,'' },
{cottages.craftitem_steel,cottages.craftitem_steel,cottages.craftitem_steel} },
})
@ -237,8 +296,8 @@ end
minetest.register_craft({
output = "cottages:hammer",
recipe = {
{'default:steel_ingot','default:steel_ingot','default:steel_ingot'},
{'default:steel_ingot','default:steel_ingot','default:steel_ingot'},
{'', 'default:stick', '' } }
{cottages.craftitem_steel,cottages.craftitem_steel,cottages.craftitem_steel},
{cottages.craftitem_steel,cottages.craftitem_steel,cottages.craftitem_steel},
{'', cottages.craftitem_stick, '' } }
})

View File

@ -21,85 +21,14 @@
-- TODO: option so that it works without nodeboxes
-- Boilerplate to support localized strings if intllib mod is installed.
local S
if intllib then
S = intllib.Getter()
else
S = function(s) return s end
end
local S = cottages.S
barrel = {};
barrel.make_pipe = function( pipes, horizontal )
local result = {};
for i, v in pairs( pipes ) do
local f = v.f;
local h1 = v.h1;
local h2 = v.h2;
if( not( v.b ) or v.b == 0 ) then
table.insert( result, {-0.37*f, h1,-0.37*f, -0.28*f, h2,-0.28*f});
table.insert( result, {-0.37*f, h1, 0.28*f, -0.28*f, h2, 0.37*f});
table.insert( result, { 0.37*f, h1,-0.28*f, 0.28*f, h2,-0.37*f});
table.insert( result, { 0.37*f, h1, 0.37*f, 0.28*f, h2, 0.28*f});
table.insert( result, {-0.30*f, h1,-0.42*f, -0.20*f, h2,-0.34*f});
table.insert( result, {-0.30*f, h1, 0.34*f, -0.20*f, h2, 0.42*f});
table.insert( result, { 0.20*f, h1,-0.42*f, 0.30*f, h2,-0.34*f});
table.insert( result, { 0.20*f, h1, 0.34*f, 0.30*f, h2, 0.42*f});
table.insert( result, {-0.42*f, h1,-0.30*f, -0.34*f, h2,-0.20*f});
table.insert( result, { 0.34*f, h1,-0.30*f, 0.42*f, h2,-0.20*f});
table.insert( result, {-0.42*f, h1, 0.20*f, -0.34*f, h2, 0.30*f});
table.insert( result, { 0.34*f, h1, 0.20*f, 0.42*f, h2, 0.30*f});
table.insert( result, {-0.25*f, h1,-0.45*f, -0.10*f, h2,-0.40*f});
table.insert( result, {-0.25*f, h1, 0.40*f, -0.10*f, h2, 0.45*f});
table.insert( result, { 0.10*f, h1,-0.45*f, 0.25*f, h2,-0.40*f});
table.insert( result, { 0.10*f, h1, 0.40*f, 0.25*f, h2, 0.45*f});
table.insert( result, {-0.45*f, h1,-0.25*f, -0.40*f, h2,-0.10*f});
table.insert( result, { 0.40*f, h1,-0.25*f, 0.45*f, h2,-0.10*f});
table.insert( result, {-0.45*f, h1, 0.10*f, -0.40*f, h2, 0.25*f});
table.insert( result, { 0.40*f, h1, 0.10*f, 0.45*f, h2, 0.25*f});
table.insert( result, {-0.15*f, h1,-0.50*f, 0.15*f, h2,-0.45*f});
table.insert( result, {-0.15*f, h1, 0.45*f, 0.15*f, h2, 0.50*f});
table.insert( result, {-0.50*f, h1,-0.15*f, -0.45*f, h2, 0.15*f});
table.insert( result, { 0.45*f, h1,-0.15*f, 0.50*f, h2, 0.15*f});
-- filled horizontal part
else
table.insert( result, {-0.35*f, h1,-0.40*f, 0.35*f, h2,0.40*f});
table.insert( result, {-0.40*f, h1,-0.35*f, 0.40*f, h2,0.35*f});
table.insert( result, {-0.25*f, h1,-0.45*f, 0.25*f, h2,0.45*f});
table.insert( result, {-0.45*f, h1,-0.25*f, 0.45*f, h2,0.25*f});
table.insert( result, {-0.15*f, h1,-0.50*f, 0.15*f, h2,0.50*f});
table.insert( result, {-0.50*f, h1,-0.15*f, 0.50*f, h2,0.15*f});
end
end
-- make the whole thing horizontal
if( horizontal == 1 ) then
for i,v in ipairs( result ) do
result[ i ] = { v[2], v[1], v[3], v[5], v[4], v[6] };
end
end
return result;
end
-- prepare formspec
barrel.on_construct = function( pos )
local meta = minetest.env:get_meta(pos);
local meta = minetest.get_meta(pos);
local percent = math.random( 1, 100 ); -- TODO: show real filling
meta:set_string( 'formspec',
@ -125,7 +54,7 @@ end
-- can only be digged if there are no more vessels/buckets in any of the slots
-- TODO: allow digging of a filled barrel? this would disallow stacking of them
barrel.can_dig = function( pos, player )
local meta = minetest.env:get_meta(pos);
local meta = minetest.get_meta(pos);
local inv = meta:get_inventory()
return ( inv:is_empty('input')
@ -142,25 +71,18 @@ end
minetest.register_node("cottages:barrel", {
description = S("barrel (closed)"),
paramtype = "light",
tiles = {"cottages_minimal_wood.png","cottages_minimal_wood.png","cottages_barrel.png"}, -- "default_tree_top.png", "default_tree_top.png", "default_tree.png"},
is_ground_content = true,
drawtype = "nodebox",
node_box = {
type = "fixed",
fixed = barrel.make_pipe( { {f=0.9,h1=-0.2,h2=0.2,b=0}, {f=0.75,h1=-0.50,h2=-0.35,b=0}, {f=0.75,h1=0.35,h2=0.5,b=0},
{f=0.82,h1=-0.35,h2=-0.2,b=0}, {f=0.82,h1=0.2, h2=0.35,b=0},
{f=0.75,h1= 0.37,h2= 0.42,b=1}, -- top closed
{f=0.75,h1=-0.42,h2=-0.37,b=1}}, 0 ), -- bottom closed
},
drawtype = "mesh",
mesh = "cottages_barrel_closed.obj",
tiles = {"cottages_barrel.png" },
groups = { tree = 1, snappy = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2
},
drop = "cottages:barrel",
-- on_rightclick = function(pos, node, puncher)
-- minetest.env:add_node(pos, {name = "cottages:barrel_open", param2 = node.param2})
-- minetest.add_node(pos, {name = "cottages:barrel_open", param2 = node.param2})
-- end,
-- TODO: on_rightclick is no longer available - maybe open if empty and closed if full?
on_punch = function(pos, node, puncher)
minetest.env:add_node(pos, {name = "cottages:barrel_lying", param2 = node.param2})
minetest.add_node(pos, {name = "cottages:barrel_lying", param2 = node.param2})
end,
on_construct = function( pos )
@ -171,7 +93,8 @@ end
end,
on_metadata_inventory_put = function(pos, listname, index, stack, player)
return barrel.on_metadata_inventory_put( pos, listname, index, stack, player );
end
end,
is_ground_content = false,
})
@ -179,85 +102,67 @@ end
minetest.register_node("cottages:barrel_open", {
description = S("barrel (open)"),
paramtype = "light",
tiles = {"cottages_minimal_wood.png","cottages_minimal_wood.png","cottages_barrel.png"},--"default_tree_top.png", "default_tree_top.png", "default_tree.png"},
is_ground_content = true,
drawtype = "nodebox",
node_box = {
type = "fixed",
fixed = barrel.make_pipe( { {f=0.9,h1=-0.2,h2=0.2,b=0}, {f=0.75,h1=-0.50,h2=-0.35,b=0}, {f=0.75,h1=0.35,h2=0.5,b=0},
{f=0.82,h1=-0.35,h2=-0.2,b=0}, {f=0.82,h1=0.2, h2=0.35,b=0},
-- {f=0.75,h1= 0.37,h2= 0.42,b=1}, -- top closed
{f=0.75,h1=-0.42,h2=-0.37,b=1}}, 0 ), -- bottom closed
},
groups = { tree = 1, snappy = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2
drawtype = "mesh",
mesh = "cottages_barrel.obj",
tiles = {"cottages_barrel.png" },
groups = { tree = 1, snappy = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2, not_in_creative_inventory=1,
},
drop = "cottages:barrel",
-- on_rightclick = function(pos, node, puncher)
-- minetest.env:add_node(pos, {name = "cottages:barrel", param2 = node.param2})
-- minetest.add_node(pos, {name = "cottages:barrel", param2 = node.param2})
-- end,
on_punch = function(pos, node, puncher)
minetest.env:add_node(pos, {name = "cottages:barrel_lying_open", param2 = node.param2})
minetest.add_node(pos, {name = "cottages:barrel_lying_open", param2 = node.param2})
end,
is_ground_content = false,
})
-- horizontal barrel
minetest.register_node("cottages:barrel_lying", {
description = S("barrel (closed), lying somewhere"),
paramtype = "light",
paramtype2 = "facedir",
tiles = {"cottages_barrel_lying.png","cottages_barrel_lying.png","cottages_minimal_wood.png","cottages_minimal_wood.png","cottages_barrel_lying.png"},--"default_tree_top.png", "default_tree_top.png", "default_tree.png"},
is_ground_content = true,
drawtype = "nodebox",
node_box = {
type = "fixed",
fixed = barrel.make_pipe( { {f=0.9,h1=-0.2,h2=0.2,b=0}, {f=0.75,h1=-0.50,h2=-0.35,b=0}, {f=0.75,h1=0.35,h2=0.5,b=0},
{f=0.82,h1=-0.35,h2=-0.2,b=0}, {f=0.82,h1=0.2, h2=0.35,b=0},
{f=0.75,h1= 0.37,h2= 0.42,b=1}, -- top closed
{f=0.75,h1=-0.42,h2=-0.37,b=1}}, 1 ), -- bottom closed
},
groups = { tree = 1, snappy = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2
paramtype2 = "facedir",
drawtype = "mesh",
mesh = "cottages_barrel_closed_lying.obj",
tiles = {"cottages_barrel.png" },
groups = { tree = 1, snappy = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2, not_in_creative_inventory=1,
},
drop = "cottages:barrel",
on_rightclick = function(pos, node, puncher)
minetest.env:add_node(pos, {name = "cottages:barrel_lying_open", param2 = node.param2})
minetest.add_node(pos, {name = "cottages:barrel_lying_open", param2 = node.param2})
end,
on_punch = function(pos, node, puncher)
if( node.param2 < 4 ) then
minetest.env:add_node(pos, {name = "cottages:barrel_lying", param2 = (node.param2+1)})
minetest.add_node(pos, {name = "cottages:barrel_lying", param2 = (node.param2+1)})
else
minetest.env:add_node(pos, {name = "cottages:barrel", param2 = 0})
minetest.add_node(pos, {name = "cottages:barrel", param2 = 0})
end
end,
is_ground_content = false,
})
-- horizontal barrel, open
minetest.register_node("cottages:barrel_lying_open", {
description = S("barrel (opened), lying somewhere"),
paramtype = "light",
paramtype2 = "facedir",
tiles = {"cottages_barrel_lying.png","cottages_barrel_lying.png","cottages_minimal_wood.png","cottages_minimal_wood.png","cottages_barrel_lying.png"},--"default_tree_top.png", "default_tree_top.png", "default_tree.png"},
is_ground_content = true,
drawtype = "nodebox",
node_box = {
type = "fixed",
fixed = barrel.make_pipe( { {f=0.9,h1=-0.2,h2=0.2,b=0}, {f=0.75,h1=-0.50,h2=-0.35,b=0}, {f=0.75,h1=0.35,h2=0.5,b=0},
{f=0.82,h1=-0.35,h2=-0.2,b=0}, {f=0.82,h1=0.2, h2=0.35,b=0},
-- {f=0.75,h1= 0.37,h2= 0.42,b=1}, -- top closed
{f=0.75,h1=-0.42,h2=-0.37,b=1}}, 1 ), -- bottom closed
},
groups = { tree = 1, snappy = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2
paramtype2 = "facedir",
drawtype = "mesh",
mesh = "cottages_barrel_lying.obj",
tiles = {"cottages_barrel.png" },
groups = { tree = 1, snappy = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2, not_in_creative_inventory=1,
},
drop = "cottages:barrel",
on_rightclick = function(pos, node, puncher)
minetest.env:add_node(pos, {name = "cottages:barrel_lying", param2 = node.param2})
minetest.add_node(pos, {name = "cottages:barrel_lying", param2 = node.param2})
end,
on_punch = function(pos, node, puncher)
if( node.param2 < 4 ) then
minetest.env:add_node(pos, {name = "cottages:barrel_lying_open", param2 = (node.param2+1)})
minetest.add_node(pos, {name = "cottages:barrel_lying_open", param2 = (node.param2+1)})
else
minetest.env:add_node(pos, {name = "cottages:barrel_open", param2 = 0})
minetest.add_node(pos, {name = "cottages:barrel_open", param2 = 0})
end
end,
is_ground_content = false,
})
@ -265,24 +170,21 @@ end
minetest.register_node("cottages:tub", {
description = S("tub"),
paramtype = "light",
tiles = {"cottages_minimal_wood.png","cottages_minimal_wood.png","cottages_barrel.png"},--"default_tree_top.png", "default_tree_top.png", "default_tree.png"},
is_ground_content = true,
drawtype = "nodebox",
node_box = {
type = "fixed",
fixed = barrel.make_pipe( { {f=1.0,h1=-0.5,h2=0.0,b=0}, {f=1.0,h1=-0.46,h2=-0.41,b=1}}, 0 ),
},
drawtype = "mesh",
mesh = "cottages_tub.obj",
tiles = {"cottages_barrel.png" },
groups = { tree = 1, snappy = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2
},
is_ground_content = false,
})
minetest.register_craft({
output = "cottages:barrel",
recipe = {
{"default:wood", "", "default:wood" },
{"default:steel_ingot", "", "default:steel_ingot"},
{"default:wood", "default:wood", "default:wood" },
{cottages.craftitem_wood, "", cottages.craftitem_wood },
{cottages.craftitem_steel, "", cottages.craftitem_steel},
{cottages.craftitem_wood, cottages.craftitem_wood, cottages.craftitem_wood },
},
})

View File

@ -3,12 +3,7 @@
-- TODO: add bags (not for carrying around but for decoration)
-- Boilerplate to support localized strings if intllib mod is installed.
local S
if intllib then
S = intllib.Getter()
else
S = function(s) return s end
end
local S = cottages.S
cottages_chests = {}
-- uses default.chest_formspec for now
@ -31,36 +26,36 @@ cottages_chests.can_dig = function(pos,player)
minetest.register_node("cottages:chest_private", {
description = S("private NPC chest"),
infotext = "chest containing the possesions of one of the inhabitants",
tiles = {"default_chest_top.png", "default_chest_top.png", "default_chest_side.png",
"default_chest_side.png", "default_chest_side.png", "default_chest_front.png"},
tiles = cottages.texture_chest,
paramtype2 = "facedir",
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2},
legacy_facedir_simple = true,
on_construct = cottages_chests.on_construct,
can_dig = cottages_chests.can_dig,
is_ground_content = false,
})
minetest.register_node("cottages:chest_work", {
description = S("chest for work utils and kitchens"),
infotext = "everything the inhabitant needs for his work",
tiles = {"default_chest_top.png", "default_chest_top.png", "default_chest_side.png",
"default_chest_side.png", "default_chest_side.png", "default_chest_front.png"},
tiles = cottages.texture_chest,
paramtype2 = "facedir",
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2},
legacy_facedir_simple = true,
on_construct = cottages_chests.on_construct,
can_dig = cottages_chests.can_dig,
is_ground_content = false,
})
minetest.register_node("cottages:chest_storage", {
description = S("storage chest"),
infotext = "stored food reserves",
tiles = {"default_chest_top.png", "default_chest_top.png", "default_chest_side.png",
"default_chest_side.png", "default_chest_side.png", "default_chest_front.png"},
tiles = cottages.texture_chest,
paramtype2 = "facedir",
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2},
legacy_facedir_simple = true,
on_construct = cottages_chests.on_construct,
can_dig = cottages_chests.can_dig,
is_ground_content = false,
})

View File

@ -10,13 +10,7 @@
-- abm that opens/closes the window shutters is called. Anything less than 10 minutes
-- (600 seconds) ought to be ok.
-----------------------------------------------------------------------------------------------------------
-- Boilerplate to support localized strings if intllib mod is installed.
local S
if intllib then
S = intllib.Getter()
else
S = function(s) return s end
end
local S = cottages.S
-----------------------------------------------------------------------------------------------------------
-- small window shutters for single-node-windows; they open at day and close at night if the abm is working
@ -31,12 +25,12 @@ cottages_window_sutter_operate = function( pos, old_node_state_name, new_node_st
for i,v in ipairs(offsets) do
local node = minetest.env:get_node_or_nil( {x=pos.x, y=(pos.y+v), z=pos.z } );
local node = minetest.get_node_or_nil( {x=pos.x, y=(pos.y+v), z=pos.z } );
if( node and node.name and node.name==old_node_state_name
and ( (v > 0 and stop_up == 0 )
or (v < 0 and stop_down == 0 ))) then
minetest.env:add_node({x=pos.x, y=(pos.y+v), z=pos.z }, {name = new_node_state_name, param2 = node.param2})
minetest.swap_node({x=pos.x, y=(pos.y+v), z=pos.z }, {name = new_node_state_name, param2 = node.param2})
-- found a diffrent node - no need to search further up
elseif( v > 0 and stop_up == 0 ) then
@ -56,7 +50,6 @@ minetest.register_node("cottages:window_shutter_open", {
tiles = {"cottages_minimal_wood.png"},
paramtype = "light",
paramtype2 = "facedir",
is_ground_content = true,
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2},
-- larger than one node but slightly smaller than a half node so that wallmounted torches pose no problem
node_box = {
@ -72,11 +65,11 @@ minetest.register_node("cottages:window_shutter_open", {
{-0.9, -0.5, 0.4, 0.9, 0.5, 0.5},
},
},
drop = "cottages:window_shutter_closed",
on_rightclick = function(pos, node, puncher)
minetest.env:add_node(pos, {name = "cottages:window_shutter_closed", param2 = node.param2})
minetest.swap_node(pos, {name = "cottages:window_shutter_closed", param2 = node.param2})
cottages_window_sutter_operate( pos, "cottages:window_shutter_open", "cottages:window_shutter_closed" );
end,
is_ground_content = false,
})
minetest.register_node("cottages:window_shutter_closed", {
@ -86,8 +79,7 @@ minetest.register_node("cottages:window_shutter_closed", {
tiles = {"cottages_minimal_wood.png"},
paramtype = "light",
paramtype2 = "facedir",
is_ground_content = true,
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2},
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2,not_in_creative_inventory=1},
node_box = {
type = "fixed",
fixed = {
@ -102,9 +94,11 @@ minetest.register_node("cottages:window_shutter_closed", {
},
},
on_rightclick = function(pos, node, puncher)
minetest.env:add_node(pos, {name = "cottages:window_shutter_open", param2 = node.param2})
minetest.swap_node(pos, {name = "cottages:window_shutter_open", param2 = node.param2})
cottages_window_sutter_operate( pos, "cottages:window_shutter_closed", "cottages:window_shutter_open" );
end,
is_ground_content = false,
drop = "cottages:window_shutter_open",
})
@ -116,9 +110,9 @@ minetest.register_abm({
action = function(pos)
-- at this time, sleeping in a bed is not possible
if( not(minetest.env:get_timeofday() < 0.2 or minetest.env:get_timeofday() > 0.805)) then
local old_node = minetest.env:get_node( pos );
minetest.env:add_node(pos, {name = "cottages:window_shutter_open", param2 = old_node.param2})
if( not(minetest.get_timeofday() < 0.2 or minetest.get_timeofday() > 0.805)) then
local old_node = minetest.get_node( pos );
minetest.swap_node(pos, {name = "cottages:window_shutter_open", param2 = old_node.param2})
cottages_window_sutter_operate( pos, "cottages:window_shutter_closed", "cottages:window_shutter_open" );
end
end
@ -133,9 +127,9 @@ minetest.register_abm({
action = function(pos)
-- same time at which sleeping is allowed in beds
if( minetest.env:get_timeofday() < 0.2 or minetest.env:get_timeofday() > 0.805) then
local old_node = minetest.env:get_node( pos );
minetest.env:add_node(pos, {name = "cottages:window_shutter_closed", param2 = old_node.param2})
if( minetest.get_timeofday() < 0.2 or minetest.get_timeofday() > 0.805) then
local old_node = minetest.get_node( pos );
minetest.swap_node(pos, {name = "cottages:window_shutter_closed", param2 = old_node.param2})
cottages_window_sutter_operate( pos, "cottages:window_shutter_open", "cottages:window_shutter_closed" );
end
end
@ -152,7 +146,6 @@ minetest.register_node("cottages:half_door", {
tiles = {"cottages_minimal_wood.png"},
paramtype = "light",
paramtype2 = "facedir",
is_ground_content = true,
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2},
node_box = {
type = "fixed",
@ -167,21 +160,22 @@ minetest.register_node("cottages:half_door", {
},
},
on_rightclick = function(pos, node, puncher)
local node2 = minetest.env:get_node( {x=pos.x,y=(pos.y+1),z=pos.z});
local node2 = minetest.get_node( {x=pos.x,y=(pos.y+1),z=pos.z});
local param2 = node.param2;
if( param2 == 1) then param2 = 2;
elseif( param2 == 2) then param2 = 1;
elseif( param2 == 3) then param2 = 0;
elseif( param2 == 0) then param2 = 3;
if( param2%4 == 1) then param2 = param2+1; --2;
elseif( param2%4 == 2) then param2 = param2-1; --1;
elseif( param2%4 == 3) then param2 = param2-3; --0;
elseif( param2%4 == 0) then param2 = param2+3; --3;
end;
minetest.env:add_node(pos, {name = "cottages:half_door", param2 = param2})
minetest.swap_node(pos, {name = "cottages:half_door", param2 = param2})
-- if the node above consists of a door of the same type, open it as well
-- Note: doors beneath this one are not opened! It is a special feature of these doors that they can be opend partly
if( node2 ~= nil and node2.name == node.name and node2.param2==node.param2) then
minetest.env:add_node( {x=pos.x,y=(pos.y+1),z=pos.z}, {name = "cottages:half_door", param2 = param2})
minetest.swap_node( {x=pos.x,y=(pos.y+1),z=pos.z}, {name = "cottages:half_door", param2 = param2})
end
end,
is_ground_content = false,
})
@ -193,7 +187,6 @@ minetest.register_node("cottages:half_door_inverted", {
tiles = {"cottages_minimal_wood.png"},
paramtype = "light",
paramtype2 = "facedir",
is_ground_content = true,
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2},
node_box = {
type = "fixed",
@ -208,20 +201,21 @@ minetest.register_node("cottages:half_door_inverted", {
},
},
on_rightclick = function(pos, node, puncher)
local node2 = minetest.env:get_node( {x=pos.x,y=(pos.y+1),z=pos.z});
local node2 = minetest.get_node( {x=pos.x,y=(pos.y+1),z=pos.z});
local param2 = node.param2;
if( param2 == 1) then param2 = 0;
elseif( param2 == 0) then param2 = 1;
elseif( param2 == 2) then param2 = 3;
elseif( param2 == 3) then param2 = 2;
if( param2%4 == 1) then param2 = param2-1; --0;
elseif( param2%4 == 0) then param2 = param2+1; --1;
elseif( param2%4 == 2) then param2 = param2+1; --3;
elseif( param2%4 == 3) then param2 = param2-1; --2;
end;
minetest.env:add_node(pos, {name = "cottages:half_door_inverted", param2 = param2})
minetest.swap_node(pos, {name = "cottages:half_door_inverted", param2 = param2})
-- open upper parts of this door (if there are any)
if( node2 ~= nil and node2.name == node.name and node2.param2==node.param2) then
minetest.env:add_node( {x=pos.x,y=(pos.y+1),z=pos.z}, {name = "cottages:half_door_inverted", param2 = param2})
minetest.swap_node( {x=pos.x,y=(pos.y+1),z=pos.z}, {name = "cottages:half_door_inverted", param2 = param2})
end
end,
is_ground_content = false,
})
@ -234,10 +228,9 @@ minetest.register_node("cottages:gate_closed", {
description = S("closed fence gate"),
drawtype = "nodebox",
-- top, bottom, side1, side2, inner, outer
tiles = {"default_wood.png"},
tiles = {cottages.texture_furniture},
paramtype = "light",
paramtype2 = "facedir",
is_ground_content = true,
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2},
node_box = {
type = "fixed",
@ -257,8 +250,9 @@ minetest.register_node("cottages:gate_closed", {
},
},
on_rightclick = function(pos, node, puncher)
minetest.env:add_node(pos, {name = "cottages:gate_open", param2 = node.param2})
minetest.swap_node(pos, {name = "cottages:gate_open", param2 = node.param2})
end,
is_ground_content = false,
})
@ -266,12 +260,11 @@ minetest.register_node("cottages:gate_open", {
description = S("opened fence gate"),
drawtype = "nodebox",
-- top, bottom, side1, side2, inner, outer
tiles = {"default_wood.png"},
tiles = {cottages.texture_furniture},
paramtype = "light",
paramtype2 = "facedir",
is_ground_content = true,
drop = "cottages:gate_closed",
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2},
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2,not_in_creative_inventory=1},
node_box = {
type = "fixed",
fixed = {
@ -291,8 +284,10 @@ minetest.register_node("cottages:gate_open", {
},
},
on_rightclick = function(pos, node, puncher)
minetest.env:add_node(pos, {name = "cottages:gate_closed", param2 = node.param2})
minetest.swap_node(pos, {name = "cottages:gate_closed", param2 = node.param2})
end,
is_ground_content = false,
drop = "cottages:gate_closed",
})
@ -344,15 +339,17 @@ cottages.register_hatch = function( nodename, description, texture, receipe_item
},
on_rightclick = function(pos, node, puncher)
minetest.env:add_node(pos, {name = node.name, param2 = new_facedirs[ node.param2+1 ]})
minetest.swap_node(pos, {name = node.name, param2 = new_facedirs[ node.param2+1 ]})
end,
is_ground_content = false,
on_place = minetest.rotate_node,
})
minetest.register_craft({
output = nodename,
recipe = {
{ '', '', receipe_item },
{ receipe_item, 'default:stick', '' },
{ receipe_item, cottages.craftitem_stick, '' },
{ '', '', '' },
}
})
@ -360,8 +357,8 @@ end
-- further alternate hatch materials: wood, tree, copper_block
cottages.register_hatch( 'cottages:hatch_wood', 'wooden hatch', 'cottages_minimal_wood.png', 'stairs:slab_wood' );
cottages.register_hatch( 'cottages:hatch_steel', 'metal hatch', 'default_steel_block.png', 'default:steel_ingot' );
cottages.register_hatch( 'cottages:hatch_wood', 'wooden hatch', 'cottages_minimal_wood.png', cottages.craftitem_slab_wood );
cottages.register_hatch( 'cottages:hatch_steel', 'metal hatch', 'cottages_steel_block.png', cottages.craftitem_steel );
@ -388,7 +385,7 @@ minetest.register_craft({
minetest.register_craft({
output = "cottages:window_shutter_open",
recipe = {
{"default:wood", "", "default:wood" },
{cottages.craftitem_wood, "", cottages.craftitem_wood },
}
})
@ -410,8 +407,8 @@ minetest.register_craft({
minetest.register_craft({
output = "cottages:half_door 2",
recipe = {
{"", "default:wood", "" },
{"", "doors:door_wood", "" },
{"", cottages.craftitem_wood, "" },
{"", cottages.craftitem_door, "" },
}
})
@ -434,7 +431,7 @@ minetest.register_craft({
minetest.register_craft({
output = "cottages:gate_closed",
recipe = {
{"default:stick", "default:stick", "default:wood" },
{cottages.craftitem_stick, cottages.craftitem_stick, cottages.craftitem_wood },
}
})

View File

@ -1,12 +1,6 @@
-- 22.01.13 Changed texture to that of the wood from the minimal development game
-- Boilerplate to support localized strings if intllib mod is installed.
local S
if intllib then
S = intllib.Getter()
else
S = function(s) return s end
end
local S = cottages.S
minetest.register_node("cottages:fence_small", {
description = S("small fence"),
@ -15,7 +9,6 @@ minetest.register_node("cottages:fence_small", {
tiles = {"cottages_minimal_wood.png"},
paramtype = "light",
paramtype2 = "facedir",
is_ground_content = true,
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2},
node_box = {
type = "fixed",
@ -34,6 +27,7 @@ minetest.register_node("cottages:fence_small", {
{ -0.50, -0.50, 0.4, 0.50, 0.50, 0.5},
},
},
is_ground_content = false,
})
@ -44,7 +38,6 @@ minetest.register_node("cottages:fence_corner", {
tiles = {"cottages_minimal_wood.png"},
paramtype = "light",
paramtype2 = "facedir",
is_ground_content = true,
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2},
node_box = {
type = "fixed",
@ -70,6 +63,7 @@ minetest.register_node("cottages:fence_corner", {
{ -0.50, -0.50,-0.5, 0.50, 0.50, 0.5},
},
},
is_ground_content = false,
})
@ -80,7 +74,6 @@ minetest.register_node("cottages:fence_end", {
tiles = {"cottages_minimal_wood.png"},
paramtype = "light",
paramtype2 = "facedir",
is_ground_content = true,
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2},
node_box = {
type = "fixed",
@ -113,12 +106,13 @@ minetest.register_node("cottages:fence_end", {
{ -0.50, -0.50,-0.5, 0.50, 0.50, 0.5},
},
},
is_ground_content = false,
})
minetest.register_craft({
output = "cottages:fence_small 3",
recipe = {
{"default:fence_wood","default:fence_wood" },
{cottages.craftitem_fence, cottages.craftitem_fence},
}
})

View File

@ -13,19 +13,13 @@
---------------------------------------------------------------------------------------
-- TODO: change the textures of the bed (make the clothing white, foot path not entirely covered with cloth)
-- Boilerplate to support localized strings if intllib mod is installed.
local S
if intllib then
S = intllib.Getter()
else
S = function(s) return s end
end
local S = cottages.S
-- a bed without functionality - just decoration
minetest.register_node("cottages:bed_foot", {
description = S("Bed (foot region)"),
drawtype = "nodebox",
tiles = {"cottages_beds_bed_top_bottom.png", "default_wood.png", "cottages_beds_bed_side.png", "cottages_beds_bed_side.png", "cottages_beds_bed_side.png", "cottages_beds_bed_side.png"},
tiles = {"cottages_beds_bed_top_bottom.png", cottages.texture_furniture, "cottages_beds_bed_side.png", "cottages_beds_bed_side.png", "cottages_beds_bed_side.png", "cottages_beds_bed_side.png"},
paramtype = "light",
paramtype2 = "facedir",
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=3},
@ -50,13 +44,14 @@ minetest.register_node("cottages:bed_foot", {
{-0.5, -0.5, -0.5, 0.5, 0.3, 0.5},
}
},
is_ground_content = false,
})
-- the bed is split up in two parts to avoid destruction of blocks on placement
minetest.register_node("cottages:bed_head", {
description = S("Bed (head region)"),
drawtype = "nodebox",
tiles = {"cottages_beds_bed_top_top.png", "default_wood.png", "cottages_beds_bed_side_top_r.png", "cottages_beds_bed_side_top_l.png", "default_wood.png", "cottages_beds_bed_side.png"},
tiles = {"cottages_beds_bed_top_top.png", cottages.texture_furniture, "cottages_beds_bed_side_top_r.png", "cottages_beds_bed_side_top_l.png", cottages.texture_furniture, "cottages_beds_bed_side.png"},
paramtype = "light",
paramtype2 = "facedir",
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=3},
@ -81,6 +76,7 @@ minetest.register_node("cottages:bed_head", {
{-0.5, -0.5, -0.5, 0.5, 0.3, 0.5},
}
},
is_ground_content = false,
})
@ -95,7 +91,6 @@ minetest.register_node("cottages:sleeping_mat", {
sunlight_propagates = true,
paramtype = 'light',
paramtype2 = "facedir",
is_ground_content = true,
walkable = false,
groups = { snappy = 3 },
sounds = default.node_sound_leaves_defaults(),
@ -113,7 +108,8 @@ minetest.register_node("cottages:sleeping_mat", {
fixed = {
{-0.48, -0.5,-0.48, 0.48, -0.25, 0.48},
}
}
},
is_ground_content = false,
})
@ -144,18 +140,18 @@ minetest.register_node("cottages:bench", {
{-0.5, -0.5, 0, 0.5, 0, 0.5},
}
},
is_ground_content = false,
})
-- a simple table; possible replacement: 3dforniture:table
minetest.register_node("cottages:table", {
local cottages_table_def = {
description = S("table"),
drawtype = "nodebox",
-- top, bottom, side1, side2, inner, outer
tiles = {"cottages_minimal_wood.png"},
paramtype = "light",
paramtype2 = "facedir",
is_ground_content = true,
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2},
node_box = {
type = "fixed",
@ -170,9 +166,29 @@ minetest.register_node("cottages:table", {
{ -0.5, -0.5, -0.5, 0.5, 0.4, 0.5},
},
},
})
is_ground_content = false,
}
-- search for the workbench in AdventureTest
local workbench = minetest.registered_nodes[ "workbench:3x3"];
if( workbench ) then
cottages_table_def.tiles = {workbench.tiles[1], cottages_table_def.tiles[1]};
cottages_table_def.on_rightclick = workbench.on_rightclick;
end
-- search for the workbench from RealTEst
workbench = minetest.registered_nodes[ "workbench:work_bench_birch"];
if( workbench ) then
cottages_table_def.tiles = {workbench.tiles[1], cottages_table_def.tiles[1]};
cottages_table_def.on_construct = workbench.on_construct;
cottages_table_def.can_dig = workbench.can_dig;
cottages_table_def.on_metadata_inventory_take = workbench.on_metadata_inventory_take;
cottages_table_def.on_metadata_inventory_move = workbench.on_metadata_inventory_move;
cottages_table_def.on_metadata_inventory_put = workbench.on_metadata_inventory_put;
end
minetest.register_node("cottages:table", cottages_table_def );
-- looks better than two slabs impersonating a shelf; also more 3d than a bookshelf
-- the infotext shows if it's empty or not
minetest.register_node("cottages:shelf", {
@ -182,7 +198,6 @@ minetest.register_node("cottages:shelf", {
tiles = {"cottages_minimal_wood.png"},
paramtype = "light",
paramtype2 = "facedir",
is_ground_content = true,
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2},
node_box = {
type = "fixed",
@ -204,7 +219,7 @@ minetest.register_node("cottages:shelf", {
on_construct = function(pos)
local meta = minetest.env:get_meta(pos);
local meta = minetest.get_meta(pos);
meta:set_string("formspec",
"size[8,8]"..
@ -216,22 +231,23 @@ minetest.register_node("cottages:shelf", {
end,
can_dig = function( pos,player )
local meta = minetest.env:get_meta( pos );
local meta = minetest.get_meta( pos );
local inv = meta:get_inventory();
return inv:is_empty("main");
end,
on_metadata_inventory_put = function(pos, listname, index, stack, player)
local meta = minetest.env:get_meta( pos );
local meta = minetest.get_meta( pos );
meta:set_string('infotext', S('open storage shelf (in use)'));
end,
on_metadata_inventory_take = function(pos, listname, index, stack, player)
local meta = minetest.env:get_meta( pos );
local meta = minetest.get_meta( pos );
local inv = meta:get_inventory();
if( inv:is_empty("main")) then
meta:set_string('infotext', S('open storage shelf (empty)'));
end
end,
is_ground_content = false,
})
@ -240,10 +256,9 @@ minetest.register_node("cottages:shelf", {
minetest.register_node("cottages:stovepipe", {
description = S("stovepipe"),
drawtype = "nodebox",
tiles = {"default_steel_block.png"},
tiles = {"cottages_steel_block.png"},
paramtype = "light",
paramtype2 = "facedir",
is_ground_content = true,
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2},
node_box = {
type = "fixed",
@ -257,6 +272,7 @@ minetest.register_node("cottages:stovepipe", {
{ 0.20, -0.5, 0.20, 0.45, 0.5, 0.45},
},
},
is_ground_content = false,
})
@ -265,10 +281,9 @@ minetest.register_node("cottages:washing", {
description = S("washing place"),
drawtype = "nodebox",
-- top, bottom, side1, side2, inner, outer
tiles = {"default_clay.png"},
tiles = {"cottages_clay.png"},
paramtype = "light",
paramtype2 = "facedir",
is_ground_content = true,
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2},
node_box = {
type = "fixed",
@ -291,13 +306,14 @@ minetest.register_node("cottages:washing", {
},
on_rightclick = function(pos, node, player)
-- works only with water beneath
local node_under = minetest.env:get_node( {x=pos.x, y=(pos.y-1), z=pos.z} );
local node_under = minetest.get_node( {x=pos.x, y=(pos.y-1), z=pos.z} );
if( not( node_under ) or node_under.name == "ignore" or (node_under.name ~= 'default:water_source' and node_under.name ~= 'default:water_flowing')) then
minetest.chat_send_player( player:get_player_name(), S("Sorry. This washing place is out of water. Please place it above water!"));
else
minetest.chat_send_player( player:get_player_name(), S("You feel much cleaner after some washing."));
end
end,
is_ground_content = false,
})
@ -309,25 +325,25 @@ minetest.register_node("cottages:washing", {
minetest.register_craft({
output = "cottages:bed_foot",
recipe = {
{"wool:white", "", "", },
{"default:wood", "", "", },
{"default:stick", "", "", }
{cottages.craftitem_wool, "", "", },
{cottages.craftitem_wood, "", "", },
{cottages.craftitem_stick, "", "", }
}
})
minetest.register_craft({
output = "cottages:bed_head",
recipe = {
{"", "", "wool:white", },
{"", "default:stick", "default:wood", },
{"", "", "default:stick", }
{"", "", cottages.craftitem_wool, },
{"", cottages.craftitem_stick, cottages.craftitem_wood, },
{"", "", cottages.craftitem_stick, }
}
})
minetest.register_craft({
output = "cottages:sleeping_mat",
output = "cottages:sleeping_mat 3",
recipe = {
{"wool:white", "cottages:straw_mat","cottages:straw_mat" }
{"cottages:wool_tent", "cottages:straw_mat","cottages:straw_mat" }
}
})
@ -335,16 +351,16 @@ minetest.register_craft({
minetest.register_craft({
output = "cottages:table",
recipe = {
{"", "stairs:slab_wood", "", },
{"", "default:stick", "" }
{"", cottages.craftitem_slab_wood, "", },
{"", cottages.craftitem_stick, "" }
}
})
minetest.register_craft({
output = "cottages:bench",
recipe = {
{"", "default:wood", "", },
{"default:stick", "", "default:stick", }
{"", cottages.craftitem_wood, "", },
{cottages.craftitem_stick, "", cottages.craftitem_stick, }
}
})
@ -352,24 +368,24 @@ minetest.register_craft({
minetest.register_craft({
output = "cottages:shelf",
recipe = {
{"default:stick", "default:wood", "default:stick", },
{"default:stick", "default:wood", "default:stick", },
{"default:stick", "", "default:stick"}
{cottages.craftitem_stick, cottages.craftitem_wood, cottages.craftitem_stick, },
{cottages.craftitem_stick, cottages.craftitem_wood, cottages.craftitem_stick, },
{cottages.craftitem_stick, "", cottages.craftitem_stick}
}
})
minetest.register_craft({
output = "cottages:washing 2",
recipe = {
{"default:stick", },
{"default:clay", },
{cottages.craftitem_stick, },
{cottages.craftitem_clay, },
}
})
minetest.register_craft({
output = "cottages:stovepipe 2",
recipe = {
{'default:steel_ingot', '', 'default:steel_ingot'},
{cottages.craftitem_steel, '', cottages.craftitem_steel},
}
})

View File

@ -8,13 +8,7 @@
-- * glass pane - an improvement compared to fence posts as windows :-)
---------------------------------------------------------------------------------------
-- Boilerplate to support localized strings if intllib mod is installed.
local S
if intllib then
S = intllib.Getter()
else
S = function(s) return s end
end
local S = cottages.S
-- can be used to buid real stationary wagons or attached to walls as decoration
minetest.register_node("cottages:wagon_wheel", {
@ -34,6 +28,7 @@ minetest.register_node("cottages:wagon_wheel", {
groups = {choppy=2,dig_immediate=2,attached_node=1},
legacy_wallmounted = true,
sounds = default.node_sound_defaults(),
is_ground_content = false,
})
@ -44,9 +39,9 @@ minetest.register_node("cottages:feldweg", {
paramtype2 = "facedir",
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2},
legacy_facedir_simple = true,
is_ground_content = true,
groups = {crumbly=3},
sounds = default.node_sound_dirt_defaults,
is_ground_content = false,
})
@ -55,13 +50,13 @@ minetest.register_node("cottages:loam", {
description = S("loam"),
tiles = {"cottages_loam.png"},
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2},
is_ground_content = true,
groups = {crumbly=3},
sounds = default.node_sound_dirt_defaults,
is_ground_content = false,
})
-- create stairs if possible
if( stairs and stairs.register_stair_and_slab) then
if( minetest.get_modpath("stairs") and stairs and stairs.register_stair_and_slab) then
stairs.register_stair_and_slab("feldweg", "cottages:feldweg",
{snappy=2,choppy=2,oddly_breakable_by_hand=2},
{"cottages_feldweg.png","default_dirt.png", "default_grass.png","default_grass.png","cottages_feldweg.png","cottages_feldweg.png"},
@ -76,12 +71,14 @@ if( stairs and stairs.register_stair_and_slab) then
S("Loam Slab"),
default.node_sound_dirt_defaults())
stairs.register_stair_and_slab("clay", "default:clay",
if( minetest.registered_nodes["default:clay"]) then
stairs.register_stair_and_slab("clay", "default:clay",
{crumbly=3},
{"default_clay.png"},
{"cottages_clay.png"},
S("Clay Stairs"),
S("Clay Slab"),
default.node_sound_dirt_defaults())
end
end
@ -91,21 +88,20 @@ minetest.register_node("cottages:straw_ground", {
description = S("straw ground for animals"),
tiles = {"cottages_darkage_straw.png","cottages_loam.png","cottages_loam.png","cottages_loam.png","cottages_loam.png","cottages_loam.png"},
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2},
is_ground_content = true,
groups = {crumbly=3},
sounds = default.node_sound_dirt_defaults,
is_ground_content = false,
})
-- note: these houses look good with a single fence pile as window! the glass pane is the version for 'richer' inhabitants
minetest.register_node("cottages:glass_pane", {
description = S("simple glass pane"),
description = S("simple glass pane (centered)"),
drawtype = "nodebox",
-- top, bottom, side1, side2, inner, outer
tiles = {"cottages_glass_pane.png"},
paramtype = "light",
paramtype2 = "facedir",
is_ground_content = true,
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2},
node_box = {
type = "fixed",
@ -119,9 +115,96 @@ minetest.register_node("cottages:glass_pane", {
{ -0.5, -0.5, -0.05, 0.5, 0.5, 0.05},
},
},
is_ground_content = false,
})
minetest.register_node("cottages:glass_pane_side", {
description = S("simple glass pane"),
drawtype = "nodebox",
-- top, bottom, side1, side2, inner, outer
tiles = {"cottages_glass_pane.png"},
paramtype = "light",
paramtype2 = "facedir",
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2},
node_box = {
type = "fixed",
fixed = {
{ -0.5, -0.5, -0.40, 0.5, 0.5, -0.50},
},
},
selection_box = {
type = "fixed",
fixed = {
{ -0.5, -0.5, -0.40, 0.5, 0.5, -0.50},
},
},
is_ground_content = false,
})
---------------------------------------------------------------------------------------
-- a very small wooden slab
---------------------------------------------------------------------------------------
minetest.register_node("cottages:wood_flat", {
description = S("flat wooden planks"),
drawtype = "nodebox",
-- top, bottom, side1, side2, inner, outer
tiles = {"cottages_minimal_wood.png"},
paramtype = "light",
paramtype2 = "facedir",
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2},
node_box = {
type = "fixed",
fixed = {
{ -0.5, -0.5, -0.50, 0.5, -0.5+1/16, 0.50},
},
},
selection_box = {
type = "fixed",
fixed = {
{ -0.5, -0.5, -0.50, 0.5, -0.5+1/16, 0.50},
},
},
is_ground_content = false,
on_place = minetest.rotate_node,
})
---------------------------------------------------------------------------------------
-- useful for building tents
---------------------------------------------------------------------------------------
minetest.register_node("cottages:wool_tent", {
description = S("wool for tents"),
drawtype = "nodebox",
-- top, bottom, side1, side2, inner, outer
tiles = {"cottages_wool.png"},
paramtype = "light",
paramtype2 = "facedir",
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2},
node_box = {
type = "fixed",
fixed = {
{ -0.5, -0.5, -0.50, 0.5, -0.5+1/16, 0.50},
},
},
selection_box = {
type = "fixed",
fixed = {
{ -0.5, -0.5, -0.50, 0.5, -0.5+1/16, 0.50},
},
},
is_ground_content = false,
on_place = minetest.rotate_node,
})
-- a fallback for cases in which there is no wool
minetest.register_node("cottages:wool", {
description = "Wool",
tiles = {"cottages_wool.png"},
is_ground_content = false,
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=3,flammable=3,wool=1},
})
---------------------------------------------------------------------------------------
-- crafting receipes
@ -129,9 +212,9 @@ minetest.register_node("cottages:glass_pane", {
minetest.register_craft({
output = "cottages:wagon_wheel 3",
recipe = {
{"default:iron_lump", "default:stick", "default:iron_lump" },
{"default:stick", "default:steel_ingot", "default:stick" },
{"default:iron_lump", "default:stick", "default:iron_lump" }
{cottages.craftitem_iron, cottages.craftitem_stick, cottages.craftitem_iron },
{cottages.craftitem_stick, cottages.craftitem_steel, cottages.craftitem_stick },
{cottages.craftitem_iron, cottages.craftitem_stick, cottages.craftitem_iron }
}
})
@ -140,7 +223,7 @@ minetest.register_craft({
output = "cottages:feldweg 4",
recipe = {
{"", "cottages:wagon_wheel", "" },
{"default:dirt","default:dirt","default:dirt" }
{cottages.craftitem_dirt,cottages.craftitem_dirt,cottages.craftitem_dirt }
},
replacements = { {'cottages:wagon_wheel', 'cottages:wagon_wheel'}, }
})
@ -148,8 +231,8 @@ minetest.register_craft({
minetest.register_craft({
output = "cottages:loam 4",
recipe = {
{"default:sand" },
{"default:clay"}
{cottages.craftitem_sand},
{cottages.craftitem_clay}
}
})
@ -164,8 +247,45 @@ minetest.register_craft({
minetest.register_craft({
output = "cottages:glass_pane 4",
recipe = {
{"default:stick", "default:stick", "default:stick" },
{"default:stick", "default:glass", "default:stick" },
{"default:stick", "default:stick", "default:stick" }
{cottages.craftitem_stick, cottages.craftitem_stick, cottages.craftitem_stick },
{cottages.craftitem_stick, cottages.craftitem_glass, cottages.craftitem_stick },
{cottages.craftitem_stick, cottages.craftitem_stick, cottages.craftitem_stick }
}
})
minetest.register_craft({
output = "cottages:glass_pane_side",
recipe = {
{"cottages:glass_pane"},
}
})
minetest.register_craft({
output = "cottages:glass_pane",
recipe = {
{"cottages:glass_pane_side"},
}
})
minetest.register_craft({
output = "cottages:wood_flat 16",
recipe = {
{cottages.craftitem_stick, "farming:string",cottages.craftitem_stick },
{cottages.craftitem_stick, "", cottages.craftitem_stick },
}
})
minetest.register_craft({
output = "cottages:wool_tent 2",
recipe = {
{"farming:string", "farming:string"},
{"",cottages.craftitem_stick}
}
})
minetest.register_craft({
output = "cottages:wool",
recipe = {
{"cottages:wool_tent", "cottages:wool_tent"}
}
})

View File

@ -1,10 +1,5 @@
-- Boilerplate to support localized strings if intllib mod is installed.
local S
if intllib then
S = intllib.Getter()
else
S = function(s) return s end
end
local S = cottages.S
---------------------------------------------------------------------------------------
-- roof parts
@ -18,11 +13,10 @@ cottages.register_roof = function( name, tiles, basic_material, homedecor_altern
minetest.register_node("cottages:roof_"..name, {
description = S("Roof "..name),
drawtype = "nodebox",
--tiles = {"default_tree.png","default_wood.png","default_wood.png","default_wood.png","default_wood.png","default_tree.png"},
--tiles = {cottages.textures_roof_wood,cottages.texture_roof_sides,cottages.texture_roof_sides,cottages.texture_roof_sides,cottages.texture_roof_sides,cottages.textures_roof_wood},
tiles = tiles,
paramtype = "light",
paramtype2 = "facedir",
is_ground_content = true,
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2},
node_box = {
type = "fixed",
@ -38,6 +32,7 @@ cottages.register_roof = function( name, tiles, basic_material, homedecor_altern
{-0.5, 0, 0, 0.5, 0.5, 0.5},
},
},
is_ground_content = false,
})
-- a better roof than the normal stairs; this one is for usage directly on top of walls (it has the form of a stair)
@ -45,12 +40,9 @@ cottages.register_roof = function( name, tiles, basic_material, homedecor_altern
description = S("Roof connector "..name),
drawtype = "nodebox",
-- top, bottom, side1, side2, inner, outer
--tiles = {"default_tree.png","default_wood.png","default_tree.png","default_tree.png","default_wood.png","default_tree.png"},
--tiles = {"darkage_straw.png","default_wood.png","darkage_straw.png","darkage_straw.png","darkage_straw.png","darkage_straw.png"},
tiles = tiles,
paramtype = "light",
paramtype2 = "facedir",
is_ground_content = true,
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2},
node_box = {
type = "fixed",
@ -66,6 +58,7 @@ cottages.register_roof = function( name, tiles, basic_material, homedecor_altern
{-0.5, 0, 0, 0.5, 0.5, 0.5},
},
},
is_ground_content = false,
})
-- this one is the slab version of the above roof
@ -73,12 +66,10 @@ cottages.register_roof = function( name, tiles, basic_material, homedecor_altern
description = S("Roof (flat) "..name),
drawtype = "nodebox",
-- top, bottom, side1, side2, inner, outer
--tiles = {"default_tree.png","default_wood.png","default_tree.png","default_tree.png","default_wood.png","default_tree.png"},
-- this one is from all sides - except from the underside - of the given material
tiles = { tiles[1], tiles[2], tiles[1], tiles[1], tiles[1], tiles[1] };
paramtype = "light",
paramtype2 = "facedir",
is_ground_content = true,
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2},
node_box = {
type = "fixed",
@ -92,6 +83,7 @@ cottages.register_roof = function( name, tiles, basic_material, homedecor_altern
{-0.5, -0.5, -0.5, 0.5, 0, 0.5},
},
},
is_ground_content = false,
})
@ -127,7 +119,7 @@ cottages.register_roof = function( name, tiles, basic_material, homedecor_altern
output = "cottages:roof_connector_"..name,
recipe = {
{'cottages:roof_'..name },
{'default:wood' },
{cottages.craftitem_wood },
}
})
@ -155,26 +147,40 @@ end -- of cottages.register_roof( name, tiles, basic_material )
-- add the diffrent roof types
---------------------------------------------------------------------------------------
cottages.register_roof( 'straw',
{"cottages_darkage_straw.png","cottages_darkage_straw.png","cottages_darkage_straw.png","cottages_darkage_straw.png","cottages_darkage_straw.png","cottages_darkage_straw.png"},
{"cottages_darkage_straw.png","cottages_darkage_straw.png",
"cottages_darkage_straw.png","cottages_darkage_straw.png",
"cottages_darkage_straw.png","cottages_darkage_straw.png"},
'cottages:straw_mat', nil );
cottages.register_roof( 'reet',
{"cottages_reet.png","cottages_reet.png","cottages_reet.png","cottages_reet.png","cottages_reet.png","cottages_reet.png"},
'default:papyrus', nil );
{"cottages_reet.png","cottages_reet.png",
"cottages_reet.png","cottages_reet.png",
"cottages_reet.png","cottages_reet.png"},
cottages.craftitem_papyrus, nil );
cottages.register_roof( 'wood',
{"default_tree.png","default_wood.png","default_wood.png","default_wood.png","default_wood.png","default_tree.png"},
'default:wood', nil);
{cottages.textures_roof_wood, cottages.texture_roof_sides,
cottages.texture_roof_sides, cottages.texture_roof_sides,
cottages.texture_roof_sides, cottages.textures_roof_wood},
cottages.craftitem_wood, nil);
cottages.register_roof( 'black',
{"cottages_homedecor_shingles_asphalt.png","default_wood.png","default_wood.png","default_wood.png","default_wood.png","cottages_homedecor_shingles_asphalt.png"},
'homedecor:shingles_asphalt', 'default:coal_lump');
{"cottages_homedecor_shingles_asphalt.png", cottages.texture_roof_sides,
cottages.texture_roof_sides, cottages.texture_roof_sides,
cottages.texture_roof_sides, "cottages_homedecor_shingles_asphalt.png"},
'homedecor:shingles_asphalt', cottages.craftitem_coal_lump);
cottages.register_roof( 'red',
{"cottages_homedecor_shingles_terracotta.png","default_wood.png","default_wood.png","default_wood.png","default_wood.png","cottages_homedecor_shingles_terracotta.png"},
'homedecor:shingles_terracotta', 'default:clay_brick');
{"cottages_homedecor_shingles_terracotta.png", cottages.texture_roof_sides,
cottages.texture_roof_sides, cottages.texture_roof_sides,
cottages.texture_roof_sides, "cottages_homedecor_shingles_terracotta.png"},
'homedecor:shingles_terracotta', cottages.craftitem_clay_brick);
cottages.register_roof( 'brown',
{"cottages_homedecor_shingles_wood.png","default_wood.png","default_wood.png","default_wood.png","default_wood.png","cottages_homedecor_shingles_wood.png"},
'homedecor:shingles_wood', 'default:dirt');
{"cottages_homedecor_shingles_wood.png", cottages.texture_roof_sides,
cottages.texture_roof_sides, cottages.texture_roof_sides,
cottages.texture_roof_sides, "cottages_homedecor_shingles_wood.png"},
'homedecor:shingles_wood', cottages.craftitem_dirt);
cottages.register_roof( 'slate',
{"cottages_slate.png","default_wood.png","cottages_slate.png","cottages_slate.png","default_wood.png","cottages_slate.png"},
'default:stone', nil);
{"cottages_slate.png", cottages.texture_roof_sides,
"cottages_slate.png", "cottages_slate.png",
cottages.texture_roof_sides,"cottages_slate.png"},
cottages.craftitem_stone, nil);
---------------------------------------------------------------------------------------
@ -182,16 +188,17 @@ cottages.register_roof( 'slate',
---------------------------------------------------------------------------------------
minetest.register_node("cottages:slate_vertical", {
description = S("Vertical Slate"),
tiles = {"cottages_slate.png","default_wood.png","cottages_slate.png","cottages_slate.png","default_wood.png","cottages_slate.png"},
tiles = {"cottages_slate.png",cottages.texture_roof_sides,"cottages_slate.png","cottages_slate.png",cottages.texture_roof_sides,"cottages_slate.png"},
paramtype2 = "facedir",
groups = {cracky=2, stone=1},
sounds = default.node_sound_stone_defaults(),
is_ground_content = false,
})
minetest.register_craft({
output = "cottages:slate_vertical",
recipe = { {'default:stone', 'default:wood', '' }
recipe = { {cottages.craftitem_stone, cottages.craftitem_wood, '' }
}
});
@ -203,12 +210,13 @@ minetest.register_node("cottages:reet", {
tiles = {"cottages_reet.png"},
groups = {snappy=3,choppy=3,oddly_breakable_by_hand=3,flammable=3},
sounds = default.node_sound_wood_defaults(),
is_ground_content = false,
})
minetest.register_craft({
output = "cottages:reet",
recipe = { {'default:papyrus','default:papyrus'},
{'default:papyrus','default:papyrus'},
recipe = { {cottages.craftitem_papyrus,cottages.craftitem_papyrus},
{cottages.craftitem_papyrus,cottages.craftitem_papyrus},
},
})

View File

@ -4,14 +4,21 @@
-- * straw mat - for animals and very poor NPC; also basis for other straw things
-- * straw bale - well, just a good source for building and decoration
-- Boilerplate to support localized strings if intllib mod is installed.
local S
if intllib then
S = intllib.Getter()
else
S = function(s) return s end
local S = cottages.S
local cottages_can_use = function( meta, player )
if( not( player) or not( meta )) then
return false;
end
local pname = player:get_player_name();
local owner = meta:get_string('owner' );
if( not(owner) or owner=="" or owner==pname ) then
return true;
end
return false;
end
-- an even simpler from of bed - usually for animals
-- it is a nodebox and not wallmounted because that makes it easier to replace beds with straw mats
minetest.register_node("cottages:straw_mat", {
@ -23,7 +30,6 @@ minetest.register_node("cottages:straw_mat", {
sunlight_propagates = true,
paramtype = 'light',
paramtype2 = "facedir",
is_ground_content = true,
walkable = false,
groups = { snappy = 3 },
sounds = default.node_sound_leaves_defaults(),
@ -38,7 +44,8 @@ minetest.register_node("cottages:straw_mat", {
fixed = {
{-0.48, -0.5,-0.48, 0.48, -0.25, 0.48},
}
}
},
is_ground_content = false,
})
-- straw bales are a must for farming environments; if you for some reason do not have the darkage mod installed, this here gets you a straw bale
@ -61,7 +68,8 @@ minetest.register_node("cottages:straw_bale", {
fixed = {
{-0.45, -0.5,-0.45, 0.45, 0.45, 0.45},
}
}
},
is_ground_content = false,
})
-- just straw
@ -72,17 +80,34 @@ minetest.register_node("cottages:straw", {
groups = {snappy=3,choppy=3,oddly_breakable_by_hand=3,flammable=3},
sounds = default.node_sound_wood_defaults(),
-- the bale is slightly smaller than a full node
is_ground_content = false,
})
local cottages_formspec_treshing_floor =
"size[8,8]"..
"image[1.5,0;1,1;"..cottages.texture_stick.."]"..
"image[0,1;1,1;farming_wheat.png]"..
"list[current_name;harvest;1,1;2,1;]"..
"list[current_name;straw;5,0;2,2;]"..
"list[current_name;seeds;5,2;2,2;]"..
"label[1,0.5;"..S("Harvested wheat:").."]"..
"label[4,0.0;"..S("Straw:").."]"..
"label[4,2.0;"..S("Seeds:").."]"..
"label[0,-0.5;"..S("Threshing floor").."]"..
"label[0,2.5;"..S("Punch threshing floor with a stick").."]"..
"label[0,3.0;"..S("to get straw and seeds from wheat.").."]"..
"list[current_player;main;0,4;8,4;]";
minetest.register_node("cottages:threshing_floor", {
drawtype = "nodebox",
description = S("threshing floor"),
-- TODO: stone also looks pretty well for this
tiles = {"default_junglewood.png^farming_wheat.png","default_junglewood.png","default_junglewood.png^default_stick.png"},
tiles = {"cottages_junglewood.png^farming_wheat.png","cottages_junglewood.png","cottages_junglewood.png^"..cottages.texture_stick},
paramtype = "light",
paramtype2 = "facedir",
groups = {cracky=2},
is_ground_content = false,
node_box = {
type = "fixed",
fixed = {
@ -102,34 +127,22 @@ minetest.register_node("cottages:threshing_floor", {
}
},
on_construct = function(pos)
local meta = minetest.env:get_meta(pos);
local meta = minetest.get_meta(pos);
meta:set_string("infotext", S("Threshing floor"));
local inv = meta:get_inventory();
inv:set_size("harvest", 2);
inv:set_size("straw", 4);
inv:set_size("seeds", 4);
meta:set_string("formspec", cottages_formspec_treshing_floor );
end,
after_place_node = function(pos, placer)
local meta = minetest.get_meta(pos);
meta:set_string("owner", placer:get_player_name() or "");
meta:set_string("infotext", S("Threshing floor (owned by %s)"):format(meta:get_string("owner") or ""));
meta:set_string("formspec",
"size[8,8]"..
"image[1.5,0;1,1;default_stick.png]"..
"image[0,1;1,1;farming_wheat.png]"..
"list[current_name;harvest;1,1;2,1;]"..
"list[current_name;straw;5,0;2,2;]"..
"list[current_name;seeds;5,2;2,2;]"..
"label[1,0.5;"..S("Harvested wheat:").."]"..
"label[4,0.0;"..S("Straw:").."]"..
"label[4,2.0;"..S("Seeds:").."]"..
"label[0,-0.5;"..S("Threshing floor").."]"..
"label[2.5,-0.5;"..S("Owner: %s"):format(meta:get_string("owner") or "").."]"..
"label[0,2.5;"..S("Punch threshing floor with a stick").."]"..
"label[0,3.0;"..S("to get straw and seeds from wheat.").."]"..
"list[current_player;main;0,4;8,4;]");
meta:set_string("formspec",
cottages_formspec_treshing_floor..
"label[2.5,-0.5;"..S("Owner: %s"):format(meta:get_string("owner") or "").."]" );
end,
can_dig = function(pos,player)
@ -151,7 +164,7 @@ minetest.register_node("cottages:threshing_floor", {
allow_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player)
local meta = minetest.get_meta(pos)
if( player and player:get_player_name() ~= meta:get_string('owner' )) then
if( not( cottages_can_use( meta, player ))) then
return 0
end
return count;
@ -166,7 +179,7 @@ minetest.register_node("cottages:threshing_floor", {
return 0;
end
if( player and player:get_player_name() ~= meta:get_string('owner' )) then
if( not( cottages_can_use( meta, player ))) then
return 0
end
return stack:get_count()
@ -174,7 +187,7 @@ minetest.register_node("cottages:threshing_floor", {
allow_metadata_inventory_take = function(pos, listname, index, stack, player)
local meta = minetest.get_meta(pos)
if( player and player:get_player_name() ~= meta:get_string('owner' )) then
if( not( cottages_can_use( meta, player ))) then
return 0
end
return stack:get_count()
@ -187,12 +200,16 @@ minetest.register_node("cottages:threshing_floor", {
end
-- only punching with a normal stick is supposed to work
local wielded = puncher:get_wielded_item();
if( not( wielded ) or not( wielded:get_name() ) or wielded:get_name() ~= 'default:stick') then
if( not( wielded )
or not( wielded:get_name() )
or not( minetest.registered_items[ wielded:get_name() ])
or not( minetest.registered_items[ wielded:get_name() ].groups )
or not( minetest.registered_items[ wielded:get_name() ].groups.stick )) then
return;
end
local name = puncher:get_player_name();
local meta = minetest.env:get_meta(pos);
local meta = minetest.get_meta(pos);
local inv = meta:get_inventory();
local input = inv:get_list('harvest');
@ -205,6 +222,10 @@ minetest.register_node("cottages:threshing_floor", {
or( not( stack2:is_empty()) and stack2:get_name() ~= 'farming:wheat')) then
-- minetest.chat_send_player( name, 'One of the input slots contains something else than wheat, or there is no wheat at all.');
-- update the formspec
meta:set_string("formspec",
cottages_formspec_treshing_floor..
"label[2.5,-0.5;"..S("Owner: %s"):format(meta:get_string("owner") or "").."]" );
return;
end
@ -218,31 +239,110 @@ minetest.register_node("cottages:threshing_floor", {
anz_wheat = found_wheat;
end
local overlay1 = "^farming_wheat.png";
local overlay2 = "^cottages_darkage_straw.png";
local overlay3 = "^"..cottages.texture_wheat_seed;
-- this can be enlarged by a multiplicator if desired
local anz_straw = anz_wheat;
local anz_seeds = anz_wheat;
if( inv:room_for_item('straw','cottages:straw_mat '..tostring( anz_straw ))
and inv:room_for_item('seeds','farming:seed_wheat '..tostring( anz_seeds ))) then
and inv:room_for_item('seeds',cottages.craftitem_seed_wheat..' '..tostring( anz_seeds ))) then
-- the player gets two kind of output
inv:add_item("straw",'cottages:straw_mat '..tostring( anz_straw ));
inv:add_item("seeds",'farming:seed_wheat '..tostring( anz_seeds ));
inv:add_item("seeds",cottages.craftitem_seed_wheat..' '..tostring( anz_seeds ));
-- consume the wheat
inv:remove_item("harvest", 'farming:wheat '..tostring( anz_wheat ));
local anz_left = found_wheat - anz_wheat;
if( anz_left > 0 ) then
minetest.chat_send_player( name, S('You have threshed %s wheat (%s are left).'):format(anz_wheat,anz_left));
-- minetest.chat_send_player( name, S('You have threshed %s wheat (%s are left).'):format(anz_wheat,anz_left));
else
minetest.chat_send_player( name, S('You have threshed the last %s wheat.'):format(anz_wheat));
-- minetest.chat_send_player( name, S('You have threshed the last %s wheat.'):format(anz_wheat));
overlay1 = "";
end
end
local hud0 = puncher:hud_add({
hud_elem_type = "image",
scale = {x = 38, y = 38},
text = "cottages_junglewood.png^[colorize:#888888:128",
position = {x = 0.5, y = 0.5},
alignment = {x = 0, y = 0}
});
local hud1 = puncher:hud_add({
hud_elem_type = "image",
scale = {x = 15, y = 15},
text = "cottages_junglewood.png"..overlay1,
position = {x = 0.4, y = 0.5},
alignment = {x = 0, y = 0}
});
local hud2 = puncher:hud_add({
hud_elem_type = "image",
scale = {x = 15, y = 15},
text = "cottages_junglewood.png"..overlay2,
position = {x = 0.6, y = 0.35},
alignment = {x = 0, y = 0}
});
local hud3 = puncher:hud_add({
hud_elem_type = "image",
scale = {x = 15, y = 15},
text = "cottages_junglewood.png"..overlay3,
position = {x = 0.6, y = 0.65},
alignment = {x = 0, y = 0}
});
local hud4 = puncher:hud_add({
hud_elem_type = "text",
text = tostring( found_wheat-anz_wheat ),
number = 0x00CC00,
alignment = {x = 0, y = 0},
scale = {x = 100, y = 100}, -- bounding rectangle of the text
position = {x = 0.4, y = 0.5},
});
if( not( anz_straw )) then
anz_straw = "0";
end
if( not( anz_seed )) then
anz_seed = "0";
end
local hud5 = puncher:hud_add({
hud_elem_type = "text",
text = '+ '..tostring( anz_straw )..' straw',
number = 0x00CC00,
alignment = {x = 0, y = 0},
scale = {x = 100, y = 100}, -- bounding rectangle of the text
position = {x = 0.6, y = 0.35},
});
local hud6 = puncher:hud_add({
hud_elem_type = "text",
text = '+ '..tostring( anz_seed )..' seeds',
number = 0x00CC00,
alignment = {x = 0, y = 0},
scale = {x = 100, y = 100}, -- bounding rectangle of the text
position = {x = 0.6, y = 0.65},
});
minetest.after(2, function()
if( puncher ) then
puncher:hud_remove(hud1);
puncher:hud_remove(hud2);
puncher:hud_remove(hud3);
puncher:hud_remove(hud4);
puncher:hud_remove(hud5);
puncher:hud_remove(hud6);
puncher:hud_remove(hud0);
end
end)
end,
})
minetest.register_node("cottages:handmill", {
drawtype = "nodebox",
description = S("Mill, powered by punching"),
@ -407,18 +507,18 @@ minetest.register_node("cottages:handmill", {
minetest.register_craft({
output = "cottages:straw_mat 6",
recipe = {
{'default:cobble','',''},
{"farming:wheat_harvested", "farming:wheat_harvested", "farming:wheat_harvested", },
{cottages.craftitem_stone,'',''},
{"farming:wheat", "farming:wheat", "farming:wheat", },
},
replacements = {{ 'default:cobble', "farming:seed_wheat 3" }},
replacements = {{ cottages.craftitem_stone, cottages.craftitem_seed_wheat.." 3" }},
})
-- this is a better way to get straw mats
minetest.register_craft({
output = "cottages:threshing_floor",
recipe = {
{"default:junglewood", "default:chest_locked", "default:junglewood", },
{"default:junglewood", "default:stone", "default:junglewood", },
{cottages.craftitem_junglewood, cottages.craftitem_chest_locked, cottages.craftitem_junglewood, },
{cottages.craftitem_junglewood, cottages.craftitem_stone, cottages.craftitem_junglewood, },
},
})
@ -426,9 +526,9 @@ minetest.register_craft({
minetest.register_craft({
output = "cottages:handmill",
recipe = {
{"default:stick", "default:stone", "", },
{"", "default:steel_ingot", "", },
{"", "default:stone", "", },
{cottages.craftitem_stick, cottages.craftitem_stone, "", },
{"", cottages.craftitem_steel, "", },
{"", cottages.craftitem_stone, "", },
},
})

Binary file not shown.

Before

Width:  |  Height:  |  Size: 41 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 272 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 254 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 357 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 233 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 306 B

View File

@ -2,9 +2,6 @@ function itemdrop_globalstep(dtime)
for _,player in ipairs(minetest.get_connected_players()) do
if player:get_hp() > 0 or not minetest.setting_getbool("enable_damage") then
local pos = player:getpos()
if ( pos == nil ) then
return
end
pos.y = pos.y+0.5
local inv = player:get_inventory()
@ -36,6 +33,10 @@ function itemdrop_globalstep(dtime)
vec.y = vec.y*3
vec.z = vec.z*3
object:setvelocity(vec)
object:get_luaentity().physical_state = false
object:get_luaentity().object:set_properties({
physical = false
})
minetest.after(1, function(args)
local lua = object:get_luaentity()
@ -54,6 +55,10 @@ function itemdrop_globalstep(dtime)
object:remove()
else
object:setvelocity({x=0,y=0,z=0})
object:get_luaentity().physical_state = true
object:get_luaentity().object:set_properties({
physical = true
})
end
end, {player, object})

Binary file not shown.

View File

@ -92,6 +92,8 @@ local buildings = {
{scm="well_7", yoff= -1, orients={0}, farming_plus=0, avoid='well', typ='well', weight={medieval=1/12, single=1/2}, pervillage=4},
{scm="well_8", yoff= 0, orients={0}, farming_plus=0, avoid='well', typ='well', weight={medieval=1/12, single=1/2}, pervillage=4},
{scm="allmende_3_90", yoff=-2, orients={0}, farming_plus=0, avoid='', typ='allmende', weight={medieval=3,taoki=3,nore=3,logcabin=1,grasshut=1}, pervillage=1},
{scm="tree_place_1", yoff= 1, orients={0}, farming_plus=0, avoid='', typ='village_square', weight={medieval=1/12}, pervillage=1},
{scm="tree_place_2", yoff= 1, orients={0}, farming_plus=0, avoid='', typ='village_square', weight={medieval=1/12}, pervillage=1},
{scm="tree_place_3", yoff= 1, orients={0}, farming_plus=0, avoid='', typ='village_square', weight={medieval=1/12}, pervillage=1},

View File

@ -30,7 +30,7 @@ mg_villages.REQUIRE_PRIV_FOR_TELEPORT = true;
mg_villages.ENABLE_PROTECTION = true;
-- the first village - the one the player spawns in - will be of this type
mg_villages.FIRST_VILLAGE_TYPE = 'nore';
mg_villages.FIRST_VILLAGE_TYPE = 'medieval';
-- choose the debug level you want
mg_villages.DEBUG_LEVEL = mg_villages.DEBUG_LEVEL_NONE
@ -162,7 +162,7 @@ mg_villages.VILLAGE_CHECK_COUNT = 1
mg_villages.VILLAGE_CHANCE = 28
-- min and max size are only used in case of them beeing not provided by the village type (see buildings.lua)
mg_villages.VILLAGE_MIN_SIZE = 10
mg_villages.VILLAGE_MAX_SIZE = 30 --55
mg_villages.VILLAGE_MAX_SIZE = 15 --55
mg_villages.FIRST_ROADSIZE = 3
mg_villages.BIG_ROAD_CHANCE = 0

View File

@ -10,12 +10,14 @@ mg_villages.get_town_id_at_pos = function( pos )
if( mg_villages.inside_village_area( pos.x, pos.z, v, village_noise)) then
local node = minetest.get_node( pos );
-- leaves can be digged in villages
if( node
and node.name
and minetest.registered_nodes[ node.name ]
and minetest.registered_nodes[ node.name ].groups
and minetest.registered_nodes[ node.name ].groups.leaves ) then
return nil;
-- bones can be digged in villages
elseif( node
and node.name
and node.name == 'bones:bones' ) then
@ -45,6 +47,9 @@ minetest.is_protected = function(pos, name)
and p.z <= pos.z and (p.z + p.bsizez) >= pos.z) then
if( p.owner and p.owner == name ) then
return false;
-- the allmende can be used by all
elseif( mg_villages.BUILDINGS[p.btype] and mg_villages.BUILDINGS[p.btype].typ=="allmende" ) then
return false;
-- the player cannot modify other plots, even though he may be house owner of another house and be allowed to modify common ground
else
return true;

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -19,12 +19,12 @@
-- plant_frequency = 1 The higher this value is, the less plants are placed.
local village_type_data_list = {
nore = { min = 15, max = 30, space_between_buildings=1, mods={}, texture = 'default_stone_brick.png',
nore = { min = 20, max = 40, space_between_buildings=1, mods={}, texture = 'default_stone_brick.png',
replacement_function = mg_villages.replacements_nore },
taoki = { min = 15, max = 30, space_between_buildings=1, mods={}, texture = 'default_brick.png' ,
taoki = { min = 30, max = 70, space_between_buildings=1, mods={}, texture = 'default_brick.png' ,
sapling_divisor = 5, plant_type = 'farming:cotton_8', plant_frequency = 1,
replacement_function = mg_villages.replacements_taoki },
medieval = { min = 15, max = 30, space_between_buildings=2, mods={'cottages'}, texture = 'cottages_darkage_straw.png', -- they often have straw roofs
medieval = { min = 25, max = 60, space_between_buildings=2, mods={'cottages'}, texture = 'cottages_darkage_straw.png', -- they often have straw roofs
sapling_divisor = 10, plant_type = 'farming:wheat_8', plant_frequency = 1,
replacement_function = mg_villages.replacements_medieval,
roadsize_list = {2,3,4,5,6},
@ -39,9 +39,9 @@ local village_type_data_list = {
replacement_function = mg_villages.replacements_claytrader },
logcabin = { min = 15, max = 30, space_between_buildings=1, mods={'cottages'}, texture = 'default_wood.png',
replacement_function = mg_villages.replacements_logcabin },
canadian = { min = 10, max = 45, space_between_buildings=1, mods={'hdb','nbu'}, texture = 'wool_white.png',
canadian = { min = 40, max = 110, space_between_buildings=1, mods={'hdb','nbu'}, texture = 'wool_white.png',
replacement_function = mg_villages.replacements_canadian },
grasshut = { min = 10, max = 20, space_between_buildings=1, mods={'dryplants'}, texture = 'dryplants_reed.png',
grasshut = { min = 10, max = 40, space_between_buildings=1, mods={'dryplants'}, texture = 'dryplants_reed.png',
replacement_function = mg_villages.replacements_grasshut },
tent = { min = 5, max = 20, space_between_buildings=2, mods={'cottages'}, texture = 'wool_white.png', name_preifx = 'Tent at',
replacement_function = mg_villages.replacements_tent },
@ -97,6 +97,9 @@ mg_villages.add_village_type = function( type_name, v )
end
if( not( v.plant_type )) then
v.plant_type = 'default:grass_5';
if( not( minetest.registered_nodes[ v.plant_type ])) then
v.plant_type = 'default:dry_shrub';
end
end
if( not( v.plant_frequency )) then
v.plant_frequency = 3;