diff --git a/mods/soccer/LICENSE.txt b/mods/soccer/LICENSE.txt new file mode 100644 index 00000000..ebac2db4 --- /dev/null +++ b/mods/soccer/LICENSE.txt @@ -0,0 +1,25 @@ + +Copyright (c) 2013, Diego Martínez +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. diff --git a/mods/soccer/README.txt b/mods/soccer/README.txt new file mode 100644 index 00000000..d860a23e --- /dev/null +++ b/mods/soccer/README.txt @@ -0,0 +1,24 @@ + +Soccer Mod +---------- + +Play soccer on Minetest! + +This currently only provides the ball; the actual logic for implementing a match +will be implemented in the future. For now, you can use Mesecons Wooden Pressure +Plates along with some logic to at least handle scoring. Goals are also provided +but have no functionality. + +The ball is not craftable ATM. Use /giveme soccer:ball_item, and place it with +right-click. You can take it again by punching it. + +You can push the ball by standing near it, and kick it by holding the "sneak" +key (by default "Shift"). The ball will get pushed/kicked in the direction the +player is facing (you can center-on the ball by looking up). + + +Special thanks +-------------- +- 12Me21: Ideas about the crafting recipe. +- ecube: Original (black) texture. +- Xiug: Ideas and textures. diff --git a/mods/soccer/depends.txt b/mods/soccer/depends.txt new file mode 100644 index 00000000..470ec30b --- /dev/null +++ b/mods/soccer/depends.txt @@ -0,0 +1,2 @@ +default +wool diff --git a/mods/soccer/init.lua b/mods/soccer/init.lua new file mode 100644 index 00000000..14fed85a --- /dev/null +++ b/mods/soccer/init.lua @@ -0,0 +1,124 @@ + +local function reg_ball(color) + local ball_item_name = "soccer:ball_" .. color .. "_item" + local ball_ent_name = "soccer:ball_" .. color .. "_entity" + + minetest.register_entity(ball_ent_name, { + physical = true, + hp_max = 32767, + collide_with_objects = false, + visual = "mesh", + visual_size = {x = 1.125, y = 1.125, z = 1.125}, + mesh = "soccer_ball.x", + groups = {immortal = true}, + textures = {"soccer_ball_" .. color .. ".png"}, + collisionbox = { -0.25, -0.25, -0.25, 0.25, 0.25, 0.25}, + timer = 0, + + on_step = function(self, dtime) + self.timer = self.timer + dtime + if self.timer >= 0.2 then + self.object:setacceleration({x = 0, y = -14.5, z = 0}) + self.timer = 0 + local vel = self.object:getvelocity() + local p = self.object:getpos(); + p.y = p.y - 0.5 + if minetest.registered_nodes[minetest.env:get_node(p).name].walkable then + vel.x = vel.x * 0.9 + if vel.y < 0 then vel.y = vel.y * -0.6 end + vel.z = vel.z * 0.9 + end + if (math.abs(vel.x) <= 0.1) and (math.abs(vel.z) <= 0.1) then + vel.x = 0 + vel.z = 0 + end + self.object:setvelocity(vel) + local pos = self.object:getpos() + local objs = minetest.env:get_objects_inside_radius(pos, 1) + local player_count = 0 + local final_dir = {x = 0, y = 0, z = 0} + for _,obj in ipairs(objs) do + if obj:is_player() then + local objdir = obj:get_look_dir() + local mul = 1 + if (obj:get_player_control().sneak) then mul = 2 end + final_dir.x = final_dir.x + (objdir.x * mul) + final_dir.y = final_dir.y + (objdir.y * mul) + final_dir.z = final_dir.z + (objdir.z * mul) + player_count = player_count + 1 + end + end + if final_dir.x ~= 0 or final_dir.y ~= 0 or final_dir.z ~= 0 then + final_dir.x = (final_dir.x * 7.2) / player_count + final_dir.y = (final_dir.y * 9.6) / player_count + final_dir.z = (final_dir.z * 7.2) / player_count + self.object:setvelocity(final_dir) + minetest.sound_play("default_dig_oddly_breakable_by_hand", {object = self.object, gain = 0.5}) + end + end + end, + + on_punch = function(self, puncher) + if puncher and puncher:is_player() then + local inv = puncher:get_inventory() + inv:add_item("main", ItemStack(ball_item_name)) + self.object:remove() + end + end, + + is_moving = function(self) + local v = self.object:getvelocity() + if (math.abs(v.x) <= 0.1) and (math.abs(v.z) <= 0.1) then + v.x = 0 + v.z = 0 + self.object:setvelocity(v) + return false + end + return true + end, + }) + + minetest.register_craftitem(ball_item_name, { + description = "Soccer Ball ("..color..")", + inventory_image = "soccer_ball_"..color.."_inv.png", + wield_scale = {x = 0.75, y = 0.75, z = 4.5}, + on_place = function(itemstack, placer, pointed_thing) + local pos = pointed_thing.above + -- pos = { x =pos.x + 0.5, y = pos.y, z = pos.z + 0.5 } + local ent = minetest.env:add_entity(pos, ball_ent_name) + minetest.log("action", placer:get_player_name() .. " placed a ball at " .. minetest.pos_to_string(pointed_thing.above) .. ".") + ent:setvelocity({x = 0, y = -14.5, z = 0}) + if not minetest.setting_getbool("creative_mode") then + itemstack:take_item() + end + return itemstack + end, + }) + + if color == "purple" then + color = "pink" + end + minetest.register_craft({ + output = ball_item_name, + recipe = { + { "", "wool:white", "" }, + { "wool:white", "wool:" .. color, "wool:white" }, + { "", "wool:white", "" }, + }, + }) + +end + +colors = { + "black", "red", "green", "blue", "yellow", "purple", +} + +for _,color in ipairs(colors) do + reg_ball(color) +end + +minetest.register_alias("ball", "soccer:ball_black_item") -- For quickly using the /give command. + +if minetest.setting_getbool("log_mods") then + minetest.log("action", "Carbone: [soccer] loaded.") +end diff --git a/mods/soccer/models/soccer_ball.x b/mods/soccer/models/soccer_ball.x new file mode 100644 index 00000000..5734fe47 --- /dev/null +++ b/mods/soccer/models/soccer_ball.x @@ -0,0 +1,1000 @@ +xof 0303txt 0032 + +Frame Root { + FrameTransformMatrix { + 1.000000, 0.000000, 0.000000, 0.000000, + 0.000000, 0.000000, 1.000000, 0.000000, + 0.000000, 1.000000,-0.000000, 0.000000, + 0.000000, 0.000000, 0.000000, 1.000000;; + } + Frame Icosphere { + FrameTransformMatrix { + 1.999878, 0.000000, 0.000000, 0.000000, + 0.000000, 2.000000, 0.000000, 0.000000, + 0.000000, 0.000000, 2.000000, 0.000000, + 0.000000, 0.000000, 0.000000, 1.000000;; + } + Mesh { //Icosphere_001 Mesh + 240; + -0.162456;-0.499995;-0.850654;, + -0.276385;-0.850640;-0.447215;, + 0.262869;-0.809012;-0.525738;, + 0.262869;-0.809012;-0.525738;, + 0.425323;-0.309011;-0.850654;, + -0.162456;-0.499995;-0.850654;, + 0.425323;-0.309011;-0.850654;, + 0.262869;-0.809012;-0.525738;, + 0.723600;-0.525720;-0.447215;, + 0.425323;-0.309011;-0.850654;, + 0.000000; 0.000000;-1.000000;, + -0.162456;-0.499995;-0.850654;, + 0.425323;-0.309011;-0.850654;, + 0.723600;-0.525720;-0.447215;, + 0.850648; 0.000000;-0.525736;, + 0.850648; 0.000000;-0.525736;, + 0.425323; 0.309011;-0.850654;, + 0.425323;-0.309011;-0.850654;, + 0.425323; 0.309011;-0.850654;, + 0.850648; 0.000000;-0.525736;, + 0.723600; 0.525720;-0.447215;, + 0.425323; 0.309011;-0.850654;, + 0.000000; 0.000000;-1.000000;, + 0.425323;-0.309011;-0.850654;, + -0.525730; 0.000000;-0.850652;, + -0.894425; 0.000000;-0.447215;, + -0.688189;-0.499997;-0.525736;, + -0.688189;-0.499997;-0.525736;, + -0.162456;-0.499995;-0.850654;, + -0.525730; 0.000000;-0.850652;, + -0.162456;-0.499995;-0.850654;, + -0.688189;-0.499997;-0.525736;, + -0.276385;-0.850640;-0.447215;, + -0.162456;-0.499995;-0.850654;, + 0.000000; 0.000000;-1.000000;, + -0.525730; 0.000000;-0.850652;, + -0.162456; 0.499995;-0.850654;, + -0.276385; 0.850640;-0.447215;, + -0.688189; 0.499997;-0.525736;, + -0.688189; 0.499997;-0.525736;, + -0.525730; 0.000000;-0.850652;, + -0.162456; 0.499995;-0.850654;, + -0.525730; 0.000000;-0.850652;, + -0.688189; 0.499997;-0.525736;, + -0.894425; 0.000000;-0.447215;, + -0.525730; 0.000000;-0.850652;, + 0.000000; 0.000000;-1.000000;, + -0.162456; 0.499995;-0.850654;, + 0.425323; 0.309011;-0.850654;, + 0.723600; 0.525720;-0.447215;, + 0.262869; 0.809012;-0.525738;, + 0.262869; 0.809012;-0.525738;, + -0.162456; 0.499995;-0.850654;, + 0.425323; 0.309011;-0.850654;, + -0.162456; 0.499995;-0.850654;, + 0.262869; 0.809012;-0.525738;, + -0.276385; 0.850640;-0.447215;, + -0.162456; 0.499995;-0.850654;, + 0.000000; 0.000000;-1.000000;, + 0.425323; 0.309011;-0.850654;, + 0.850648; 0.000000;-0.525736;, + 0.723600;-0.525720;-0.447215;, + 0.951058;-0.309013; 0.000000;, + 0.951058;-0.309013; 0.000000;, + 0.951058; 0.309013; 0.000000;, + 0.850648; 0.000000;-0.525736;, + 0.951058; 0.309013; 0.000000;, + 0.951058;-0.309013; 0.000000;, + 0.894425; 0.000000; 0.447215;, + 0.723600; 0.525720;-0.447215;, + 0.850648; 0.000000;-0.525736;, + 0.951058; 0.309013; 0.000000;, + 0.262869;-0.809012;-0.525738;, + -0.276385;-0.850640;-0.447215;, + 0.000000;-1.000000; 0.000000;, + 0.000000;-1.000000; 0.000000;, + 0.587786;-0.809017; 0.000000;, + 0.262869;-0.809012;-0.525738;, + 0.587786;-0.809017; 0.000000;, + 0.000000;-1.000000; 0.000000;, + 0.276385;-0.850640; 0.447215;, + 0.723600;-0.525720;-0.447215;, + 0.262869;-0.809012;-0.525738;, + 0.587786;-0.809017; 0.000000;, + -0.688189;-0.499997;-0.525736;, + -0.894425; 0.000000;-0.447215;, + -0.951058;-0.309013; 0.000000;, + -0.951058;-0.309013; 0.000000;, + -0.587786;-0.809017; 0.000000;, + -0.688189;-0.499997;-0.525736;, + -0.587786;-0.809017; 0.000000;, + -0.951058;-0.309013; 0.000000;, + -0.723600;-0.525720; 0.447215;, + -0.276385;-0.850640;-0.447215;, + -0.688189;-0.499997;-0.525736;, + -0.587786;-0.809017; 0.000000;, + -0.688189; 0.499997;-0.525736;, + -0.276385; 0.850640;-0.447215;, + -0.587786; 0.809017; 0.000000;, + -0.587786; 0.809017; 0.000000;, + -0.951058; 0.309013; 0.000000;, + -0.688189; 0.499997;-0.525736;, + -0.951058; 0.309013; 0.000000;, + -0.587786; 0.809017; 0.000000;, + -0.723600; 0.525720; 0.447215;, + -0.894425; 0.000000;-0.447215;, + -0.688189; 0.499997;-0.525736;, + -0.951058; 0.309013; 0.000000;, + 0.262869; 0.809012;-0.525738;, + 0.723600; 0.525720;-0.447215;, + 0.587786; 0.809017; 0.000000;, + 0.587786; 0.809017; 0.000000;, + 0.000000; 1.000000; 0.000000;, + 0.262869; 0.809012;-0.525738;, + 0.000000; 1.000000; 0.000000;, + 0.587786; 0.809017; 0.000000;, + 0.276385; 0.850640; 0.447215;, + -0.276385; 0.850640;-0.447215;, + 0.262869; 0.809012;-0.525738;, + 0.000000; 1.000000; 0.000000;, + 0.587786;-0.809017; 0.000000;, + 0.276385;-0.850640; 0.447215;, + 0.688189;-0.499997; 0.525736;, + 0.688189;-0.499997; 0.525736;, + 0.951058;-0.309013; 0.000000;, + 0.587786;-0.809017; 0.000000;, + 0.951058;-0.309013; 0.000000;, + 0.688189;-0.499997; 0.525736;, + 0.894425; 0.000000; 0.447215;, + 0.723600;-0.525720;-0.447215;, + 0.587786;-0.809017; 0.000000;, + 0.951058;-0.309013; 0.000000;, + -0.587786;-0.809017; 0.000000;, + -0.723600;-0.525720; 0.447215;, + -0.262869;-0.809012; 0.525738;, + -0.262869;-0.809012; 0.525738;, + 0.000000;-1.000000; 0.000000;, + -0.587786;-0.809017; 0.000000;, + 0.000000;-1.000000; 0.000000;, + -0.262869;-0.809012; 0.525738;, + 0.276385;-0.850640; 0.447215;, + -0.276385;-0.850640;-0.447215;, + -0.587786;-0.809017; 0.000000;, + 0.000000;-1.000000; 0.000000;, + -0.951058; 0.309013; 0.000000;, + -0.723600; 0.525720; 0.447215;, + -0.850648; 0.000000; 0.525736;, + -0.850648; 0.000000; 0.525736;, + -0.951058;-0.309013; 0.000000;, + -0.951058; 0.309013; 0.000000;, + -0.951058;-0.309013; 0.000000;, + -0.850648; 0.000000; 0.525736;, + -0.723600;-0.525720; 0.447215;, + -0.894425; 0.000000;-0.447215;, + -0.951058; 0.309013; 0.000000;, + -0.951058;-0.309013; 0.000000;, + 0.000000; 1.000000; 0.000000;, + 0.276385; 0.850640; 0.447215;, + -0.262869; 0.809012; 0.525738;, + -0.262869; 0.809012; 0.525738;, + -0.587786; 0.809017; 0.000000;, + 0.000000; 1.000000; 0.000000;, + -0.587786; 0.809017; 0.000000;, + -0.262869; 0.809012; 0.525738;, + -0.723600; 0.525720; 0.447215;, + -0.276385; 0.850640;-0.447215;, + 0.000000; 1.000000; 0.000000;, + -0.587786; 0.809017; 0.000000;, + 0.951058; 0.309013; 0.000000;, + 0.894425; 0.000000; 0.447215;, + 0.688189; 0.499997; 0.525736;, + 0.688189; 0.499997; 0.525736;, + 0.587786; 0.809017; 0.000000;, + 0.951058; 0.309013; 0.000000;, + 0.587786; 0.809017; 0.000000;, + 0.688189; 0.499997; 0.525736;, + 0.276385; 0.850640; 0.447215;, + 0.723600; 0.525720;-0.447215;, + 0.951058; 0.309013; 0.000000;, + 0.587786; 0.809017; 0.000000;, + 0.688189;-0.499997; 0.525736;, + 0.276385;-0.850640; 0.447215;, + 0.162456;-0.499995; 0.850654;, + 0.162456;-0.499995; 0.850654;, + 0.525730; 0.000000; 0.850652;, + 0.688189;-0.499997; 0.525736;, + 0.525730; 0.000000; 0.850652;, + 0.162456;-0.499995; 0.850654;, + 0.000000; 0.000000; 1.000000;, + 0.894425; 0.000000; 0.447215;, + 0.688189;-0.499997; 0.525736;, + 0.525730; 0.000000; 0.850652;, + -0.262869;-0.809012; 0.525738;, + -0.723600;-0.525720; 0.447215;, + -0.425323;-0.309011; 0.850654;, + -0.425323;-0.309011; 0.850654;, + 0.162456;-0.499995; 0.850654;, + -0.262869;-0.809012; 0.525738;, + 0.162456;-0.499995; 0.850654;, + -0.425323;-0.309011; 0.850654;, + 0.000000; 0.000000; 1.000000;, + 0.276385;-0.850640; 0.447215;, + -0.262869;-0.809012; 0.525738;, + 0.162456;-0.499995; 0.850654;, + -0.850648; 0.000000; 0.525736;, + -0.723600; 0.525720; 0.447215;, + -0.425323; 0.309011; 0.850654;, + -0.425323; 0.309011; 0.850654;, + -0.425323;-0.309011; 0.850654;, + -0.850648; 0.000000; 0.525736;, + -0.425323;-0.309011; 0.850654;, + -0.425323; 0.309011; 0.850654;, + 0.000000; 0.000000; 1.000000;, + -0.723600;-0.525720; 0.447215;, + -0.850648; 0.000000; 0.525736;, + -0.425323;-0.309011; 0.850654;, + -0.262869; 0.809012; 0.525738;, + 0.276385; 0.850640; 0.447215;, + 0.162456; 0.499995; 0.850654;, + 0.162456; 0.499995; 0.850654;, + -0.425323; 0.309011; 0.850654;, + -0.262869; 0.809012; 0.525738;, + -0.425323; 0.309011; 0.850654;, + 0.162456; 0.499995; 0.850654;, + 0.000000; 0.000000; 1.000000;, + -0.723600; 0.525720; 0.447215;, + -0.262869; 0.809012; 0.525738;, + -0.425323; 0.309011; 0.850654;, + 0.688189; 0.499997; 0.525736;, + 0.894425; 0.000000; 0.447215;, + 0.525730; 0.000000; 0.850652;, + 0.525730; 0.000000; 0.850652;, + 0.162456; 0.499995; 0.850654;, + 0.688189; 0.499997; 0.525736;, + 0.162456; 0.499995; 0.850654;, + 0.525730; 0.000000; 0.850652;, + 0.000000; 0.000000; 1.000000;, + 0.276385; 0.850640; 0.447215;, + 0.688189; 0.499997; 0.525736;, + 0.162456; 0.499995; 0.850654;; + 80; + 3;0;1;2;, + 3;3;4;5;, + 3;6;7;8;, + 3;9;10;11;, + 3;12;13;14;, + 3;15;16;17;, + 3;18;19;20;, + 3;21;22;23;, + 3;24;25;26;, + 3;27;28;29;, + 3;30;31;32;, + 3;33;34;35;, + 3;36;37;38;, + 3;39;40;41;, + 3;42;43;44;, + 3;45;46;47;, + 3;48;49;50;, + 3;51;52;53;, + 3;54;55;56;, + 3;57;58;59;, + 3;60;61;62;, + 3;63;64;65;, + 3;66;67;68;, + 3;69;70;71;, + 3;72;73;74;, + 3;75;76;77;, + 3;78;79;80;, + 3;81;82;83;, + 3;84;85;86;, + 3;87;88;89;, + 3;90;91;92;, + 3;93;94;95;, + 3;96;97;98;, + 3;99;100;101;, + 3;102;103;104;, + 3;105;106;107;, + 3;108;109;110;, + 3;111;112;113;, + 3;114;115;116;, + 3;117;118;119;, + 3;120;121;122;, + 3;123;124;125;, + 3;126;127;128;, + 3;129;130;131;, + 3;132;133;134;, + 3;135;136;137;, + 3;138;139;140;, + 3;141;142;143;, + 3;144;145;146;, + 3;147;148;149;, + 3;150;151;152;, + 3;153;154;155;, + 3;156;157;158;, + 3;159;160;161;, + 3;162;163;164;, + 3;165;166;167;, + 3;168;169;170;, + 3;171;172;173;, + 3;174;175;176;, + 3;177;178;179;, + 3;180;181;182;, + 3;183;184;185;, + 3;186;187;188;, + 3;189;190;191;, + 3;192;193;194;, + 3;195;196;197;, + 3;198;199;200;, + 3;201;202;203;, + 3;204;205;206;, + 3;207;208;209;, + 3;210;211;212;, + 3;213;214;215;, + 3;216;217;218;, + 3;219;220;221;, + 3;222;223;224;, + 3;225;226;227;, + 3;228;229;230;, + 3;231;232;233;, + 3;234;235;236;, + 3;237;238;239;; + MeshNormals { //Icosphere_001 Normals + 240; + -0.038547;-0.748789;-0.661687;, + -0.038547;-0.748789;-0.661687;, + -0.038547;-0.748789;-0.661687;, + 0.187594;-0.577345;-0.794658;, + 0.187594;-0.577345;-0.794658;, + 0.187594;-0.577345;-0.794658;, + 0.471318;-0.583121;-0.661687;, + 0.471318;-0.583121;-0.661687;, + 0.471318;-0.583121;-0.661687;, + 0.102381;-0.315090;-0.943524;, + 0.102381;-0.315090;-0.943524;, + 0.102381;-0.315090;-0.943524;, + 0.700228;-0.268049;-0.661688;, + 0.700228;-0.268049;-0.661688;, + 0.700228;-0.268049;-0.661688;, + 0.607060; 0.000000;-0.794656;, + 0.607060; 0.000000;-0.794656;, + 0.607060; 0.000000;-0.794656;, + 0.700228; 0.268049;-0.661688;, + 0.700228; 0.268049;-0.661688;, + 0.700228; 0.268049;-0.661688;, + 0.331305; 0.000000;-0.943524;, + 0.331305; 0.000000;-0.943524;, + 0.331305; 0.000000;-0.943524;, + -0.724044;-0.194735;-0.661694;, + -0.724044;-0.194735;-0.661694;, + -0.724044;-0.194735;-0.661694;, + -0.491120;-0.356821;-0.794657;, + -0.491120;-0.356821;-0.794657;, + -0.491120;-0.356821;-0.794657;, + -0.408939;-0.628443;-0.661686;, + -0.408939;-0.628443;-0.661686;, + -0.408939;-0.628443;-0.661686;, + -0.268034;-0.194736;-0.943523;, + -0.268034;-0.194736;-0.943523;, + -0.268034;-0.194736;-0.943523;, + -0.408939; 0.628443;-0.661686;, + -0.408939; 0.628443;-0.661686;, + -0.408939; 0.628443;-0.661686;, + -0.491120; 0.356821;-0.794657;, + -0.491120; 0.356821;-0.794657;, + -0.491120; 0.356821;-0.794657;, + -0.724044; 0.194735;-0.661694;, + -0.724044; 0.194735;-0.661694;, + -0.724044; 0.194735;-0.661694;, + -0.268034; 0.194736;-0.943523;, + -0.268034; 0.194736;-0.943523;, + -0.268034; 0.194736;-0.943523;, + 0.471318; 0.583121;-0.661687;, + 0.471318; 0.583121;-0.661687;, + 0.471318; 0.583121;-0.661687;, + 0.187594; 0.577345;-0.794658;, + 0.187594; 0.577345;-0.794658;, + 0.187594; 0.577345;-0.794658;, + -0.038547; 0.748789;-0.661687;, + -0.038547; 0.748789;-0.661687;, + -0.038547; 0.748789;-0.661687;, + 0.102381; 0.315090;-0.943524;, + 0.102381; 0.315090;-0.943524;, + 0.102381; 0.315090;-0.943524;, + 0.904981;-0.268049;-0.330393;, + 0.904981;-0.268049;-0.330393;, + 0.904981;-0.268049;-0.330393;, + 0.982246; 0.000000;-0.187599;, + 0.982246; 0.000000;-0.187599;, + 0.982246; 0.000000;-0.187599;, + 0.992077; 0.000000; 0.125631;, + 0.992077; 0.000000; 0.125631;, + 0.992077; 0.000000; 0.125631;, + 0.904981; 0.268049;-0.330393;, + 0.904981; 0.268049;-0.330393;, + 0.904981; 0.268049;-0.330393;, + 0.024726;-0.943519;-0.330396;, + 0.024726;-0.943519;-0.330396;, + 0.024726;-0.943519;-0.330396;, + 0.303531;-0.934171;-0.187597;, + 0.303531;-0.934171;-0.187597;, + 0.303531;-0.934171;-0.187597;, + 0.306568;-0.943519; 0.125651;, + 0.306568;-0.943519; 0.125651;, + 0.306568;-0.943519; 0.125651;, + 0.534590;-0.777851;-0.330395;, + 0.534590;-0.777851;-0.330395;, + 0.534590;-0.777851;-0.330395;, + -0.889698;-0.315092;-0.330386;, + -0.889698;-0.315092;-0.330386;, + -0.889698;-0.315092;-0.330386;, + -0.794656;-0.577348;-0.187595;, + -0.794656;-0.577348;-0.187595;, + -0.794656;-0.577348;-0.187595;, + -0.802607;-0.583125; 0.125648;, + -0.802607;-0.583125; 0.125648;, + -0.802607;-0.583125; 0.125648;, + -0.574584;-0.748793;-0.330397;, + -0.574584;-0.748793;-0.330397;, + -0.574584;-0.748793;-0.330397;, + -0.574584; 0.748793;-0.330397;, + -0.574584; 0.748793;-0.330397;, + -0.574584; 0.748793;-0.330397;, + -0.794656; 0.577348;-0.187595;, + -0.794656; 0.577348;-0.187595;, + -0.794656; 0.577348;-0.187595;, + -0.802607; 0.583125; 0.125648;, + -0.802607; 0.583125; 0.125648;, + -0.802607; 0.583125; 0.125648;, + -0.889698; 0.315092;-0.330386;, + -0.889698; 0.315092;-0.330386;, + -0.889698; 0.315092;-0.330386;, + 0.534590; 0.777851;-0.330395;, + 0.534590; 0.777851;-0.330395;, + 0.534590; 0.777851;-0.330395;, + 0.303531; 0.934171;-0.187597;, + 0.303531; 0.934171;-0.187597;, + 0.303531; 0.934171;-0.187597;, + 0.306568; 0.943519; 0.125651;, + 0.306568; 0.943519; 0.125651;, + 0.306568; 0.943519; 0.125651;, + 0.024726; 0.943519;-0.330396;, + 0.024726; 0.943519;-0.330396;, + 0.024726; 0.943519;-0.330396;, + 0.574584;-0.748793; 0.330397;, + 0.574584;-0.748793; 0.330397;, + 0.574584;-0.748793; 0.330397;, + 0.794656;-0.577348; 0.187595;, + 0.794656;-0.577348; 0.187595;, + 0.794656;-0.577348; 0.187595;, + 0.889698;-0.315092; 0.330386;, + 0.889698;-0.315092; 0.330386;, + 0.889698;-0.315092; 0.330386;, + 0.802607;-0.583125;-0.125648;, + 0.802607;-0.583125;-0.125648;, + 0.802607;-0.583125;-0.125648;, + -0.534590;-0.777851; 0.330395;, + -0.534590;-0.777851; 0.330395;, + -0.534590;-0.777851; 0.330395;, + -0.303531;-0.934171; 0.187597;, + -0.303531;-0.934171; 0.187597;, + -0.303531;-0.934171; 0.187597;, + -0.024726;-0.943519; 0.330396;, + -0.024726;-0.943519; 0.330396;, + -0.024726;-0.943519; 0.330396;, + -0.306568;-0.943519;-0.125651;, + -0.306568;-0.943519;-0.125651;, + -0.306568;-0.943519;-0.125651;, + -0.904981; 0.268049; 0.330393;, + -0.904981; 0.268049; 0.330393;, + -0.904981; 0.268049; 0.330393;, + -0.982246; 0.000000; 0.187599;, + -0.982246; 0.000000; 0.187599;, + -0.982246; 0.000000; 0.187599;, + -0.904981;-0.268049; 0.330393;, + -0.904981;-0.268049; 0.330393;, + -0.904981;-0.268049; 0.330393;, + -0.992077;-0.000000;-0.125631;, + -0.992077;-0.000000;-0.125631;, + -0.992077;-0.000000;-0.125631;, + -0.024726; 0.943519; 0.330396;, + -0.024726; 0.943519; 0.330396;, + -0.024726; 0.943519; 0.330396;, + -0.303531; 0.934171; 0.187597;, + -0.303531; 0.934171; 0.187597;, + -0.303531; 0.934171; 0.187597;, + -0.534590; 0.777851; 0.330395;, + -0.534590; 0.777851; 0.330395;, + -0.534590; 0.777851; 0.330395;, + -0.306568; 0.943519;-0.125651;, + -0.306568; 0.943519;-0.125651;, + -0.306568; 0.943519;-0.125651;, + 0.889698; 0.315092; 0.330386;, + 0.889698; 0.315092; 0.330386;, + 0.889698; 0.315092; 0.330386;, + 0.794656; 0.577348; 0.187595;, + 0.794656; 0.577348; 0.187595;, + 0.794656; 0.577348; 0.187595;, + 0.574584; 0.748793; 0.330397;, + 0.574584; 0.748793; 0.330397;, + 0.574584; 0.748793; 0.330397;, + 0.802607; 0.583125;-0.125648;, + 0.802607; 0.583125;-0.125648;, + 0.802607; 0.583125;-0.125648;, + 0.408939;-0.628443; 0.661686;, + 0.408939;-0.628443; 0.661686;, + 0.408939;-0.628443; 0.661686;, + 0.491120;-0.356821; 0.794657;, + 0.491120;-0.356821; 0.794657;, + 0.491120;-0.356821; 0.794657;, + 0.268034;-0.194736; 0.943523;, + 0.268034;-0.194736; 0.943523;, + 0.268034;-0.194736; 0.943523;, + 0.724044;-0.194735; 0.661694;, + 0.724044;-0.194735; 0.661694;, + 0.724044;-0.194735; 0.661694;, + -0.471318;-0.583121; 0.661687;, + -0.471318;-0.583121; 0.661687;, + -0.471318;-0.583121; 0.661687;, + -0.187594;-0.577345; 0.794658;, + -0.187594;-0.577345; 0.794658;, + -0.187594;-0.577345; 0.794658;, + -0.102381;-0.315090; 0.943524;, + -0.102381;-0.315090; 0.943524;, + -0.102381;-0.315090; 0.943524;, + 0.038547;-0.748789; 0.661687;, + 0.038547;-0.748789; 0.661687;, + 0.038547;-0.748789; 0.661687;, + -0.700228; 0.268049; 0.661688;, + -0.700228; 0.268049; 0.661688;, + -0.700228; 0.268049; 0.661688;, + -0.607060; 0.000000; 0.794656;, + -0.607060; 0.000000; 0.794656;, + -0.607060; 0.000000; 0.794656;, + -0.331305; 0.000000; 0.943524;, + -0.331305; 0.000000; 0.943524;, + -0.331305; 0.000000; 0.943524;, + -0.700228;-0.268049; 0.661688;, + -0.700228;-0.268049; 0.661688;, + -0.700228;-0.268049; 0.661688;, + 0.038547; 0.748789; 0.661687;, + 0.038547; 0.748789; 0.661687;, + 0.038547; 0.748789; 0.661687;, + -0.187594; 0.577345; 0.794658;, + -0.187594; 0.577345; 0.794658;, + -0.187594; 0.577345; 0.794658;, + -0.102381; 0.315090; 0.943524;, + -0.102381; 0.315090; 0.943524;, + -0.102381; 0.315090; 0.943524;, + -0.471318; 0.583121; 0.661687;, + -0.471318; 0.583121; 0.661687;, + -0.471318; 0.583121; 0.661687;, + 0.724044; 0.194735; 0.661694;, + 0.724044; 0.194735; 0.661694;, + 0.724044; 0.194735; 0.661694;, + 0.491120; 0.356821; 0.794657;, + 0.491120; 0.356821; 0.794657;, + 0.491120; 0.356821; 0.794657;, + 0.268034; 0.194736; 0.943523;, + 0.268034; 0.194736; 0.943523;, + 0.268034; 0.194736; 0.943523;, + 0.408939; 0.628443; 0.661686;, + 0.408939; 0.628443; 0.661686;, + 0.408939; 0.628443; 0.661686;; + 80; + 3;0;1;2;, + 3;3;4;5;, + 3;6;7;8;, + 3;9;10;11;, + 3;12;13;14;, + 3;15;16;17;, + 3;18;19;20;, + 3;21;22;23;, + 3;24;25;26;, + 3;27;28;29;, + 3;30;31;32;, + 3;33;34;35;, + 3;36;37;38;, + 3;39;40;41;, + 3;42;43;44;, + 3;45;46;47;, + 3;48;49;50;, + 3;51;52;53;, + 3;54;55;56;, + 3;57;58;59;, + 3;60;61;62;, + 3;63;64;65;, + 3;66;67;68;, + 3;69;70;71;, + 3;72;73;74;, + 3;75;76;77;, + 3;78;79;80;, + 3;81;82;83;, + 3;84;85;86;, + 3;87;88;89;, + 3;90;91;92;, + 3;93;94;95;, + 3;96;97;98;, + 3;99;100;101;, + 3;102;103;104;, + 3;105;106;107;, + 3;108;109;110;, + 3;111;112;113;, + 3;114;115;116;, + 3;117;118;119;, + 3;120;121;122;, + 3;123;124;125;, + 3;126;127;128;, + 3;129;130;131;, + 3;132;133;134;, + 3;135;136;137;, + 3;138;139;140;, + 3;141;142;143;, + 3;144;145;146;, + 3;147;148;149;, + 3;150;151;152;, + 3;153;154;155;, + 3;156;157;158;, + 3;159;160;161;, + 3;162;163;164;, + 3;165;166;167;, + 3;168;169;170;, + 3;171;172;173;, + 3;174;175;176;, + 3;177;178;179;, + 3;180;181;182;, + 3;183;184;185;, + 3;186;187;188;, + 3;189;190;191;, + 3;192;193;194;, + 3;195;196;197;, + 3;198;199;200;, + 3;201;202;203;, + 3;204;205;206;, + 3;207;208;209;, + 3;210;211;212;, + 3;213;214;215;, + 3;216;217;218;, + 3;219;220;221;, + 3;222;223;224;, + 3;225;226;227;, + 3;228;229;230;, + 3;231;232;233;, + 3;234;235;236;, + 3;237;238;239;; + } //End of Icosphere_001 Normals + MeshMaterialList { //Icosphere_001 Material List + 1; + 80; + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0;; + Material Material { + 0.640000; 0.640000; 0.640000; 1.000000;; + 96.078431; + 0.500000; 0.500000; 0.500000;; + 0.000000; 0.000000; 0.000000;; + TextureFilename {"wool_white.png";} + } + } //End of Icosphere_001 Material List + MeshTextureCoords { //Icosphere_001 UV Coordinates + 240; + 0.463454; 0.999858;, + 0.562529; 0.932179;, + 0.601593; 1.000000;, + 0.258074; 0.612656;, + 0.198353; 0.508991;, + 0.329355; 0.485087;, + 0.198353; 0.508991;, + 0.258074; 0.612656;, + 0.131802; 0.608175;, + 0.198353; 0.508991;, + 0.253073; 0.391145;, + 0.329355; 0.485087;, + 0.198353; 0.508991;, + 0.131802; 0.608175;, + 0.052221; 0.509032;, + 0.052221; 0.509032;, + 0.123503; 0.381464;, + 0.198353; 0.508991;, + 0.123503; 0.381464;, + 0.052221; 0.509032;, + 0.004459; 0.391213;, + 0.123503; 0.381464;, + 0.253073; 0.391145;, + 0.198353; 0.508991;, + 0.335468; 0.925790;, + 0.344786; 0.806168;, + 0.447270; 0.880210;, + 0.447270; 0.880210;, + 0.463454; 0.999858;, + 0.335468; 0.925790;, + 0.463454; 0.999858;, + 0.447270; 0.880210;, + 0.562529; 0.932179;, + 0.329355; 0.485087;, + 0.253073; 0.391145;, + 0.335468; 0.342784;, + 0.795915; 0.612719;, + 0.747088; 0.501993;, + 0.876923; 0.507027;, + 0.876923; 0.507027;, + 0.941952; 0.607444;, + 0.795915; 0.612719;, + 0.941952; 0.607444;, + 0.876923; 0.507027;, + 0.995541; 0.493019;, + 0.335468; 0.342784;, + 0.253073; 0.391145;, + 0.208243; 0.278742;, + 0.123503; 0.381464;, + 0.004459; 0.391213;, + 0.062111; 0.278781;, + 0.062111; 0.278781;, + 0.208243; 0.278742;, + 0.123503; 0.381464;, + 0.795915; 0.612719;, + 0.666477; 0.553276;, + 0.747088; 0.501993;, + 0.208243; 0.278742;, + 0.253073; 0.391145;, + 0.123503; 0.381464;, + 0.052221; 0.509032;, + 0.131802; 0.608175;, + 0.021626; 0.612719;, + 0.000245; 0.926193;, + 0.111953; 0.880384;, + 0.128383; 1.000000;, + 0.111953; 0.880384;, + 0.000245; 0.926193;, + 0.009318; 0.806552;, + 0.227318; 0.932118;, + 0.128383; 1.000000;, + 0.111953; 0.880384;, + 0.601593; 1.000000;, + 0.562529; 0.932179;, + 0.670786; 0.880437;, + 0.671946; 0.814596;, + 0.802009; 0.843180;, + 0.738613; 0.944639;, + 0.802009; 0.843180;, + 0.671946; 0.814596;, + 0.751547; 0.723446;, + 0.864965; 0.944685;, + 0.738613; 0.944639;, + 0.802009; 0.843180;, + 0.447270; 0.880210;, + 0.344786; 0.806168;, + 0.447422; 0.732335;, + 0.447422; 0.732335;, + 0.575409; 0.806403;, + 0.447270; 0.880210;, + 0.575409; 0.806403;, + 0.447422; 0.732335;, + 0.562786; 0.680601;, + 0.562529; 0.932179;, + 0.447270; 0.880210;, + 0.575409; 0.806403;, + 0.876923; 0.507027;, + 0.747088; 0.501993;, + 0.797550; 0.382259;, + 0.797550; 0.382259;, + 0.943588; 0.376985;, + 0.876923; 0.507027;, + 0.943588; 0.376985;, + 0.797550; 0.382259;, + 0.860506; 0.280754;, + 0.995541; 0.493019;, + 0.876923; 0.507027;, + 0.943588; 0.376985;, + 0.335468; 0.880158;, + 0.227318; 0.932118;, + 0.239941; 0.806317;, + 0.239941; 0.806317;, + 0.335317; 0.732282;, + 0.335468; 0.880158;, + 0.335317; 0.732282;, + 0.239941; 0.806317;, + 0.227061; 0.680541;, + 0.747088; 0.501993;, + 0.666477; 0.553276;, + 0.667487; 0.410842;, + 0.802009; 0.843180;, + 0.751547; 0.723446;, + 0.881382; 0.718412;, + 0.881382; 0.718412;, + 0.948048; 0.848454;, + 0.802009; 0.843180;, + 0.948048; 0.848454;, + 0.881382; 0.718412;, + 1.000000; 0.732420;, + 0.864965; 0.944685;, + 0.802009; 0.843180;, + 0.948048; 0.848454;, + 0.575409; 0.806403;, + 0.562786; 0.680601;, + 0.670936; 0.732562;, + 0.670936; 0.732562;, + 0.670786; 0.880437;, + 0.575409; 0.806403;, + 0.671946; 0.814596;, + 0.670936; 0.672163;, + 0.751547; 0.723446;, + 0.562529; 0.932179;, + 0.575409; 0.806403;, + 0.670786; 0.880437;, + 0.649311; 0.612719;, + 0.539135; 0.608175;, + 0.618715; 0.509032;, + 0.463851; 0.612719;, + 0.447422; 0.732335;, + 0.335713; 0.686526;, + 0.447422; 0.732335;, + 0.463851; 0.612719;, + 0.562786; 0.680601;, + 0.344786; 0.806168;, + 0.335713; 0.686526;, + 0.447422; 0.732335;, + 0.335317; 0.732282;, + 0.227061; 0.680541;, + 0.266124; 0.612719;, + 0.734154; 0.280800;, + 0.797550; 0.382259;, + 0.667487; 0.410842;, + 0.797550; 0.382259;, + 0.734154; 0.280800;, + 0.860506; 0.280754;, + 0.747088; 0.501993;, + 0.667487; 0.410842;, + 0.797550; 0.382259;, + 0.111953; 0.880384;, + 0.009318; 0.806552;, + 0.111802; 0.732510;, + 0.111802; 0.732510;, + 0.239941; 0.806317;, + 0.111953; 0.880384;, + 0.239941; 0.806317;, + 0.111802; 0.732510;, + 0.227061; 0.680541;, + 0.227318; 0.932118;, + 0.111953; 0.880384;, + 0.239941; 0.806317;, + 0.881382; 0.718412;, + 0.751547; 0.723446;, + 0.800374; 0.612719;, + 0.800374; 0.612719;, + 0.946411; 0.617995;, + 0.881382; 0.718412;, + 0.335468; 0.342784;, + 0.462693; 0.278742;, + 0.417864; 0.391145;, + 1.000000; 0.732420;, + 0.881382; 0.718412;, + 0.946411; 0.617995;, + 0.608825; 0.278781;, + 0.666477; 0.391213;, + 0.547433; 0.381464;, + 0.547433; 0.381464;, + 0.462693; 0.278742;, + 0.608825; 0.278781;, + 0.462693; 0.278742;, + 0.547433; 0.381464;, + 0.417864; 0.391145;, + 0.751547; 0.723446;, + 0.670936; 0.672163;, + 0.800374; 0.612719;, + 0.618715; 0.509032;, + 0.539135; 0.608175;, + 0.472583; 0.508991;, + 0.472583; 0.508991;, + 0.547433; 0.381464;, + 0.618715; 0.509032;, + 0.547433; 0.381464;, + 0.472583; 0.508991;, + 0.417864; 0.391145;, + 0.666477; 0.391213;, + 0.618715; 0.509032;, + 0.547433; 0.381464;, + 0.266124; 0.612719;, + 0.227061; 0.680541;, + 0.127986; 0.612861;, + 0.341581; 0.485087;, + 0.472583; 0.508991;, + 0.412862; 0.612656;, + 0.472583; 0.508991;, + 0.341581; 0.485087;, + 0.417864; 0.391145;, + 0.539135; 0.608175;, + 0.412862; 0.612656;, + 0.472583; 0.508991;, + 0.111802; 0.732510;, + 0.009318; 0.806552;, + 0.000000; 0.686929;, + 0.000000; 0.686929;, + 0.127986; 0.612861;, + 0.111802; 0.732510;, + 0.341581; 0.485087;, + 0.335468; 0.342784;, + 0.417864; 0.391145;, + 0.227061; 0.680541;, + 0.111802; 0.732510;, + 0.127986; 0.612861;; + } //End of Icosphere_001 UV Coordinates + } //End of Icosphere_001 Mesh + } //End of Icosphere +} //End of Root Frame diff --git a/mods/soccer/textures/soccer_ball_black.png b/mods/soccer/textures/soccer_ball_black.png new file mode 100644 index 00000000..d9baa4c4 Binary files /dev/null and b/mods/soccer/textures/soccer_ball_black.png differ diff --git a/mods/soccer/textures/soccer_ball_black_inv.png b/mods/soccer/textures/soccer_ball_black_inv.png new file mode 100644 index 00000000..5c3d3e24 Binary files /dev/null and b/mods/soccer/textures/soccer_ball_black_inv.png differ diff --git a/mods/soccer/textures/soccer_ball_blue.png b/mods/soccer/textures/soccer_ball_blue.png new file mode 100644 index 00000000..01d92755 Binary files /dev/null and b/mods/soccer/textures/soccer_ball_blue.png differ diff --git a/mods/soccer/textures/soccer_ball_blue_inv.png b/mods/soccer/textures/soccer_ball_blue_inv.png new file mode 100644 index 00000000..f7597f7a Binary files /dev/null and b/mods/soccer/textures/soccer_ball_blue_inv.png differ diff --git a/mods/soccer/textures/soccer_ball_green.png b/mods/soccer/textures/soccer_ball_green.png new file mode 100644 index 00000000..9ed01b8b Binary files /dev/null and b/mods/soccer/textures/soccer_ball_green.png differ diff --git a/mods/soccer/textures/soccer_ball_green_inv.png b/mods/soccer/textures/soccer_ball_green_inv.png new file mode 100644 index 00000000..8d2fb94d Binary files /dev/null and b/mods/soccer/textures/soccer_ball_green_inv.png differ diff --git a/mods/soccer/textures/soccer_ball_purple.png b/mods/soccer/textures/soccer_ball_purple.png new file mode 100644 index 00000000..5c8c4f4b Binary files /dev/null and b/mods/soccer/textures/soccer_ball_purple.png differ diff --git a/mods/soccer/textures/soccer_ball_purple_inv.png b/mods/soccer/textures/soccer_ball_purple_inv.png new file mode 100644 index 00000000..61809c16 Binary files /dev/null and b/mods/soccer/textures/soccer_ball_purple_inv.png differ diff --git a/mods/soccer/textures/soccer_ball_red.png b/mods/soccer/textures/soccer_ball_red.png new file mode 100644 index 00000000..81bf462a Binary files /dev/null and b/mods/soccer/textures/soccer_ball_red.png differ diff --git a/mods/soccer/textures/soccer_ball_red_inv.png b/mods/soccer/textures/soccer_ball_red_inv.png new file mode 100644 index 00000000..7191d829 Binary files /dev/null and b/mods/soccer/textures/soccer_ball_red_inv.png differ diff --git a/mods/soccer/textures/soccer_ball_yellow.png b/mods/soccer/textures/soccer_ball_yellow.png new file mode 100644 index 00000000..582c1830 Binary files /dev/null and b/mods/soccer/textures/soccer_ball_yellow.png differ diff --git a/mods/soccer/textures/soccer_ball_yellow_inv.png b/mods/soccer/textures/soccer_ball_yellow_inv.png new file mode 100644 index 00000000..32d08499 Binary files /dev/null and b/mods/soccer/textures/soccer_ball_yellow_inv.png differ diff --git a/worlds/minetestforfun/world.mt b/worlds/minetestforfun/world.mt index c67da039..f358eade 100755 --- a/worlds/minetestforfun/world.mt +++ b/worlds/minetestforfun/world.mt @@ -25,6 +25,7 @@ load_mod_mapfix = true load_mod_worldedge = true load_mod_maze = true load_mod_peace_areas = true +load_mod_soccer = true load_mod_meru = true load_mod_watershed = true