commit ef45ef596761b76f1b597b6dabb47eb8f2727010 Author: HeroOfTheWinds Date: Mon May 5 18:42:48 2014 -1000 Initial Commit diff --git a/game.conf b/game.conf new file mode 100644 index 0000000..579a422 --- /dev/null +++ b/game.conf @@ -0,0 +1 @@ +name = SkyTest diff --git a/menu/header.png b/menu/header.png new file mode 100644 index 0000000..66e3fa0 Binary files /dev/null and b/menu/header.png differ diff --git a/menu/icon.png b/menu/icon.png new file mode 100644 index 0000000..1e7ca84 Binary files /dev/null and b/menu/icon.png differ diff --git a/minetest.conf b/minetest.conf new file mode 100644 index 0000000..04ad7e0 --- /dev/null +++ b/minetest.conf @@ -0,0 +1,37 @@ +anisotropic_filter = 0 +bilinear_filter = 0 +creative_mode = 0 +enable_3d_clouds = true +enable_damage = 0 +enable_particles = 1 +enable_shaders = 0 +give_initial_stuff = 1 +liquid_finite = 0 +mip_map = 0 +name = WindHero +new_style_leaves = 1 +opaque_water = false +port = 30000 +preload_item_visuals = 1 +selected_mainmenu_tab = 4 +selected_serverlist = 0 +server_announce = 0 +server_dedicated = false +smooth_lighting = false +trilinear_filter = 0 +free_move = true +fast_move = true +noclip = true +wieldview_update_time = 2 +3d_armor_update_time = 1 +mg_flags = trees, caves, v6_biome_blend, dungeons +remote_port = 30003 +main_menu_tab = singleplayer +fixed_map_seed = ToTheClouds +main_menu_last_game_idx = 1 +mainmenu_last_selected_world = 5 +mg_name = singlenode +display_mob_spawn = false +public_serverlist = false +mainmenu_last_selected_TP = 1 +texture_path = diff --git a/mods/beds/README.txt b/mods/beds/README.txt new file mode 100644 index 0000000..da42da3 --- /dev/null +++ b/mods/beds/README.txt @@ -0,0 +1,47 @@ +===BEDS MOD for MINETEST-C55=== +by PilzAdam & thefamilygrog66 + +Introduction: +This mods brings beds to Minetest. You can use them to sleep at night +to prevent attacks by evil mobs. + +How to install: +Unzip the archive an place it in minetest-base-directory/mods/minetest/ +if you have a windows client or a linux run-in-place client. If you have +a linux system-wide instalation place it in ~/.minetest/mods/minetest/. +If you want to install this mod only in one world create the folder +worldmods/ in your worlddirectory. +For further information or help see: +http://wiki.minetest.com/wiki/Installing_Mods + +How to use the mod: +Craft a bed like this: +white wool white wool white wool +stick stick +After placing it anywhere you can go to sleep with a leftklick with your +hand on the bed. If it is night a chatmessage wishs you "Good night" and +you sleep until the next morning. To go outside the bed it is recommended +to hit the bed again with a leftklick (it also works if you just go away +but its not so safe). +After dying the player will respawn at the last bed he has slept. + +License: +Sourcecode: WTFPL (see below) +Graphics: WTFPL (see below) + +See also: +http://minetest.net/ + + DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + Version 2, December 2004 + + Copyright (C) 2004 Sam Hocevar + + Everyone is permitted to copy and distribute verbatim or modified + copies of this license document, and changing it is allowed as long + as the name is changed. + + DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. You just DO WHAT THE FUCK YOU WANT TO. diff --git a/mods/beds/depends.txt b/mods/beds/depends.txt new file mode 100644 index 0000000..470ec30 --- /dev/null +++ b/mods/beds/depends.txt @@ -0,0 +1,2 @@ +default +wool diff --git a/mods/beds/init.lua b/mods/beds/init.lua new file mode 100644 index 0000000..a0ecdd2 --- /dev/null +++ b/mods/beds/init.lua @@ -0,0 +1,237 @@ +local player_in_bed = 0 + +local beds_list = { + { "Red Bed", "red"}, + { "Orange Bed", "orange"}, + { "Yellow Bed", "yellow"}, + { "Green Bed", "green"}, + { "Blue Bed", "blue"}, + { "Violet Bed", "violet"}, + { "Black Bed", "black"}, + { "Grey Bed", "grey"}, + { "White Bed", "white"}, +} + +for i in ipairs(beds_list) do + local beddesc = beds_list[i][1] + local colour = beds_list[i][2] + + minetest.register_node("beds:bed_bottom_"..colour, { + description = beddesc, + drawtype = "nodebox", + tiles = {"beds_bed_top_bottom_"..colour..".png", "default_wood.png", "beds_bed_side_"..colour..".png", "beds_bed_side_"..colour..".png", "beds_bed_side_"..colour..".png", "beds_bed_side_"..colour..".png"}, + paramtype = "light", + paramtype2 = "facedir", + stack_max = 1, + groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=3}, + sounds = default.node_sound_wood_defaults(), + node_box = { + type = "fixed", + fixed = { + -- bed + {-0.5, 0.0, -0.5, 0.5, 0.3125, 0.5}, + + -- legs + {-0.5, -0.5, -0.5, -0.4, 0.0, -0.4}, + {0.4, 0.0, -0.4, 0.5, -0.5, -0.5}, + } + }, + selection_box = { + type = "fixed", + fixed = { + {-0.5, -0.5, -0.5, 0.5, 0.3125, 1.5}, + } + }, + + after_place_node = function(pos, placer, itemstack) + local node = minetest.env:get_node(pos) + local p = {x=pos.x, y=pos.y, z=pos.z} + local param2 = node.param2 + node.name = "beds:bed_top_"..colour + if param2 == 0 then + pos.z = pos.z+1 + elseif param2 == 1 then + pos.x = pos.x+1 + elseif param2 == 2 then + pos.z = pos.z-1 + elseif param2 == 3 then + pos.x = pos.x-1 + end + if minetest.registered_nodes[minetest.env:get_node(pos).name].buildable_to then + minetest.env:set_node(pos, node) + else + minetest.env:remove_node(p) + return true + end + end, + + on_destruct = function(pos) + local node = minetest.env:get_node(pos) + local param2 = node.param2 + if param2 == 0 then + pos.z = pos.z+1 + elseif param2 == 1 then + pos.x = pos.x+1 + elseif param2 == 2 then + pos.z = pos.z-1 + elseif param2 == 3 then + pos.x = pos.x-1 + end + if( minetest.env:get_node({x=pos.x, y=pos.y, z=pos.z}).name == "beds:bed_top_"..colour ) then + if( minetest.env:get_node({x=pos.x, y=pos.y, z=pos.z}).param2 == param2 ) then + minetest.env:remove_node(pos) + end + end + end, + + on_rightclick = function(pos, node, clicker) + if not clicker:is_player() then + return + end + local meta = minetest.env:get_meta(pos) + local param2 = node.param2 + if param2 == 0 then + pos.z = pos.z+1 + elseif param2 == 1 then + pos.x = pos.x+1 + elseif param2 == 2 then + pos.z = pos.z-1 + elseif param2 == 3 then + pos.x = pos.x-1 + end + if clicker:get_player_name() == meta:get_string("player") then + if param2 == 0 then + pos.x = pos.x-1 + elseif param2 == 1 then + pos.z = pos.z+1 + elseif param2 == 2 then + pos.x = pos.x+1 + elseif param2 == 3 then + pos.z = pos.z-1 + end + pos.y = pos.y-0.5 + clicker:set_physics_override(1, 1, 1) + clicker:setpos(pos) + meta:set_string("player", "") + player_in_bed = player_in_bed-1 + elseif meta:get_string("player") == "" then + pos.y = pos.y-1 + clicker:set_physics_override(0, 0, 0) + clicker:setpos(pos) + if param2 == 0 then + clicker:set_look_yaw(math.pi) + elseif param2 == 1 then + clicker:set_look_yaw(0.5*math.pi) + elseif param2 == 2 then + clicker:set_look_yaw(0) + elseif param2 == 3 then + clicker:set_look_yaw(1.5*math.pi) + end + + meta:set_string("player", clicker:get_player_name()) + player_in_bed = player_in_bed+1 + end + end + }) + + minetest.register_node("beds:bed_top_"..colour, { + drawtype = "nodebox", + tiles = {"beds_bed_top_top_"..colour..".png", "default_wood.png", "beds_bed_side_top_r_"..colour..".png", "beds_bed_side_top_l_"..colour..".png", "beds_bed_top_front.png", "beds_bed_side_"..colour..".png"}, + paramtype = "light", + paramtype2 = "facedir", + groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=3}, + sounds = default.node_sound_wood_defaults(), + node_box = { + type = "fixed", + fixed = { + -- bed + {-0.5, 0.0, -0.5, 0.5, 0.3125, 0.5}, + {-0.4375, 0.3125, 0.1, 0.4375, 0.4375, 0.5}, + + -- legs + {-0.4, 0.0, 0.4, -0.5, -0.5, 0.5}, + {0.5, -0.5, 0.5, 0.4, 0.0, 0.4}, + } + }, + selection_box = { + type = "fixed", + fixed = { + {0, 0, 0, 0, 0, 0}, + } + }, + }) + + minetest.register_alias("beds:bed_"..colour, "beds:bed_bottom_"..colour) + + minetest.register_craft({ + output = "beds:bed_"..colour, + recipe = { + {"wool:"..colour, "wool:"..colour, "wool:white", }, + {"default:stick", "", "default:stick", } + } + }) + + minetest.register_craft({ + output = "beds:bed_"..colour, + recipe = { + {"wool:white", "wool:"..colour, "wool:"..colour, }, + {"default:stick", "", "default:stick", } + } + }) + +end + +minetest.register_alias("beds:bed_bottom", "beds:bed_bottom_blue") +minetest.register_alias("beds:bed_top", "beds:bed_top_blue") +minetest.register_alias("beds:bed", "beds:bed_bottom_blue") + +beds_player_spawns = {} +local file = io.open(minetest.get_worldpath().."/beds_player_spawns", "r") +if file then + beds_player_spawns = minetest.deserialize(file:read("*all")) + file:close() +end + +local timer = 0 +local wait = false +minetest.register_globalstep(function(dtime) + if timer<2 then + timer = timer+dtime + return + end + timer = 0 + + local players = #minetest.get_connected_players() + if players == player_in_bed and players ~= 0 then + if minetest.env:get_timeofday() < 0.2 or minetest.env:get_timeofday() > 0.805 then + if not wait then + minetest.chat_send_all("Good night!!!") + minetest.after(2, function() + minetest.env:set_timeofday(0.23) + wait = false + end) + wait = true + for _,player in ipairs(minetest.get_connected_players()) do + beds_player_spawns[player:get_player_name()] = player:getpos() + end + local file = io.open(minetest.get_worldpath().."/beds_player_spawns", "w") + if file then + file:write(minetest.serialize(beds_player_spawns)) + file:close() + end + end + end + end +end) + +minetest.register_on_respawnplayer(function(player) + local name = player:get_player_name() + if beds_player_spawns[name] then + player:setpos(beds_player_spawns[name]) + return true + end +end) + +if minetest.setting_get("log_mods") then + minetest.log("action", "beds loaded") +end diff --git a/mods/beds/textures/beds_bed_side_black.png b/mods/beds/textures/beds_bed_side_black.png new file mode 100644 index 0000000..b4eb1d5 Binary files /dev/null and b/mods/beds/textures/beds_bed_side_black.png differ diff --git a/mods/beds/textures/beds_bed_side_blue.png b/mods/beds/textures/beds_bed_side_blue.png new file mode 100644 index 0000000..29fda48 Binary files /dev/null and b/mods/beds/textures/beds_bed_side_blue.png differ diff --git a/mods/beds/textures/beds_bed_side_green.png b/mods/beds/textures/beds_bed_side_green.png new file mode 100644 index 0000000..6da418e Binary files /dev/null and b/mods/beds/textures/beds_bed_side_green.png differ diff --git a/mods/beds/textures/beds_bed_side_grey.png b/mods/beds/textures/beds_bed_side_grey.png new file mode 100644 index 0000000..5544b0b Binary files /dev/null and b/mods/beds/textures/beds_bed_side_grey.png differ diff --git a/mods/beds/textures/beds_bed_side_orange.png b/mods/beds/textures/beds_bed_side_orange.png new file mode 100644 index 0000000..36386f4 Binary files /dev/null and b/mods/beds/textures/beds_bed_side_orange.png differ diff --git a/mods/beds/textures/beds_bed_side_red.png b/mods/beds/textures/beds_bed_side_red.png new file mode 100644 index 0000000..0974097 Binary files /dev/null and b/mods/beds/textures/beds_bed_side_red.png differ diff --git a/mods/beds/textures/beds_bed_side_top_l_black.png b/mods/beds/textures/beds_bed_side_top_l_black.png new file mode 100644 index 0000000..30bcb0d Binary files /dev/null and b/mods/beds/textures/beds_bed_side_top_l_black.png differ diff --git a/mods/beds/textures/beds_bed_side_top_l_blue.png b/mods/beds/textures/beds_bed_side_top_l_blue.png new file mode 100644 index 0000000..c182bd8 Binary files /dev/null and b/mods/beds/textures/beds_bed_side_top_l_blue.png differ diff --git a/mods/beds/textures/beds_bed_side_top_l_green.png b/mods/beds/textures/beds_bed_side_top_l_green.png new file mode 100644 index 0000000..a825081 Binary files /dev/null and b/mods/beds/textures/beds_bed_side_top_l_green.png differ diff --git a/mods/beds/textures/beds_bed_side_top_l_grey.png b/mods/beds/textures/beds_bed_side_top_l_grey.png new file mode 100644 index 0000000..086a73f Binary files /dev/null and b/mods/beds/textures/beds_bed_side_top_l_grey.png differ diff --git a/mods/beds/textures/beds_bed_side_top_l_orange.png b/mods/beds/textures/beds_bed_side_top_l_orange.png new file mode 100644 index 0000000..901b4c2 Binary files /dev/null and b/mods/beds/textures/beds_bed_side_top_l_orange.png differ diff --git a/mods/beds/textures/beds_bed_side_top_l_red.png b/mods/beds/textures/beds_bed_side_top_l_red.png new file mode 100644 index 0000000..ac72de8 Binary files /dev/null and b/mods/beds/textures/beds_bed_side_top_l_red.png differ diff --git a/mods/beds/textures/beds_bed_side_top_l_violet.png b/mods/beds/textures/beds_bed_side_top_l_violet.png new file mode 100644 index 0000000..4396f4c Binary files /dev/null and b/mods/beds/textures/beds_bed_side_top_l_violet.png differ diff --git a/mods/beds/textures/beds_bed_side_top_l_white.png b/mods/beds/textures/beds_bed_side_top_l_white.png new file mode 100644 index 0000000..747f47b Binary files /dev/null and b/mods/beds/textures/beds_bed_side_top_l_white.png differ diff --git a/mods/beds/textures/beds_bed_side_top_l_yellow.png b/mods/beds/textures/beds_bed_side_top_l_yellow.png new file mode 100644 index 0000000..874202f Binary files /dev/null and b/mods/beds/textures/beds_bed_side_top_l_yellow.png differ diff --git a/mods/beds/textures/beds_bed_side_top_r_black.png b/mods/beds/textures/beds_bed_side_top_r_black.png new file mode 100644 index 0000000..c8ef663 Binary files /dev/null and b/mods/beds/textures/beds_bed_side_top_r_black.png differ diff --git a/mods/beds/textures/beds_bed_side_top_r_blue.png b/mods/beds/textures/beds_bed_side_top_r_blue.png new file mode 100644 index 0000000..2ede95c Binary files /dev/null and b/mods/beds/textures/beds_bed_side_top_r_blue.png differ diff --git a/mods/beds/textures/beds_bed_side_top_r_green.png b/mods/beds/textures/beds_bed_side_top_r_green.png new file mode 100644 index 0000000..bb6fc65 Binary files /dev/null and b/mods/beds/textures/beds_bed_side_top_r_green.png differ diff --git a/mods/beds/textures/beds_bed_side_top_r_grey.png b/mods/beds/textures/beds_bed_side_top_r_grey.png new file mode 100644 index 0000000..0c7399e Binary files /dev/null and b/mods/beds/textures/beds_bed_side_top_r_grey.png differ diff --git a/mods/beds/textures/beds_bed_side_top_r_orange.png b/mods/beds/textures/beds_bed_side_top_r_orange.png new file mode 100644 index 0000000..f1f09d2 Binary files /dev/null and b/mods/beds/textures/beds_bed_side_top_r_orange.png differ diff --git a/mods/beds/textures/beds_bed_side_top_r_red.png b/mods/beds/textures/beds_bed_side_top_r_red.png new file mode 100644 index 0000000..394f735 Binary files /dev/null and b/mods/beds/textures/beds_bed_side_top_r_red.png differ diff --git a/mods/beds/textures/beds_bed_side_top_r_violet.png b/mods/beds/textures/beds_bed_side_top_r_violet.png new file mode 100644 index 0000000..919c8ec Binary files /dev/null and b/mods/beds/textures/beds_bed_side_top_r_violet.png differ diff --git a/mods/beds/textures/beds_bed_side_top_r_white.png b/mods/beds/textures/beds_bed_side_top_r_white.png new file mode 100644 index 0000000..c9d46b7 Binary files /dev/null and b/mods/beds/textures/beds_bed_side_top_r_white.png differ diff --git a/mods/beds/textures/beds_bed_side_top_r_yellow.png b/mods/beds/textures/beds_bed_side_top_r_yellow.png new file mode 100644 index 0000000..805b997 Binary files /dev/null and b/mods/beds/textures/beds_bed_side_top_r_yellow.png differ diff --git a/mods/beds/textures/beds_bed_side_violet.png b/mods/beds/textures/beds_bed_side_violet.png new file mode 100644 index 0000000..75322d6 Binary files /dev/null and b/mods/beds/textures/beds_bed_side_violet.png differ diff --git a/mods/beds/textures/beds_bed_side_white.png b/mods/beds/textures/beds_bed_side_white.png new file mode 100644 index 0000000..201071f Binary files /dev/null and b/mods/beds/textures/beds_bed_side_white.png differ diff --git a/mods/beds/textures/beds_bed_side_yellow.png b/mods/beds/textures/beds_bed_side_yellow.png new file mode 100644 index 0000000..9097422 Binary files /dev/null and b/mods/beds/textures/beds_bed_side_yellow.png differ diff --git a/mods/beds/textures/beds_bed_top_bottom_black.png b/mods/beds/textures/beds_bed_top_bottom_black.png new file mode 100644 index 0000000..74aa2ce Binary files /dev/null and b/mods/beds/textures/beds_bed_top_bottom_black.png differ diff --git a/mods/beds/textures/beds_bed_top_bottom_blue.png b/mods/beds/textures/beds_bed_top_bottom_blue.png new file mode 100644 index 0000000..f91ce03 Binary files /dev/null and b/mods/beds/textures/beds_bed_top_bottom_blue.png differ diff --git a/mods/beds/textures/beds_bed_top_bottom_green.png b/mods/beds/textures/beds_bed_top_bottom_green.png new file mode 100644 index 0000000..61fcb2b Binary files /dev/null and b/mods/beds/textures/beds_bed_top_bottom_green.png differ diff --git a/mods/beds/textures/beds_bed_top_bottom_grey.png b/mods/beds/textures/beds_bed_top_bottom_grey.png new file mode 100644 index 0000000..446578f Binary files /dev/null and b/mods/beds/textures/beds_bed_top_bottom_grey.png differ diff --git a/mods/beds/textures/beds_bed_top_bottom_orange.png b/mods/beds/textures/beds_bed_top_bottom_orange.png new file mode 100644 index 0000000..39665d8 Binary files /dev/null and b/mods/beds/textures/beds_bed_top_bottom_orange.png differ diff --git a/mods/beds/textures/beds_bed_top_bottom_red.png b/mods/beds/textures/beds_bed_top_bottom_red.png new file mode 100644 index 0000000..7aa3114 Binary files /dev/null and b/mods/beds/textures/beds_bed_top_bottom_red.png differ diff --git a/mods/beds/textures/beds_bed_top_bottom_violet.png b/mods/beds/textures/beds_bed_top_bottom_violet.png new file mode 100644 index 0000000..5aaccd4 Binary files /dev/null and b/mods/beds/textures/beds_bed_top_bottom_violet.png differ diff --git a/mods/beds/textures/beds_bed_top_bottom_white.png b/mods/beds/textures/beds_bed_top_bottom_white.png new file mode 100644 index 0000000..e43f038 Binary files /dev/null and b/mods/beds/textures/beds_bed_top_bottom_white.png differ diff --git a/mods/beds/textures/beds_bed_top_bottom_yellow.png b/mods/beds/textures/beds_bed_top_bottom_yellow.png new file mode 100644 index 0000000..fa9183e Binary files /dev/null and b/mods/beds/textures/beds_bed_top_bottom_yellow.png differ diff --git a/mods/beds/textures/beds_bed_top_front.png b/mods/beds/textures/beds_bed_top_front.png new file mode 100644 index 0000000..9760d27 Binary files /dev/null and b/mods/beds/textures/beds_bed_top_front.png differ diff --git a/mods/beds/textures/beds_bed_top_top_black.png b/mods/beds/textures/beds_bed_top_top_black.png new file mode 100644 index 0000000..16491a7 Binary files /dev/null and b/mods/beds/textures/beds_bed_top_top_black.png differ diff --git a/mods/beds/textures/beds_bed_top_top_blue.png b/mods/beds/textures/beds_bed_top_top_blue.png new file mode 100644 index 0000000..4ad4870 Binary files /dev/null and b/mods/beds/textures/beds_bed_top_top_blue.png differ diff --git a/mods/beds/textures/beds_bed_top_top_green.png b/mods/beds/textures/beds_bed_top_top_green.png new file mode 100644 index 0000000..aeb502b Binary files /dev/null and b/mods/beds/textures/beds_bed_top_top_green.png differ diff --git a/mods/beds/textures/beds_bed_top_top_grey.png b/mods/beds/textures/beds_bed_top_top_grey.png new file mode 100644 index 0000000..9cf4b5e Binary files /dev/null and b/mods/beds/textures/beds_bed_top_top_grey.png differ diff --git a/mods/beds/textures/beds_bed_top_top_orange.png b/mods/beds/textures/beds_bed_top_top_orange.png new file mode 100644 index 0000000..6aba3c6 Binary files /dev/null and b/mods/beds/textures/beds_bed_top_top_orange.png differ diff --git a/mods/beds/textures/beds_bed_top_top_red.png b/mods/beds/textures/beds_bed_top_top_red.png new file mode 100644 index 0000000..fae58c5 Binary files /dev/null and b/mods/beds/textures/beds_bed_top_top_red.png differ diff --git a/mods/beds/textures/beds_bed_top_top_violet.png b/mods/beds/textures/beds_bed_top_top_violet.png new file mode 100644 index 0000000..c981302 Binary files /dev/null and b/mods/beds/textures/beds_bed_top_top_violet.png differ diff --git a/mods/beds/textures/beds_bed_top_top_white.png b/mods/beds/textures/beds_bed_top_top_white.png new file mode 100644 index 0000000..0e47f84 Binary files /dev/null and b/mods/beds/textures/beds_bed_top_top_white.png differ diff --git a/mods/beds/textures/beds_bed_top_top_yellow.png b/mods/beds/textures/beds_bed_top_top_yellow.png new file mode 100644 index 0000000..7935fe5 Binary files /dev/null and b/mods/beds/textures/beds_bed_top_top_yellow.png differ diff --git a/mods/bones/README.txt b/mods/bones/README.txt new file mode 100644 index 0000000..b0ebed8 --- /dev/null +++ b/mods/bones/README.txt @@ -0,0 +1,17 @@ +Minetest 0.4 mod: bones +======================= + +License of source code: +----------------------- +Copyright (C) 2012 PilzAdam + +WTFPL + +License of media (textures and sounds) +-------------------------------------- +Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0) +http://creativecommons.org/licenses/by-sa/3.0/ + +Authors of media files +---------------------- +Bad_Command_ diff --git a/mods/bones/depends.txt b/mods/bones/depends.txt new file mode 100644 index 0000000..4ad96d5 --- /dev/null +++ b/mods/bones/depends.txt @@ -0,0 +1 @@ +default diff --git a/mods/bones/init.lua b/mods/bones/init.lua new file mode 100644 index 0000000..72849c4 --- /dev/null +++ b/mods/bones/init.lua @@ -0,0 +1,131 @@ +-- Minetest 0.4 mod: bones +-- See README.txt for licensing and other information. + +local function is_owner(pos, name) + local owner = minetest.get_meta(pos):get_string("owner") + if owner == "" or owner == name then + return true + end + return false +end + +minetest.register_node("bones:bones", { + description = "Bones", + tiles = { + "bones_top.png", + "bones_bottom.png", + "bones_side.png", + "bones_side.png", + "bones_rear.png", + "bones_front.png" + }, + paramtype2 = "facedir", + groups = {dig_immediate=2}, + sounds = default.node_sound_dirt_defaults({ + footstep = {name="default_gravel_footstep", gain=0.5}, + dug = {name="default_gravel_footstep", gain=1.0}, + }), + + can_dig = function(pos, player) + local inv = minetest.get_meta(pos):get_inventory() + return is_owner(pos, player:get_player_name()) and inv:is_empty("main") + end, + + allow_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player) + if is_owner(pos, player:get_player_name()) then + return count + end + return 0 + end, + + allow_metadata_inventory_put = function(pos, listname, index, stack, player) + return 0 + end, + + allow_metadata_inventory_take = function(pos, listname, index, stack, player) + if is_owner(pos, player:get_player_name()) then + return stack:get_count() + end + return 0 + end, + + on_metadata_inventory_take = function(pos, listname, index, stack, player) + local meta = minetest.get_meta(pos) + if meta:get_string("owner") ~= "" and meta:get_inventory():is_empty("main") then + meta:set_string("infotext", meta:get_string("owner").."'s old bones") + meta:set_string("formspec", "") + meta:set_string("owner", "") + end + end, + + on_timer = function(pos, elapsed) + local meta = minetest.get_meta(pos) + local time = meta:get_int("time")+elapsed + local publish = 1200 + if tonumber(minetest.setting_get("share_bones_time")) then + publish = tonumber(minetest.setting_get("share_bones_time")) + end + if publish == 0 then + return + end + if time >= publish then + meta:set_string("infotext", meta:get_string("owner").."'s old bones") + meta:set_string("owner", "") + else + return true + end + end, +}) + +minetest.register_on_dieplayer(function(player) + if minetest.setting_getbool("creative_mode") then + return + end + + local pos = player:getpos() + pos.x = math.floor(pos.x+0.5) + pos.y = math.floor(pos.y+0.5) + pos.z = math.floor(pos.z+0.5) + local param2 = minetest.dir_to_facedir(player:get_look_dir()) + + local nn = minetest.get_node(pos).name + if minetest.registered_nodes[nn].can_dig and + not minetest.registered_nodes[nn].can_dig(pos, player) then + local player_inv = player:get_inventory() + + for i=1,player_inv:get_size("main") do + player_inv:set_stack("main", i, nil) + end + for i=1,player_inv:get_size("craft") do + player_inv:set_stack("craft", i, nil) + end + return + end + + minetest.dig_node(pos) + minetest.add_node(pos, {name="bones:bones", param2=param2}) + + local meta = minetest.get_meta(pos) + local inv = meta:get_inventory() + local player_inv = player:get_inventory() + inv:set_size("main", 8*4) + + local empty_list = inv:get_list("main") + inv:set_list("main", player_inv:get_list("main")) + player_inv:set_list("main", empty_list) + + for i=1,player_inv:get_size("craft") do + inv:add_item("main", player_inv:get_stack("craft", i)) + player_inv:set_stack("craft", i, nil) + end + + meta:set_string("formspec", "size[8,9;]".. + "list[current_name;main;0,0;8,4;]".. + "list[current_player;main;0,5;8,4;]") + meta:set_string("infotext", player:get_player_name().."'s fresh bones") + meta:set_string("owner", player:get_player_name()) + meta:set_int("time", 0) + + local timer = minetest.get_node_timer(pos) + timer:start(10) +end) diff --git a/mods/bones/textures/bones_bottom.png b/mods/bones/textures/bones_bottom.png new file mode 100644 index 0000000..899ae3b Binary files /dev/null and b/mods/bones/textures/bones_bottom.png differ diff --git a/mods/bones/textures/bones_front.png b/mods/bones/textures/bones_front.png new file mode 100644 index 0000000..3261290 Binary files /dev/null and b/mods/bones/textures/bones_front.png differ diff --git a/mods/bones/textures/bones_rear.png b/mods/bones/textures/bones_rear.png new file mode 100644 index 0000000..bf66d5f Binary files /dev/null and b/mods/bones/textures/bones_rear.png differ diff --git a/mods/bones/textures/bones_side.png b/mods/bones/textures/bones_side.png new file mode 100644 index 0000000..88fdfdd Binary files /dev/null and b/mods/bones/textures/bones_side.png differ diff --git a/mods/bones/textures/bones_top.png b/mods/bones/textures/bones_top.png new file mode 100644 index 0000000..08b156d Binary files /dev/null and b/mods/bones/textures/bones_top.png differ diff --git a/mods/bucket/README.txt b/mods/bucket/README.txt new file mode 100644 index 0000000..7dad641 --- /dev/null +++ b/mods/bucket/README.txt @@ -0,0 +1,26 @@ +Minetest 0.4 mod: bucket +========================= + +License of source code: +----------------------- +Copyright (C) 2011-2012 Kahrl +Copyright (C) 2011-2012 celeron55, Perttu Ahola + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU Lesser General Public License as published by +the Free Software Foundation; either version 2 of the License, or +(at your option) any later version. + +http://www.gnu.org/licenses/lgpl-2.1.html + +License of media (textures and sounds) +-------------------------------------- +Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0) +http://creativecommons.org/licenses/by-sa/3.0/ + +Authors of media files +----------------------- +Everything not listed in here: +Copyright (C) 2010-2012 celeron55, Perttu Ahola + + diff --git a/mods/bucket/depends.txt b/mods/bucket/depends.txt new file mode 100644 index 0000000..3a7daa1 --- /dev/null +++ b/mods/bucket/depends.txt @@ -0,0 +1,2 @@ +default + diff --git a/mods/bucket/init.lua b/mods/bucket/init.lua new file mode 100644 index 0000000..eeff992 --- /dev/null +++ b/mods/bucket/init.lua @@ -0,0 +1,183 @@ +-- Minetest 0.4 mod: bucket +-- See README.txt for licensing and other information. + +local LIQUID_MAX = 8 --The number of water levels when liquid_finite is enabled + +minetest.register_alias("bucket", "bucket:bucket_empty") +minetest.register_alias("bucket_water", "bucket:bucket_water") +minetest.register_alias("bucket_lava", "bucket:bucket_lava") + +minetest.register_craft({ + output = 'bucket:bucket_empty 1', + recipe = { + {'default:steel_ingot', '', 'default:steel_ingot'}, + {'', 'default:steel_ingot', ''}, + } +}) + +bucket = {} +bucket.liquids = {} + +local function check_protection(pos, name, text) + if minetest.is_protected(pos, name) then + minetest.log("action", (name ~= "" and name or "A mod") + .. " tried to " .. text + .. " at protected position " + .. minetest.pos_to_string(pos) + .. " with a bucket") + minetest.record_protection_violation(pos, name) + return true + end + return false +end + +-- Register a new liquid +-- source = name of the source node +-- flowing = name of the flowing node +-- itemname = name of the new bucket item (or nil if liquid is not takeable) +-- inventory_image = texture of the new bucket item (ignored if itemname == nil) +-- This function can be called from any mod (that depends on bucket). +function bucket.register_liquid(source, flowing, itemname, inventory_image, name) + bucket.liquids[source] = { + source = source, + flowing = flowing, + itemname = itemname, + } + bucket.liquids[flowing] = bucket.liquids[source] + + if itemname ~= nil then + minetest.register_craftitem(itemname, { + description = name, + inventory_image = inventory_image, + stack_max = 1, + liquids_pointable = true, + groups = {not_in_creative_inventory=1}, + on_place = function(itemstack, user, pointed_thing) + -- Must be pointing to node + if pointed_thing.type ~= "node" then + return + end + + local node = minetest.get_node_or_nil(pointed_thing.under) + local ndef + if node then + ndef = minetest.registered_nodes[node.name] + end + -- Call on_rightclick if the pointed node defines it + if ndef and ndef.on_rightclick and + user and not user:get_player_control().sneak then + return ndef.on_rightclick( + pointed_thing.under, + node, user, + itemstack) or itemstack + end + + local place_liquid = function(pos, node, source, flowing, fullness) + if check_protection(pos, + user and user:get_player_name() or "", + "place "..source) then + return + end + if math.floor(fullness/128) == 1 or + not minetest.setting_getbool("liquid_finite") then + minetest.add_node(pos, {name=source, + param2=fullness}) + return + elseif node.name == flowing then + fullness = fullness + node.param2 + elseif node.name == source then + fullness = LIQUID_MAX + end + + if fullness >= LIQUID_MAX then + minetest.add_node(pos, {name=source, + param2=LIQUID_MAX}) + else + minetest.add_node(pos, {name=flowing, + param2=fullness}) + end + end + + -- Check if pointing to a buildable node + local fullness = tonumber(itemstack:get_metadata()) + if not fullness then fullness = LIQUID_MAX end + + if ndef and ndef.buildable_to then + -- buildable; replace the node + place_liquid(pointed_thing.under, node, + source, flowing, fullness) + else + -- not buildable to; place the liquid above + -- check if the node above can be replaced + local node = minetest.get_node_or_nil(pointed_thing.above) + if node and minetest.registered_nodes[node.name].buildable_to then + place_liquid(pointed_thing.above, + node, source, + flowing, fullness) + else + -- do not remove the bucket with the liquid + return + end + end + return {name="bucket:bucket_empty"} + end + }) + end +end + +minetest.register_craftitem("bucket:bucket_empty", { + description = "Empty Bucket", + inventory_image = "bucket.png", + stack_max = 1, + liquids_pointable = true, + on_use = function(itemstack, user, pointed_thing) + -- Must be pointing to node + if pointed_thing.type ~= "node" then + return + end + -- Check if pointing to a liquid source + node = minetest.get_node(pointed_thing.under) + liquiddef = bucket.liquids[node.name] + if liquiddef ~= nil and liquiddef.itemname ~= nil and + (node.name == liquiddef.source or + (node.name == liquiddef.flowing and + minetest.setting_getbool("liquid_finite"))) then + if check_protection(pointed_thing.under, + user:get_player_name(), + "take ".. node.name) then + return + end + + minetest.add_node(pointed_thing.under, {name="air"}) + + if node.name == liquiddef.source then + node.param2 = LIQUID_MAX + end + return ItemStack({name = liquiddef.itemname, + metadata = tostring(node.param2)}) + end + end, +}) + +bucket.register_liquid( + "default:water_source", + "default:water_flowing", + "bucket:bucket_water", + "bucket_water.png", + "Water Bucket" +) + +bucket.register_liquid( + "default:lava_source", + "default:lava_flowing", + "bucket:bucket_lava", + "bucket_lava.png", + "Lava Bucket" +) + +minetest.register_craft({ + type = "fuel", + recipe = "bucket:bucket_lava", + burntime = 60, + replacements = {{"bucket:bucket_lava", "bucket:bucket_empty"}}, +}) diff --git a/mods/bucket/textures/bucket.png b/mods/bucket/textures/bucket.png new file mode 100644 index 0000000..7c7441c Binary files /dev/null and b/mods/bucket/textures/bucket.png differ diff --git a/mods/bucket/textures/bucket_lava.png b/mods/bucket/textures/bucket_lava.png new file mode 100644 index 0000000..7dbf61a Binary files /dev/null and b/mods/bucket/textures/bucket_lava.png differ diff --git a/mods/bucket/textures/bucket_water.png b/mods/bucket/textures/bucket_water.png new file mode 100644 index 0000000..0039df4 Binary files /dev/null and b/mods/bucket/textures/bucket_water.png differ diff --git a/mods/creative/README.txt b/mods/creative/README.txt new file mode 100644 index 0000000..7d49b98 --- /dev/null +++ b/mods/creative/README.txt @@ -0,0 +1,22 @@ +Minetest 0.4 mod: creative +========================== + +Implements creative mode. + +Switch on by using the "creative_mode" setting. + +Registered items that +- have a description, and +- do not have the group not_in_creative_inventory +are added to the creative inventory. + +License of source code and media files: +--------------------------------------- +Copyright (C) 2012 Perttu Ahola (celeron55) + +This program is free software. It comes without any warranty, to +the extent permitted by applicable law. You can redistribute it +and/or modify it under the terms of the Do What The Fuck You Want +To Public License, Version 2, as published by Sam Hocevar. See +http://sam.zoy.org/wtfpl/COPYING for more details. + diff --git a/mods/creative/depends.txt b/mods/creative/depends.txt new file mode 100644 index 0000000..4ad96d5 --- /dev/null +++ b/mods/creative/depends.txt @@ -0,0 +1 @@ +default diff --git a/mods/creative/init.lua b/mods/creative/init.lua new file mode 100644 index 0000000..fa26348 --- /dev/null +++ b/mods/creative/init.lua @@ -0,0 +1,165 @@ +-- minetest/creative/init.lua + +creative_inventory = {} +creative_inventory.creative_inventory_size = 0 + +-- Create detached creative inventory after loading all mods +minetest.after(0, function() + local inv = minetest.create_detached_inventory("creative", { + allow_move = function(inv, from_list, from_index, to_list, to_index, count, player) + if minetest.setting_getbool("creative_mode") then + return count + else + return 0 + end + end, + allow_put = function(inv, listname, index, stack, player) + return 0 + end, + allow_take = function(inv, listname, index, stack, player) + if minetest.setting_getbool("creative_mode") then + return -1 + else + return 0 + end + end, + on_move = function(inv, from_list, from_index, to_list, to_index, count, player) + end, + on_put = function(inv, listname, index, stack, player) + end, + on_take = function(inv, listname, index, stack, player) + --print(player:get_player_name().." takes item from creative inventory; listname="..dump(listname)..", index="..dump(index)..", stack="..dump(stack)) + if stack then + minetest.log("action", player:get_player_name().." takes "..dump(stack:get_name()).." from creative inventory") + --print("stack:get_name()="..dump(stack:get_name())..", stack:get_count()="..dump(stack:get_count())) + end + end, + }) + local creative_list = {} + for name,def in pairs(minetest.registered_items) do + if (not def.groups.not_in_creative_inventory or def.groups.not_in_creative_inventory == 0) + and def.description and def.description ~= "" then + table.insert(creative_list, name) + end + end + table.sort(creative_list) + inv:set_size("main", #creative_list) + for _,itemstring in ipairs(creative_list) do + inv:add_item("main", ItemStack(itemstring)) + end + creative_inventory.creative_inventory_size = #creative_list + --print("creative inventory size: "..dump(creative_inventory.creative_inventory_size)) +end) + +-- Create the trash field +local trash = minetest.create_detached_inventory("creative_trash", { + -- Allow the stack to be placed and remove it in on_put() + -- This allows the creative inventory to restore the stack + allow_put = function(inv, listname, index, stack, player) + if minetest.setting_getbool("creative_mode") then + return stack:get_count() + else + return 0 + end + end, + on_put = function(inv, listname, index, stack, player) + inv:set_stack(listname, index, "") + end, +}) +trash:set_size("main", 1) + + +creative_inventory.set_creative_formspec = function(player, start_i, pagenum) + pagenum = math.floor(pagenum) + local pagemax = math.floor((creative_inventory.creative_inventory_size-1) / (6*4) + 1) + player:set_inventory_formspec("size[13,7.5]".. + --"image[6,0.6;1,2;player.png]".. + "list[current_player;main;5,3.5;8,4;]".. + "list[current_player;craft;8,0;3,3;]".. + "list[current_player;craftpreview;12,1;1,1;]".. + "list[detached:creative;main;0.3,0.5;4,6;"..tostring(start_i).."]".. + "label[2.0,6.55;"..tostring(pagenum).."/"..tostring(pagemax).."]".. + "button[0.3,6.5;1.6,1;creative_prev;<<]".. + "button[2.7,6.5;1.6,1;creative_next;>>]".. + "label[5,1.5;Trash:]".. + "list[detached:creative_trash;main;5,2;1,1;]") +end +minetest.register_on_joinplayer(function(player) + -- If in creative mode, modify player's inventory forms + if not minetest.setting_getbool("creative_mode") then + return + end + creative_inventory.set_creative_formspec(player, 0, 1) +end) +minetest.register_on_player_receive_fields(function(player, formname, fields) + if not minetest.setting_getbool("creative_mode") then + return + end + -- Figure out current page from formspec + local current_page = 0 + local formspec = player:get_inventory_formspec() + local start_i = string.match(formspec, "list%[detached:creative;main;[%d.]+,[%d.]+;[%d.]+,[%d.]+;(%d+)%]") + start_i = tonumber(start_i) or 0 + + if fields.creative_prev then + start_i = start_i - 4*6 + end + if fields.creative_next then + start_i = start_i + 4*6 + end + + if start_i < 0 then + start_i = start_i + 4*6 + end + if start_i >= creative_inventory.creative_inventory_size then + start_i = start_i - 4*6 + end + + if start_i < 0 or start_i >= creative_inventory.creative_inventory_size then + start_i = 0 + end + + creative_inventory.set_creative_formspec(player, start_i, start_i / (6*4) + 1) +end) + +if minetest.setting_getbool("creative_mode") then + local digtime = 0.5 + minetest.register_item(":", { + type = "none", + wield_image = "wieldhand.png", + wield_scale = {x=1,y=1,z=2.5}, + range = 10, + tool_capabilities = { + full_punch_interval = 0.5, + max_drop_level = 3, + groupcaps = { + crumbly = {times={[1]=digtime, [2]=digtime, [3]=digtime}, uses=0, maxlevel=3}, + cracky = {times={[1]=digtime, [2]=digtime, [3]=digtime}, uses=0, maxlevel=3}, + snappy = {times={[1]=digtime, [2]=digtime, [3]=digtime}, uses=0, maxlevel=3}, + choppy = {times={[1]=digtime, [2]=digtime, [3]=digtime}, uses=0, maxlevel=3}, + oddly_breakable_by_hand = {times={[1]=digtime, [2]=digtime, [3]=digtime}, uses=0, maxlevel=3}, + }, + damage_groups = {fleshy = 10}, + } + }) + + minetest.register_on_placenode(function(pos, newnode, placer, oldnode, itemstack) + return true + end) + + function minetest.handle_node_drops(pos, drops, digger) + if not digger or not digger:is_player() then + return + end + local inv = digger:get_inventory() + if inv then + for _,item in ipairs(drops) do + item = ItemStack(item):get_name() + if not inv:contains_item("main", item) then + inv:add_item("main", item) + end + end + end + end + +end diff --git a/mods/default/README.txt b/mods/default/README.txt new file mode 100644 index 0000000..496bc58 --- /dev/null +++ b/mods/default/README.txt @@ -0,0 +1,181 @@ +Minetest 0.4 mod: default +========================== + +License of source code: +----------------------- +Copyright (C) 2011-2012 celeron55, Perttu Ahola + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU Lesser General Public License as published by +the Free Software Foundation; either version 2.1 of the License, or +(at your option) any later version. + +http://www.gnu.org/licenses/lgpl-2.1.html + +License of media (textures and sounds) +-------------------------------------- +Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0) +http://creativecommons.org/licenses/by-sa/3.0/ + +Authors of media files +----------------------- +Everything not listed in here: +Copyright (C) 2010-2012 celeron55, Perttu Ahola + +Cisoun's WTFPL texture pack: + default_chest_front.png + default_chest_lock.png + default_chest_side.png + default_chest_top.png + default_stone_brick.png + default_dirt.png + default_grass.png + default_grass_side.png + default_jungletree.png + default_jungletree_top.png + default_lava.png + default_leaves.png + default_sapling.png + default_sign_wall.png + default_stone.png + default_tool_mesepick.png + default_tool_steelpick.png + default_tool_steelshovel.png + default_tool_stonepick.png + default_tool_stoneshovel.png + default_tool_woodpick.png + default_tool_woodshovel.png + default_tree.png + default_tree_top.png + default_water.png + +Originating from G4JC's Almost MC Texture Pack: + default_wood.png + default_torch.png + default_torch_on_ceiling.png + default_torch_on_floor.png + default_cobble.png + +VanessaE's animated torches (WTFPL): + default_torch_animated.png + default_torch_on_ceiling_animated.png + default_torch_on_floor_animated.png + default_torch_on_floor.png + +RealBadAngel's animated water (WTFPL): + default_water_source_animated.png + default_water_flowing_animated.png + +VanessaE (WTFPL): + default_nc_back.png + default_nc_front.png + default_nc_rb.png + default_nc_side.png + default_grass_*.png + default_desert_sand.png + default_desert_stone.png + default_desert_stone_brick.png + default_sand.png + default_sandstone_brick.png + +Calinou (CC BY-SA): + default_brick.png + default_clay_brick.png + default_papyrus.png + default_tool_steelsword.png + default_bronze_ingot.png + default_copper_ingot.png + default_copper_lump.png + default_mineral_copper.png + +MirceaKitsune (WTFPL): + character.x + +Jordach (CC BY-SA 3.0): + character.png + +PilzAdam (WTFPL): + default_jungleleaves.png + default_junglesapling.png + default_junglewood.png + default_obsidian_glass.png + default_obsidian_shard.png + default_mossycobble.png + default_gold_ingot.png + default_gold_lump.png + default_mineral_gold.png + default_diamond.png + default_tool_diamondpick.png + default_tool_diamondsword.png + default_tool_diamondshovel.png + default_tool_diamondaxe.png + default_tool_meseaxe.png + default_tool_meseshovel.png + default_tool_mesesword.png + default_tool_bronzeaxe.png + default_tool_bronzepick.png + default_tool_bronzeshovel.png + default_tool_bronzesword.png + default_snowball.png + +jojoa1997 (WTFPL): + default_obsidian.png + +InfinityProject (WTFPL): + default_mineral_diamond.png + +Splizard (CC BY-SA 3.0): + default_snow.png + default_snow_side.png + default_ice.png + +Zeg9 (CC BY-SA 3.0): + default_coal_block.png + default_steel_block.png + default_copper_block.png + default_bronze_block.png + default_gold_block.png + default_diamond_block.png + +kaeza (WTFPL): + bubble.png + +Glass breaking sounds (CC BY 3.0): + 1: http://www.freesound.org/people/cmusounddesign/sounds/71947/ + 2: http://www.freesound.org/people/Tomlija/sounds/97669/ + 3: http://www.freesound.org/people/lsprice/sounds/88808/ + +Mito551 (sounds) (CC BY-SA): + default_dig_choppy.ogg + default_dig_cracky.ogg + default_dig_crumbly.1.ogg + default_dig_crumbly.2.ogg + default_dig_dig_immediate.ogg + default_dig_oddly_breakable_by_hand.ogg + default_dug_node.1.ogg + default_dug_node.2.ogg + default_grass_footstep.1.ogg + default_grass_footstep.2.ogg + default_grass_footstep.3.ogg + default_gravel_footstep.1.ogg + default_gravel_footstep.2.ogg + default_gravel_footstep.3.ogg + default_gravel_footstep.4.ogg + default_grass_footstep.1.ogg + default_place_node.1.ogg + default_place_node.2.ogg + default_place_node.3.ogg + default_place_node_hard.1.ogg + default_place_node_hard.2.ogg + default_snow_footstep.1.ogg + default_snow_footstep.2.ogg + default_hard_footstep.1.ogg + default_hard_footstep.2.ogg + default_hard_footstep.3.ogg + default_sand_footstep.1.ogg + default_sand_footstep.2.ogg + default_wood_footstep.1.ogg + default_wood_footstep.2.ogg + default_dirt_footstep.1.ogg + default_dirt_footstep.2.ogg + default_glass_footstep.ogg diff --git a/mods/default/crafting.lua b/mods/default/crafting.lua new file mode 100644 index 0000000..c4f353a --- /dev/null +++ b/mods/default/crafting.lua @@ -0,0 +1,742 @@ +-- mods/default/crafting.lua + +minetest.register_craft({ + output = 'default:wood 4', + recipe = { + {'default:tree'}, + } +}) + +minetest.register_craft({ + output = 'default:junglewood 4', + recipe = { + {'default:jungletree'}, + } +}) + +minetest.register_craft({ + output = 'default:stick 4', + recipe = { + {'group:wood'}, + } +}) + +minetest.register_craft({ + output = 'default:fence_wood 2', + recipe = { + {'group:stick', 'group:stick', 'group:stick'}, + {'group:stick', 'group:stick', 'group:stick'}, + } +}) + +minetest.register_craft({ + output = 'default:sign_wall', + recipe = { + {'group:wood', 'group:wood', 'group:wood'}, + {'group:wood', 'group:wood', 'group:wood'}, + {'', 'group:stick', ''}, + } +}) + +minetest.register_craft({ + output = 'default:torch 4', + recipe = { + {'default:coal_lump'}, + {'group:stick'}, + } +}) + +minetest.register_craft({ + output = 'default:pick_wood', + recipe = { + {'group:wood', 'group:wood', 'group:wood'}, + {'', 'group:stick', ''}, + {'', 'group:stick', ''}, + } +}) + +minetest.register_craft({ + output = 'default:pick_stone', + recipe = { + {'group:stone', 'group:stone', 'group:stone'}, + {'', 'group:stick', ''}, + {'', 'group:stick', ''}, + } +}) + +minetest.register_craft({ + output = 'default:pick_steel', + recipe = { + {'default:steel_ingot', 'default:steel_ingot', 'default:steel_ingot'}, + {'', 'group:stick', ''}, + {'', 'group:stick', ''}, + } +}) + +minetest.register_craft({ + output = 'default:pick_bronze', + recipe = { + {'default:bronze_ingot', 'default:bronze_ingot', 'default:bronze_ingot'}, + {'', 'group:stick', ''}, + {'', 'group:stick', ''}, + } +}) + +minetest.register_craft({ + output = 'default:pick_mese', + recipe = { + {'default:mese_crystal', 'default:mese_crystal', 'default:mese_crystal'}, + {'', 'group:stick', ''}, + {'', 'group:stick', ''}, + } +}) + +minetest.register_craft({ + output = 'default:pick_diamond', + recipe = { + {'default:diamond', 'default:diamond', 'default:diamond'}, + {'', 'group:stick', ''}, + {'', 'group:stick', ''}, + } +}) + +minetest.register_craft({ + output = 'default:shovel_wood', + recipe = { + {'group:wood'}, + {'group:stick'}, + {'group:stick'}, + } +}) + +minetest.register_craft({ + output = 'default:shovel_stone', + recipe = { + {'group:stone'}, + {'group:stick'}, + {'group:stick'}, + } +}) + +minetest.register_craft({ + output = 'default:shovel_steel', + recipe = { + {'default:steel_ingot'}, + {'group:stick'}, + {'group:stick'}, + } +}) + +minetest.register_craft({ + output = 'default:shovel_bronze', + recipe = { + {'default:bronze_ingot'}, + {'group:stick'}, + {'group:stick'}, + } +}) + +minetest.register_craft({ + output = 'default:shovel_mese', + recipe = { + {'default:mese_crystal'}, + {'group:stick'}, + {'group:stick'}, + } +}) + +minetest.register_craft({ + output = 'default:shovel_diamond', + recipe = { + {'default:diamond'}, + {'group:stick'}, + {'group:stick'}, + } +}) + +minetest.register_craft({ + output = 'default:axe_wood', + recipe = { + {'group:wood', 'group:wood'}, + {'group:wood', 'group:stick'}, + {'', 'group:stick'}, + } +}) + +minetest.register_craft({ + output = 'default:axe_stone', + recipe = { + {'group:stone', 'group:stone'}, + {'group:stone', 'group:stick'}, + {'', 'group:stick'}, + } +}) + +minetest.register_craft({ + output = 'default:axe_steel', + recipe = { + {'default:steel_ingot', 'default:steel_ingot'}, + {'default:steel_ingot', 'group:stick'}, + {'', 'group:stick'}, + } +}) + +minetest.register_craft({ + output = 'default:axe_bronze', + recipe = { + {'default:bronze_ingot', 'default:bronze_ingot'}, + {'default:bronze_ingot', 'group:stick'}, + {'', 'group:stick'}, + } +}) + +minetest.register_craft({ + output = 'default:axe_mese', + recipe = { + {'default:mese_crystal', 'default:mese_crystal'}, + {'default:mese_crystal', 'group:stick'}, + {'', 'group:stick'}, + } +}) + +minetest.register_craft({ + output = 'default:axe_diamond', + recipe = { + {'default:diamond', 'default:diamond'}, + {'default:diamond', 'group:stick'}, + {'', 'group:stick'}, + } +}) + +minetest.register_craft({ + output = 'default:sword_wood', + recipe = { + {'group:wood'}, + {'group:wood'}, + {'group:stick'}, + } +}) + +minetest.register_craft({ + output = 'default:sword_stone', + recipe = { + {'group:stone'}, + {'group:stone'}, + {'group:stick'}, + } +}) + +minetest.register_craft({ + output = 'default:sword_steel', + recipe = { + {'default:steel_ingot'}, + {'default:steel_ingot'}, + {'group:stick'}, + } +}) + +minetest.register_craft({ + output = 'default:sword_bronze', + recipe = { + {'default:bronze_ingot'}, + {'default:bronze_ingot'}, + {'group:stick'}, + } +}) + +minetest.register_craft({ + output = 'default:sword_mese', + recipe = { + {'default:mese_crystal'}, + {'default:mese_crystal'}, + {'group:stick'}, + } +}) + +minetest.register_craft({ + output = 'default:sword_diamond', + recipe = { + {'default:diamond'}, + {'default:diamond'}, + {'group:stick'}, + } +}) + +minetest.register_craft({ + output = 'default:rail 15', + recipe = { + {'default:steel_ingot', '', 'default:steel_ingot'}, + {'default:steel_ingot', 'group:stick', 'default:steel_ingot'}, + {'default:steel_ingot', '', 'default:steel_ingot'}, + } +}) + +minetest.register_craft({ + output = 'default:chest', + recipe = { + {'group:wood', 'group:wood', 'group:wood'}, + {'group:wood', '', 'group:wood'}, + {'group:wood', 'group:wood', 'group:wood'}, + } +}) + +minetest.register_craft({ + output = 'default:chest_locked', + recipe = { + {'group:wood', 'group:wood', 'group:wood'}, + {'group:wood', 'default:steel_ingot', 'group:wood'}, + {'group:wood', 'group:wood', 'group:wood'}, + } +}) + +minetest.register_craft({ + output = 'default:furnace', + recipe = { + {'group:stone', 'group:stone', 'group:stone'}, + {'group:stone', '', 'group:stone'}, + {'group:stone', 'group:stone', 'group:stone'}, + } +}) + +minetest.register_craft({ + type = "shapeless", + output = "default:bronze_ingot", + recipe = {"default:steel_ingot", "default:copper_ingot"}, +}) + +minetest.register_craft({ + output = 'default:coalblock', + recipe = { + {'default:coal_lump', 'default:coal_lump', 'default:coal_lump'}, + {'default:coal_lump', 'default:coal_lump', 'default:coal_lump'}, + {'default:coal_lump', 'default:coal_lump', 'default:coal_lump'}, + } +}) + +minetest.register_craft({ + output = 'default:coal_lump 9', + recipe = { + {'default:coalblock'}, + } +}) + +minetest.register_craft({ + output = 'default:steelblock', + recipe = { + {'default:steel_ingot', 'default:steel_ingot', 'default:steel_ingot'}, + {'default:steel_ingot', 'default:steel_ingot', 'default:steel_ingot'}, + {'default:steel_ingot', 'default:steel_ingot', 'default:steel_ingot'}, + } +}) + +minetest.register_craft({ + output = 'default:steel_ingot 9', + recipe = { + {'default:steelblock'}, + } +}) + +minetest.register_craft({ + output = 'default:copperblock', + recipe = { + {'default:copper_ingot', 'default:copper_ingot', 'default:copper_ingot'}, + {'default:copper_ingot', 'default:copper_ingot', 'default:copper_ingot'}, + {'default:copper_ingot', 'default:copper_ingot', 'default:copper_ingot'}, + } +}) + +minetest.register_craft({ + output = 'default:copper_ingot 9', + recipe = { + {'default:copperblock'}, + } +}) + +minetest.register_craft({ + output = 'default:bronzeblock', + recipe = { + {'default:bronze_ingot', 'default:bronze_ingot', 'default:bronze_ingot'}, + {'default:bronze_ingot', 'default:bronze_ingot', 'default:bronze_ingot'}, + {'default:bronze_ingot', 'default:bronze_ingot', 'default:bronze_ingot'}, + } +}) + +minetest.register_craft({ + output = 'default:bronze_ingot 9', + recipe = { + {'default:bronzeblock'}, + } +}) + +minetest.register_craft({ + output = 'default:goldblock', + recipe = { + {'default:gold_ingot', 'default:gold_ingot', 'default:gold_ingot'}, + {'default:gold_ingot', 'default:gold_ingot', 'default:gold_ingot'}, + {'default:gold_ingot', 'default:gold_ingot', 'default:gold_ingot'}, + } +}) + +minetest.register_craft({ + output = 'default:gold_ingot 9', + recipe = { + {'default:goldblock'}, + } +}) + +minetest.register_craft({ + output = 'default:diamondblock', + recipe = { + {'default:diamond', 'default:diamond', 'default:diamond'}, + {'default:diamond', 'default:diamond', 'default:diamond'}, + {'default:diamond', 'default:diamond', 'default:diamond'}, + } +}) + +minetest.register_craft({ + output = 'default:diamond 9', + recipe = { + {'default:diamondblock'}, + } +}) + +minetest.register_craft({ + output = 'default:sandstone', + recipe = { + {'group:sand', 'group:sand'}, + {'group:sand', 'group:sand'}, + } +}) + +minetest.register_craft({ + output = 'default:sand 4', + recipe = { + {'default:sandstone'}, + } +}) + +minetest.register_craft({ + output = 'default:sandstonebrick', + recipe = { + {'default:sandstone', 'default:sandstone'}, + {'default:sandstone', 'default:sandstone'}, + } +}) + +minetest.register_craft({ + output = 'default:clay', + recipe = { + {'default:clay_lump', 'default:clay_lump'}, + {'default:clay_lump', 'default:clay_lump'}, + } +}) + +minetest.register_craft({ + output = 'default:brick', + recipe = { + {'default:clay_brick', 'default:clay_brick'}, + {'default:clay_brick', 'default:clay_brick'}, + } +}) + +minetest.register_craft({ + output = 'default:clay_brick 4', + recipe = { + {'default:brick'}, + } +}) + +minetest.register_craft({ + output = 'default:paper', + recipe = { + {'default:papyrus', 'default:papyrus', 'default:papyrus'}, + } +}) + +minetest.register_craft({ + output = 'default:book', + recipe = { + {'default:paper'}, + {'default:paper'}, + {'default:paper'}, + } +}) + +minetest.register_craft({ + output = 'default:bookshelf', + recipe = { + {'group:wood', 'group:wood', 'group:wood'}, + {'default:book', 'default:book', 'default:book'}, + {'group:wood', 'group:wood', 'group:wood'}, + } +}) + +minetest.register_craft({ + output = 'default:ladder', + recipe = { + {'group:stick', '', 'group:stick'}, + {'group:stick', 'group:stick', 'group:stick'}, + {'group:stick', '', 'group:stick'}, + } +}) + +minetest.register_craft({ + output = 'default:mese', + recipe = { + {'default:mese_crystal', 'default:mese_crystal', 'default:mese_crystal'}, + {'default:mese_crystal', 'default:mese_crystal', 'default:mese_crystal'}, + {'default:mese_crystal', 'default:mese_crystal', 'default:mese_crystal'}, + } +}) + +minetest.register_craft({ + output = 'default:mese_crystal 9', + recipe = { + {'default:mese'}, + } +}) + +minetest.register_craft({ + output = 'default:mese_crystal_fragment 9', + recipe = { + {'default:mese_crystal'}, + } +}) + +minetest.register_craft({ + output = 'default:obsidian_shard 9', + recipe = { + {'default:obsidian'} + } +}) + +minetest.register_craft({ + output = 'default:obsidian', + recipe = { + {'default:obsidian_shard', 'default:obsidian_shard', 'default:obsidian_shard'}, + {'default:obsidian_shard', 'default:obsidian_shard', 'default:obsidian_shard'}, + {'default:obsidian_shard', 'default:obsidian_shard', 'default:obsidian_shard'}, + } +}) + +minetest.register_craft({ + output = 'default:stonebrick', + recipe = { + {'default:stone', 'default:stone'}, + {'default:stone', 'default:stone'}, + } +}) + +minetest.register_craft({ + output = 'default:desert_stonebrick', + recipe = { + {'default:desert_stone', 'default:desert_stone'}, + {'default:desert_stone', 'default:desert_stone'}, + } +}) + +minetest.register_craft({ + output = 'default:snowblock', + recipe = { + {'default:snow', 'default:snow', 'default:snow'}, + {'default:snow', 'default:snow', 'default:snow'}, + {'default:snow', 'default:snow', 'default:snow'}, + } +}) + +minetest.register_craft({ + output = 'default:snow 9', + recipe = { + {'default:snowblock'}, + } +}) + +-- +-- Crafting (tool repair) +-- +minetest.register_craft({ + type = "toolrepair", + additional_wear = -0.02, +}) + +-- +-- Cooking recipes +-- + +minetest.register_craft({ + type = "cooking", + output = "default:glass", + recipe = "group:sand", +}) + +minetest.register_craft({ + type = "cooking", + output = "default:obsidian_glass", + recipe = "default:obsidian_shard", +}) + +minetest.register_craft({ + type = "cooking", + output = "default:stone", + recipe = "default:cobble", +}) + +minetest.register_craft({ + type = "cooking", + output = "default:steel_ingot", + recipe = "default:iron_lump", +}) + +minetest.register_craft({ + type = "cooking", + output = "default:copper_ingot", + recipe = "default:copper_lump", +}) + +minetest.register_craft({ + type = "cooking", + output = "default:gold_ingot", + recipe = "default:gold_lump", +}) + +minetest.register_craft({ + type = "cooking", + output = "default:clay_brick", + recipe = "default:clay_lump", +}) + +-- +-- Fuels +-- + +minetest.register_craft({ + type = "fuel", + recipe = "group:tree", + burntime = 30, +}) + +minetest.register_craft({ + type = "fuel", + recipe = "default:junglegrass", + burntime = 2, +}) + +minetest.register_craft({ + type = "fuel", + recipe = "group:leaves", + burntime = 1, +}) + +minetest.register_craft({ + type = "fuel", + recipe = "default:cactus", + burntime = 15, +}) + +minetest.register_craft({ + type = "fuel", + recipe = "default:papyrus", + burntime = 1, +}) + +minetest.register_craft({ + type = "fuel", + recipe = "default:bookshelf", + burntime = 30, +}) + +minetest.register_craft({ + type = "fuel", + recipe = "default:fence_wood", + burntime = 15, +}) + +minetest.register_craft({ + type = "fuel", + recipe = "default:ladder", + burntime = 5, +}) + +minetest.register_craft({ + type = "fuel", + recipe = "group:wood", + burntime = 7, +}) + +minetest.register_craft({ + type = "fuel", + recipe = "default:lava_source", + burntime = 60, +}) + +minetest.register_craft({ + type = "fuel", + recipe = "default:torch", + burntime = 4, +}) + +minetest.register_craft({ + type = "fuel", + recipe = "default:sign_wall", + burntime = 10, +}) + +minetest.register_craft({ + type = "fuel", + recipe = "default:chest", + burntime = 30, +}) + +minetest.register_craft({ + type = "fuel", + recipe = "default:chest_locked", + burntime = 30, +}) + +minetest.register_craft({ + type = "fuel", + recipe = "default:nyancat", + burntime = 1, +}) + +minetest.register_craft({ + type = "fuel", + recipe = "default:nyancat_rainbow", + burntime = 1, +}) + +minetest.register_craft({ + type = "fuel", + recipe = "default:sapling", + burntime = 10, +}) + +minetest.register_craft({ + type = "fuel", + recipe = "default:apple", + burntime = 3, +}) + +minetest.register_craft({ + type = "fuel", + recipe = "default:coal_lump", + burntime = 40, +}) + +minetest.register_craft({ + type = "fuel", + recipe = "default:coalblock", + burntime = 370, +}) + +minetest.register_craft({ + type = "fuel", + recipe = "default:junglesapling", + burntime = 10, +}) + +minetest.register_craft({ + type = "fuel", + recipe = "default:grass_1", + burntime = 2, +}) diff --git a/mods/default/craftitems.lua b/mods/default/craftitems.lua new file mode 100644 index 0000000..2d3652e --- /dev/null +++ b/mods/default/craftitems.lua @@ -0,0 +1,92 @@ +-- mods/default/craftitems.lua + +minetest.register_craftitem("default:stick", { + description = "Stick", + inventory_image = "default_stick.png", + groups = {stick=1}, +}) + +minetest.register_craftitem("default:paper", { + description = "Paper", + inventory_image = "default_paper.png", +}) + +minetest.register_craftitem("default:book", { + description = "Book", + inventory_image = "default_book.png", +}) + +minetest.register_craftitem("default:coal_lump", { + description = "Coal Lump", + inventory_image = "default_coal_lump.png", +}) + +minetest.register_craftitem("default:iron_lump", { + description = "Iron Lump", + inventory_image = "default_iron_lump.png", +}) + +minetest.register_craftitem("default:copper_lump", { + description = "Copper Lump", + inventory_image = "default_copper_lump.png", +}) + +minetest.register_craftitem("default:mese_crystal", { + description = "Mese Crystal", + inventory_image = "default_mese_crystal.png", +}) + +minetest.register_craftitem("default:gold_lump", { + description = "Gold Lump", + inventory_image = "default_gold_lump.png", +}) + +minetest.register_craftitem("default:diamond", { + description = "Diamond", + inventory_image = "default_diamond.png", +}) + +minetest.register_craftitem("default:clay_lump", { + description = "Clay Lump", + inventory_image = "default_clay_lump.png", +}) + +minetest.register_craftitem("default:steel_ingot", { + description = "Steel Ingot", + inventory_image = "default_steel_ingot.png", +}) + +minetest.register_craftitem("default:copper_ingot", { + description = "Copper Ingot", + inventory_image = "default_copper_ingot.png", +}) + +minetest.register_craftitem("default:bronze_ingot", { + description = "Bronze Ingot", + inventory_image = "default_bronze_ingot.png", +}) + +minetest.register_craftitem("default:gold_ingot", { + description = "Gold Ingot", + inventory_image = "default_gold_ingot.png" +}) + +minetest.register_craftitem("default:mese_crystal_fragment", { + description = "Mese Crystal Fragment", + inventory_image = "default_mese_crystal_fragment.png", +}) + +minetest.register_craftitem("default:clay_brick", { + description = "Clay Brick", + inventory_image = "default_clay_brick.png", +}) + +minetest.register_craftitem("default:scorched_stuff", { + description = "Scorched Stuff", + inventory_image = "default_scorched_stuff.png", +}) + +minetest.register_craftitem("default:obsidian_shard", { + description = "Obsidian Shard", + inventory_image = "default_obsidian_shard.png", +}) diff --git a/mods/default/functions.lua b/mods/default/functions.lua new file mode 100644 index 0000000..4f5f85d --- /dev/null +++ b/mods/default/functions.lua @@ -0,0 +1,367 @@ +-- mods/default/functions.lua + +-- +-- Sounds +-- + +function default.node_sound_defaults(table) + table = table or {} + table.footstep = table.footstep or + {name="", gain=1.0} + table.dug = table.dug or + {name="default_dug_node", gain=0.25} + table.place = table.place or + {name="default_place_node_hard", gain=1.0} + return table +end + +function default.node_sound_stone_defaults(table) + table = table or {} + table.footstep = table.footstep or + {name="default_hard_footstep", gain=0.5} + table.dug = table.dug or + {name="default_hard_footstep", gain=1.0} + default.node_sound_defaults(table) + return table +end + +function default.node_sound_dirt_defaults(table) + table = table or {} + table.footstep = table.footstep or + {name="default_dirt_footstep", gain=1.0} + table.dug = table.dug or + {name="default_dirt_footstep", gain=1.5} + table.place = table.place or + {name="default_place_node", gain=1.0} + default.node_sound_defaults(table) + return table +end + +function default.node_sound_sand_defaults(table) + table = table or {} + table.footstep = table.footstep or + {name="default_sand_footstep", gain=0.5} + table.dug = table.dug or + {name="default_sand_footstep", gain=1.0} + table.place = table.place or + {name="default_place_node", gain=1.0} + default.node_sound_defaults(table) + return table +end + +function default.node_sound_wood_defaults(table) + table = table or {} + table.footstep = table.footstep or + {name="default_wood_footstep", gain=0.5} + table.dug = table.dug or + {name="default_wood_footstep", gain=1.0} + default.node_sound_defaults(table) + return table +end + +function default.node_sound_leaves_defaults(table) + table = table or {} + table.footstep = table.footstep or + {name="default_grass_footstep", gain=0.35} + table.dug = table.dug or + {name="default_grass_footstep", gain=0.85} + table.dig = table.dig or + {name="default_dig_crumbly", gain=0.4} + table.place = table.place or + {name="default_place_node", gain=1.0} + default.node_sound_defaults(table) + return table +end + +function default.node_sound_glass_defaults(table) + table = table or {} + table.footstep = table.footstep or + {name="default_glass_footstep", gain=0.5} + table.dug = table.dug or + {name="default_break_glass", gain=1.0} + default.node_sound_defaults(table) + return table +end + +-- +-- Legacy +-- + +function default.spawn_falling_node(p, nodename) + spawn_falling_node(p, nodename) +end + +-- Horrible crap to support old code +-- Don't use this and never do what this does, it's completely wrong! +-- (More specifically, the client and the C++ code doesn't get the group) +function default.register_falling_node(nodename, texture) + minetest.log("error", debug.traceback()) + minetest.log('error', "WARNING: default.register_falling_node is deprecated") + if minetest.registered_nodes[nodename] then + minetest.registered_nodes[nodename].groups.falling_node = 1 + end +end + +-- +-- Global callbacks +-- + +-- Global environment step function +function on_step(dtime) + -- print("on_step") +end +minetest.register_globalstep(on_step) + +function on_placenode(p, node) + --print("on_placenode") +end +minetest.register_on_placenode(on_placenode) + +function on_dignode(p, node) + --print("on_dignode") +end +minetest.register_on_dignode(on_dignode) + +function on_punchnode(p, node) +end +minetest.register_on_punchnode(on_punchnode) + + +-- +-- Grow trees +-- + +minetest.register_abm({ + nodenames = {"default:sapling"}, + interval = 10, + chance = 50, + action = function(pos, node) + local nu = minetest.get_node({x=pos.x, y=pos.y-1, z=pos.z}).name + local is_soil = minetest.get_item_group(nu, "soil") + if is_soil == 0 then + return + end + + minetest.log("action", "A sapling grows into a tree at "..minetest.pos_to_string(pos)) + local vm = minetest.get_voxel_manip() + local minp, maxp = vm:read_from_map({x=pos.x-16, y=pos.y, z=pos.z-16}, {x=pos.x+16, y=pos.y+16, z=pos.z+16}) + local a = VoxelArea:new{MinEdge=minp, MaxEdge=maxp} + local data = vm:get_data() + default.grow_tree(data, a, pos, math.random(1, 4) == 1, math.random(1,100000)) + vm:set_data(data) + vm:write_to_map(data) + vm:update_map() + end +}) + +minetest.register_abm({ + nodenames = {"default:junglesapling"}, + interval = 10, + chance = 50, + action = function(pos, node) + local nu = minetest.get_node({x=pos.x, y=pos.y-1, z=pos.z}).name + local is_soil = minetest.get_item_group(nu, "soil") + if is_soil == 0 then + return + end + + minetest.log("action", "A jungle sapling grows into a tree at "..minetest.pos_to_string(pos)) + local vm = minetest.get_voxel_manip() + local minp, maxp = vm:read_from_map({x=pos.x-16, y=pos.y-1, z=pos.z-16}, {x=pos.x+16, y=pos.y+16, z=pos.z+16}) + local a = VoxelArea:new{MinEdge=minp, MaxEdge=maxp} + local data = vm:get_data() + default.grow_jungletree(data, a, pos, math.random(1,100000)) + vm:set_data(data) + vm:write_to_map(data) + vm:update_map() + end +}) + +-- +-- Lavacooling +-- + +default.cool_lava_source = function(pos) + minetest.set_node(pos, {name="default:obsidian"}) + minetest.sound_play("default_cool_lava", {pos = pos, gain = 0.25}) +end + +default.cool_lava_flowing = function(pos) + minetest.set_node(pos, {name="default:stone"}) + minetest.sound_play("default_cool_lava", {pos = pos, gain = 0.25}) +end + +minetest.register_abm({ + nodenames = {"default:lava_flowing"}, + neighbors = {"group:water"}, + interval = 1, + chance = 1, + action = function(pos, node, active_object_count, active_object_count_wider) + default.cool_lava_flowing(pos, node, active_object_count, active_object_count_wider) + end, +}) + +minetest.register_abm({ + nodenames = {"default:lava_source"}, + neighbors = {"group:water"}, + interval = 1, + chance = 1, + action = function(pos, node, active_object_count, active_object_count_wider) + default.cool_lava_source(pos, node, active_object_count, active_object_count_wider) + end, +}) + +-- +-- Papyrus and cactus growing +-- + +minetest.register_abm({ + nodenames = {"default:cactus"}, + neighbors = {"group:sand"}, + interval = 50, + chance = 20, + action = function(pos, node) + pos.y = pos.y-1 + local name = minetest.get_node(pos).name + if minetest.get_item_group(name, "sand") ~= 0 then + pos.y = pos.y+1 + local height = 0 + while minetest.get_node(pos).name == "default:cactus" and height < 4 do + height = height+1 + pos.y = pos.y+1 + end + if height < 4 then + if minetest.get_node(pos).name == "air" then + minetest.set_node(pos, {name="default:cactus"}) + end + end + end + end, +}) + +minetest.register_abm({ + nodenames = {"default:papyrus"}, + neighbors = {"default:dirt", "default:dirt_with_grass"}, + interval = 50, + chance = 20, + action = function(pos, node) + pos.y = pos.y-1 + local name = minetest.get_node(pos).name + if name == "default:dirt" or name == "default:dirt_with_grass" then + if minetest.find_node_near(pos, 3, {"group:water"}) == nil then + return + end + pos.y = pos.y+1 + local height = 0 + while minetest.get_node(pos).name == "default:papyrus" and height < 4 do + height = height+1 + pos.y = pos.y+1 + end + if height < 4 then + if minetest.get_node(pos).name == "air" then + minetest.set_node(pos, {name="default:papyrus"}) + end + end + end + end, +}) + +-- +-- Leafdecay +-- + +-- To enable leaf decay for a node, add it to the "leafdecay" group. +-- +-- The rating of the group determines how far from a node in the group "tree" +-- the node can be without decaying. +-- +-- If param2 of the node is ~= 0, the node will always be preserved. Thus, if +-- the player places a node of that kind, you will want to set param2=1 or so. +-- +-- If the node is in the leafdecay_drop group then the it will always be dropped +-- as an item + +default.leafdecay_trunk_cache = {} +default.leafdecay_enable_cache = true +-- Spread the load of finding trunks +default.leafdecay_trunk_find_allow_accumulator = 0 + +minetest.register_globalstep(function(dtime) + local finds_per_second = 5000 + default.leafdecay_trunk_find_allow_accumulator = + math.floor(dtime * finds_per_second) +end) + +minetest.register_abm({ + nodenames = {"group:leafdecay"}, + neighbors = {"air", "group:liquid"}, + -- A low interval and a high inverse chance spreads the load + interval = 2, + chance = 5, + + action = function(p0, node, _, _) + --print("leafdecay ABM at "..p0.x..", "..p0.y..", "..p0.z..")") + local do_preserve = false + local d = minetest.registered_nodes[node.name].groups.leafdecay + if not d or d == 0 then + --print("not groups.leafdecay") + return + end + local n0 = minetest.get_node(p0) + if n0.param2 ~= 0 then + --print("param2 ~= 0") + return + end + local p0_hash = nil + if default.leafdecay_enable_cache then + p0_hash = minetest.hash_node_position(p0) + local trunkp = default.leafdecay_trunk_cache[p0_hash] + if trunkp then + local n = minetest.get_node(trunkp) + local reg = minetest.registered_nodes[n.name] + -- Assume ignore is a trunk, to make the thing work at the border of the active area + if n.name == "ignore" or (reg and reg.groups.tree and reg.groups.tree ~= 0) then + --print("cached trunk still exists") + return + end + --print("cached trunk is invalid") + -- Cache is invalid + table.remove(default.leafdecay_trunk_cache, p0_hash) + end + end + if default.leafdecay_trunk_find_allow_accumulator <= 0 then + return + end + default.leafdecay_trunk_find_allow_accumulator = + default.leafdecay_trunk_find_allow_accumulator - 1 + -- Assume ignore is a trunk, to make the thing work at the border of the active area + local p1 = minetest.find_node_near(p0, d, {"ignore", "group:tree"}) + if p1 then + do_preserve = true + if default.leafdecay_enable_cache then + --print("caching trunk") + -- Cache the trunk + default.leafdecay_trunk_cache[p0_hash] = p1 + end + end + if not do_preserve then + -- Drop stuff other than the node itself + itemstacks = minetest.get_node_drops(n0.name) + for _, itemname in ipairs(itemstacks) do + if minetest.get_item_group(n0.name, "leafdecay_drop") ~= 0 or + itemname ~= n0.name then + local p_drop = { + x = p0.x - 0.5 + math.random(), + y = p0.y - 0.5 + math.random(), + z = p0.z - 0.5 + math.random(), + } + minetest.add_item(p_drop, itemname) + end + end + -- Remove node + minetest.remove_node(p0) + nodeupdate(p0) + end + end +}) + diff --git a/mods/default/init.lua b/mods/default/init.lua new file mode 100644 index 0000000..968cacd --- /dev/null +++ b/mods/default/init.lua @@ -0,0 +1,22 @@ +-- Minetest 0.4 mod: default +-- See README.txt for licensing and other information. + +-- The API documentation in here was moved into doc/lua_api.txt + +WATER_ALPHA = 160 +WATER_VISC = 1 +LAVA_VISC = 7 +LIGHT_MAX = 14 + +-- Definitions made by this mod that other mods can use too +default = {} + +-- Load files +dofile(minetest.get_modpath("default").."/functions.lua") +dofile(minetest.get_modpath("default").."/nodes.lua") +dofile(minetest.get_modpath("default").."/tools.lua") +dofile(minetest.get_modpath("default").."/craftitems.lua") +dofile(minetest.get_modpath("default").."/crafting.lua") +dofile(minetest.get_modpath("default").."/mapgen.lua") +dofile(minetest.get_modpath("default").."/player.lua") +dofile(minetest.get_modpath("default").."/trees.lua") diff --git a/mods/default/mapgen.lua b/mods/default/mapgen.lua new file mode 100644 index 0000000..4907cf7 --- /dev/null +++ b/mods/default/mapgen.lua @@ -0,0 +1,513 @@ +-- mods/default/mapgen.lua + +-- +-- Aliases for map generator outputs +-- + +minetest.register_alias("mapgen_stone", "default:stone") +minetest.register_alias("mapgen_tree", "default:tree") +minetest.register_alias("mapgen_leaves", "default:leaves") +minetest.register_alias("mapgen_jungletree", "default:jungletree") +minetest.register_alias("mapgen_jungleleaves", "default:jungleleaves") +minetest.register_alias("mapgen_apple", "default:apple") +minetest.register_alias("mapgen_water_source", "default:water_source") +minetest.register_alias("mapgen_dirt", "default:dirt") +minetest.register_alias("mapgen_sand", "default:sand") +minetest.register_alias("mapgen_gravel", "default:gravel") +minetest.register_alias("mapgen_clay", "default:clay") +minetest.register_alias("mapgen_lava_source", "default:lava_source") +minetest.register_alias("mapgen_cobble", "default:cobble") +minetest.register_alias("mapgen_mossycobble", "default:mossycobble") +minetest.register_alias("mapgen_dirt_with_grass", "default:dirt_with_grass") +minetest.register_alias("mapgen_junglegrass", "default:junglegrass") +minetest.register_alias("mapgen_stone_with_coal", "default:stone_with_coal") +minetest.register_alias("mapgen_stone_with_iron", "default:stone_with_iron") +minetest.register_alias("mapgen_mese", "default:mese") +minetest.register_alias("mapgen_desert_sand", "default:desert_sand") +minetest.register_alias("mapgen_desert_stone", "default:desert_stone") +minetest.register_alias("mapgen_stair_cobble", "stairs:stair_cobble") + +-- +-- Ore generation +-- + +minetest.register_ore({ + ore_type = "scatter", + ore = "default:stone_with_coal", + wherein = "default:stone", + clust_scarcity = 8*8*8, + clust_num_ores = 8, + clust_size = 3, + height_min = -31000, + height_max = 64, +}) + +minetest.register_ore({ + ore_type = "scatter", + ore = "default:stone_with_coal", + wherein = "default:stone", + clust_scarcity = 24*24*24, + clust_num_ores = 27, + clust_size = 6, + height_min = -31000, + height_max = 0, + flags = "absheight", +}) + +minetest.register_ore({ + ore_type = "scatter", + ore = "default:stone_with_iron", + wherein = "default:stone", + clust_scarcity = 12*12*12, + clust_num_ores = 3, + clust_size = 2, + height_min = -15, + height_max = 2, +}) + +minetest.register_ore({ + ore_type = "scatter", + ore = "default:stone_with_iron", + wherein = "default:stone", + clust_scarcity = 9*9*9, + clust_num_ores = 5, + clust_size = 3, + height_min = -63, + height_max = -16, +}) + +minetest.register_ore({ + ore_type = "scatter", + ore = "default:stone_with_iron", + wherein = "default:stone", + clust_scarcity = 7*7*7, + clust_num_ores = 5, + clust_size = 3, + height_min = -31000, + height_max = -64, + flags = "absheight", +}) + +minetest.register_ore({ + ore_type = "scatter", + ore = "default:stone_with_iron", + wherein = "default:stone", + clust_scarcity = 24*24*24, + clust_num_ores = 27, + clust_size = 6, + height_min = -31000, + height_max = -64, + flags = "absheight", +}) + +minetest.register_ore({ + ore_type = "scatter", + ore = "default:stone_with_mese", + wherein = "default:stone", + clust_scarcity = 18*18*18, + clust_num_ores = 3, + clust_size = 2, + height_min = -255, + height_max = -64, + flags = "absheight", +}) + +minetest.register_ore({ + ore_type = "scatter", + ore = "default:stone_with_mese", + wherein = "default:stone", + clust_scarcity = 14*14*14, + clust_num_ores = 5, + clust_size = 3, + height_min = -31000, + height_max = -256, + flags = "absheight", +}) + +minetest.register_ore({ + ore_type = "scatter", + ore = "default:mese", + wherein = "default:stone", + clust_scarcity = 36*36*36, + clust_num_ores = 3, + clust_size = 2, + height_min = -31000, + height_max = -1024, + flags = "absheight", +}) + +minetest.register_ore({ + ore_type = "scatter", + ore = "default:stone_with_gold", + wherein = "default:stone", + clust_scarcity = 15*15*15, + clust_num_ores = 3, + clust_size = 2, + height_min = -255, + height_max = -64, + flags = "absheight", +}) + +minetest.register_ore({ + ore_type = "scatter", + ore = "default:stone_with_gold", + wherein = "default:stone", + clust_scarcity = 13*13*13, + clust_num_ores = 5, + clust_size = 3, + height_min = -31000, + height_max = -256, + flags = "absheight", +}) + +minetest.register_ore({ + ore_type = "scatter", + ore = "default:stone_with_diamond", + wherein = "default:stone", + clust_scarcity = 17*17*17, + clust_num_ores = 4, + clust_size = 3, + height_min = -255, + height_max = -128, + flags = "absheight", +}) + +minetest.register_ore({ + ore_type = "scatter", + ore = "default:stone_with_diamond", + wherein = "default:stone", + clust_scarcity = 15*15*15, + clust_num_ores = 4, + clust_size = 3, + height_min = -31000, + height_max = -256, + flags = "absheight", +}) + +minetest.register_ore({ + ore_type = "scatter", + ore = "default:stone_with_copper", + wherein = "default:stone", + clust_scarcity = 12*12*12, + clust_num_ores = 4, + clust_size = 3, + height_min = -63, + height_max = -16, +}) + +minetest.register_ore({ + ore_type = "scatter", + ore = "default:stone_with_copper", + wherein = "default:stone", + clust_scarcity = 9*9*9, + clust_num_ores = 5, + clust_size = 3, + height_min = -31000, + height_max = -64, + flags = "absheight", +}) + +if minetest.setting_get("mg_name") == "indev" then + -- Floatlands and high mountains springs + minetest.register_ore({ + ore_type = "scatter", + ore = "default:water_source", + ore_param2 = 128, + wherein = "default:stone", + clust_scarcity = 40*40*40, + clust_num_ores = 8, + clust_size = 3, + height_min = 100, + height_max = 31000, + }) + + minetest.register_ore({ + ore_type = "scatter", + ore = "default:lava_source", + ore_param2 = 128, + wherein = "default:stone", + clust_scarcity = 50*50*50, + clust_num_ores = 5, + clust_size = 2, + height_min = 10000, + height_max = 31000, + }) + + minetest.register_ore({ + ore_type = "scatter", + ore = "default:sand", + wherein = "default:stone", + clust_scarcity = 20*20*20, + clust_num_ores = 5*5*3, + clust_size = 5, + height_min = 500, + height_max = 31000, + }) + + -- Underground springs + minetest.register_ore({ + ore_type = "scatter", + ore = "default:water_source", + ore_param2 = 128, + wherein = "default:stone", + clust_scarcity = 25*25*25, + clust_num_ores = 8, + clust_size = 3, + height_min = -10000, + height_max = -10, + }) + + minetest.register_ore({ + ore_type = "scatter", + ore = "default:lava_source", + ore_param2 = 128, + wherein = "default:stone", + clust_scarcity = 35*35*35, + clust_num_ores = 5, + clust_size = 2, + height_min = -31000, + height_max = -100, + }) +end + +minetest.register_ore({ + ore_type = "scatter", + ore = "default:clay", + wherein = "default:sand", + clust_scarcity = 15*15*15, + clust_num_ores = 64, + clust_size = 5, + height_max = 0, + height_min = -10, +}) + +function default.generate_ore(name, wherein, minp, maxp, seed, chunks_per_volume, chunk_size, ore_per_chunk, height_min, height_max) + minetest.log('action', "WARNING: default.generate_ore is deprecated") + + if maxp.y < height_min or minp.y > height_max then + return + end + local y_min = math.max(minp.y, height_min) + local y_max = math.min(maxp.y, height_max) + if chunk_size >= y_max - y_min + 1 then + return + end + local volume = (maxp.x-minp.x+1)*(y_max-y_min+1)*(maxp.z-minp.z+1) + local pr = PseudoRandom(seed) + local num_chunks = math.floor(chunks_per_volume * volume) + local inverse_chance = math.floor(chunk_size*chunk_size*chunk_size / ore_per_chunk) + --print("generate_ore num_chunks: "..dump(num_chunks)) + for i=1,num_chunks do + local y0 = pr:next(y_min, y_max-chunk_size+1) + if y0 >= height_min and y0 <= height_max then + local x0 = pr:next(minp.x, maxp.x-chunk_size+1) + local z0 = pr:next(minp.z, maxp.z-chunk_size+1) + local p0 = {x=x0, y=y0, z=z0} + for x1=0,chunk_size-1 do + for y1=0,chunk_size-1 do + for z1=0,chunk_size-1 do + if pr:next(1,inverse_chance) == 1 then + local x2 = x0+x1 + local y2 = y0+y1 + local z2 = z0+z1 + local p2 = {x=x2, y=y2, z=z2} + if minetest.get_node(p2).name == wherein then + minetest.set_node(p2, {name=name}) + end + end + end + end + end + end + end + --print("generate_ore done") +end + +function default.make_papyrus(pos, size) + for y=0,size-1 do + local p = {x=pos.x, y=pos.y+y, z=pos.z} + local nn = minetest.get_node(p).name + if minetest.registered_nodes[nn] and + minetest.registered_nodes[nn].buildable_to then + minetest.set_node(p, {name="default:papyrus"}) + else + return + end + end +end + +function default.make_cactus(pos, size) + for y=0,size-1 do + local p = {x=pos.x, y=pos.y+y, z=pos.z} + local nn = minetest.get_node(p).name + if minetest.registered_nodes[nn] and + minetest.registered_nodes[nn].buildable_to then + minetest.set_node(p, {name="default:cactus"}) + else + return + end + end +end + +-- facedir: 0/1/2/3 (head node facedir value) +-- length: length of rainbow tail +function default.make_nyancat(pos, facedir, length) + local tailvec = {x=0, y=0, z=0} + if facedir == 0 then + tailvec.z = 1 + elseif facedir == 1 then + tailvec.x = 1 + elseif facedir == 2 then + tailvec.z = -1 + elseif facedir == 3 then + tailvec.x = -1 + else + --print("default.make_nyancat(): Invalid facedir: "+dump(facedir)) + facedir = 0 + tailvec.z = 1 + end + local p = {x=pos.x, y=pos.y, z=pos.z} + minetest.set_node(p, {name="default:nyancat", param2=facedir}) + for i=1,length do + p.x = p.x + tailvec.x + p.z = p.z + tailvec.z + minetest.set_node(p, {name="default:nyancat_rainbow", param2=facedir}) + end +end + +function generate_nyancats(seed, minp, maxp) + local height_min = -31000 + local height_max = -32 + if maxp.y < height_min or minp.y > height_max then + return + end + local y_min = math.max(minp.y, height_min) + local y_max = math.min(maxp.y, height_max) + local volume = (maxp.x-minp.x+1)*(y_max-y_min+1)*(maxp.z-minp.z+1) + local pr = PseudoRandom(seed + 9324342) + local max_num_nyancats = math.floor(volume / (16*16*16)) + for i=1,max_num_nyancats do + if pr:next(0, 1000) == 0 then + local x0 = pr:next(minp.x, maxp.x) + local y0 = pr:next(minp.y, maxp.y) + local z0 = pr:next(minp.z, maxp.z) + local p0 = {x=x0, y=y0, z=z0} + default.make_nyancat(p0, pr:next(0,3), pr:next(3,15)) + end + end +end + +minetest.register_on_generated(function(minp, maxp, seed) + if maxp.y >= 2 and minp.y <= 0 then + -- Generate papyrus + local perlin1 = minetest.get_perlin(354, 3, 0.7, 100) + -- Assume X and Z lengths are equal + local divlen = 8 + local divs = (maxp.x-minp.x)/divlen+1; + for divx=0,divs-1 do + for divz=0,divs-1 do + local x0 = minp.x + math.floor((divx+0)*divlen) + local z0 = minp.z + math.floor((divz+0)*divlen) + local x1 = minp.x + math.floor((divx+1)*divlen) + local z1 = minp.z + math.floor((divz+1)*divlen) + -- Determine papyrus amount from perlin noise + local papyrus_amount = math.floor(perlin1:get2d({x=x0, y=z0}) * 45 - 20) + -- Find random positions for papyrus based on this random + local pr = PseudoRandom(seed+1) + for i=0,papyrus_amount do + local x = pr:next(x0, x1) + local z = pr:next(z0, z1) + if minetest.get_node({x=x,y=1,z=z}).name == "default:dirt_with_grass" and + minetest.find_node_near({x=x,y=1,z=z}, 1, "default:water_source") then + default.make_papyrus({x=x,y=2,z=z}, pr:next(2, 4)) + end + end + end + end + -- Generate cactuses + local perlin1 = minetest.get_perlin(230, 3, 0.6, 100) + -- Assume X and Z lengths are equal + local divlen = 16 + local divs = (maxp.x-minp.x)/divlen+1; + for divx=0,divs-1 do + for divz=0,divs-1 do + local x0 = minp.x + math.floor((divx+0)*divlen) + local z0 = minp.z + math.floor((divz+0)*divlen) + local x1 = minp.x + math.floor((divx+1)*divlen) + local z1 = minp.z + math.floor((divz+1)*divlen) + -- Determine cactus amount from perlin noise + local cactus_amount = math.floor(perlin1:get2d({x=x0, y=z0}) * 6 - 3) + -- Find random positions for cactus based on this random + local pr = PseudoRandom(seed+1) + for i=0,cactus_amount do + local x = pr:next(x0, x1) + local z = pr:next(z0, z1) + -- Find ground level (0...15) + local ground_y = nil + for y=30,0,-1 do + if minetest.get_node({x=x,y=y,z=z}).name ~= "air" then + ground_y = y + break + end + end + -- If desert sand, make cactus + if ground_y and minetest.get_node({x=x,y=ground_y,z=z}).name == "default:desert_sand" then + default.make_cactus({x=x,y=ground_y+1,z=z}, pr:next(3, 4)) + end + end + end + end + -- Generate grass + local perlin1 = minetest.get_perlin(329, 3, 0.6, 100) + -- Assume X and Z lengths are equal + local divlen = 16 + local divs = (maxp.x-minp.x)/divlen+1; + for divx=0,divs-1 do + for divz=0,divs-1 do + local x0 = minp.x + math.floor((divx+0)*divlen) + local z0 = minp.z + math.floor((divz+0)*divlen) + local x1 = minp.x + math.floor((divx+1)*divlen) + local z1 = minp.z + math.floor((divz+1)*divlen) + -- Determine grass amount from perlin noise + local grass_amount = math.floor(perlin1:get2d({x=x0, y=z0}) ^ 3 * 9) + -- Find random positions for grass based on this random + local pr = PseudoRandom(seed+1) + for i=0,grass_amount do + local x = pr:next(x0, x1) + local z = pr:next(z0, z1) + -- Find ground level (0...15) + local ground_y = nil + for y=30,0,-1 do + if minetest.get_node({x=x,y=y,z=z}).name ~= "air" then + ground_y = y + break + end + end + + if ground_y then + local p = {x=x,y=ground_y+1,z=z} + local nn = minetest.get_node(p).name + -- Check if the node can be replaced + if minetest.registered_nodes[nn] and + minetest.registered_nodes[nn].buildable_to then + nn = minetest.get_node({x=x,y=ground_y,z=z}).name + -- If desert sand, add dry shrub + if nn == "default:desert_sand" then + minetest.set_node(p,{name="default:dry_shrub"}) + + -- If dirt with grass, add grass + elseif nn == "default:dirt_with_grass" then + minetest.set_node(p,{name="default:grass_"..pr:next(1, 5)}) + end + end + end + + end + end + end + end + + -- Generate nyan cats + generate_nyancats(seed, minp, maxp) +end) + diff --git a/mods/default/models/character.blend b/mods/default/models/character.blend new file mode 100644 index 0000000..cb1a670 Binary files /dev/null and b/mods/default/models/character.blend differ diff --git a/mods/default/models/character.png b/mods/default/models/character.png new file mode 100644 index 0000000..d794b87 Binary files /dev/null and b/mods/default/models/character.png differ diff --git a/mods/default/models/character.x b/mods/default/models/character.x new file mode 100644 index 0000000..bb5cec5 --- /dev/null +++ b/mods/default/models/character.x @@ -0,0 +1,6557 @@ +xof 0303txt 0032 + +template XSkinMeshHeader { + <3cf169ce-ff7c-44ab-93c0-f78f62d172e2> + WORD nMaxSkinWeightsPerVertex; + WORD nMaxSkinWeightsPerFace; + WORD nBones; +} + +template SkinWeights { + <6f0d123b-bad2-4167-a0d0-80224f25fabb> + STRING transformNodeName; + DWORD nWeights; + array DWORD vertexIndices[nWeights]; + array float weights[nWeights]; + Matrix4x4 matrixOffset; +} + +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 Armature { + FrameTransformMatrix { + 1.000000, 0.000000, 0.000000, 0.000000, + 0.000000, 1.000000, 0.000000, 0.000000, + 0.000000, 0.000000, 1.000000, 0.000000, + 0.000000, 0.000000,-10.000000, 1.000000;; + } + Frame Armature_Body { + 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, 6.750000, 1.000000;; + } + Frame Armature_Head { + FrameTransformMatrix { + -1.000000,-0.000000, 0.000000, 0.000000, + 0.000000, 1.000000, 0.000000, 0.000000, + -0.000000, 0.000000,-1.000000, 0.000000, + 0.000000, 6.750000, 0.000000, 1.000000;; + } + } //End of Armature_Head + Frame Armature_Arm_Left { + FrameTransformMatrix { + 0.989214,-0.143886,-0.027450, 0.000000, + -0.143940,-0.989586,-0.000000, 0.000000, + -0.027164, 0.003951,-0.999623, 0.000000, + -2.000000, 6.750000, 0.000000, 1.000000;; + } + } //End of Armature_Arm_Left + Frame Armature_Arm_Right { + FrameTransformMatrix { + 0.989214, 0.143886, 0.027450, 0.000000, + 0.143940,-0.989586,-0.000000, 0.000000, + 0.027164, 0.003951,-0.999623, 0.000000, + 2.000000, 6.750000, 0.000000, 1.000000;; + } + } //End of Armature_Arm_Right + Frame Armature_Leg_Right { + FrameTransformMatrix { + 1.000000, 0.000000,-0.000000, 0.000000, + -0.000000,-1.000000,-0.000000, 0.000000, + -0.000000, 0.000000,-1.000000, 0.000000, + 1.000000, 0.000000,-0.000001, 1.000000;; + } + } //End of Armature_Leg_Right + Frame Armature_Leg_Left { + FrameTransformMatrix { + 1.000000, 0.000000,-0.000000, 0.000000, + -0.000000,-1.000000,-0.000000, 0.000000, + -0.000000, 0.000000,-1.000000, 0.000000, + -1.000000, 0.000000,-0.000001, 1.000000;; + } + } //End of Armature_Leg_Left + } //End of Armature_Body + Frame Player { + FrameTransformMatrix { + 1.000000, 0.000000, 0.000000, 0.000000, + 0.000000, 1.000000, 0.000000, 0.000000, + 0.000000, 0.000000, 1.000000, 0.000000, + 0.000000, 0.000000, 0.000000, 1.000000;; + } + Mesh { //Cube_001 Mesh + 168; + 2.000000;-1.000000; 6.750000;, + -2.000000;-1.000000; 6.750000;, + -2.000000;-1.000000;13.500000;, + 2.000000;-1.000000;13.500000;, + -2.000000;-1.000000; 6.750000;, + -2.000000; 1.000000; 6.750000;, + -2.000000; 1.000000;13.500000;, + -2.000000;-1.000000;13.500000;, + -2.000000; 1.000000; 6.750000;, + 2.000000; 1.000000; 6.750000;, + 2.000000; 1.000000;13.500000;, + -2.000000; 1.000000;13.500000;, + -2.000000; 1.000000; 6.750000;, + -2.000000;-1.000000; 6.750000;, + 2.000000;-1.000000; 6.750000;, + 2.000000; 1.000000; 6.750000;, + 2.000000; 1.000000;13.500000;, + 2.000000;-1.000000;13.500000;, + -2.000000;-1.000000;13.500000;, + -2.000000; 1.000000;13.500000;, + 0.000000;-1.000000; 6.750000;, + 0.000000;-1.000000; 0.000000;, + 0.000000; 1.000000; 0.000000;, + 0.000000; 1.000000; 6.750000;, + -2.000000;-1.000000; 6.750000;, + -4.000000;-1.000000; 6.750000;, + -4.000000;-1.000000;13.500000;, + -2.000000;-1.000000;13.500000;, + -2.000000; 1.000000; 6.750000;, + -2.000000;-1.000000; 6.750000;, + -2.000000;-1.000000;13.500000;, + -2.000000; 1.000000;13.500000;, + -2.000000; 1.000000; 0.000000;, + -2.000000;-1.000000; 0.000000;, + -0.000000;-1.000000; 0.000000;, + 0.000000; 1.000000; 0.000000;, + -2.000000;-1.000000; 0.000000;, + -2.000000; 1.000000; 0.000000;, + -2.000000; 1.000000; 6.750000;, + -2.000000;-1.000000; 6.750000;, + 2.000000;-2.000000;13.500000;, + -2.000000;-2.000000;13.500000;, + -2.000000;-2.000000;17.500000;, + 2.000000;-2.000000;17.500000;, + -2.000000;-2.000000;13.500000;, + -2.000000; 2.000000;13.500000;, + -2.000000; 2.000000;17.500000;, + -2.000000;-2.000000;17.500000;, + -2.000000; 2.000000;13.500000;, + 2.000000; 2.000000;13.500000;, + 2.000000; 2.000000;17.500000;, + -2.000000; 2.000000;17.500000;, + -2.000000; 2.000000;13.500000;, + -2.000000;-2.000000;13.500000;, + 2.000000;-2.000000;13.500000;, + 2.000000; 2.000000;13.500000;, + 2.000000; 2.000000;17.500000;, + 2.000000;-2.000000;17.500000;, + -2.000000;-2.000000;17.500000;, + -2.000000; 2.000000;17.500000;, + -0.000000;-1.000000; 0.000000;, + -2.000000;-1.000000; 0.000000;, + -2.000000;-1.000000; 6.750000;, + 0.000000;-1.000000; 6.750000;, + 0.000000; 1.000000; 6.750000;, + 0.000000; 1.000000; 0.000000;, + 2.000000; 1.000000; 0.000000;, + 2.000000; 1.000000; 6.750000;, + -2.000000; 1.000000; 0.000000;, + 0.000000; 1.000000; 0.000000;, + 0.000000; 1.000000; 6.750000;, + -2.000000; 1.000000; 6.750000;, + 2.000000;-1.000000; 6.750000;, + 4.000000;-1.000000; 6.750000;, + 4.000000; 1.000000; 6.750000;, + 2.000000; 1.000000; 6.750000;, + 4.000000;-1.000000;13.500000;, + 2.000000;-1.000000;13.500000;, + 2.000000; 1.000000;13.500000;, + 4.000000; 1.000000;13.500000;, + 2.000000;-1.000000; 6.750000;, + 2.000000;-1.000000; 0.000000;, + 0.000000;-1.000000; 0.000000;, + 0.000000;-1.000000; 6.750000;, + 0.000000; 1.000000; 0.000000;, + -0.000000;-1.000000; 0.000000;, + 0.000000;-1.000000; 6.750000;, + 0.000000; 1.000000; 6.750000;, + 2.000000; 1.000000; 6.750000;, + 2.000000; 1.000000; 0.000000;, + 2.000000;-1.000000; 0.000000;, + 2.000000;-1.000000; 6.750000;, + 2.000000; 1.000000;13.500000;, + 2.000000; 1.000000; 6.750000;, + 2.000000;-1.000000; 6.750000;, + 2.000000;-1.000000;13.500000;, + 2.000000; 2.000000;17.500000;, + 2.000000; 2.000000;13.500000;, + 2.000000;-2.000000;13.500000;, + 2.000000;-2.000000;17.500000;, + 0.000000; 1.000000; 6.750000;, + 0.000000;-1.000000; 6.750000;, + -2.000000;-1.000000; 6.750000;, + -2.000000; 1.000000; 6.750000;, + -4.000000; 1.000000; 6.750000;, + -2.000000; 1.000000; 6.750000;, + -2.000000; 1.000000;13.500000;, + -4.000000; 1.000000;13.500000;, + -4.000000;-1.000000; 6.750000;, + -4.000000; 1.000000; 6.750000;, + -4.000000; 1.000000;13.500000;, + -4.000000;-1.000000;13.500000;, + 4.000000; 1.000000;13.500000;, + 4.000000; 1.000000; 6.750000;, + 4.000000;-1.000000; 6.750000;, + 4.000000;-1.000000;13.500000;, + -2.000000; 1.000000;13.500000;, + -2.000000;-1.000000;13.500000;, + -4.000000;-1.000000;13.500000;, + -4.000000; 1.000000;13.500000;, + 2.000000; 1.000000;13.500000;, + 2.000000; 1.000000; 6.750000;, + 4.000000; 1.000000; 6.750000;, + 4.000000; 1.000000;13.500000;, + 0.000000;-1.000000; 0.000000;, + 2.000000;-1.000000; 0.000000;, + 2.000000; 1.000000; 0.000000;, + 0.000000; 1.000000; 0.000000;, + 2.000000;-1.000000;13.500000;, + 2.000000;-1.000000; 6.750000;, + 2.000000; 1.000000; 6.750000;, + 2.000000; 1.000000;13.500000;, + -4.000000; 1.000000; 6.750000;, + -4.000000;-1.000000; 6.750000;, + -2.000000;-1.000000; 6.750000;, + -2.000000; 1.000000; 6.750000;, + 4.000000;-1.000000;13.500000;, + 4.000000;-1.000000; 6.750000;, + 2.000000;-1.000000; 6.750000;, + 2.000000;-1.000000;13.500000;, + 2.000000;-1.000000; 6.750000;, + 0.000000;-1.000000; 6.750000;, + 0.000000; 1.000000; 6.750000;, + 2.000000; 1.000000; 6.750000;, + 2.200000;-2.200000;13.300000;, + -2.200000;-2.200000;13.300000;, + -2.200000;-2.200000;17.700001;, + 2.200000;-2.200000;17.700001;, + -2.200000;-2.200000;13.300000;, + -2.200000; 2.200000;13.300000;, + -2.200000; 2.200000;17.700001;, + -2.200000;-2.200000;17.700001;, + -2.200000; 2.200000;13.300000;, + 2.200000; 2.200000;13.300000;, + 2.200000; 2.200000;17.700001;, + -2.200000; 2.200000;17.700001;, + -2.200000; 2.200000;13.300000;, + -2.200000;-2.200000;13.300000;, + 2.200000;-2.200000;13.300000;, + 2.200000; 2.200000;13.300000;, + 2.200000; 2.200000;17.700001;, + 2.200000;-2.200000;17.700001;, + -2.200000;-2.200000;17.700001;, + -2.200000; 2.200000;17.700001;, + 2.200000; 2.200000;17.700001;, + 2.200000; 2.200000;13.300000;, + 2.200000;-2.200000;13.300000;, + 2.200000;-2.200000;17.700001;; + 42; + 4;0;1;2;3;, + 4;4;5;6;7;, + 4;8;9;10;11;, + 4;12;13;14;15;, + 4;16;17;18;19;, + 4;20;21;22;23;, + 4;24;25;26;27;, + 4;28;29;30;31;, + 4;32;33;34;35;, + 4;36;37;38;39;, + 4;40;41;42;43;, + 4;44;45;46;47;, + 4;48;49;50;51;, + 4;52;53;54;55;, + 4;56;57;58;59;, + 4;60;61;62;63;, + 4;64;65;66;67;, + 4;68;69;70;71;, + 4;72;73;74;75;, + 4;76;77;78;79;, + 4;80;81;82;83;, + 4;84;85;86;87;, + 4;88;89;90;91;, + 4;92;93;94;95;, + 4;96;97;98;99;, + 4;100;101;102;103;, + 4;104;105;106;107;, + 4;108;109;110;111;, + 4;112;113;114;115;, + 4;116;117;118;119;, + 4;120;121;122;123;, + 4;124;125;126;127;, + 4;128;129;130;131;, + 4;132;133;134;135;, + 4;136;137;138;139;, + 4;140;141;142;143;, + 4;144;145;146;147;, + 4;148;149;150;151;, + 4;152;153;154;155;, + 4;156;157;158;159;, + 4;160;161;162;163;, + 4;164;165;166;167;; + MeshNormals { //Cube_001 Normals + 168; + -0.000000;-1.000000; 0.000000;, + -0.000000;-1.000000; 0.000000;, + -0.000000;-1.000000; 0.000000;, + -0.000000;-1.000000; 0.000000;, + -1.000000; 0.000000; 0.000000;, + -1.000000; 0.000000; 0.000000;, + -1.000000; 0.000000; 0.000000;, + -1.000000; 0.000000; 0.000000;, + 0.000000; 1.000000; 0.000000;, + 0.000000; 1.000000; 0.000000;, + 0.000000; 1.000000; 0.000000;, + 0.000000; 1.000000; 0.000000;, + 0.000000; 0.000000;-1.000000;, + 0.000000; 0.000000;-1.000000;, + 0.000000; 0.000000;-1.000000;, + 0.000000; 0.000000;-1.000000;, + 0.000000; 0.000000; 1.000000;, + 0.000000; 0.000000; 1.000000;, + 0.000000; 0.000000; 1.000000;, + 0.000000; 0.000000; 1.000000;, + -1.000000; 0.000000; 0.000000;, + -1.000000; 0.000000; 0.000000;, + -1.000000; 0.000000; 0.000000;, + -1.000000; 0.000000; 0.000000;, + 0.000000;-1.000000; 0.000000;, + 0.000000;-1.000000; 0.000000;, + 0.000000;-1.000000; 0.000000;, + 0.000000;-1.000000; 0.000000;, + 1.000000; 0.000000;-0.000000;, + 1.000000; 0.000000;-0.000000;, + 1.000000; 0.000000;-0.000000;, + 1.000000; 0.000000;-0.000000;, + 0.000000; 0.000000;-1.000000;, + 0.000000; 0.000000;-1.000000;, + 0.000000; 0.000000;-1.000000;, + 0.000000; 0.000000;-1.000000;, + -1.000000; 0.000000; 0.000000;, + -1.000000; 0.000000; 0.000000;, + -1.000000; 0.000000; 0.000000;, + -1.000000; 0.000000; 0.000000;, + 0.000000;-1.000000; 0.000000;, + 0.000000;-1.000000; 0.000000;, + 0.000000;-1.000000; 0.000000;, + 0.000000;-1.000000; 0.000000;, + -1.000000; 0.000000; 0.000000;, + -1.000000; 0.000000; 0.000000;, + -1.000000; 0.000000; 0.000000;, + -1.000000; 0.000000; 0.000000;, + 0.000000; 1.000000;-0.000000;, + 0.000000; 1.000000;-0.000000;, + 0.000000; 1.000000;-0.000000;, + 0.000000; 1.000000;-0.000000;, + 0.000000; 0.000000;-1.000000;, + 0.000000; 0.000000;-1.000000;, + 0.000000; 0.000000;-1.000000;, + 0.000000; 0.000000;-1.000000;, + 0.000000; 0.000000; 1.000000;, + 0.000000; 0.000000; 1.000000;, + 0.000000; 0.000000; 1.000000;, + 0.000000; 0.000000; 1.000000;, + 0.000000;-1.000000; 0.000000;, + 0.000000;-1.000000; 0.000000;, + 0.000000;-1.000000; 0.000000;, + 0.000000;-1.000000; 0.000000;, + -0.000000; 1.000000; 0.000000;, + -0.000000; 1.000000; 0.000000;, + -0.000000; 1.000000; 0.000000;, + -0.000000; 1.000000; 0.000000;, + 0.000000; 1.000000;-0.000000;, + 0.000000; 1.000000;-0.000000;, + 0.000000; 1.000000;-0.000000;, + 0.000000; 1.000000;-0.000000;, + 0.000000; 0.000000;-1.000000;, + 0.000000; 0.000000;-1.000000;, + 0.000000; 0.000000;-1.000000;, + 0.000000; 0.000000;-1.000000;, + 0.000000;-0.000000; 1.000000;, + 0.000000;-0.000000; 1.000000;, + 0.000000;-0.000000; 1.000000;, + 0.000000;-0.000000; 1.000000;, + -0.000000;-1.000000; 0.000000;, + -0.000000;-1.000000; 0.000000;, + -0.000000;-1.000000; 0.000000;, + -0.000000;-1.000000; 0.000000;, + 1.000000;-0.000000; 0.000000;, + 1.000000;-0.000000; 0.000000;, + 1.000000;-0.000000; 0.000000;, + 1.000000;-0.000000; 0.000000;, + 1.000000; 0.000000; 0.000000;, + 1.000000; 0.000000; 0.000000;, + 1.000000; 0.000000; 0.000000;, + 1.000000; 0.000000; 0.000000;, + 1.000000; 0.000000; 0.000000;, + 1.000000; 0.000000; 0.000000;, + 1.000000; 0.000000; 0.000000;, + 1.000000; 0.000000; 0.000000;, + 1.000000; 0.000000; 0.000000;, + 1.000000; 0.000000; 0.000000;, + 1.000000; 0.000000; 0.000000;, + 1.000000; 0.000000; 0.000000;, + 0.000000; 0.000000; 1.000000;, + 0.000000; 0.000000; 1.000000;, + 0.000000; 0.000000; 1.000000;, + 0.000000; 0.000000; 1.000000;, + -0.000000; 1.000000; 0.000000;, + -0.000000; 1.000000; 0.000000;, + -0.000000; 1.000000; 0.000000;, + -0.000000; 1.000000; 0.000000;, + -1.000000; 0.000000; 0.000000;, + -1.000000; 0.000000; 0.000000;, + -1.000000; 0.000000; 0.000000;, + -1.000000; 0.000000; 0.000000;, + 1.000000; 0.000000; 0.000000;, + 1.000000; 0.000000; 0.000000;, + 1.000000; 0.000000; 0.000000;, + 1.000000; 0.000000; 0.000000;, + 0.000000; 0.000000; 1.000000;, + 0.000000; 0.000000; 1.000000;, + 0.000000; 0.000000; 1.000000;, + 0.000000; 0.000000; 1.000000;, + 0.000000; 1.000000; 0.000000;, + 0.000000; 1.000000; 0.000000;, + 0.000000; 1.000000; 0.000000;, + 0.000000; 1.000000; 0.000000;, + 0.000000; 0.000000;-1.000000;, + 0.000000; 0.000000;-1.000000;, + 0.000000; 0.000000;-1.000000;, + 0.000000; 0.000000;-1.000000;, + -1.000000; 0.000000; 0.000000;, + -1.000000; 0.000000; 0.000000;, + -1.000000; 0.000000; 0.000000;, + -1.000000; 0.000000; 0.000000;, + 0.000000; 0.000000;-1.000000;, + 0.000000; 0.000000;-1.000000;, + 0.000000; 0.000000;-1.000000;, + 0.000000; 0.000000;-1.000000;, + -0.000000;-1.000000; 0.000000;, + -0.000000;-1.000000; 0.000000;, + -0.000000;-1.000000; 0.000000;, + -0.000000;-1.000000; 0.000000;, + 0.000000;-0.000000; 1.000000;, + 0.000000;-0.000000; 1.000000;, + 0.000000;-0.000000; 1.000000;, + 0.000000;-0.000000; 1.000000;, + 0.000000;-1.000000; 0.000000;, + 0.000000;-1.000000; 0.000000;, + 0.000000;-1.000000; 0.000000;, + 0.000000;-1.000000; 0.000000;, + -1.000000; 0.000000; 0.000000;, + -1.000000; 0.000000; 0.000000;, + -1.000000; 0.000000; 0.000000;, + -1.000000; 0.000000; 0.000000;, + 0.000000; 1.000000;-0.000000;, + 0.000000; 1.000000;-0.000000;, + 0.000000; 1.000000;-0.000000;, + 0.000000; 1.000000;-0.000000;, + 0.000000; 0.000000;-1.000000;, + 0.000000; 0.000000;-1.000000;, + 0.000000; 0.000000;-1.000000;, + 0.000000; 0.000000;-1.000000;, + 0.000000; 0.000000; 1.000000;, + 0.000000; 0.000000; 1.000000;, + 0.000000; 0.000000; 1.000000;, + 0.000000; 0.000000; 1.000000;, + 1.000000; 0.000000; 0.000000;, + 1.000000; 0.000000; 0.000000;, + 1.000000; 0.000000; 0.000000;, + 1.000000; 0.000000; 0.000000;; + 42; + 4;0;1;2;3;, + 4;4;5;6;7;, + 4;8;9;10;11;, + 4;12;13;14;15;, + 4;16;17;18;19;, + 4;20;21;22;23;, + 4;24;25;26;27;, + 4;28;29;30;31;, + 4;32;33;34;35;, + 4;36;37;38;39;, + 4;40;41;42;43;, + 4;44;45;46;47;, + 4;48;49;50;51;, + 4;52;53;54;55;, + 4;56;57;58;59;, + 4;60;61;62;63;, + 4;64;65;66;67;, + 4;68;69;70;71;, + 4;72;73;74;75;, + 4;76;77;78;79;, + 4;80;81;82;83;, + 4;84;85;86;87;, + 4;88;89;90;91;, + 4;92;93;94;95;, + 4;96;97;98;99;, + 4;100;101;102;103;, + 4;104;105;106;107;, + 4;108;109;110;111;, + 4;112;113;114;115;, + 4;116;117;118;119;, + 4;120;121;122;123;, + 4;124;125;126;127;, + 4;128;129;130;131;, + 4;132;133;134;135;, + 4;136;137;138;139;, + 4;140;141;142;143;, + 4;144;145;146;147;, + 4;148;149;150;151;, + 4;152;153;154;155;, + 4;156;157;158;159;, + 4;160;161;162;163;, + 4;164;165;166;167;; + } //End of Cube_001 Normals + MeshMaterialList { //Cube_001 Material List + 1; + 42; + 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 Character { + 0.640000; 0.640000; 0.640000; 1.000000;; + 96.078431; + 0.000000; 0.000000; 0.000000;; + 0.000000; 0.000000; 0.000000;; + TextureFilename {"character.png";} + } + } //End of Cube_001 Material List + MeshTextureCoords { //Cube_001 UV Coordinates + 168; + 0.625000; 1.000000;, + 0.500000; 1.000000;, + 0.500000; 0.625000;, + 0.625000; 0.625000;, + 0.500000; 1.000000;, + 0.437500; 1.000000;, + 0.437500; 0.625000;, + 0.500000; 0.625000;, + 0.437500; 1.000000;, + 0.312500; 1.000000;, + 0.312500; 0.625000;, + 0.437500; 0.625000;, + 0.437500; 0.625000;, + 0.437500; 0.500000;, + 0.562500; 0.500000;, + 0.562500; 0.625000;, + 0.312500; 0.625000;, + 0.312500; 0.500000;, + 0.437500; 0.500000;, + 0.437500; 0.625000;, + 0.125000; 0.625000;, + 0.125000; 1.000000;, + 0.187500; 1.000000;, + 0.187500; 0.625000;, + 0.812500; 1.000000;, + 0.875000; 1.000000;, + 0.875000; 0.625000;, + 0.812500; 0.625000;, + 0.750000; 1.000000;, + 0.812500; 1.000000;, + 0.812500; 0.625000;, + 0.750000; 0.625000;, + 0.125000; 0.625000;, + 0.125000; 0.500000;, + 0.187500; 0.500000;, + 0.187500; 0.625000;, + 0.000000; 1.000000;, + 0.062500; 1.000000;, + 0.062500; 0.625000;, + 0.000000; 0.625000;, + 0.500000; 0.500000;, + 0.375000; 0.500000;, + 0.375000; 0.250000;, + 0.500000; 0.250000;, + 0.375000; 0.500000;, + 0.250000; 0.500000;, + 0.250000; 0.250000;, + 0.375000; 0.250000;, + 0.250000; 0.500000;, + 0.125000; 0.500000;, + 0.125000; 0.250000;, + 0.250000; 0.250000;, + 0.250000; 0.250000;, + 0.250000; 0.000000;, + 0.375000; 0.000000;, + 0.375000; 0.250000;, + 0.125000; 0.250000;, + 0.125000; 0.000000;, + 0.250000; 0.000000;, + 0.250000; 0.250000;, + 0.250000; 1.000000;, + 0.187500; 1.000000;, + 0.187500; 0.625000;, + 0.250000; 0.625000;, + 0.062500; 0.625000;, + 0.062500; 1.000000;, + 0.125000; 1.000000;, + 0.125000; 0.625000;, + 0.125000; 1.000000;, + 0.062500; 1.000000;, + 0.062500; 0.625000;, + 0.125000; 0.625000;, + 0.750000; 0.500000;, + 0.812500; 0.500000;, + 0.812500; 0.625000;, + 0.750000; 0.625000;, + 0.687500; 0.500000;, + 0.750000; 0.500000;, + 0.750000; 0.625000;, + 0.687500; 0.625000;, + 0.187500; 0.625000;, + 0.187500; 1.000000;, + 0.250000; 1.000000;, + 0.250000; 0.625000;, + 0.187500; 1.000000;, + 0.125000; 1.000000;, + 0.125000; 0.625000;, + 0.187500; 0.625000;, + 0.062500; 0.625000;, + 0.062500; 1.000000;, + 0.000000; 1.000000;, + 0.000000; 0.625000;, + 0.312500; 0.625000;, + 0.312500; 1.000000;, + 0.250000; 1.000000;, + 0.250000; 0.625000;, + 0.125000; 0.250000;, + 0.125000; 0.500000;, + 0.000000; 0.500000;, + 0.000000; 0.250000;, + 0.062500; 0.625000;, + 0.062500; 0.500000;, + 0.125000; 0.500000;, + 0.125000; 0.625000;, + 0.687500; 1.000000;, + 0.750000; 1.000000;, + 0.750000; 0.625000;, + 0.687500; 0.625000;, + 0.687500; 1.000000;, + 0.625000; 1.000000;, + 0.625000; 0.625000;, + 0.687500; 0.625000;, + 0.625000; 0.625000;, + 0.625000; 1.000000;, + 0.687500; 1.000000;, + 0.687500; 0.625000;, + 0.750000; 0.625000;, + 0.750000; 0.500000;, + 0.687500; 0.500000;, + 0.687500; 0.625000;, + 0.750000; 0.625000;, + 0.750000; 1.000000;, + 0.687500; 1.000000;, + 0.687500; 0.625000;, + 0.187500; 0.500000;, + 0.125000; 0.500000;, + 0.125000; 0.625000;, + 0.187500; 0.625000;, + 0.812500; 0.625000;, + 0.812500; 1.000000;, + 0.750000; 1.000000;, + 0.750000; 0.625000;, + 0.812500; 0.625000;, + 0.812500; 0.500000;, + 0.750000; 0.500000;, + 0.750000; 0.625000;, + 0.875000; 0.625000;, + 0.875000; 1.000000;, + 0.812500; 1.000000;, + 0.812500; 0.625000;, + 0.125000; 0.500000;, + 0.062500; 0.500000;, + 0.062500; 0.625000;, + 0.125000; 0.625000;, + 1.000000; 0.500000;, + 0.875000; 0.500000;, + 0.875000; 0.250000;, + 1.000000; 0.250000;, + 0.875000; 0.500000;, + 0.750000; 0.500000;, + 0.750000; 0.250000;, + 0.875000; 0.250000;, + 0.750000; 0.500000;, + 0.625000; 0.500000;, + 0.625000; 0.250000;, + 0.750000; 0.250000;, + 0.750000; 0.250000;, + 0.750000; 0.000000;, + 0.875000; 0.000000;, + 0.875000; 0.250000;, + 0.625000; 0.250000;, + 0.625000; 0.000000;, + 0.750000; 0.000000;, + 0.750000; 0.250000;, + 0.625000; 0.250000;, + 0.625000; 0.500000;, + 0.500000; 0.500000;, + 0.500000; 0.250000;; + } //End of Cube_001 UV Coordinates + XSkinMeshHeader { + 1; + 3; + 6; + } + SkinWeights { + "Armature_Leg_Right"; + 24; + 20, + 21, + 22, + 23, + 64, + 65, + 66, + 67, + 80, + 81, + 82, + 83, + 88, + 89, + 90, + 91, + 124, + 125, + 126, + 127, + 140, + 141, + 142, + 143; + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000; + 1.000000,-0.000000,-0.000000, 0.000000, + 0.000000, 0.000000, 1.000000, 0.000000, + -0.000000,-1.000000, 0.000000, 0.000000, + -1.000000, 6.750001,-0.000001, 1.000000;; + } //End of Armature_Leg_Right Skin Weights + SkinWeights { + "Armature_Leg_Left"; + 24; + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 60, + 61, + 62, + 63, + 68, + 69, + 70, + 71, + 84, + 85, + 86, + 87, + 100, + 101, + 102, + 103; + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000; + 1.000000,-0.000000,-0.000000, 0.000000, + 0.000000, 0.000000, 1.000000, 0.000000, + -0.000000,-1.000000, 0.000000, 0.000000, + 1.000000, 6.750001,-0.000001, 1.000000;; + } //End of Armature_Leg_Left Skin Weights + SkinWeights { + "Armature_Body"; + 24; + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 92, + 93, + 94, + 95; + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000; + 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,-6.750000,-0.000001, 1.000000;; + } //End of Armature_Body Skin Weights + SkinWeights { + "Armature_Head"; + 48; + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 56, + 57, + 58, + 59, + 96, + 97, + 98, + 99, + 144, + 145, + 146, + 147, + 148, + 149, + 150, + 151, + 152, + 153, + 154, + 155, + 156, + 157, + 158, + 159, + 160, + 161, + 162, + 163, + 164, + 165, + 166, + 167; + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000; + -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,-13.500000,-0.000002, 1.000000;; + } //End of Armature_Head Skin Weights + SkinWeights { + "Armature_Arm_Left"; + 24; + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111, + 116, + 117, + 118, + 119, + 132, + 133, + 134, + 135; + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000; + 0.989214,-0.143940,-0.027164, 0.000000, + 0.027450,-0.000000, 0.999623, 0.000000, + -0.143886,-0.989587, 0.003951, 0.000000, + 3.920884,13.071540,-0.107668, 1.000000;; + } //End of Armature_Arm_Left Skin Weights + SkinWeights { + "Armature_Arm_Right"; + 24; + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 112, + 113, + 114, + 115, + 120, + 121, + 122, + 123, + 128, + 129, + 130, + 131, + 136, + 137, + 138, + 139; + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000; + 0.989214, 0.143940, 0.027164, 0.000000, + -0.027450,-0.000000, 0.999623, 0.000000, + 0.143886,-0.989587, 0.003951, 0.000000, + -3.920884,13.071540,-0.107668, 1.000000;; + } //End of Armature_Arm_Right Skin Weights + } //End of Cube_001 Mesh + } //End of Player + } //End of Armature +} //End of Root Frame +AnimationSet { + Animation { + {Armature} + AnimationKey { //Position + 2; + 221; + 0;3; 0.000000, 0.000000,-10.000000;;, + 1;3; 0.000000, 0.000000,-10.000000;;, + 2;3; 0.000000, 0.000000,-10.000000;;, + 3;3; 0.000000, 0.000000,-10.000000;;, + 4;3; 0.000000, 0.000000,-10.000000;;, + 5;3; 0.000000, 0.000000,-10.000000;;, + 6;3; 0.000000, 0.000000,-10.000000;;, + 7;3; 0.000000, 0.000000,-10.000000;;, + 8;3; 0.000000, 0.000000,-10.000000;;, + 9;3; 0.000000, 0.000000,-10.000000;;, + 10;3; 0.000000, 0.000000,-10.000000;;, + 11;3; 0.000000, 0.000000,-10.000000;;, + 12;3; 0.000000, 0.000000,-10.000000;;, + 13;3; 0.000000, 0.000000,-10.000000;;, + 14;3; 0.000000, 0.000000,-10.000000;;, + 15;3; 0.000000, 0.000000,-10.000000;;, + 16;3; 0.000000, 0.000000,-10.000000;;, + 17;3; 0.000000, 0.000000,-10.000000;;, + 18;3; 0.000000, 0.000000,-10.000000;;, + 19;3; 0.000000, 0.000000,-10.000000;;, + 20;3; 0.000000, 0.000000,-10.000000;;, + 21;3; 0.000000, 0.000000,-10.000000;;, + 22;3; 0.000000, 0.000000,-10.000000;;, + 23;3; 0.000000, 0.000000,-10.000000;;, + 24;3; 0.000000, 0.000000,-10.000000;;, + 25;3; 0.000000, 0.000000,-10.000000;;, + 26;3; 0.000000, 0.000000,-10.000000;;, + 27;3; 0.000000, 0.000000,-10.000000;;, + 28;3; 0.000000, 0.000000,-10.000000;;, + 29;3; 0.000000, 0.000000,-10.000000;;, + 30;3; 0.000000, 0.000000,-10.000000;;, + 31;3; 0.000000, 0.000000,-10.000000;;, + 32;3; 0.000000, 0.000000,-10.000000;;, + 33;3; 0.000000, 0.000000,-10.000000;;, + 34;3; 0.000000, 0.000000,-10.000000;;, + 35;3; 0.000000, 0.000000,-10.000000;;, + 36;3; 0.000000, 0.000000,-10.000000;;, + 37;3; 0.000000, 0.000000,-10.000000;;, + 38;3; 0.000000, 0.000000,-10.000000;;, + 39;3; 0.000000, 0.000000,-10.000000;;, + 40;3; 0.000000, 0.000000,-10.000000;;, + 41;3; 0.000000, 0.000000,-10.000000;;, + 42;3; 0.000000, 0.000000,-10.000000;;, + 43;3; 0.000000, 0.000000,-10.000000;;, + 44;3; 0.000000, 0.000000,-10.000000;;, + 45;3; 0.000000, 0.000000,-10.000000;;, + 46;3; 0.000000, 0.000000,-10.000000;;, + 47;3; 0.000000, 0.000000,-10.000000;;, + 48;3; 0.000000, 0.000000,-10.000000;;, + 49;3; 0.000000, 0.000000,-10.000000;;, + 50;3; 0.000000, 0.000000,-10.000000;;, + 51;3; 0.000000, 0.000000,-10.000000;;, + 52;3; 0.000000, 0.000000,-10.000000;;, + 53;3; 0.000000, 0.000000,-10.000000;;, + 54;3; 0.000000, 0.000000,-10.000000;;, + 55;3; 0.000000, 0.000000,-10.000000;;, + 56;3; 0.000000, 0.000000,-10.000000;;, + 57;3; 0.000000, 0.000000,-10.000000;;, + 58;3; 0.000000, 0.000000,-10.000000;;, + 59;3; 0.000000, 0.000000,-10.000000;;, + 60;3; 0.000000, 0.000000,-10.000000;;, + 61;3; 0.000000, 0.000000,-10.000000;;, + 62;3; 0.000000, 0.000000,-10.000000;;, + 63;3; 0.000000, 0.000000,-10.000000;;, + 64;3; 0.000000, 0.000000,-10.000000;;, + 65;3; 0.000000, 0.000000,-10.000000;;, + 66;3; 0.000000, 0.000000,-10.000000;;, + 67;3; 0.000000, 0.000000,-10.000000;;, + 68;3; 0.000000, 0.000000,-10.000000;;, + 69;3; 0.000000, 0.000000,-10.000000;;, + 70;3; 0.000000, 0.000000,-10.000000;;, + 71;3; 0.000000, 0.000000,-10.000000;;, + 72;3; 0.000000, 0.000000,-10.000000;;, + 73;3; 0.000000, 0.000000,-10.000000;;, + 74;3; 0.000000, 0.000000,-10.000000;;, + 75;3; 0.000000, 0.000000,-10.000000;;, + 76;3; 0.000000, 0.000000,-10.000000;;, + 77;3; 0.000000, 0.000000,-10.000000;;, + 78;3; 0.000000, 0.000000,-10.000000;;, + 79;3; 0.000000, 0.000000,-10.000000;;, + 80;3; 0.000000, 0.000000,-10.000000;;, + 81;3; 0.000000, 0.000000,-10.000000;;, + 82;3; 0.000000, 0.000000,-10.000000;;, + 83;3; 0.000000, 0.000000,-10.000000;;, + 84;3; 0.000000, 0.000000,-10.000000;;, + 85;3; 0.000000, 0.000000,-10.000000;;, + 86;3; 0.000000, 0.000000,-10.000000;;, + 87;3; 0.000000, 0.000000,-10.000000;;, + 88;3; 0.000000, 0.000000,-10.000000;;, + 89;3; 0.000000, 0.000000,-10.000000;;, + 90;3; 0.000000, 0.000000,-10.000000;;, + 91;3; 0.000000, 0.000000,-10.000000;;, + 92;3; 0.000000, 0.000000,-10.000000;;, + 93;3; 0.000000, 0.000000,-10.000000;;, + 94;3; 0.000000, 0.000000,-10.000000;;, + 95;3; 0.000000, 0.000000,-10.000000;;, + 96;3; 0.000000, 0.000000,-10.000000;;, + 97;3; 0.000000, 0.000000,-10.000000;;, + 98;3; 0.000000, 0.000000,-10.000000;;, + 99;3; 0.000000, 0.000000,-10.000000;;, + 100;3; 0.000000, 0.000000,-10.000000;;, + 101;3; 0.000000, 0.000000,-10.000000;;, + 102;3; 0.000000, 0.000000,-10.000000;;, + 103;3; 0.000000, 0.000000,-10.000000;;, + 104;3; 0.000000, 0.000000,-10.000000;;, + 105;3; 0.000000, 0.000000,-10.000000;;, + 106;3; 0.000000, 0.000000,-10.000000;;, + 107;3; 0.000000, 0.000000,-10.000000;;, + 108;3; 0.000000, 0.000000,-10.000000;;, + 109;3; 0.000000, 0.000000,-10.000000;;, + 110;3; 0.000000, 0.000000,-10.000000;;, + 111;3; 0.000000, 0.000000,-10.000000;;, + 112;3; 0.000000, 0.000000,-10.000000;;, + 113;3; 0.000000, 0.000000,-10.000000;;, + 114;3; 0.000000, 0.000000,-10.000000;;, + 115;3; 0.000000, 0.000000,-10.000000;;, + 116;3; 0.000000, 0.000000,-10.000000;;, + 117;3; 0.000000, 0.000000,-10.000000;;, + 118;3; 0.000000, 0.000000,-10.000000;;, + 119;3; 0.000000, 0.000000,-10.000000;;, + 120;3; 0.000000, 0.000000,-10.000000;;, + 121;3; 0.000000, 0.000000,-10.000000;;, + 122;3; 0.000000, 0.000000,-10.000000;;, + 123;3; 0.000000, 0.000000,-10.000000;;, + 124;3; 0.000000, 0.000000,-10.000000;;, + 125;3; 0.000000, 0.000000,-10.000000;;, + 126;3; 0.000000, 0.000000,-10.000000;;, + 127;3; 0.000000, 0.000000,-10.000000;;, + 128;3; 0.000000, 0.000000,-10.000000;;, + 129;3; 0.000000, 0.000000,-10.000000;;, + 130;3; 0.000000, 0.000000,-10.000000;;, + 131;3; 0.000000, 0.000000,-10.000000;;, + 132;3; 0.000000, 0.000000,-10.000000;;, + 133;3; 0.000000, 0.000000,-10.000000;;, + 134;3; 0.000000, 0.000000,-10.000000;;, + 135;3; 0.000000, 0.000000,-10.000000;;, + 136;3; 0.000000, 0.000000,-10.000000;;, + 137;3; 0.000000, 0.000000,-10.000000;;, + 138;3; 0.000000, 0.000000,-10.000000;;, + 139;3; 0.000000, 0.000000,-10.000000;;, + 140;3; 0.000000, 0.000000,-10.000000;;, + 141;3; 0.000000, 0.000000,-10.000000;;, + 142;3; 0.000000, 0.000000,-10.000000;;, + 143;3; 0.000000, 0.000000,-10.000000;;, + 144;3; 0.000000, 0.000000,-10.000000;;, + 145;3; 0.000000, 0.000000,-10.000000;;, + 146;3; 0.000000, 0.000000,-10.000000;;, + 147;3; 0.000000, 0.000000,-10.000000;;, + 148;3; 0.000000, 0.000000,-10.000000;;, + 149;3; 0.000000, 0.000000,-10.000000;;, + 150;3; 0.000000, 0.000000,-10.000000;;, + 151;3; 0.000000, 0.000000,-10.000000;;, + 152;3; 0.000000, 0.000000,-10.000000;;, + 153;3; 0.000000, 0.000000,-10.000000;;, + 154;3; 0.000000, 0.000000,-10.000000;;, + 155;3; 0.000000, 0.000000,-10.000000;;, + 156;3; 0.000000, 0.000000,-10.000000;;, + 157;3; 0.000000, 0.000000,-10.000000;;, + 158;3; 0.000000, 0.000000,-10.000000;;, + 159;3; 0.000000, 0.000000,-10.000000;;, + 160;3; 0.000000, 0.000000,-10.000000;;, + 161;3; 0.000000, 0.000000,-10.000000;;, + 162;3; 0.000000, 0.000000,-10.000000;;, + 163;3; 0.000000, 0.000000,-10.000000;;, + 164;3; 0.000000, 0.000000,-10.000000;;, + 165;3; 0.000000, 0.000000,-10.000000;;, + 166;3; 0.000000, 0.000000,-10.000000;;, + 167;3; 0.000000, 0.000000,-10.000000;;, + 168;3; 0.000000, 0.000000,-10.000000;;, + 169;3; 0.000000, 0.000000,-10.000000;;, + 170;3; 0.000000, 0.000000,-10.000000;;, + 171;3; 0.000000, 0.000000,-10.000000;;, + 172;3; 0.000000, 0.000000,-10.000000;;, + 173;3; 0.000000, 0.000000,-10.000000;;, + 174;3; 0.000000, 0.000000,-10.000000;;, + 175;3; 0.000000, 0.000000,-10.000000;;, + 176;3; 0.000000, 0.000000,-10.000000;;, + 177;3; 0.000000, 0.000000,-10.000000;;, + 178;3; 0.000000, 0.000000,-10.000000;;, + 179;3; 0.000000, 0.000000,-10.000000;;, + 180;3; 0.000000, 0.000000,-10.000000;;, + 181;3; 0.000000, 0.000000,-10.000000;;, + 182;3; 0.000000, 0.000000,-10.000000;;, + 183;3; 0.000000, 0.000000,-10.000000;;, + 184;3; 0.000000, 0.000000,-10.000000;;, + 185;3; 0.000000, 0.000000,-10.000000;;, + 186;3; 0.000000, 0.000000,-10.000000;;, + 187;3; 0.000000, 0.000000,-10.000000;;, + 188;3; 0.000000, 0.000000,-10.000000;;, + 189;3; 0.000000, 0.000000,-10.000000;;, + 190;3; 0.000000, 0.000000,-10.000000;;, + 191;3; 0.000000, 0.000000,-10.000000;;, + 192;3; 0.000000, 0.000000,-10.000000;;, + 193;3; 0.000000, 0.000000,-10.000000;;, + 194;3; 0.000000, 0.000000,-10.000000;;, + 195;3; 0.000000, 0.000000,-10.000000;;, + 196;3; 0.000000, 0.000000,-10.000000;;, + 197;3; 0.000000, 0.000000,-10.000000;;, + 198;3; 0.000000, 0.000000,-10.000000;;, + 199;3; 0.000000, 0.000000,-10.000000;;, + 200;3; 0.000000, 0.000000,-10.000000;;, + 201;3; 0.000000, 0.000000,-10.000000;;, + 202;3; 0.000000, 0.000000,-10.000000;;, + 203;3; 0.000000, 0.000000,-10.000000;;, + 204;3; 0.000000, 0.000000,-10.000000;;, + 205;3; 0.000000, 0.000000,-10.000000;;, + 206;3; 0.000000, 0.000000,-10.000000;;, + 207;3; 0.000000, 0.000000,-10.000000;;, + 208;3; 0.000000, 0.000000,-10.000000;;, + 209;3; 0.000000, 0.000000,-10.000000;;, + 210;3; 0.000000, 0.000000,-10.000000;;, + 211;3; 0.000000, 0.000000,-10.000000;;, + 212;3; 0.000000, 0.000000,-10.000000;;, + 213;3; 0.000000, 0.000000,-10.000000;;, + 214;3; 0.000000, 0.000000,-10.000000;;, + 215;3; 0.000000, 0.000000,-10.000000;;, + 216;3; 0.000000, 0.000000,-10.000000;;, + 217;3; 0.000000, 0.000000,-10.000000;;, + 218;3; 0.000000, 0.000000,-10.000000;;, + 219;3; 0.000000, 0.000000,-10.000000;;, + 220;3; 0.000000, 0.000000,-10.000000;;; + } + AnimationKey { //Rotation + 0; + 221; + 0;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 1;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 2;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 3;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 4;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 5;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 6;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 7;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 8;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 9;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 10;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 11;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 12;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 13;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 14;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 15;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 16;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 17;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 18;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 19;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 20;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 21;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 22;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 23;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 24;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 25;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 26;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 27;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 28;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 29;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 30;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 31;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 32;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 33;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 34;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 35;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 36;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 37;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 38;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 39;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 40;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 41;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 42;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 43;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 44;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 45;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 46;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 47;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 48;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 49;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 50;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 51;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 52;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 53;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 54;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 55;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 56;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 57;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 58;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 59;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 60;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 61;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 62;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 63;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 64;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 65;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 66;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 67;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 68;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 69;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 70;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 71;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 72;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 73;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 74;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 75;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 76;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 77;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 78;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 79;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 80;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 81;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 82;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 83;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 84;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 85;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 86;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 87;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 88;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 89;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 90;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 91;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 92;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 93;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 94;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 95;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 96;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 97;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 98;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 99;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 100;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 101;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 102;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 103;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 104;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 105;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 106;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 107;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 108;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 109;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 110;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 111;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 112;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 113;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 114;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 115;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 116;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 117;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 118;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 119;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 120;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 121;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 122;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 123;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 124;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 125;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 126;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 127;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 128;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 129;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 130;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 131;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 132;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 133;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 134;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 135;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 136;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 137;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 138;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 139;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 140;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 141;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 142;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 143;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 144;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 145;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 146;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 147;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 148;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 149;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 150;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 151;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 152;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 153;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 154;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 155;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 156;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 157;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 158;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 159;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 160;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 161;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 162;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 163;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 164;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 165;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 166;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 167;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 168;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 169;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 170;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 171;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 172;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 173;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 174;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 175;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 176;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 177;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 178;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 179;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 180;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 181;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 182;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 183;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 184;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 185;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 186;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 187;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 188;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 189;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 190;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 191;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 192;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 193;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 194;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 195;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 196;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 197;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 198;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 199;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 200;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 201;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 202;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 203;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 204;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 205;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 206;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 207;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 208;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 209;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 210;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 211;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 212;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 213;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 214;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 215;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 216;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 217;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 218;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 219;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 220;4; -1.000000, 0.000000, 0.000000, 0.000000;;; + } + AnimationKey { //Scale + 1; + 221; + 0;3; 1.000000, 1.000000, 1.000000;;, + 1;3; 1.000000, 1.000000, 1.000000;;, + 2;3; 1.000000, 1.000000, 1.000000;;, + 3;3; 1.000000, 1.000000, 1.000000;;, + 4;3; 1.000000, 1.000000, 1.000000;;, + 5;3; 1.000000, 1.000000, 1.000000;;, + 6;3; 1.000000, 1.000000, 1.000000;;, + 7;3; 1.000000, 1.000000, 1.000000;;, + 8;3; 1.000000, 1.000000, 1.000000;;, + 9;3; 1.000000, 1.000000, 1.000000;;, + 10;3; 1.000000, 1.000000, 1.000000;;, + 11;3; 1.000000, 1.000000, 1.000000;;, + 12;3; 1.000000, 1.000000, 1.000000;;, + 13;3; 1.000000, 1.000000, 1.000000;;, + 14;3; 1.000000, 1.000000, 1.000000;;, + 15;3; 1.000000, 1.000000, 1.000000;;, + 16;3; 1.000000, 1.000000, 1.000000;;, + 17;3; 1.000000, 1.000000, 1.000000;;, + 18;3; 1.000000, 1.000000, 1.000000;;, + 19;3; 1.000000, 1.000000, 1.000000;;, + 20;3; 1.000000, 1.000000, 1.000000;;, + 21;3; 1.000000, 1.000000, 1.000000;;, + 22;3; 1.000000, 1.000000, 1.000000;;, + 23;3; 1.000000, 1.000000, 1.000000;;, + 24;3; 1.000000, 1.000000, 1.000000;;, + 25;3; 1.000000, 1.000000, 1.000000;;, + 26;3; 1.000000, 1.000000, 1.000000;;, + 27;3; 1.000000, 1.000000, 1.000000;;, + 28;3; 1.000000, 1.000000, 1.000000;;, + 29;3; 1.000000, 1.000000, 1.000000;;, + 30;3; 1.000000, 1.000000, 1.000000;;, + 31;3; 1.000000, 1.000000, 1.000000;;, + 32;3; 1.000000, 1.000000, 1.000000;;, + 33;3; 1.000000, 1.000000, 1.000000;;, + 34;3; 1.000000, 1.000000, 1.000000;;, + 35;3; 1.000000, 1.000000, 1.000000;;, + 36;3; 1.000000, 1.000000, 1.000000;;, + 37;3; 1.000000, 1.000000, 1.000000;;, + 38;3; 1.000000, 1.000000, 1.000000;;, + 39;3; 1.000000, 1.000000, 1.000000;;, + 40;3; 1.000000, 1.000000, 1.000000;;, + 41;3; 1.000000, 1.000000, 1.000000;;, + 42;3; 1.000000, 1.000000, 1.000000;;, + 43;3; 1.000000, 1.000000, 1.000000;;, + 44;3; 1.000000, 1.000000, 1.000000;;, + 45;3; 1.000000, 1.000000, 1.000000;;, + 46;3; 1.000000, 1.000000, 1.000000;;, + 47;3; 1.000000, 1.000000, 1.000000;;, + 48;3; 1.000000, 1.000000, 1.000000;;, + 49;3; 1.000000, 1.000000, 1.000000;;, + 50;3; 1.000000, 1.000000, 1.000000;;, + 51;3; 1.000000, 1.000000, 1.000000;;, + 52;3; 1.000000, 1.000000, 1.000000;;, + 53;3; 1.000000, 1.000000, 1.000000;;, + 54;3; 1.000000, 1.000000, 1.000000;;, + 55;3; 1.000000, 1.000000, 1.000000;;, + 56;3; 1.000000, 1.000000, 1.000000;;, + 57;3; 1.000000, 1.000000, 1.000000;;, + 58;3; 1.000000, 1.000000, 1.000000;;, + 59;3; 1.000000, 1.000000, 1.000000;;, + 60;3; 1.000000, 1.000000, 1.000000;;, + 61;3; 1.000000, 1.000000, 1.000000;;, + 62;3; 1.000000, 1.000000, 1.000000;;, + 63;3; 1.000000, 1.000000, 1.000000;;, + 64;3; 1.000000, 1.000000, 1.000000;;, + 65;3; 1.000000, 1.000000, 1.000000;;, + 66;3; 1.000000, 1.000000, 1.000000;;, + 67;3; 1.000000, 1.000000, 1.000000;;, + 68;3; 1.000000, 1.000000, 1.000000;;, + 69;3; 1.000000, 1.000000, 1.000000;;, + 70;3; 1.000000, 1.000000, 1.000000;;, + 71;3; 1.000000, 1.000000, 1.000000;;, + 72;3; 1.000000, 1.000000, 1.000000;;, + 73;3; 1.000000, 1.000000, 1.000000;;, + 74;3; 1.000000, 1.000000, 1.000000;;, + 75;3; 1.000000, 1.000000, 1.000000;;, + 76;3; 1.000000, 1.000000, 1.000000;;, + 77;3; 1.000000, 1.000000, 1.000000;;, + 78;3; 1.000000, 1.000000, 1.000000;;, + 79;3; 1.000000, 1.000000, 1.000000;;, + 80;3; 1.000000, 1.000000, 1.000000;;, + 81;3; 1.000000, 1.000000, 1.000000;;, + 82;3; 1.000000, 1.000000, 1.000000;;, + 83;3; 1.000000, 1.000000, 1.000000;;, + 84;3; 1.000000, 1.000000, 1.000000;;, + 85;3; 1.000000, 1.000000, 1.000000;;, + 86;3; 1.000000, 1.000000, 1.000000;;, + 87;3; 1.000000, 1.000000, 1.000000;;, + 88;3; 1.000000, 1.000000, 1.000000;;, + 89;3; 1.000000, 1.000000, 1.000000;;, + 90;3; 1.000000, 1.000000, 1.000000;;, + 91;3; 1.000000, 1.000000, 1.000000;;, + 92;3; 1.000000, 1.000000, 1.000000;;, + 93;3; 1.000000, 1.000000, 1.000000;;, + 94;3; 1.000000, 1.000000, 1.000000;;, + 95;3; 1.000000, 1.000000, 1.000000;;, + 96;3; 1.000000, 1.000000, 1.000000;;, + 97;3; 1.000000, 1.000000, 1.000000;;, + 98;3; 1.000000, 1.000000, 1.000000;;, + 99;3; 1.000000, 1.000000, 1.000000;;, + 100;3; 1.000000, 1.000000, 1.000000;;, + 101;3; 1.000000, 1.000000, 1.000000;;, + 102;3; 1.000000, 1.000000, 1.000000;;, + 103;3; 1.000000, 1.000000, 1.000000;;, + 104;3; 1.000000, 1.000000, 1.000000;;, + 105;3; 1.000000, 1.000000, 1.000000;;, + 106;3; 1.000000, 1.000000, 1.000000;;, + 107;3; 1.000000, 1.000000, 1.000000;;, + 108;3; 1.000000, 1.000000, 1.000000;;, + 109;3; 1.000000, 1.000000, 1.000000;;, + 110;3; 1.000000, 1.000000, 1.000000;;, + 111;3; 1.000000, 1.000000, 1.000000;;, + 112;3; 1.000000, 1.000000, 1.000000;;, + 113;3; 1.000000, 1.000000, 1.000000;;, + 114;3; 1.000000, 1.000000, 1.000000;;, + 115;3; 1.000000, 1.000000, 1.000000;;, + 116;3; 1.000000, 1.000000, 1.000000;;, + 117;3; 1.000000, 1.000000, 1.000000;;, + 118;3; 1.000000, 1.000000, 1.000000;;, + 119;3; 1.000000, 1.000000, 1.000000;;, + 120;3; 1.000000, 1.000000, 1.000000;;, + 121;3; 1.000000, 1.000000, 1.000000;;, + 122;3; 1.000000, 1.000000, 1.000000;;, + 123;3; 1.000000, 1.000000, 1.000000;;, + 124;3; 1.000000, 1.000000, 1.000000;;, + 125;3; 1.000000, 1.000000, 1.000000;;, + 126;3; 1.000000, 1.000000, 1.000000;;, + 127;3; 1.000000, 1.000000, 1.000000;;, + 128;3; 1.000000, 1.000000, 1.000000;;, + 129;3; 1.000000, 1.000000, 1.000000;;, + 130;3; 1.000000, 1.000000, 1.000000;;, + 131;3; 1.000000, 1.000000, 1.000000;;, + 132;3; 1.000000, 1.000000, 1.000000;;, + 133;3; 1.000000, 1.000000, 1.000000;;, + 134;3; 1.000000, 1.000000, 1.000000;;, + 135;3; 1.000000, 1.000000, 1.000000;;, + 136;3; 1.000000, 1.000000, 1.000000;;, + 137;3; 1.000000, 1.000000, 1.000000;;, + 138;3; 1.000000, 1.000000, 1.000000;;, + 139;3; 1.000000, 1.000000, 1.000000;;, + 140;3; 1.000000, 1.000000, 1.000000;;, + 141;3; 1.000000, 1.000000, 1.000000;;, + 142;3; 1.000000, 1.000000, 1.000000;;, + 143;3; 1.000000, 1.000000, 1.000000;;, + 144;3; 1.000000, 1.000000, 1.000000;;, + 145;3; 1.000000, 1.000000, 1.000000;;, + 146;3; 1.000000, 1.000000, 1.000000;;, + 147;3; 1.000000, 1.000000, 1.000000;;, + 148;3; 1.000000, 1.000000, 1.000000;;, + 149;3; 1.000000, 1.000000, 1.000000;;, + 150;3; 1.000000, 1.000000, 1.000000;;, + 151;3; 1.000000, 1.000000, 1.000000;;, + 152;3; 1.000000, 1.000000, 1.000000;;, + 153;3; 1.000000, 1.000000, 1.000000;;, + 154;3; 1.000000, 1.000000, 1.000000;;, + 155;3; 1.000000, 1.000000, 1.000000;;, + 156;3; 1.000000, 1.000000, 1.000000;;, + 157;3; 1.000000, 1.000000, 1.000000;;, + 158;3; 1.000000, 1.000000, 1.000000;;, + 159;3; 1.000000, 1.000000, 1.000000;;, + 160;3; 1.000000, 1.000000, 1.000000;;, + 161;3; 1.000000, 1.000000, 1.000000;;, + 162;3; 1.000000, 1.000000, 1.000000;;, + 163;3; 1.000000, 1.000000, 1.000000;;, + 164;3; 1.000000, 1.000000, 1.000000;;, + 165;3; 1.000000, 1.000000, 1.000000;;, + 166;3; 1.000000, 1.000000, 1.000000;;, + 167;3; 1.000000, 1.000000, 1.000000;;, + 168;3; 1.000000, 1.000000, 1.000000;;, + 169;3; 1.000000, 1.000000, 1.000000;;, + 170;3; 1.000000, 1.000000, 1.000000;;, + 171;3; 1.000000, 1.000000, 1.000000;;, + 172;3; 1.000000, 1.000000, 1.000000;;, + 173;3; 1.000000, 1.000000, 1.000000;;, + 174;3; 1.000000, 1.000000, 1.000000;;, + 175;3; 1.000000, 1.000000, 1.000000;;, + 176;3; 1.000000, 1.000000, 1.000000;;, + 177;3; 1.000000, 1.000000, 1.000000;;, + 178;3; 1.000000, 1.000000, 1.000000;;, + 179;3; 1.000000, 1.000000, 1.000000;;, + 180;3; 1.000000, 1.000000, 1.000000;;, + 181;3; 1.000000, 1.000000, 1.000000;;, + 182;3; 1.000000, 1.000000, 1.000000;;, + 183;3; 1.000000, 1.000000, 1.000000;;, + 184;3; 1.000000, 1.000000, 1.000000;;, + 185;3; 1.000000, 1.000000, 1.000000;;, + 186;3; 1.000000, 1.000000, 1.000000;;, + 187;3; 1.000000, 1.000000, 1.000000;;, + 188;3; 1.000000, 1.000000, 1.000000;;, + 189;3; 1.000000, 1.000000, 1.000000;;, + 190;3; 1.000000, 1.000000, 1.000000;;, + 191;3; 1.000000, 1.000000, 1.000000;;, + 192;3; 1.000000, 1.000000, 1.000000;;, + 193;3; 1.000000, 1.000000, 1.000000;;, + 194;3; 1.000000, 1.000000, 1.000000;;, + 195;3; 1.000000, 1.000000, 1.000000;;, + 196;3; 1.000000, 1.000000, 1.000000;;, + 197;3; 1.000000, 1.000000, 1.000000;;, + 198;3; 1.000000, 1.000000, 1.000000;;, + 199;3; 1.000000, 1.000000, 1.000000;;, + 200;3; 1.000000, 1.000000, 1.000000;;, + 201;3; 1.000000, 1.000000, 1.000000;;, + 202;3; 1.000000, 1.000000, 1.000000;;, + 203;3; 1.000000, 1.000000, 1.000000;;, + 204;3; 1.000000, 1.000000, 1.000000;;, + 205;3; 1.000000, 1.000000, 1.000000;;, + 206;3; 1.000000, 1.000000, 1.000000;;, + 207;3; 1.000000, 1.000000, 1.000000;;, + 208;3; 1.000000, 1.000000, 1.000000;;, + 209;3; 1.000000, 1.000000, 1.000000;;, + 210;3; 1.000000, 1.000000, 1.000000;;, + 211;3; 1.000000, 1.000000, 1.000000;;, + 212;3; 1.000000, 1.000000, 1.000000;;, + 213;3; 1.000000, 1.000000, 1.000000;;, + 214;3; 1.000000, 1.000000, 1.000000;;, + 215;3; 1.000000, 1.000000, 1.000000;;, + 216;3; 1.000000, 1.000000, 1.000000;;, + 217;3; 1.000000, 1.000000, 1.000000;;, + 218;3; 1.000000, 1.000000, 1.000000;;, + 219;3; 1.000000, 1.000000, 1.000000;;, + 220;3; 1.000000, 1.000000, 1.000000;;; + } + } + Animation { + {Armature_Body} + AnimationKey { //Position + 2; + 221; + 0;3; -0.000000, 0.000000, 6.750000;;, + 1;3; -0.000000, 0.000000, 6.750000;;, + 2;3; -0.000000, 0.000000, 6.750000;;, + 3;3; -0.000000, 0.000000, 6.750000;;, + 4;3; -0.000000, 0.000000, 6.750000;;, + 5;3; -0.000000, 0.000000, 6.750000;;, + 6;3; -0.000000, 0.000000, 6.750000;;, + 7;3; -0.000000, 0.000000, 6.750000;;, + 8;3; -0.000000, 0.000000, 6.750000;;, + 9;3; -0.000000, 0.000000, 6.750000;;, + 10;3; -0.000000, 0.000000, 6.750000;;, + 11;3; -0.000000, 0.000000, 6.750000;;, + 12;3; -0.000000, 0.000000, 6.750000;;, + 13;3; -0.000000, 0.000000, 6.750000;;, + 14;3; -0.000000, 0.000000, 6.750000;;, + 15;3; -0.000000, 0.000000, 6.750000;;, + 16;3; -0.000000, 0.000000, 6.750000;;, + 17;3; -0.000000, 0.000000, 6.750000;;, + 18;3; -0.000000, 0.000000, 6.750000;;, + 19;3; -0.000000, 0.000000, 6.750000;;, + 20;3; -0.000000, 0.000000, 6.750000;;, + 21;3; -0.000000, 0.000000, 6.750000;;, + 22;3; -0.000000, 0.000000, 6.750000;;, + 23;3; -0.000000, 0.000000, 6.750000;;, + 24;3; -0.000000, 0.000000, 6.750000;;, + 25;3; -0.000000, 0.000000, 6.750000;;, + 26;3; -0.000000, 0.000000, 6.750000;;, + 27;3; -0.000000, 0.000000, 6.750000;;, + 28;3; -0.000000, 0.000000, 6.750000;;, + 29;3; -0.000000, 0.000000, 6.750000;;, + 30;3; -0.000000, 0.000000, 6.750000;;, + 31;3; -0.000000, 0.000000, 6.750000;;, + 32;3; -0.000000, 0.000000, 6.750000;;, + 33;3; -0.000000, 0.000000, 6.750000;;, + 34;3; -0.000000, 0.000000, 6.750000;;, + 35;3; -0.000000, 0.000000, 6.750000;;, + 36;3; -0.000000, 0.000000, 6.750000;;, + 37;3; -0.000000, 0.000000, 6.750000;;, + 38;3; -0.000000, 0.000000, 6.750000;;, + 39;3; -0.000000, 0.000000, 6.750000;;, + 40;3; -0.000000, 0.000000, 6.750000;;, + 41;3; -0.000000, 0.000000, 6.750000;;, + 42;3; -0.000000, 0.000000, 6.750000;;, + 43;3; -0.000000, 0.000000, 6.750000;;, + 44;3; -0.000000, 0.000000, 6.750000;;, + 45;3; -0.000000, 0.000000, 6.750000;;, + 46;3; -0.000000, 0.000000, 6.750000;;, + 47;3; -0.000000, 0.000000, 6.750000;;, + 48;3; -0.000000, 0.000000, 6.750000;;, + 49;3; -0.000000, 0.000000, 6.750000;;, + 50;3; -0.000000, 0.000000, 6.750000;;, + 51;3; -0.000000, 0.000000, 6.750000;;, + 52;3; -0.000000, 0.000000, 6.750000;;, + 53;3; -0.000000, 0.000000, 6.750000;;, + 54;3; -0.000000, 0.000000, 6.750000;;, + 55;3; -0.000000, 0.000000, 6.750000;;, + 56;3; -0.000000, 0.000000, 6.750000;;, + 57;3; -0.000000, 0.000000, 6.750000;;, + 58;3; -0.000000, 0.000000, 6.750000;;, + 59;3; -0.000000, 0.000000, 6.750000;;, + 60;3; -0.000000, 0.000000, 6.750000;;, + 61;3; -0.000000, 0.000000, 6.750000;;, + 62;3; -0.000000, 0.000000, 6.750000;;, + 63;3; -0.000000, 0.000000, 6.750000;;, + 64;3; -0.000000, 0.000000, 6.750000;;, + 65;3; -0.000000, 0.000000, 6.750000;;, + 66;3; -0.000000, 0.000000, 6.750000;;, + 67;3; -0.000000, 0.000000, 6.750000;;, + 68;3; -0.000000, 0.000000, 6.750000;;, + 69;3; -0.000000, 0.000000, 6.750000;;, + 70;3; -0.000000, 0.000000, 6.750000;;, + 71;3; -0.000000, 0.000000, 6.750000;;, + 72;3; -0.000000, 0.000000, 6.750000;;, + 73;3; -0.000000, 0.000000, 6.750000;;, + 74;3; -0.000000, 0.000000, 6.750000;;, + 75;3; -0.000000, 0.000000, 6.750000;;, + 76;3; -0.000000, 0.000000, 6.750000;;, + 77;3; -0.000000, 0.000000, 6.750000;;, + 78;3; -0.000000, 0.000000, 6.750000;;, + 79;3; -0.000000, 0.000000, 6.750000;;, + 80;3; -0.000000, 0.000000, 6.750000;;, + 81;3; -0.000000, 0.000000, 1.000000;;, + 82;3; -0.000000, 0.000000, 1.000000;;, + 83;3; -0.000000, 0.000000, 1.000000;;, + 84;3; -0.000000, 0.000000, 1.000000;;, + 85;3; -0.000000, 0.000000, 1.000000;;, + 86;3; -0.000000, 0.000000, 1.000000;;, + 87;3; -0.000000, 0.000000, 1.000000;;, + 88;3; -0.000000, 0.000000, 1.000000;;, + 89;3; -0.000000, 0.000000, 1.000000;;, + 90;3; -0.000000, 0.000000, 1.000000;;, + 91;3; -0.000000, 0.000000, 1.000000;;, + 92;3; -0.000000, 0.000000, 1.000000;;, + 93;3; -0.000000, 0.000000, 1.000000;;, + 94;3; -0.000000, 0.000000, 1.000000;;, + 95;3; -0.000000, 0.000000, 1.000000;;, + 96;3; -0.000000, 0.000000, 1.000000;;, + 97;3; -0.000000, 0.000000, 1.000000;;, + 98;3; -0.000000, 0.000000, 1.000000;;, + 99;3; -0.000000, 0.000000, 1.000000;;, + 100;3; -0.000000, 0.000000, 1.000000;;, + 101;3; -0.000000, 0.000000, 1.000000;;, + 102;3; -0.000000, 0.000000, 1.000000;;, + 103;3; -0.000000, 0.000000, 1.000000;;, + 104;3; -0.000000, 0.000000, 1.000000;;, + 105;3; -0.000000, 0.000000, 1.000000;;, + 106;3; -0.000000, 0.000000, 1.000000;;, + 107;3; -0.000000, 0.000000, 1.000000;;, + 108;3; -0.000000, 0.000000, 1.000000;;, + 109;3; -0.000000, 0.000000, 1.000000;;, + 110;3; -0.000000, 0.000000, 1.000000;;, + 111;3; -0.000000, 0.000000, 1.000000;;, + 112;3; -0.000000, 0.000000, 1.000000;;, + 113;3; -0.000000, 0.000000, 1.000000;;, + 114;3; -0.000000, 0.000000, 1.000000;;, + 115;3; -0.000000, 0.000000, 1.000000;;, + 116;3; -0.000000, 0.000000, 1.000000;;, + 117;3; -0.000000, 0.000000, 1.000000;;, + 118;3; -0.000000, 0.000000, 1.000000;;, + 119;3; -0.000000, 0.000000, 1.000000;;, + 120;3; -0.000000, 0.000000, 1.000000;;, + 121;3; -0.000000, 0.000000, 1.000000;;, + 122;3; -0.000000, 0.000000, 1.000000;;, + 123;3; -0.000000, 0.000000, 1.000000;;, + 124;3; -0.000000, 0.000000, 1.000000;;, + 125;3; -0.000000, 0.000000, 1.000000;;, + 126;3; -0.000000, 0.000000, 1.000000;;, + 127;3; -0.000000, 0.000000, 1.000000;;, + 128;3; -0.000000, 0.000000, 1.000000;;, + 129;3; -0.000000, 0.000000, 1.000000;;, + 130;3; -0.000000, 0.000000, 1.000000;;, + 131;3; -0.000000, 0.000000, 1.000000;;, + 132;3; -0.000000, 0.000000, 1.000000;;, + 133;3; -0.000000, 0.000000, 1.000000;;, + 134;3; -0.000000, 0.000000, 1.000000;;, + 135;3; -0.000000, 0.000000, 1.000000;;, + 136;3; -0.000000, 0.000000, 1.000000;;, + 137;3; -0.000000, 0.000000, 1.000000;;, + 138;3; -0.000000, 0.000000, 1.000000;;, + 139;3; -0.000000, 0.000000, 1.000000;;, + 140;3; -0.000000, 0.000000, 1.000000;;, + 141;3; -0.000000, 0.000000, 1.000000;;, + 142;3; -0.000000, 0.000000, 1.000000;;, + 143;3; -0.000000, 0.000000, 1.000000;;, + 144;3; -0.000000, 0.000000, 1.000000;;, + 145;3; -0.000000, 0.000000, 1.000000;;, + 146;3; -0.000000, 0.000000, 1.000000;;, + 147;3; -0.000000, 0.000000, 1.000000;;, + 148;3; -0.000000, 0.000000, 1.000000;;, + 149;3; -0.000000, 0.000000, 1.000000;;, + 150;3; -0.000000, 0.000000, 1.000000;;, + 151;3; -0.000000, 0.000000, 1.000000;;, + 152;3; -0.000000, 0.000000, 1.000000;;, + 153;3; -0.000000, 0.000000, 1.000000;;, + 154;3; -0.000000, 0.000000, 1.000000;;, + 155;3; -0.000000, 0.000000, 1.000000;;, + 156;3; -0.000000, 0.000000, 1.000000;;, + 157;3; -0.000000, 0.000000, 1.000000;;, + 158;3; -0.000000, 0.000000, 1.000000;;, + 159;3; -0.000000, 0.000000, 1.000000;;, + 160;3; -0.000000, 0.000000, 1.000000;;, + 161;3; -0.000000, 0.000000, 1.000000;;, + 162;3; -0.000000, 2.000001, 1.000000;;, + 163;3; -0.000000, 2.000001, 1.000000;;, + 164;3; -0.000000, 2.000001, 1.000000;;, + 165;3; -0.000000, 2.000001, 1.000000;;, + 166;3; -0.000000, 2.000001, 1.000000;;, + 167;3; -0.000000, 2.000001, 1.000000;;, + 168;3; -0.000000, 0.000000, 6.750000;;, + 169;3; -0.000000, 0.000000, 6.750000;;, + 170;3; -0.000000, 0.000000, 6.750000;;, + 171;3; -0.000000, 0.000000, 6.750000;;, + 172;3; -0.000000, 0.000000, 6.750000;;, + 173;3; -0.000000, 0.000000, 6.750000;;, + 174;3; -0.000000, 0.000000, 6.750000;;, + 175;3; -0.000000, 0.000000, 6.750000;;, + 176;3; -0.000000, 0.000000, 6.750000;;, + 177;3; -0.000000, 0.000000, 6.750000;;, + 178;3; -0.000000, 0.000000, 6.750000;;, + 179;3; -0.000000, 0.000000, 6.750000;;, + 180;3; -0.000000, 0.000000, 6.750000;;, + 181;3; -0.000000, 0.000000, 6.750000;;, + 182;3; -0.000000, 0.000000, 6.750000;;, + 183;3; -0.000000, 0.000000, 6.750000;;, + 184;3; -0.000000, 0.000000, 6.750000;;, + 185;3; -0.000000, 0.000000, 6.750000;;, + 186;3; -0.000000, 0.000000, 6.750000;;, + 187;3; -0.000000, 0.000000, 6.750000;;, + 188;3; -0.000000, 0.000000, 6.750000;;, + 189;3; -0.000000, 0.000000, 6.750000;;, + 190;3; -0.000000, 0.000000, 6.750000;;, + 191;3; -0.000000, 0.000000, 6.750000;;, + 192;3; -0.000000, 0.000000, 6.750000;;, + 193;3; -0.000000, 0.000000, 6.750000;;, + 194;3; -0.000000, 0.000000, 6.750000;;, + 195;3; -0.000000, 0.000000, 6.750000;;, + 196;3; -0.000000, 0.000000, 6.750000;;, + 197;3; -0.000000, 0.000000, 6.750000;;, + 198;3; -0.000000, 0.000000, 6.750000;;, + 199;3; -0.000000, 0.000000, 6.750000;;, + 200;3; -0.000000, 0.000000, 6.750000;;, + 201;3; -0.000000, 0.000000, 6.750000;;, + 202;3; -0.000000, 0.000000, 6.750000;;, + 203;3; -0.000000, 0.000000, 6.750000;;, + 204;3; -0.000000, 0.000000, 6.750000;;, + 205;3; -0.000000, 0.000000, 6.750000;;, + 206;3; -0.000000, 0.000000, 6.750000;;, + 207;3; -0.000000, 0.000000, 6.750000;;, + 208;3; -0.000000, 0.000000, 6.750000;;, + 209;3; -0.000000, 0.000000, 6.750000;;, + 210;3; -0.000000, 0.000000, 6.750000;;, + 211;3; -0.000000, 0.000000, 6.750000;;, + 212;3; -0.000000, 0.000000, 6.750000;;, + 213;3; -0.000000, 0.000000, 6.750000;;, + 214;3; -0.000000, 0.000000, 6.750000;;, + 215;3; -0.000000, 0.000000, 6.750000;;, + 216;3; -0.000000, 0.000000, 6.750000;;, + 217;3; -0.000000, 0.000000, 6.750000;;, + 218;3; -0.000000, 0.000000, 6.750000;;, + 219;3; -0.000000, 0.000000, 6.750000;;, + 220;3; -0.000000, 0.000000, 6.750000;;; + } + AnimationKey { //Rotation + 0; + 221; + 0;4; -0.707107, 0.707107, 0.000000, 0.000000;;, + 1;4; -0.706933, 0.707273, 0.000000, 0.000000;;, + 2;4; -0.706408, 0.707776, 0.000000, 0.000000;;, + 3;4; -0.705530, 0.708616, 0.000000, 0.000000;;, + 4;4; -0.704305, 0.709789, 0.000000, 0.000000;;, + 5;4; -0.702749, 0.711279, 0.000000, 0.000000;;, + 6;4; -0.700886, 0.713062, 0.000000, 0.000000;;, + 7;4; -0.698758, 0.715099, 0.000000, 0.000000;;, + 8;4; -0.696414, 0.717343, 0.000000, 0.000000;;, + 9;4; -0.693920, 0.719730, 0.000000, 0.000000;;, + 10;4; -0.691348, 0.722192, 0.000000, 0.000000;;, + 11;4; -0.688777, 0.724654, 0.000000, 0.000000;;, + 12;4; -0.686283, 0.727042, 0.000000, 0.000000;;, + 13;4; -0.683939, 0.729285, 0.000000, 0.000000;;, + 14;4; -0.681811, 0.731323, 0.000000, 0.000000;;, + 15;4; -0.679949, 0.733105, 0.000000, 0.000000;;, + 16;4; -0.678392, 0.734596, 0.000000, 0.000000;;, + 17;4; -0.677167, 0.735768, 0.000000, 0.000000;;, + 18;4; -0.676289, 0.736609, 0.000000, 0.000000;;, + 19;4; -0.675764, 0.737111, 0.000000, 0.000000;;, + 20;4; -0.675590, 0.737277, 0.000000, 0.000000;;, + 21;4; -0.675764, 0.737111, 0.000000, 0.000000;;, + 22;4; -0.676289, 0.736609, 0.000000, 0.000000;;, + 23;4; -0.677167, 0.735768, 0.000000, 0.000000;;, + 24;4; -0.678392, 0.734596, 0.000000, 0.000000;;, + 25;4; -0.679949, 0.733105, 0.000000, 0.000000;;, + 26;4; -0.681811, 0.731323, 0.000000, 0.000000;;, + 27;4; -0.683939, 0.729285, 0.000000, 0.000000;;, + 28;4; -0.686283, 0.727042, 0.000000, 0.000000;;, + 29;4; -0.688777, 0.724654, 0.000000, 0.000000;;, + 30;4; -0.691349, 0.722192, 0.000000, 0.000000;;, + 31;4; -0.693920, 0.719730, 0.000000, 0.000000;;, + 32;4; -0.696415, 0.717343, 0.000000, 0.000000;;, + 33;4; -0.698758, 0.715099, 0.000000, 0.000000;;, + 34;4; -0.700886, 0.713062, 0.000000, 0.000000;;, + 35;4; -0.702749, 0.711279, 0.000000, 0.000000;;, + 36;4; -0.704305, 0.709789, 0.000000, 0.000000;;, + 37;4; -0.705530, 0.708616, 0.000000, 0.000000;;, + 38;4; -0.706408, 0.707776, 0.000000, 0.000000;;, + 39;4; -0.706933, 0.707273, 0.000000, 0.000000;;, + 40;4; -0.707107, 0.707107, 0.000000, 0.000000;;, + 41;4; -0.706933, 0.707273, 0.000000, 0.000000;;, + 42;4; -0.706408, 0.707776, 0.000000, 0.000000;;, + 43;4; -0.705530, 0.708616, 0.000000, 0.000000;;, + 44;4; -0.704305, 0.709789, 0.000000, 0.000000;;, + 45;4; -0.702749, 0.711279, 0.000000, 0.000000;;, + 46;4; -0.700886, 0.713062, 0.000000, 0.000000;;, + 47;4; -0.698758, 0.715099, 0.000000, 0.000000;;, + 48;4; -0.696415, 0.717343, 0.000000, 0.000000;;, + 49;4; -0.693920, 0.719730, 0.000000, 0.000000;;, + 50;4; -0.691348, 0.722192, 0.000000, 0.000000;;, + 51;4; -0.688777, 0.724654, 0.000000, 0.000000;;, + 52;4; -0.686283, 0.727042, 0.000000, 0.000000;;, + 53;4; -0.683939, 0.729285, 0.000000, 0.000000;;, + 54;4; -0.681811, 0.731323, 0.000000, 0.000000;;, + 55;4; -0.679949, 0.733105, 0.000000, 0.000000;;, + 56;4; -0.678392, 0.734596, 0.000000, 0.000000;;, + 57;4; -0.677167, 0.735768, 0.000000, 0.000000;;, + 58;4; -0.676289, 0.736609, 0.000000, 0.000000;;, + 59;4; -0.675764, 0.737111, 0.000000, 0.000000;;, + 60;4; -0.675590, 0.737277, 0.000000, 0.000000;;, + 61;4; -0.675754, 0.737121, 0.000000, 0.000000;;, + 62;4; -0.676212, 0.736682, 0.000000, 0.000000;;, + 63;4; -0.676927, 0.735998, 0.000000, 0.000000;;, + 64;4; -0.677865, 0.735100, 0.000000, 0.000000;;, + 65;4; -0.679001, 0.734013, 0.000000, 0.000000;;, + 66;4; -0.680312, 0.732757, 0.000000, 0.000000;;, + 67;4; -0.681779, 0.731353, 0.000000, 0.000000;;, + 68;4; -0.683387, 0.729813, 0.000000, 0.000000;;, + 69;4; -0.685120, 0.728154, 0.000000, 0.000000;;, + 70;4; -0.686966, 0.726388, 0.000000, 0.000000;;, + 71;4; -0.688910, 0.724526, 0.000000, 0.000000;;, + 72;4; -0.690941, 0.722582, 0.000000, 0.000000;;, + 73;4; -0.693046, 0.720567, 0.000000, 0.000000;;, + 74;4; -0.695210, 0.718495, 0.000000, 0.000000;;, + 75;4; -0.697417, 0.716383, 0.000000, 0.000000;;, + 76;4; -0.699643, 0.714252, 0.000000, 0.000000;;, + 77;4; -0.701856, 0.712133, 0.000000, 0.000000;;, + 78;4; -0.703995, 0.710086, 0.000000, 0.000000;;, + 79;4; -0.705928, 0.708235, 0.000000, 0.000000;;, + 80;4; -0.707107, 0.707107, 0.000000, 0.000000;;, + 81;4; -0.707107, 0.707107, 0.000000, 0.000000;;, + 82;4; -0.705928, 0.708235, 0.000000, 0.000000;;, + 83;4; -0.703995, 0.710086, 0.000000, 0.000000;;, + 84;4; -0.701856, 0.712133, 0.000000, 0.000000;;, + 85;4; -0.699643, 0.714252, 0.000000, 0.000000;;, + 86;4; -0.697417, 0.716383, 0.000000, 0.000000;;, + 87;4; -0.695210, 0.718495, 0.000000, 0.000000;;, + 88;4; -0.693046, 0.720567, 0.000000, 0.000000;;, + 89;4; -0.690941, 0.722582, 0.000000, 0.000000;;, + 90;4; -0.688910, 0.724526, 0.000000, 0.000000;;, + 91;4; -0.686966, 0.726388, 0.000000, 0.000000;;, + 92;4; -0.685120, 0.728154, 0.000000, 0.000000;;, + 93;4; -0.683387, 0.729813, 0.000000, 0.000000;;, + 94;4; -0.681779, 0.731353, 0.000000, 0.000000;;, + 95;4; -0.680312, 0.732758, 0.000000, 0.000000;;, + 96;4; -0.679001, 0.734013, 0.000000, 0.000000;;, + 97;4; -0.677865, 0.735100, 0.000000, 0.000000;;, + 98;4; -0.676927, 0.735998, 0.000000, 0.000000;;, + 99;4; -0.676212, 0.736682, 0.000000, 0.000000;;, + 100;4; -0.675754, 0.737121, 0.000000, 0.000000;;, + 101;4; -0.675590, 0.737277, 0.000000, 0.000000;;, + 102;4; -0.675764, 0.737111, 0.000000, 0.000000;;, + 103;4; -0.676289, 0.736609, 0.000000, 0.000000;;, + 104;4; -0.677167, 0.735768, 0.000000, 0.000000;;, + 105;4; -0.678392, 0.734596, 0.000000, 0.000000;;, + 106;4; -0.679949, 0.733105, 0.000000, 0.000000;;, + 107;4; -0.681811, 0.731323, 0.000000, 0.000000;;, + 108;4; -0.683939, 0.729285, 0.000000, 0.000000;;, + 109;4; -0.686283, 0.727042, 0.000000, 0.000000;;, + 110;4; -0.688777, 0.724654, 0.000000, 0.000000;;, + 111;4; -0.691348, 0.722192, 0.000000, 0.000000;;, + 112;4; -0.693920, 0.719730, 0.000000, 0.000000;;, + 113;4; -0.696415, 0.717343, 0.000000, 0.000000;;, + 114;4; -0.698758, 0.715099, 0.000000, 0.000000;;, + 115;4; -0.700886, 0.713062, 0.000000, 0.000000;;, + 116;4; -0.702749, 0.711279, 0.000000, 0.000000;;, + 117;4; -0.704305, 0.709789, 0.000000, 0.000000;;, + 118;4; -0.705530, 0.708616, 0.000000, 0.000000;;, + 119;4; -0.706408, 0.707776, 0.000000, 0.000000;;, + 120;4; -0.706933, 0.707273, 0.000000, 0.000000;;, + 121;4; -0.707107, 0.707107, 0.000000, 0.000000;;, + 122;4; -0.706933, 0.707273, 0.000000, 0.000000;;, + 123;4; -0.706408, 0.707776, 0.000000, 0.000000;;, + 124;4; -0.705530, 0.708616, 0.000000, 0.000000;;, + 125;4; -0.704305, 0.709789, 0.000000, 0.000000;;, + 126;4; -0.702749, 0.711279, 0.000000, 0.000000;;, + 127;4; -0.700886, 0.713062, 0.000000, 0.000000;;, + 128;4; -0.698758, 0.715099, 0.000000, 0.000000;;, + 129;4; -0.696415, 0.717343, 0.000000, 0.000000;;, + 130;4; -0.693920, 0.719730, 0.000000, 0.000000;;, + 131;4; -0.691348, 0.722192, 0.000000, 0.000000;;, + 132;4; -0.688777, 0.724654, 0.000000, 0.000000;;, + 133;4; -0.686283, 0.727042, 0.000000, 0.000000;;, + 134;4; -0.683939, 0.729285, 0.000000, 0.000000;;, + 135;4; -0.681811, 0.731323, 0.000000, 0.000000;;, + 136;4; -0.679949, 0.733105, 0.000000, 0.000000;;, + 137;4; -0.678392, 0.734596, 0.000000, 0.000000;;, + 138;4; -0.677167, 0.735768, 0.000000, 0.000000;;, + 139;4; -0.676289, 0.736609, 0.000000, 0.000000;;, + 140;4; -0.675764, 0.737111, 0.000000, 0.000000;;, + 141;4; -0.675590, 0.737277, 0.000000, 0.000000;;, + 142;4; -0.675754, 0.737121, 0.000000, 0.000000;;, + 143;4; -0.676211, 0.736683, 0.000000, 0.000000;;, + 144;4; -0.676923, 0.736001, 0.000000, 0.000000;;, + 145;4; -0.677857, 0.735107, 0.000000, 0.000000;;, + 146;4; -0.678987, 0.734026, 0.000000, 0.000000;;, + 147;4; -0.680291, 0.732778, 0.000000, 0.000000;;, + 148;4; -0.681750, 0.731381, 0.000000, 0.000000;;, + 149;4; -0.683349, 0.729852, 0.000000, 0.000000;;, + 150;4; -0.685071, 0.728203, 0.000000, 0.000000;;, + 151;4; -0.686905, 0.726448, 0.000000, 0.000000;;, + 152;4; -0.688838, 0.724598, 0.000000, 0.000000;;, + 153;4; -0.690858, 0.722664, 0.000000, 0.000000;;, + 154;4; -0.692953, 0.720659, 0.000000, 0.000000;;, + 155;4; -0.695109, 0.718596, 0.000000, 0.000000;;, + 156;4; -0.697310, 0.716489, 0.000000, 0.000000;;, + 157;4; -0.699536, 0.714358, 0.000000, 0.000000;;, + 158;4; -0.701753, 0.712235, 0.000000, 0.000000;;, + 159;4; -0.703909, 0.710171, 0.000000, 0.000000;;, + 160;4; -0.705875, 0.708288, 0.000000, 0.000000;;, + 161;4; -0.707107, 0.707107, 0.000000, 0.000000;;, + 162;4; -0.000000, 1.000000, 0.000000, 0.000000;;, + 163;4; -0.000000, 1.000000, 0.000000, 0.000000;;, + 164;4; -0.000000, 1.000000, 0.000000, 0.000000;;, + 165;4; -0.000000, 1.000000, 0.000000, 0.000000;;, + 166;4; -0.000000, 1.000000, 0.000000, 0.000000;;, + 167;4; -0.000000, 1.000000, 0.000000, 0.000000;;, + 168;4; -0.707107, 0.707107, 0.000000, 0.000000;;, + 169;4; -0.707107, 0.707107, 0.000000, 0.000000;;, + 170;4; -0.707107, 0.707107, 0.000000, 0.000000;;, + 171;4; -0.707107, 0.707107, 0.000000, 0.000000;;, + 172;4; -0.707107, 0.707107, 0.000000, 0.000000;;, + 173;4; -0.707107, 0.707107, 0.000000, 0.000000;;, + 174;4; -0.707107, 0.707107, 0.000000, 0.000000;;, + 175;4; -0.707107, 0.707107, 0.000000, 0.000000;;, + 176;4; -0.707107, 0.707107, 0.000000, 0.000000;;, + 177;4; -0.707107, 0.707107, 0.000000, 0.000000;;, + 178;4; -0.707107, 0.707107, 0.000000, 0.000000;;, + 179;4; -0.707107, 0.707107, 0.000000, 0.000000;;, + 180;4; -0.707107, 0.707107, 0.000000, 0.000000;;, + 181;4; -0.707107, 0.707107, 0.000000, 0.000000;;, + 182;4; -0.707107, 0.707107, 0.000000, 0.000000;;, + 183;4; -0.707107, 0.707107, 0.000000, 0.000000;;, + 184;4; -0.707107, 0.707107, 0.000000, 0.000000;;, + 185;4; -0.707107, 0.707107, 0.000000, 0.000000;;, + 186;4; -0.707107, 0.707107, 0.000000, 0.000000;;, + 187;4; -0.707107, 0.707107, 0.000000, 0.000000;;, + 188;4; -0.707107, 0.707107, 0.000000, 0.000000;;, + 189;4; -0.707107, 0.707107, 0.000000, 0.000000;;, + 190;4; -0.709789, 0.704305, 0.000000, 0.000000;;, + 191;4; -0.717343, 0.696414, 0.000000, 0.000000;;, + 192;4; -0.727042, 0.686283, 0.000000, 0.000000;;, + 193;4; -0.734596, 0.678392, 0.000000, 0.000000;;, + 194;4; -0.737277, 0.675590, 0.000000, 0.000000;;, + 195;4; -0.734596, 0.678392, 0.000000, 0.000000;;, + 196;4; -0.727042, 0.686283, 0.000000, 0.000000;;, + 197;4; -0.717343, 0.696414, 0.000000, 0.000000;;, + 198;4; -0.709789, 0.704305, 0.000000, 0.000000;;, + 199;4; -0.707107, 0.707107, 0.000000, 0.000000;;, + 200;4; -0.707107, 0.707107, 0.000000, 0.000000;;, + 201;4; -0.704305, 0.709789, 0.000000, 0.000000;;, + 202;4; -0.696414, 0.717343, 0.000000, 0.000000;;, + 203;4; -0.686283, 0.727042, 0.000000, 0.000000;;, + 204;4; -0.678392, 0.734596, 0.000000, 0.000000;;, + 205;4; -0.675590, 0.737277, 0.000000, 0.000000;;, + 206;4; -0.681074, 0.731794, 0.000000, 0.000000;;, + 207;4; -0.696519, 0.716349, 0.000000, 0.000000;;, + 208;4; -0.716349, 0.696518, 0.000000, 0.000000;;, + 209;4; -0.731794, 0.681074, 0.000000, 0.000000;;, + 210;4; -0.737277, 0.675590, 0.000000, 0.000000;;, + 211;4; -0.731794, 0.681074, 0.000000, 0.000000;;, + 212;4; -0.716349, 0.696518, 0.000000, 0.000000;;, + 213;4; -0.696519, 0.716349, 0.000000, 0.000000;;, + 214;4; -0.681074, 0.731794, 0.000000, 0.000000;;, + 215;4; -0.675590, 0.737277, 0.000000, 0.000000;;, + 216;4; -0.678392, 0.734596, 0.000000, 0.000000;;, + 217;4; -0.686282, 0.727042, 0.000000, 0.000000;;, + 218;4; -0.696414, 0.717343, 0.000000, 0.000000;;, + 219;4; -0.704305, 0.709789, 0.000000, 0.000000;;, + 220;4; -0.707107, 0.707107, 0.000000, 0.000000;;; + } + AnimationKey { //Scale + 1; + 221; + 0;3; 1.000000, 1.000000, 1.000000;;, + 1;3; 1.000000, 1.000000, 1.000000;;, + 2;3; 1.000000, 1.000000, 1.000000;;, + 3;3; 1.000000, 1.000000, 1.000000;;, + 4;3; 1.000000, 1.000000, 1.000000;;, + 5;3; 1.000000, 1.000000, 1.000000;;, + 6;3; 1.000000, 1.000000, 1.000000;;, + 7;3; 1.000000, 1.000000, 1.000000;;, + 8;3; 1.000000, 1.000000, 1.000000;;, + 9;3; 1.000000, 1.000000, 1.000000;;, + 10;3; 1.000000, 1.000000, 1.000000;;, + 11;3; 1.000000, 1.000000, 1.000000;;, + 12;3; 1.000000, 1.000000, 1.000000;;, + 13;3; 1.000000, 1.000000, 1.000000;;, + 14;3; 1.000000, 1.000000, 1.000000;;, + 15;3; 1.000000, 1.000000, 1.000000;;, + 16;3; 1.000000, 1.000000, 1.000000;;, + 17;3; 1.000000, 1.000000, 1.000000;;, + 18;3; 1.000000, 1.000000, 1.000000;;, + 19;3; 1.000000, 1.000000, 1.000000;;, + 20;3; 1.000000, 1.000000, 1.000000;;, + 21;3; 1.000000, 1.000000, 1.000000;;, + 22;3; 1.000000, 1.000000, 1.000000;;, + 23;3; 1.000000, 1.000000, 1.000000;;, + 24;3; 1.000000, 1.000000, 1.000000;;, + 25;3; 1.000000, 1.000000, 1.000000;;, + 26;3; 1.000000, 1.000000, 1.000000;;, + 27;3; 1.000000, 1.000000, 1.000000;;, + 28;3; 1.000000, 1.000000, 1.000000;;, + 29;3; 1.000000, 1.000000, 1.000000;;, + 30;3; 1.000000, 1.000000, 1.000000;;, + 31;3; 1.000000, 1.000000, 1.000000;;, + 32;3; 1.000000, 1.000000, 1.000000;;, + 33;3; 1.000000, 1.000000, 1.000000;;, + 34;3; 1.000000, 1.000000, 1.000000;;, + 35;3; 1.000000, 1.000000, 1.000000;;, + 36;3; 1.000000, 1.000000, 1.000000;;, + 37;3; 1.000000, 1.000000, 1.000000;;, + 38;3; 1.000000, 1.000000, 1.000000;;, + 39;3; 1.000000, 1.000000, 1.000000;;, + 40;3; 1.000000, 1.000000, 1.000000;;, + 41;3; 1.000000, 1.000000, 1.000000;;, + 42;3; 1.000000, 1.000000, 1.000000;;, + 43;3; 1.000000, 1.000000, 1.000000;;, + 44;3; 1.000000, 1.000000, 1.000000;;, + 45;3; 1.000000, 1.000000, 1.000000;;, + 46;3; 1.000000, 1.000000, 1.000000;;, + 47;3; 1.000000, 1.000000, 1.000000;;, + 48;3; 1.000000, 1.000000, 1.000000;;, + 49;3; 1.000000, 1.000000, 1.000000;;, + 50;3; 1.000000, 1.000000, 1.000000;;, + 51;3; 1.000000, 1.000000, 1.000000;;, + 52;3; 1.000000, 1.000000, 1.000000;;, + 53;3; 1.000000, 1.000000, 1.000000;;, + 54;3; 1.000000, 1.000000, 1.000000;;, + 55;3; 1.000000, 1.000000, 1.000000;;, + 56;3; 1.000000, 1.000000, 1.000000;;, + 57;3; 1.000000, 1.000000, 1.000000;;, + 58;3; 1.000000, 1.000000, 1.000000;;, + 59;3; 1.000000, 1.000000, 1.000000;;, + 60;3; 1.000000, 1.000000, 1.000000;;, + 61;3; 1.000000, 1.000000, 1.000000;;, + 62;3; 1.000000, 1.000000, 1.000000;;, + 63;3; 1.000000, 1.000000, 1.000000;;, + 64;3; 1.000000, 1.000000, 1.000000;;, + 65;3; 1.000000, 1.000000, 1.000000;;, + 66;3; 1.000000, 1.000000, 1.000000;;, + 67;3; 1.000000, 1.000000, 1.000000;;, + 68;3; 1.000000, 1.000000, 1.000000;;, + 69;3; 1.000000, 1.000000, 1.000000;;, + 70;3; 1.000000, 1.000000, 1.000000;;, + 71;3; 1.000000, 1.000000, 1.000000;;, + 72;3; 1.000000, 1.000000, 1.000000;;, + 73;3; 1.000000, 1.000000, 1.000000;;, + 74;3; 1.000000, 1.000000, 1.000000;;, + 75;3; 1.000000, 1.000000, 1.000000;;, + 76;3; 1.000000, 1.000000, 1.000000;;, + 77;3; 1.000000, 1.000000, 1.000000;;, + 78;3; 1.000000, 1.000000, 1.000000;;, + 79;3; 1.000000, 1.000000, 1.000000;;, + 80;3; 1.000000, 1.000000, 1.000000;;, + 81;3; 1.000000, 1.000000, 1.000000;;, + 82;3; 1.000000, 1.000000, 1.000000;;, + 83;3; 1.000000, 1.000000, 1.000000;;, + 84;3; 1.000000, 1.000000, 1.000000;;, + 85;3; 1.000000, 1.000000, 1.000000;;, + 86;3; 1.000000, 1.000000, 1.000000;;, + 87;3; 1.000000, 1.000000, 1.000000;;, + 88;3; 1.000000, 1.000000, 1.000000;;, + 89;3; 1.000000, 1.000000, 1.000000;;, + 90;3; 1.000000, 1.000000, 1.000000;;, + 91;3; 1.000000, 1.000000, 1.000000;;, + 92;3; 1.000000, 1.000000, 1.000000;;, + 93;3; 1.000000, 1.000000, 1.000000;;, + 94;3; 1.000000, 1.000000, 1.000000;;, + 95;3; 1.000000, 1.000000, 1.000000;;, + 96;3; 1.000000, 1.000000, 1.000000;;, + 97;3; 1.000000, 1.000000, 1.000000;;, + 98;3; 1.000000, 1.000000, 1.000000;;, + 99;3; 1.000000, 1.000000, 1.000000;;, + 100;3; 1.000000, 1.000000, 1.000000;;, + 101;3; 1.000000, 1.000000, 1.000000;;, + 102;3; 1.000000, 1.000000, 1.000000;;, + 103;3; 1.000000, 1.000000, 1.000000;;, + 104;3; 1.000000, 1.000000, 1.000000;;, + 105;3; 1.000000, 1.000000, 1.000000;;, + 106;3; 1.000000, 1.000000, 1.000000;;, + 107;3; 1.000000, 1.000000, 1.000000;;, + 108;3; 1.000000, 1.000000, 1.000000;;, + 109;3; 1.000000, 1.000000, 1.000000;;, + 110;3; 1.000000, 1.000000, 1.000000;;, + 111;3; 1.000000, 1.000000, 1.000000;;, + 112;3; 1.000000, 1.000000, 1.000000;;, + 113;3; 1.000000, 1.000000, 1.000000;;, + 114;3; 1.000000, 1.000000, 1.000000;;, + 115;3; 1.000000, 1.000000, 1.000000;;, + 116;3; 1.000000, 1.000000, 1.000000;;, + 117;3; 1.000000, 1.000000, 1.000000;;, + 118;3; 1.000000, 1.000000, 1.000000;;, + 119;3; 1.000000, 1.000000, 1.000000;;, + 120;3; 1.000000, 1.000000, 1.000000;;, + 121;3; 1.000000, 1.000000, 1.000000;;, + 122;3; 1.000000, 1.000000, 1.000000;;, + 123;3; 1.000000, 1.000000, 1.000000;;, + 124;3; 1.000000, 1.000000, 1.000000;;, + 125;3; 1.000000, 1.000000, 1.000000;;, + 126;3; 1.000000, 1.000000, 1.000000;;, + 127;3; 1.000000, 1.000000, 1.000000;;, + 128;3; 1.000000, 1.000000, 1.000000;;, + 129;3; 1.000000, 1.000000, 1.000000;;, + 130;3; 1.000000, 1.000000, 1.000000;;, + 131;3; 1.000000, 1.000000, 1.000000;;, + 132;3; 1.000000, 1.000000, 1.000000;;, + 133;3; 1.000000, 1.000000, 1.000000;;, + 134;3; 1.000000, 1.000000, 1.000000;;, + 135;3; 1.000000, 1.000000, 1.000000;;, + 136;3; 1.000000, 1.000000, 1.000000;;, + 137;3; 1.000000, 1.000000, 1.000000;;, + 138;3; 1.000000, 1.000000, 1.000000;;, + 139;3; 1.000000, 1.000000, 1.000000;;, + 140;3; 1.000000, 1.000000, 1.000000;;, + 141;3; 1.000000, 1.000000, 1.000000;;, + 142;3; 1.000000, 1.000000, 1.000000;;, + 143;3; 1.000000, 1.000000, 1.000000;;, + 144;3; 1.000000, 1.000000, 1.000000;;, + 145;3; 1.000000, 1.000000, 1.000000;;, + 146;3; 1.000000, 1.000000, 1.000000;;, + 147;3; 1.000000, 1.000000, 1.000000;;, + 148;3; 1.000000, 1.000000, 1.000000;;, + 149;3; 1.000000, 1.000000, 1.000000;;, + 150;3; 1.000000, 1.000000, 1.000000;;, + 151;3; 1.000000, 1.000000, 1.000000;;, + 152;3; 1.000000, 1.000000, 1.000000;;, + 153;3; 1.000000, 1.000000, 1.000000;;, + 154;3; 1.000000, 1.000000, 1.000000;;, + 155;3; 1.000000, 1.000000, 1.000000;;, + 156;3; 1.000000, 1.000000, 1.000000;;, + 157;3; 1.000000, 1.000000, 1.000000;;, + 158;3; 1.000000, 1.000000, 1.000000;;, + 159;3; 1.000000, 1.000000, 1.000000;;, + 160;3; 1.000000, 1.000000, 1.000000;;, + 161;3; 1.000000, 1.000000, 1.000000;;, + 162;3; 1.000000, 1.000000, 1.000000;;, + 163;3; 1.000000, 1.000000, 1.000000;;, + 164;3; 1.000000, 1.000000, 1.000000;;, + 165;3; 1.000000, 1.000000, 1.000000;;, + 166;3; 1.000000, 1.000000, 1.000000;;, + 167;3; 1.000000, 1.000000, 1.000000;;, + 168;3; 1.000000, 1.000000, 1.000000;;, + 169;3; 1.000000, 1.000000, 1.000000;;, + 170;3; 1.000000, 1.000000, 1.000000;;, + 171;3; 1.000000, 1.000000, 1.000000;;, + 172;3; 1.000000, 1.000000, 1.000000;;, + 173;3; 1.000000, 1.000000, 1.000000;;, + 174;3; 1.000000, 1.000000, 1.000000;;, + 175;3; 1.000000, 1.000000, 1.000000;;, + 176;3; 1.000000, 1.000000, 1.000000;;, + 177;3; 1.000000, 1.000000, 1.000000;;, + 178;3; 1.000000, 1.000000, 1.000000;;, + 179;3; 1.000000, 1.000000, 1.000000;;, + 180;3; 1.000000, 1.000000, 1.000000;;, + 181;3; 1.000000, 1.000000, 1.000000;;, + 182;3; 1.000000, 1.000000, 1.000000;;, + 183;3; 1.000000, 1.000000, 1.000000;;, + 184;3; 1.000000, 1.000000, 1.000000;;, + 185;3; 1.000000, 1.000000, 1.000000;;, + 186;3; 1.000000, 1.000000, 1.000000;;, + 187;3; 1.000000, 1.000000, 1.000000;;, + 188;3; 1.000000, 1.000000, 1.000000;;, + 189;3; 1.000000, 1.000000, 1.000000;;, + 190;3; 1.000000, 1.000000, 1.000000;;, + 191;3; 1.000000, 1.000000, 1.000000;;, + 192;3; 1.000000, 1.000000, 1.000000;;, + 193;3; 1.000000, 1.000000, 1.000000;;, + 194;3; 1.000000, 1.000000, 1.000000;;, + 195;3; 1.000000, 1.000000, 1.000000;;, + 196;3; 1.000000, 1.000000, 1.000000;;, + 197;3; 1.000000, 1.000000, 1.000000;;, + 198;3; 1.000000, 1.000000, 1.000000;;, + 199;3; 1.000000, 1.000000, 1.000000;;, + 200;3; 1.000000, 1.000000, 1.000000;;, + 201;3; 1.000000, 1.000000, 1.000000;;, + 202;3; 1.000000, 1.000000, 1.000000;;, + 203;3; 1.000000, 1.000000, 1.000000;;, + 204;3; 1.000000, 1.000000, 1.000000;;, + 205;3; 1.000000, 1.000000, 1.000000;;, + 206;3; 1.000000, 1.000000, 1.000000;;, + 207;3; 1.000000, 1.000000, 1.000000;;, + 208;3; 1.000000, 1.000000, 1.000000;;, + 209;3; 1.000000, 1.000000, 1.000000;;, + 210;3; 1.000000, 1.000000, 1.000000;;, + 211;3; 1.000000, 1.000000, 1.000000;;, + 212;3; 1.000000, 1.000000, 1.000000;;, + 213;3; 1.000000, 1.000000, 1.000000;;, + 214;3; 1.000000, 1.000000, 1.000000;;, + 215;3; 1.000000, 1.000000, 1.000000;;, + 216;3; 1.000000, 1.000000, 1.000000;;, + 217;3; 1.000000, 1.000000, 1.000000;;, + 218;3; 1.000000, 1.000000, 1.000000;;, + 219;3; 1.000000, 1.000000, 1.000000;;, + 220;3; 1.000000, 1.000000, 1.000000;;; + } + } + Animation { + {Armature_Head} + AnimationKey { //Position + 2; + 221; + 0;3; 0.000000, 6.750000, 0.000000;;, + 1;3; -0.000000, 6.750000, 0.000000;;, + 2;3; 0.000000, 6.750000, 0.000000;;, + 3;3; 0.000000, 6.750000, 0.000000;;, + 4;3; 0.000000, 6.750000, 0.000000;;, + 5;3; 0.000000, 6.750000, 0.000000;;, + 6;3; 0.000000, 6.750000, 0.000000;;, + 7;3; 0.000000, 6.750000,-0.000000;;, + 8;3; 0.000000, 6.750000,-0.000000;;, + 9;3; 0.000000, 6.750000, 0.000000;;, + 10;3; 0.000000, 6.750000,-0.000000;;, + 11;3; 0.000000, 6.750000, 0.000000;;, + 12;3; 0.000000, 6.750000, 0.000000;;, + 13;3; 0.000000, 6.750000, 0.000000;;, + 14;3; 0.000000, 6.750000,-0.000000;;, + 15;3; 0.000000, 6.750000,-0.000000;;, + 16;3; 0.000000, 6.750000, 0.000000;;, + 17;3; -0.000000, 6.750001,-0.000000;;, + 18;3; 0.000000, 6.750000, 0.000000;;, + 19;3; 0.000000, 6.750000, 0.000000;;, + 20;3; 0.000000, 6.750000, 0.000000;;, + 21;3; 0.000000, 6.750000, 0.000000;;, + 22;3; 0.000000, 6.750000, 0.000000;;, + 23;3; -0.000000, 6.750001,-0.000000;;, + 24;3; 0.000000, 6.750000, 0.000000;;, + 25;3; 0.000000, 6.750000, 0.000000;;, + 26;3; 0.000000, 6.750000,-0.000000;;, + 27;3; 0.000000, 6.750000, 0.000000;;, + 28;3; 0.000000, 6.750000, 0.000000;;, + 29;3; 0.000000, 6.750000, 0.000000;;, + 30;3; 0.000000, 6.750000, 0.000000;;, + 31;3; 0.000000, 6.750000, 0.000000;;, + 32;3; 0.000000, 6.750000,-0.000000;;, + 33;3; 0.000000, 6.750000,-0.000000;;, + 34;3; 0.000000, 6.750000, 0.000000;;, + 35;3; 0.000000, 6.750000, 0.000000;;, + 36;3; 0.000000, 6.750000,-0.000000;;, + 37;3; 0.000000, 6.750000, 0.000000;;, + 38;3; 0.000000, 6.750000, 0.000000;;, + 39;3; -0.000000, 6.750000, 0.000000;;, + 40;3; 0.000000, 6.750000, 0.000000;;, + 41;3; -0.000000, 6.750000, 0.000000;;, + 42;3; 0.000000, 6.750000, 0.000000;;, + 43;3; 0.000000, 6.750000, 0.000000;;, + 44;3; 0.000000, 6.750000, 0.000000;;, + 45;3; 0.000000, 6.750000, 0.000000;;, + 46;3; 0.000000, 6.750000,-0.000000;;, + 47;3; 0.000000, 6.750000, 0.000000;;, + 48;3; 0.000000, 6.750000, 0.000000;;, + 49;3; 0.000000, 6.750000, 0.000000;;, + 50;3; 0.000000, 6.750000,-0.000000;;, + 51;3; 0.000000, 6.750000, 0.000000;;, + 52;3; 0.000000, 6.750000, 0.000000;;, + 53;3; 0.000000, 6.750000, 0.000000;;, + 54;3; 0.000000, 6.750000, 0.000000;;, + 55;3; 0.000000, 6.750000,-0.000000;;, + 56;3; 0.000000, 6.750000, 0.000000;;, + 57;3; -0.000000, 6.750001,-0.000000;;, + 58;3; 0.000000, 6.750000, 0.000000;;, + 59;3; 0.000000, 6.750000, 0.000000;;, + 60;3; 0.000000, 6.750000, 0.000000;;, + 61;3; 0.000000, 6.750000, 0.000000;;, + 62;3; 0.000000, 6.750000, 0.000000;;, + 63;3; 0.000000, 6.750000,-0.000000;;, + 64;3; 0.000000, 6.750000, 0.000000;;, + 65;3; 0.000000, 6.750000, 0.000000;;, + 66;3; 0.000000, 6.750000, 0.000000;;, + 67;3; 0.000000, 6.750000, 0.000000;;, + 68;3; 0.000000, 6.750000, 0.000000;;, + 69;3; 0.000000, 6.750000,-0.000000;;, + 70;3; 0.000000, 6.750000,-0.000000;;, + 71;3; 0.000000, 6.750000,-0.000000;;, + 72;3; 0.000000, 6.750000,-0.000000;;, + 73;3; 0.000000, 6.749999, 0.000000;;, + 74;3; 0.000000, 6.750000, 0.000000;;, + 75;3; 0.000000, 6.750000, 0.000000;;, + 76;3; -0.000000, 6.750000,-0.000000;;, + 77;3; 0.000000, 6.750000, 0.000000;;, + 78;3; 0.000000, 6.750000,-0.000000;;, + 79;3; 0.000000, 6.750000, 0.000000;;, + 80;3; 0.000000, 6.750000, 0.000000;;, + 81;3; 0.000000, 6.750000,-0.000000;;, + 82;3; 0.000000, 6.750000, 0.000000;;, + 83;3; 0.000000, 6.750000,-0.000000;;, + 84;3; 0.000000, 6.750000, 0.000000;;, + 85;3; -0.000000, 6.750000,-0.000000;;, + 86;3; 0.000000, 6.750000, 0.000000;;, + 87;3; 0.000000, 6.750000,-0.000000;;, + 88;3; 0.000000, 6.750000, 0.000000;;, + 89;3; 0.000000, 6.750000,-0.000000;;, + 90;3; 0.000000, 6.750000,-0.000000;;, + 91;3; 0.000000, 6.750000, 0.000000;;, + 92;3; 0.000000, 6.750000,-0.000000;;, + 93;3; 0.000000, 6.750000,-0.000000;;, + 94;3; 0.000000, 6.750000,-0.000000;;, + 95;3; 0.000000, 6.750000, 0.000000;;, + 96;3; 0.000000, 6.750000,-0.000000;;, + 97;3; 0.000000, 6.750000, 0.000000;;, + 98;3; 0.000000, 6.750000, 0.000000;;, + 99;3; 0.000000, 6.750000,-0.000000;;, + 100;3; 0.000000, 6.750000, 0.000000;;, + 101;3; 0.000000, 6.750000, 0.000000;;, + 102;3; 0.000000, 6.750000,-0.000000;;, + 103;3; 0.000000, 6.750000, 0.000000;;, + 104;3; -0.000000, 6.750000, 0.000000;;, + 105;3; 0.000000, 6.750000, 0.000000;;, + 106;3; 0.000000, 6.750000, 0.000000;;, + 107;3; 0.000000, 6.750000,-0.000000;;, + 108;3; 0.000000, 6.750000, 0.000000;;, + 109;3; 0.000000, 6.750000, 0.000000;;, + 110;3; 0.000000, 6.750000,-0.000000;;, + 111;3; 0.000000, 6.750000,-0.000000;;, + 112;3; 0.000000, 6.750000,-0.000000;;, + 113;3; 0.000000, 6.750000,-0.000000;;, + 114;3; 0.000000, 6.750000, 0.000000;;, + 115;3; 0.000000, 6.750000, 0.000000;;, + 116;3; 0.000000, 6.750000, 0.000000;;, + 117;3; 0.000000, 6.750000,-0.000000;;, + 118;3; 0.000000, 6.750000,-0.000000;;, + 119;3; 0.000000, 6.750000,-0.000000;;, + 120;3; -0.000000, 6.750000, 0.000000;;, + 121;3; 0.000000, 6.750000,-0.000000;;, + 122;3; -0.000000, 6.750000,-0.000000;;, + 123;3; 0.000000, 6.750000,-0.000000;;, + 124;3; 0.000000, 6.750000, 0.000000;;, + 125;3; 0.000000, 6.750000,-0.000000;;, + 126;3; 0.000000, 6.750000, 0.000000;;, + 127;3; 0.000000, 6.750000,-0.000000;;, + 128;3; 0.000000, 6.750000, 0.000000;;, + 129;3; 0.000000, 6.750000,-0.000000;;, + 130;3; 0.000000, 6.750000,-0.000000;;, + 131;3; 0.000000, 6.750000,-0.000000;;, + 132;3; 0.000000, 6.750000,-0.000000;;, + 133;3; 0.000000, 6.750000, 0.000000;;, + 134;3; 0.000000, 6.750000,-0.000000;;, + 135;3; 0.000000, 6.750000, 0.000000;;, + 136;3; 0.000000, 6.750000, 0.000000;;, + 137;3; 0.000000, 6.750000, 0.000000;;, + 138;3; -0.000000, 6.750000, 0.000000;;, + 139;3; 0.000000, 6.750000,-0.000000;;, + 140;3; 0.000000, 6.750000,-0.000000;;, + 141;3; 0.000000, 6.750000, 0.000000;;, + 142;3; 0.000000, 6.750000, 0.000000;;, + 143;3; 0.000000, 6.750000,-0.000000;;, + 144;3; 0.000000, 6.750000, 0.000000;;, + 145;3; 0.000000, 6.750000, 0.000000;;, + 146;3; 0.000000, 6.750000, 0.000000;;, + 147;3; 0.000000, 6.750000,-0.000000;;, + 148;3; 0.000000, 6.750000, 0.000000;;, + 149;3; 0.000000, 6.750000, 0.000000;;, + 150;3; 0.000000, 6.750000,-0.000000;;, + 151;3; 0.000000, 6.750000,-0.000000;;, + 152;3; 0.000000, 6.750000,-0.000000;;, + 153;3; 0.000000, 6.750000,-0.000000;;, + 154;3; 0.000000, 6.750000,-0.000000;;, + 155;3; 0.000000, 6.750000,-0.000000;;, + 156;3; 0.000000, 6.750000,-0.000000;;, + 157;3; -0.000000, 6.750000, 0.000000;;, + 158;3; 0.000000, 6.750000, 0.000000;;, + 159;3; 0.000000, 6.750000,-0.000000;;, + 160;3; 0.000000, 6.750000, 0.000000;;, + 161;3; 0.000000, 6.750000,-0.000000;;, + 162;3; 0.000000, 6.750000, 0.000000;;, + 163;3; 0.000000, 6.750000, 0.000000;;, + 164;3; 0.000000, 6.750000, 0.000000;;, + 165;3; 0.000000, 6.750000, 0.000000;;, + 166;3; 0.000000, 6.750000, 0.000000;;, + 167;3; 0.000000, 6.750000, 0.000000;;, + 168;3; 0.000000, 6.750000, 0.000000;;, + 169;3; 0.000000, 6.750000, 0.000000;;, + 170;3; 0.000000, 6.750000, 0.000000;;, + 171;3; 0.000000, 6.750000, 0.000000;;, + 172;3; 0.000000, 6.750000, 0.000000;;, + 173;3; 0.000000, 6.750000, 0.000000;;, + 174;3; 0.000000, 6.750000, 0.000000;;, + 175;3; 0.000000, 6.750000, 0.000000;;, + 176;3; 0.000000, 6.750000, 0.000000;;, + 177;3; 0.000000, 6.750000, 0.000000;;, + 178;3; 0.000000, 6.750000, 0.000000;;, + 179;3; 0.000000, 6.750000, 0.000000;;, + 180;3; 0.000000, 6.750000, 0.000000;;, + 181;3; 0.000000, 6.750000, 0.000000;;, + 182;3; 0.000000, 6.750000, 0.000000;;, + 183;3; 0.000000, 6.750000, 0.000000;;, + 184;3; 0.000000, 6.750000, 0.000000;;, + 185;3; 0.000000, 6.750000, 0.000000;;, + 186;3; 0.000000, 6.750000, 0.000000;;, + 187;3; 0.000000, 6.750000, 0.000000;;, + 188;3; 0.000000, 6.750000, 0.000000;;, + 189;3; 0.000000, 6.750000, 0.000000;;, + 190;3; 0.000000, 6.750000,-0.000000;;, + 191;3; 0.000000, 6.750000, 0.000000;;, + 192;3; 0.000000, 6.749999,-0.000000;;, + 193;3; 0.000000, 6.750000, 0.000000;;, + 194;3; 0.000000, 6.750000, 0.000000;;, + 195;3; 0.000000, 6.750000, 0.000000;;, + 196;3; 0.000000, 6.749999, 0.000000;;, + 197;3; 0.000000, 6.750000, 0.000000;;, + 198;3; 0.000000, 6.750000, 0.000000;;, + 199;3; 0.000000, 6.750000, 0.000000;;, + 200;3; 0.000000, 6.750000, 0.000000;;, + 201;3; 0.000000, 6.750000, 0.000000;;, + 202;3; 0.000000, 6.750000,-0.000000;;, + 203;3; 0.000000, 6.750000, 0.000000;;, + 204;3; 0.000000, 6.750000, 0.000000;;, + 205;3; 0.000000, 6.750000, 0.000000;;, + 206;3; -0.000000, 6.750000, 0.000000;;, + 207;3; 0.000000, 6.750000, 0.000000;;, + 208;3; -0.000000, 6.750000, 0.000000;;, + 209;3; 0.000000, 6.750000,-0.000000;;, + 210;3; 0.000000, 6.750000, 0.000000;;, + 211;3; 0.000000, 6.750000,-0.000000;;, + 212;3; -0.000000, 6.750000, 0.000000;;, + 213;3; 0.000000, 6.750000, 0.000000;;, + 214;3; -0.000000, 6.750000, 0.000000;;, + 215;3; 0.000000, 6.750000, 0.000000;;, + 216;3; 0.000000, 6.750000, 0.000000;;, + 217;3; 0.000000, 6.749999, 0.000000;;, + 218;3; 0.000000, 6.750000, 0.000000;;, + 219;3; 0.000000, 6.750000, 0.000000;;, + 220;3; 0.000000, 6.750000, 0.000000;;; + } + AnimationKey { //Rotation + 0; + 221; + 0;4; 0.000000, 0.000000, 1.000000, 0.000000;;, + 1;4; -0.000120,-0.000005, 0.999993,-0.000240;;, + 2;4; -0.000483,-0.000021, 0.999974,-0.000967;;, + 3;4; -0.001090,-0.000048, 0.999941,-0.002181;;, + 4;4; -0.001937,-0.000085, 0.999894,-0.003876;;, + 5;4; -0.003014,-0.000132, 0.999835,-0.006030;;, + 6;4; -0.004301,-0.000188, 0.999765,-0.008607;;, + 7;4; -0.005773,-0.000252, 0.999685,-0.011553;;, + 8;4; -0.007394,-0.000323, 0.999596,-0.014795;;, + 9;4; -0.009118,-0.000398, 0.999502,-0.018246;;, + 10;4; -0.010897,-0.000476, 0.999405,-0.021804;;, + 11;4; -0.012675,-0.000553, 0.999308,-0.025363;;, + 12;4; -0.014400,-0.000629, 0.999214,-0.028814;;, + 13;4; -0.016021,-0.000699, 0.999126,-0.032056;;, + 14;4; -0.017493,-0.000764, 0.999045,-0.035002;;, + 15;4; -0.018780,-0.000820, 0.998975,-0.037578;;, + 16;4; -0.019857,-0.000867, 0.998916,-0.039733;;, + 17;4; -0.020704,-0.000904, 0.998870,-0.041427;;, + 18;4; -0.021311,-0.000930, 0.998837,-0.042642;;, + 19;4; -0.021674,-0.000946, 0.998817,-0.043369;;, + 20;4; -0.021794,-0.000952, 0.998811,-0.043609;;, + 21;4; -0.021720,-0.000948, 0.998817,-0.043369;;, + 22;4; -0.021494,-0.000938, 0.998837,-0.042642;;, + 23;4; -0.021108,-0.000922, 0.998870,-0.041427;;, + 24;4; -0.020560,-0.000898, 0.998916,-0.039733;;, + 25;4; -0.019848,-0.000867, 0.998975,-0.037578;;, + 26;4; -0.018975,-0.000828, 0.999045,-0.035002;;, + 27;4; -0.017947,-0.000784, 0.999126,-0.032056;;, + 28;4; -0.016778,-0.000733, 0.999214,-0.028814;;, + 29;4; -0.015484,-0.000676, 0.999308,-0.025363;;, + 30;4; -0.014088,-0.000615, 0.999405,-0.021804;;, + 31;4; -0.012616,-0.000551, 0.999502,-0.018246;;, + 32;4; -0.011095,-0.000484, 0.999597,-0.014795;;, + 33;4; -0.009555,-0.000417, 0.999685,-0.011553;;, + 34;4; -0.008021,-0.000350, 0.999765,-0.008607;;, + 35;4; -0.006517,-0.000285, 0.999835,-0.006030;;, + 36;4; -0.005062,-0.000221, 0.999894,-0.003876;;, + 37;4; -0.003674,-0.000160, 0.999941,-0.002181;;, + 38;4; -0.002362,-0.000103, 0.999974,-0.000967;;, + 39;4; -0.001136,-0.000050, 0.999994,-0.000240;;, + 40;4; 0.000000, 0.000000, 1.000000, 0.000000;;, + 41;4; 0.001136, 0.000050, 0.999993,-0.000240;;, + 42;4; 0.002362, 0.000103, 0.999974,-0.000967;;, + 43;4; 0.003674, 0.000160, 0.999941,-0.002181;;, + 44;4; 0.005062, 0.000221, 0.999894,-0.003876;;, + 45;4; 0.006517, 0.000285, 0.999835,-0.006030;;, + 46;4; 0.008021, 0.000350, 0.999765,-0.008607;;, + 47;4; 0.009555, 0.000417, 0.999685,-0.011553;;, + 48;4; 0.011095, 0.000484, 0.999596,-0.014795;;, + 49;4; 0.012616, 0.000551, 0.999502,-0.018246;;, + 50;4; 0.014088, 0.000615, 0.999405,-0.021804;;, + 51;4; 0.015484, 0.000676, 0.999308,-0.025363;;, + 52;4; 0.016778, 0.000733, 0.999214,-0.028814;;, + 53;4; 0.017947, 0.000784, 0.999126,-0.032056;;, + 54;4; 0.018975, 0.000828, 0.999045,-0.035002;;, + 55;4; 0.019848, 0.000867, 0.998975,-0.037578;;, + 56;4; 0.020560, 0.000898, 0.998916,-0.039733;;, + 57;4; 0.021108, 0.000922, 0.998870,-0.041427;;, + 58;4; 0.021494, 0.000938, 0.998837,-0.042642;;, + 59;4; 0.021720, 0.000948, 0.998817,-0.043369;;, + 60;4; 0.021794, 0.000952, 0.998811,-0.043609;;, + 61;4; 0.021681, 0.000947, 0.998817,-0.043383;;, + 62;4; 0.021364, 0.000933, 0.998834,-0.042748;;, + 63;4; 0.020870, 0.000911, 0.998861,-0.041759;;, + 64;4; 0.020221, 0.000883, 0.998896,-0.040461;;, + 65;4; 0.019436, 0.000849, 0.998939,-0.038890;;, + 66;4; 0.018529, 0.000809, 0.998989,-0.037076;;, + 67;4; 0.017514, 0.000765, 0.999044,-0.035045;;, + 68;4; 0.016402, 0.000716, 0.999105,-0.032820;;, + 69;4; 0.015204, 0.000664, 0.999170,-0.030422;;, + 70;4; 0.013928, 0.000608, 0.999240,-0.027869;;, + 71;4; 0.012583, 0.000549, 0.999313,-0.025178;;, + 72;4; 0.011179, 0.000488, 0.999390,-0.022368;;, + 73;4; 0.009723, 0.000425, 0.999469,-0.019456;;, + 74;4; 0.008227, 0.000359, 0.999551,-0.016461;;, + 75;4; 0.006701, 0.000293, 0.999634,-0.013408;;, + 76;4; 0.005161, 0.000225, 0.999718,-0.010327;;, + 77;4; 0.003631, 0.000159, 0.999802,-0.007266;;, + 78;4; 0.002152, 0.000094, 0.999883,-0.004305;;, + 79;4; 0.000815, 0.000036, 0.999956,-0.001631;;, + 80;4; 0.000000, 0.000000, 1.000000, 0.000000;;, + 81;4; 0.000000,-0.000000, 1.000000, 0.000000;;, + 82;4; -0.000815,-0.000036, 0.999956,-0.001631;;, + 83;4; -0.002152,-0.000094, 0.999883,-0.004305;;, + 84;4; -0.003631,-0.000159, 0.999802,-0.007266;;, + 85;4; -0.005161,-0.000225, 0.999718,-0.010327;;, + 86;4; -0.006701,-0.000293, 0.999634,-0.013408;;, + 87;4; -0.008226,-0.000359, 0.999551,-0.016461;;, + 88;4; -0.009723,-0.000425, 0.999469,-0.019456;;, + 89;4; -0.011179,-0.000488, 0.999390,-0.022368;;, + 90;4; -0.012583,-0.000549, 0.999313,-0.025178;;, + 91;4; -0.013928,-0.000608, 0.999240,-0.027869;;, + 92;4; -0.015204,-0.000664, 0.999170,-0.030422;;, + 93;4; -0.016402,-0.000716, 0.999105,-0.032820;;, + 94;4; -0.017514,-0.000765, 0.999044,-0.035045;;, + 95;4; -0.018529,-0.000809, 0.998989,-0.037076;;, + 96;4; -0.019436,-0.000849, 0.998939,-0.038890;;, + 97;4; -0.020221,-0.000883, 0.998896,-0.040461;;, + 98;4; -0.020870,-0.000911, 0.998861,-0.041759;;, + 99;4; -0.021364,-0.000933, 0.998834,-0.042748;;, + 100;4; -0.021681,-0.000947, 0.998817,-0.043383;;, + 101;4; -0.021794,-0.000952, 0.998811,-0.043609;;, + 102;4; -0.021720,-0.000948, 0.998817,-0.043369;;, + 103;4; -0.021494,-0.000938, 0.998837,-0.042642;;, + 104;4; -0.021108,-0.000922, 0.998870,-0.041427;;, + 105;4; -0.020560,-0.000898, 0.998916,-0.039733;;, + 106;4; -0.019848,-0.000867, 0.998975,-0.037578;;, + 107;4; -0.018975,-0.000828, 0.999045,-0.035002;;, + 108;4; -0.017947,-0.000784, 0.999126,-0.032056;;, + 109;4; -0.016778,-0.000733, 0.999214,-0.028814;;, + 110;4; -0.015484,-0.000676, 0.999308,-0.025363;;, + 111;4; -0.014088,-0.000615, 0.999405,-0.021804;;, + 112;4; -0.012616,-0.000551, 0.999502,-0.018246;;, + 113;4; -0.011095,-0.000484, 0.999597,-0.014795;;, + 114;4; -0.009555,-0.000417, 0.999685,-0.011553;;, + 115;4; -0.008021,-0.000350, 0.999765,-0.008607;;, + 116;4; -0.006517,-0.000285, 0.999835,-0.006030;;, + 117;4; -0.005062,-0.000221, 0.999894,-0.003876;;, + 118;4; -0.003674,-0.000160, 0.999941,-0.002181;;, + 119;4; -0.002362,-0.000103, 0.999974,-0.000967;;, + 120;4; -0.001136,-0.000050, 0.999994,-0.000240;;, + 121;4; 0.000000, 0.000000, 1.000000, 0.000000;;, + 122;4; 0.001136, 0.000050, 0.999993,-0.000240;;, + 123;4; 0.002362, 0.000103, 0.999974,-0.000967;;, + 124;4; 0.003674, 0.000160, 0.999941,-0.002181;;, + 125;4; 0.005062, 0.000221, 0.999894,-0.003876;;, + 126;4; 0.006517, 0.000285, 0.999835,-0.006030;;, + 127;4; 0.008021, 0.000350, 0.999765,-0.008607;;, + 128;4; 0.009555, 0.000417, 0.999685,-0.011553;;, + 129;4; 0.011095, 0.000484, 0.999596,-0.014795;;, + 130;4; 0.012616, 0.000551, 0.999502,-0.018246;;, + 131;4; 0.014088, 0.000615, 0.999405,-0.021804;;, + 132;4; 0.015484, 0.000676, 0.999308,-0.025363;;, + 133;4; 0.016778, 0.000733, 0.999214,-0.028814;;, + 134;4; 0.017947, 0.000784, 0.999126,-0.032056;;, + 135;4; 0.018975, 0.000828, 0.999045,-0.035002;;, + 136;4; 0.019848, 0.000867, 0.998975,-0.037578;;, + 137;4; 0.020560, 0.000898, 0.998916,-0.039733;;, + 138;4; 0.021109, 0.000922, 0.998870,-0.041427;;, + 139;4; 0.021494, 0.000938, 0.998837,-0.042642;;, + 140;4; 0.021720, 0.000948, 0.998817,-0.043369;;, + 141;4; 0.021794, 0.000952, 0.998811,-0.043609;;, + 142;4; 0.021681, 0.000947, 0.998817,-0.043383;;, + 143;4; 0.021364, 0.000933, 0.998834,-0.042748;;, + 144;4; 0.020870, 0.000911, 0.998861,-0.041759;;, + 145;4; 0.020221, 0.000883, 0.998896,-0.040461;;, + 146;4; 0.019436, 0.000849, 0.998939,-0.038890;;, + 147;4; 0.018529, 0.000809, 0.998989,-0.037076;;, + 148;4; 0.017514, 0.000765, 0.999044,-0.035045;;, + 149;4; 0.016402, 0.000716, 0.999105,-0.032820;;, + 150;4; 0.015204, 0.000664, 0.999170,-0.030422;;, + 151;4; 0.013928, 0.000608, 0.999240,-0.027869;;, + 152;4; 0.012583, 0.000549, 0.999313,-0.025178;;, + 153;4; 0.011179, 0.000488, 0.999390,-0.022368;;, + 154;4; 0.009723, 0.000425, 0.999469,-0.019456;;, + 155;4; 0.008227, 0.000359, 0.999551,-0.016461;;, + 156;4; 0.006701, 0.000293, 0.999634,-0.013408;;, + 157;4; 0.005161, 0.000225, 0.999718,-0.010327;;, + 158;4; 0.003631, 0.000159, 0.999802,-0.007266;;, + 159;4; 0.002152, 0.000094, 0.999883,-0.004305;;, + 160;4; 0.000815, 0.000036, 0.999956,-0.001631;;, + 161;4; 0.000000, 0.000000, 1.000000, 0.000000;;, + 162;4; 0.000000, 0.000000, 1.000000, 0.000000;;, + 163;4; 0.000000, 0.000000, 1.000000, 0.000000;;, + 164;4; 0.000000, 0.000000, 1.000000, 0.000000;;, + 165;4; 0.000000, 0.000000, 1.000000, 0.000000;;, + 166;4; 0.000000, 0.000000, 1.000000, 0.000000;;, + 167;4; 0.000000, 0.000000, 1.000000, 0.000000;;, + 168;4; 0.000000,-0.000000, 1.000000, 0.000000;;, + 169;4; 0.003877,-0.000000, 0.999915, 0.000000;;, + 170;4; 0.014799,-0.000000, 0.999677, 0.000000;;, + 171;4; 0.028821,-0.000000, 0.999371, 0.000000;;, + 172;4; 0.039742,-0.000000, 0.999133, 0.000000;;, + 173;4; 0.043619, 0.000000, 0.999048, 0.000000;;, + 174;4; 0.041150, 0.000000, 0.999133, 0.000000;;, + 175;4; 0.033580,-0.000000, 0.999371, 0.000000;;, + 176;4; 0.022207,-0.000000, 0.999677, 0.000000;;, + 177;4; 0.010132,-0.000000, 0.999915, 0.000000;;, + 178;4; 0.000000, 0.000000, 1.000000, 0.000000;;, + 179;4; -0.010132, 0.000000, 0.999915, 0.000000;;, + 180;4; -0.022206, 0.000000, 0.999677, 0.000000;;, + 181;4; -0.033580, 0.000000, 0.999371, 0.000000;;, + 182;4; -0.041150,-0.000000, 0.999133, 0.000000;;, + 183;4; -0.043619, 0.000000, 0.999048, 0.000000;;, + 184;4; -0.039742, 0.000000, 0.999133, 0.000000;;, + 185;4; -0.028821, 0.000000, 0.999371, 0.000000;;, + 186;4; -0.014798, 0.000000, 0.999677, 0.000000;;, + 187;4; -0.003877, 0.000000, 0.999915, 0.000000;;, + 188;4; 0.000000, 0.000000, 1.000000, 0.000000;;, + 189;4; 0.000000, 0.000000, 1.000000, 0.000000;;, + 190;4; 0.000000,-0.000000, 1.000000, 0.000000;;, + 191;4; 0.000000,-0.000000, 1.000000, 0.000000;;, + 192;4; 0.000000,-0.000000, 1.000000, 0.000000;;, + 193;4; 0.000000,-0.000000, 1.000000, 0.000000;;, + 194;4; 0.000000,-0.000000, 1.000000, 0.000000;;, + 195;4; 0.000000,-0.000000, 1.000000, 0.000000;;, + 196;4; 0.000000,-0.000000, 1.000000, 0.000000;;, + 197;4; 0.000000,-0.000000, 1.000000, 0.000000;;, + 198;4; 0.000000,-0.000000, 1.000000, 0.000000;;, + 199;4; 0.000000, 0.000000, 1.000000, 0.000000;;, + 200;4; 0.000000,-0.000000, 1.000000, 0.000000;;, + 201;4; 0.003877,-0.000000, 0.999915, 0.000000;;, + 202;4; 0.014799,-0.000000, 0.999677, 0.000000;;, + 203;4; 0.028821,-0.000000, 0.999371, 0.000000;;, + 204;4; 0.039742,-0.000000, 0.999133, 0.000000;;, + 205;4; 0.043619, 0.000000, 0.999048, 0.000000;;, + 206;4; 0.041150, 0.000000, 0.999133, 0.000000;;, + 207;4; 0.033580,-0.000000, 0.999371, 0.000000;;, + 208;4; 0.022207,-0.000000, 0.999677, 0.000000;;, + 209;4; 0.010132,-0.000000, 0.999915, 0.000000;;, + 210;4; 0.000000, 0.000000, 1.000000, 0.000000;;, + 211;4; -0.010132, 0.000000, 0.999915, 0.000000;;, + 212;4; -0.022206, 0.000000, 0.999677, 0.000000;;, + 213;4; -0.033580, 0.000000, 0.999371, 0.000000;;, + 214;4; -0.041150,-0.000000, 0.999133, 0.000000;;, + 215;4; -0.043619, 0.000000, 0.999048, 0.000000;;, + 216;4; -0.039742, 0.000000, 0.999133, 0.000000;;, + 217;4; -0.028821, 0.000000, 0.999371, 0.000000;;, + 218;4; -0.014799, 0.000000, 0.999677, 0.000000;;, + 219;4; -0.003877, 0.000000, 0.999915, 0.000000;;, + 220;4; 0.000000, 0.000000, 1.000000, 0.000000;;; + } + AnimationKey { //Scale + 1; + 221; + 0;3; 1.000000, 1.000000, 1.000000;;, + 1;3; 1.000000, 1.000000, 1.000000;;, + 2;3; 1.000000, 1.000000, 1.000000;;, + 3;3; 1.000000, 1.000000, 1.000000;;, + 4;3; 1.000000, 1.000000, 1.000000;;, + 5;3; 1.000000, 1.000000, 1.000000;;, + 6;3; 1.000000, 1.000000, 1.000000;;, + 7;3; 1.000000, 1.000000, 1.000000;;, + 8;3; 1.000000, 1.000000, 1.000000;;, + 9;3; 1.000000, 1.000000, 1.000000;;, + 10;3; 1.000000, 1.000000, 1.000000;;, + 11;3; 1.000000, 1.000000, 1.000000;;, + 12;3; 1.000000, 1.000000, 1.000000;;, + 13;3; 1.000000, 1.000000, 1.000000;;, + 14;3; 1.000000, 1.000000, 1.000000;;, + 15;3; 1.000000, 1.000000, 1.000000;;, + 16;3; 1.000000, 1.000000, 1.000000;;, + 17;3; 1.000000, 1.000000, 1.000000;;, + 18;3; 1.000000, 1.000000, 1.000000;;, + 19;3; 1.000000, 1.000000, 1.000000;;, + 20;3; 1.000000, 1.000000, 1.000000;;, + 21;3; 1.000000, 1.000000, 1.000000;;, + 22;3; 1.000000, 1.000000, 1.000000;;, + 23;3; 1.000000, 1.000000, 1.000000;;, + 24;3; 1.000000, 1.000000, 1.000000;;, + 25;3; 1.000000, 1.000000, 1.000000;;, + 26;3; 1.000000, 1.000000, 1.000000;;, + 27;3; 1.000000, 1.000000, 1.000000;;, + 28;3; 1.000000, 1.000000, 1.000000;;, + 29;3; 1.000000, 1.000000, 1.000000;;, + 30;3; 1.000000, 1.000000, 1.000000;;, + 31;3; 1.000000, 1.000000, 1.000000;;, + 32;3; 1.000000, 1.000000, 1.000000;;, + 33;3; 1.000000, 1.000000, 1.000000;;, + 34;3; 1.000000, 1.000000, 1.000000;;, + 35;3; 1.000000, 1.000000, 1.000000;;, + 36;3; 1.000000, 1.000000, 1.000000;;, + 37;3; 1.000000, 1.000000, 1.000000;;, + 38;3; 1.000000, 1.000000, 1.000000;;, + 39;3; 1.000000, 1.000000, 1.000000;;, + 40;3; 1.000000, 1.000000, 1.000000;;, + 41;3; 1.000000, 1.000000, 1.000000;;, + 42;3; 1.000000, 1.000000, 1.000000;;, + 43;3; 1.000000, 1.000000, 1.000000;;, + 44;3; 1.000000, 1.000000, 1.000000;;, + 45;3; 1.000000, 1.000000, 1.000000;;, + 46;3; 1.000000, 1.000000, 1.000000;;, + 47;3; 1.000000, 1.000000, 1.000000;;, + 48;3; 1.000000, 1.000000, 1.000000;;, + 49;3; 1.000000, 1.000000, 1.000000;;, + 50;3; 1.000000, 1.000000, 1.000000;;, + 51;3; 1.000000, 1.000000, 1.000000;;, + 52;3; 1.000000, 1.000000, 1.000000;;, + 53;3; 1.000000, 1.000000, 1.000000;;, + 54;3; 1.000000, 1.000000, 1.000000;;, + 55;3; 1.000000, 1.000000, 1.000000;;, + 56;3; 1.000000, 1.000000, 1.000000;;, + 57;3; 1.000000, 1.000000, 1.000000;;, + 58;3; 1.000000, 1.000000, 1.000000;;, + 59;3; 1.000000, 1.000000, 1.000000;;, + 60;3; 1.000000, 1.000000, 1.000000;;, + 61;3; 1.000000, 1.000000, 1.000000;;, + 62;3; 1.000000, 1.000000, 1.000000;;, + 63;3; 1.000000, 1.000000, 1.000000;;, + 64;3; 1.000000, 1.000000, 1.000000;;, + 65;3; 1.000000, 1.000000, 1.000000;;, + 66;3; 1.000000, 1.000000, 1.000000;;, + 67;3; 1.000000, 1.000000, 1.000000;;, + 68;3; 1.000000, 1.000000, 1.000000;;, + 69;3; 1.000000, 1.000000, 1.000000;;, + 70;3; 1.000000, 1.000000, 1.000000;;, + 71;3; 1.000000, 1.000000, 1.000000;;, + 72;3; 1.000000, 1.000000, 1.000000;;, + 73;3; 1.000000, 1.000000, 1.000000;;, + 74;3; 1.000000, 1.000000, 1.000000;;, + 75;3; 1.000000, 1.000000, 1.000000;;, + 76;3; 1.000000, 1.000000, 1.000000;;, + 77;3; 1.000000, 1.000000, 1.000000;;, + 78;3; 1.000000, 1.000000, 1.000000;;, + 79;3; 1.000000, 1.000000, 1.000000;;, + 80;3; 1.000000, 1.000000, 1.000000;;, + 81;3; 1.000000, 1.000000, 1.000000;;, + 82;3; 1.000000, 1.000000, 1.000000;;, + 83;3; 1.000000, 1.000000, 1.000000;;, + 84;3; 1.000000, 1.000000, 1.000000;;, + 85;3; 1.000000, 1.000000, 1.000000;;, + 86;3; 1.000000, 1.000000, 1.000000;;, + 87;3; 1.000000, 1.000000, 1.000000;;, + 88;3; 1.000000, 1.000000, 1.000000;;, + 89;3; 1.000000, 1.000000, 1.000000;;, + 90;3; 1.000000, 1.000000, 1.000000;;, + 91;3; 1.000000, 1.000000, 1.000000;;, + 92;3; 1.000000, 1.000000, 1.000000;;, + 93;3; 1.000000, 1.000000, 1.000000;;, + 94;3; 1.000000, 1.000000, 1.000000;;, + 95;3; 1.000000, 1.000000, 1.000000;;, + 96;3; 1.000000, 1.000000, 1.000000;;, + 97;3; 1.000000, 1.000000, 1.000000;;, + 98;3; 1.000000, 1.000000, 1.000000;;, + 99;3; 1.000000, 1.000000, 1.000000;;, + 100;3; 1.000000, 1.000000, 1.000000;;, + 101;3; 1.000000, 1.000000, 1.000000;;, + 102;3; 1.000000, 1.000000, 1.000000;;, + 103;3; 1.000000, 1.000000, 1.000000;;, + 104;3; 1.000000, 1.000000, 1.000000;;, + 105;3; 1.000000, 1.000000, 1.000000;;, + 106;3; 1.000000, 1.000000, 1.000000;;, + 107;3; 1.000000, 1.000000, 1.000000;;, + 108;3; 1.000000, 1.000000, 1.000000;;, + 109;3; 1.000000, 1.000000, 1.000000;;, + 110;3; 1.000000, 1.000000, 1.000000;;, + 111;3; 1.000000, 1.000000, 1.000000;;, + 112;3; 1.000000, 1.000000, 1.000000;;, + 113;3; 1.000000, 1.000000, 1.000000;;, + 114;3; 1.000000, 1.000000, 1.000000;;, + 115;3; 1.000000, 1.000000, 1.000000;;, + 116;3; 1.000000, 1.000000, 1.000000;;, + 117;3; 1.000000, 1.000000, 1.000000;;, + 118;3; 1.000000, 1.000000, 1.000000;;, + 119;3; 1.000000, 1.000000, 1.000000;;, + 120;3; 1.000000, 1.000000, 1.000000;;, + 121;3; 1.000000, 1.000000, 1.000000;;, + 122;3; 1.000000, 1.000000, 1.000000;;, + 123;3; 1.000000, 1.000000, 1.000000;;, + 124;3; 1.000000, 1.000000, 1.000000;;, + 125;3; 1.000000, 1.000000, 1.000000;;, + 126;3; 1.000000, 1.000000, 1.000000;;, + 127;3; 1.000000, 1.000000, 1.000000;;, + 128;3; 1.000000, 1.000000, 1.000000;;, + 129;3; 1.000000, 1.000000, 1.000000;;, + 130;3; 1.000000, 1.000000, 1.000000;;, + 131;3; 1.000000, 1.000000, 1.000000;;, + 132;3; 1.000000, 1.000000, 1.000000;;, + 133;3; 1.000000, 1.000000, 1.000000;;, + 134;3; 1.000000, 1.000000, 1.000000;;, + 135;3; 1.000000, 1.000000, 1.000000;;, + 136;3; 1.000000, 1.000000, 1.000000;;, + 137;3; 1.000000, 1.000000, 1.000000;;, + 138;3; 1.000000, 1.000000, 1.000000;;, + 139;3; 1.000000, 1.000000, 1.000000;;, + 140;3; 1.000000, 1.000000, 1.000000;;, + 141;3; 1.000000, 1.000000, 1.000000;;, + 142;3; 1.000000, 1.000000, 1.000000;;, + 143;3; 1.000000, 1.000000, 1.000000;;, + 144;3; 1.000000, 1.000000, 1.000000;;, + 145;3; 1.000000, 1.000000, 1.000000;;, + 146;3; 1.000000, 1.000000, 1.000000;;, + 147;3; 1.000000, 1.000000, 1.000000;;, + 148;3; 1.000000, 1.000000, 1.000000;;, + 149;3; 1.000000, 1.000000, 1.000000;;, + 150;3; 1.000000, 1.000000, 1.000000;;, + 151;3; 1.000000, 1.000000, 1.000000;;, + 152;3; 1.000000, 1.000000, 1.000000;;, + 153;3; 1.000000, 1.000000, 1.000000;;, + 154;3; 1.000000, 1.000000, 1.000000;;, + 155;3; 1.000000, 1.000000, 1.000000;;, + 156;3; 1.000000, 1.000000, 1.000000;;, + 157;3; 1.000000, 1.000000, 1.000000;;, + 158;3; 1.000000, 1.000000, 1.000000;;, + 159;3; 1.000000, 1.000000, 1.000000;;, + 160;3; 1.000000, 1.000000, 1.000000;;, + 161;3; 1.000000, 1.000000, 1.000000;;, + 162;3; 1.000000, 1.000000, 1.000000;;, + 163;3; 1.000000, 1.000000, 1.000000;;, + 164;3; 1.000000, 1.000000, 1.000000;;, + 165;3; 1.000000, 1.000000, 1.000000;;, + 166;3; 1.000000, 1.000000, 1.000000;;, + 167;3; 1.000000, 1.000000, 1.000000;;, + 168;3; 1.000000, 1.000000, 1.000000;;, + 169;3; 1.000000, 1.000000, 1.000000;;, + 170;3; 1.000000, 1.000000, 1.000000;;, + 171;3; 1.000000, 1.000000, 1.000000;;, + 172;3; 1.000000, 1.000000, 1.000000;;, + 173;3; 1.000000, 1.000000, 1.000000;;, + 174;3; 1.000000, 1.000000, 1.000000;;, + 175;3; 1.000000, 1.000000, 1.000000;;, + 176;3; 1.000000, 1.000000, 1.000000;;, + 177;3; 1.000000, 1.000000, 1.000000;;, + 178;3; 1.000000, 1.000000, 1.000000;;, + 179;3; 1.000000, 1.000000, 1.000000;;, + 180;3; 1.000000, 1.000000, 1.000000;;, + 181;3; 1.000000, 1.000000, 1.000000;;, + 182;3; 1.000000, 1.000000, 1.000000;;, + 183;3; 1.000000, 1.000000, 1.000000;;, + 184;3; 1.000000, 1.000000, 1.000000;;, + 185;3; 1.000000, 1.000000, 1.000000;;, + 186;3; 1.000000, 1.000000, 1.000000;;, + 187;3; 1.000000, 1.000000, 1.000000;;, + 188;3; 1.000000, 1.000000, 1.000000;;, + 189;3; 1.000000, 1.000000, 1.000000;;, + 190;3; 1.000000, 1.000000, 1.000000;;, + 191;3; 1.000000, 1.000000, 1.000000;;, + 192;3; 1.000000, 1.000000, 1.000000;;, + 193;3; 1.000000, 1.000000, 1.000000;;, + 194;3; 1.000000, 1.000000, 1.000000;;, + 195;3; 1.000000, 1.000000, 1.000000;;, + 196;3; 1.000000, 1.000000, 1.000000;;, + 197;3; 1.000000, 1.000000, 1.000000;;, + 198;3; 1.000000, 1.000000, 1.000000;;, + 199;3; 1.000000, 1.000000, 1.000000;;, + 200;3; 1.000000, 1.000000, 1.000000;;, + 201;3; 1.000000, 1.000000, 1.000000;;, + 202;3; 1.000000, 1.000000, 1.000000;;, + 203;3; 1.000000, 1.000000, 1.000000;;, + 204;3; 1.000000, 1.000000, 1.000000;;, + 205;3; 1.000000, 1.000000, 1.000000;;, + 206;3; 1.000000, 1.000000, 1.000000;;, + 207;3; 1.000000, 1.000000, 1.000000;;, + 208;3; 1.000000, 1.000000, 1.000000;;, + 209;3; 1.000000, 1.000000, 1.000000;;, + 210;3; 1.000000, 1.000000, 1.000000;;, + 211;3; 1.000000, 1.000000, 1.000000;;, + 212;3; 1.000000, 1.000000, 1.000000;;, + 213;3; 1.000000, 1.000000, 1.000000;;, + 214;3; 1.000000, 1.000000, 1.000000;;, + 215;3; 1.000000, 1.000000, 1.000000;;, + 216;3; 1.000000, 1.000000, 1.000000;;, + 217;3; 1.000000, 1.000000, 1.000000;;, + 218;3; 1.000000, 1.000000, 1.000000;;, + 219;3; 1.000000, 1.000000, 1.000000;;, + 220;3; 1.000000, 1.000000, 1.000000;;; + } + } + Animation { + {Armature_Arm_Left} + AnimationKey { //Position + 2; + 221; + 0;3; -2.000000, 6.750000, 0.000000;;, + 1;3; -2.000000, 6.750000, 0.000000;;, + 2;3; -2.000000, 6.750000, 0.000000;;, + 3;3; -2.000000, 6.750000, 0.000000;;, + 4;3; -2.000000, 6.750000, 0.000000;;, + 5;3; -2.000000, 6.750000, 0.000000;;, + 6;3; -2.000000, 6.750000, 0.000000;;, + 7;3; -2.000000, 6.750000,-0.000000;;, + 8;3; -2.000000, 6.750000,-0.000000;;, + 9;3; -2.000000, 6.750000, 0.000000;;, + 10;3; -2.000000, 6.750000,-0.000000;;, + 11;3; -2.000000, 6.750000, 0.000000;;, + 12;3; -2.000000, 6.750000, 0.000000;;, + 13;3; -2.000000, 6.750000, 0.000000;;, + 14;3; -2.000000, 6.750000,-0.000000;;, + 15;3; -2.000000, 6.750000,-0.000000;;, + 16;3; -2.000000, 6.750000, 0.000000;;, + 17;3; -2.000000, 6.750001,-0.000000;;, + 18;3; -2.000000, 6.750000, 0.000000;;, + 19;3; -2.000000, 6.750000, 0.000000;;, + 20;3; -2.000000, 6.750000, 0.000000;;, + 21;3; -2.000000, 6.750000, 0.000000;;, + 22;3; -2.000000, 6.750000, 0.000000;;, + 23;3; -2.000000, 6.750001,-0.000000;;, + 24;3; -2.000000, 6.750000, 0.000000;;, + 25;3; -2.000000, 6.750000, 0.000000;;, + 26;3; -2.000000, 6.750000,-0.000000;;, + 27;3; -2.000000, 6.750000, 0.000000;;, + 28;3; -2.000000, 6.750000, 0.000000;;, + 29;3; -2.000000, 6.750000, 0.000000;;, + 30;3; -2.000000, 6.750000, 0.000000;;, + 31;3; -2.000000, 6.750000, 0.000000;;, + 32;3; -2.000000, 6.750000,-0.000000;;, + 33;3; -2.000000, 6.750000,-0.000000;;, + 34;3; -2.000000, 6.750000, 0.000000;;, + 35;3; -2.000000, 6.750000, 0.000000;;, + 36;3; -2.000000, 6.750000,-0.000000;;, + 37;3; -2.000000, 6.750000, 0.000000;;, + 38;3; -2.000000, 6.750000, 0.000000;;, + 39;3; -2.000000, 6.750000, 0.000000;;, + 40;3; -2.000000, 6.750000, 0.000000;;, + 41;3; -2.000000, 6.750000, 0.000000;;, + 42;3; -2.000000, 6.750000, 0.000000;;, + 43;3; -2.000000, 6.750000, 0.000000;;, + 44;3; -2.000000, 6.750000, 0.000000;;, + 45;3; -2.000000, 6.750000, 0.000000;;, + 46;3; -2.000000, 6.750000,-0.000000;;, + 47;3; -2.000000, 6.750000, 0.000000;;, + 48;3; -2.000000, 6.750000, 0.000000;;, + 49;3; -2.000000, 6.750000, 0.000000;;, + 50;3; -2.000000, 6.750000,-0.000000;;, + 51;3; -2.000000, 6.750000, 0.000000;;, + 52;3; -2.000000, 6.750000, 0.000000;;, + 53;3; -2.000000, 6.750000, 0.000000;;, + 54;3; -2.000000, 6.750000, 0.000000;;, + 55;3; -2.000000, 6.750000,-0.000000;;, + 56;3; -2.000000, 6.750000, 0.000000;;, + 57;3; -2.000000, 6.750001,-0.000000;;, + 58;3; -2.000000, 6.750000, 0.000000;;, + 59;3; -2.000000, 6.750000, 0.000000;;, + 60;3; -2.000000, 6.750000, 0.000000;;, + 61;3; -2.000000, 6.750000, 0.000000;;, + 62;3; -2.000000, 6.750000, 0.000000;;, + 63;3; -2.000000, 6.750000,-0.000000;;, + 64;3; -2.000000, 6.750000, 0.000000;;, + 65;3; -2.000000, 6.750000, 0.000000;;, + 66;3; -2.000000, 6.750000, 0.000000;;, + 67;3; -2.000000, 6.750000, 0.000000;;, + 68;3; -2.000000, 6.750000, 0.000000;;, + 69;3; -2.000000, 6.750000,-0.000000;;, + 70;3; -2.000000, 6.750000,-0.000000;;, + 71;3; -2.000000, 6.750000,-0.000000;;, + 72;3; -2.000000, 6.750000,-0.000000;;, + 73;3; -2.000000, 6.749999, 0.000000;;, + 74;3; -2.000000, 6.750000, 0.000000;;, + 75;3; -2.000000, 6.750000, 0.000000;;, + 76;3; -2.000000, 6.750000,-0.000000;;, + 77;3; -2.000000, 6.750000, 0.000000;;, + 78;3; -2.000000, 6.750000,-0.000000;;, + 79;3; -2.000000, 6.750000, 0.000000;;, + 80;3; -2.000000, 6.750000, 0.000000;;, + 81;3; -2.000000, 6.750000,-0.000000;;, + 82;3; -2.000000, 6.750000, 0.000000;;, + 83;3; -2.000000, 6.750000,-0.000000;;, + 84;3; -2.000000, 6.750000, 0.000000;;, + 85;3; -2.000000, 6.750000,-0.000000;;, + 86;3; -2.000000, 6.750000, 0.000000;;, + 87;3; -2.000000, 6.750000,-0.000000;;, + 88;3; -2.000000, 6.750000, 0.000000;;, + 89;3; -2.000000, 6.750000,-0.000000;;, + 90;3; -2.000000, 6.750000,-0.000000;;, + 91;3; -2.000000, 6.750000, 0.000000;;, + 92;3; -2.000000, 6.750000,-0.000000;;, + 93;3; -2.000000, 6.750000,-0.000000;;, + 94;3; -2.000000, 6.750000,-0.000000;;, + 95;3; -2.000000, 6.750000, 0.000000;;, + 96;3; -2.000000, 6.750000,-0.000000;;, + 97;3; -2.000000, 6.750000, 0.000000;;, + 98;3; -2.000000, 6.750000, 0.000000;;, + 99;3; -2.000000, 6.750000,-0.000000;;, + 100;3; -2.000000, 6.750000, 0.000000;;, + 101;3; -2.000000, 6.750000, 0.000000;;, + 102;3; -2.000000, 6.750000,-0.000000;;, + 103;3; -2.000000, 6.750000, 0.000000;;, + 104;3; -2.000000, 6.750000, 0.000000;;, + 105;3; -2.000000, 6.750000, 0.000000;;, + 106;3; -2.000000, 6.750000, 0.000000;;, + 107;3; -2.000000, 6.750000,-0.000000;;, + 108;3; -2.000000, 6.750000, 0.000000;;, + 109;3; -2.000000, 6.750000, 0.000000;;, + 110;3; -2.000000, 6.750000,-0.000000;;, + 111;3; -2.000000, 6.750000,-0.000000;;, + 112;3; -2.000000, 6.750000,-0.000000;;, + 113;3; -2.000000, 6.750000,-0.000000;;, + 114;3; -2.000000, 6.750000, 0.000000;;, + 115;3; -2.000000, 6.750000, 0.000000;;, + 116;3; -2.000000, 6.750000, 0.000000;;, + 117;3; -2.000000, 6.750000,-0.000000;;, + 118;3; -2.000000, 6.750000,-0.000000;;, + 119;3; -2.000000, 6.750000,-0.000000;;, + 120;3; -2.000000, 6.750000, 0.000000;;, + 121;3; -2.000000, 6.750000,-0.000000;;, + 122;3; -2.000000, 6.750000,-0.000000;;, + 123;3; -2.000000, 6.750000,-0.000000;;, + 124;3; -2.000000, 6.750000, 0.000000;;, + 125;3; -2.000000, 6.750000,-0.000000;;, + 126;3; -2.000000, 6.750000, 0.000000;;, + 127;3; -2.000000, 6.750000,-0.000000;;, + 128;3; -2.000000, 6.750000, 0.000000;;, + 129;3; -2.000000, 6.750000,-0.000000;;, + 130;3; -2.000000, 6.750000,-0.000000;;, + 131;3; -2.000000, 6.750000,-0.000000;;, + 132;3; -2.000000, 6.750000,-0.000000;;, + 133;3; -2.000000, 6.750000, 0.000000;;, + 134;3; -2.000000, 6.750000,-0.000000;;, + 135;3; -2.000000, 6.750000, 0.000000;;, + 136;3; -2.000000, 6.750000, 0.000000;;, + 137;3; -2.000000, 6.750000, 0.000000;;, + 138;3; -2.000000, 6.750000, 0.000000;;, + 139;3; -2.000000, 6.750000,-0.000000;;, + 140;3; -2.000000, 6.750000,-0.000000;;, + 141;3; -2.000000, 6.750000, 0.000000;;, + 142;3; -2.000000, 6.750000, 0.000000;;, + 143;3; -2.000000, 6.750000,-0.000000;;, + 144;3; -2.000000, 6.750000, 0.000000;;, + 145;3; -2.000000, 6.750000, 0.000000;;, + 146;3; -2.000000, 6.750000, 0.000000;;, + 147;3; -2.000000, 6.750000,-0.000000;;, + 148;3; -2.000000, 6.750000, 0.000000;;, + 149;3; -2.000000, 6.750000, 0.000000;;, + 150;3; -2.000000, 6.750000,-0.000000;;, + 151;3; -2.000000, 6.750000,-0.000000;;, + 152;3; -2.000000, 6.750000,-0.000000;;, + 153;3; -2.000000, 6.750000,-0.000000;;, + 154;3; -2.000000, 6.750000,-0.000000;;, + 155;3; -2.000000, 6.750000,-0.000000;;, + 156;3; -2.000000, 6.750000,-0.000000;;, + 157;3; -2.000000, 6.750000, 0.000000;;, + 158;3; -2.000000, 6.750000, 0.000000;;, + 159;3; -2.000000, 6.750000,-0.000000;;, + 160;3; -2.000000, 6.750000, 0.000000;;, + 161;3; -2.000000, 6.750000,-0.000000;;, + 162;3; -2.000000, 6.750000, 0.000000;;, + 163;3; -2.000000, 6.750000, 0.000000;;, + 164;3; -2.000000, 6.750000, 0.000000;;, + 165;3; -2.000000, 6.750000, 0.000000;;, + 166;3; -2.000000, 6.750000, 0.000000;;, + 167;3; -2.000000, 6.750000, 0.000000;;, + 168;3; -2.000000, 6.750000, 0.000000;;, + 169;3; -2.000000, 6.750000, 0.000000;;, + 170;3; -2.000000, 6.750000, 0.000000;;, + 171;3; -2.000000, 6.750000, 0.000000;;, + 172;3; -2.000000, 6.750000, 0.000000;;, + 173;3; -2.000000, 6.750000, 0.000000;;, + 174;3; -2.000000, 6.750000, 0.000000;;, + 175;3; -2.000000, 6.750000, 0.000000;;, + 176;3; -2.000000, 6.750000, 0.000000;;, + 177;3; -2.000000, 6.750000, 0.000000;;, + 178;3; -2.000000, 6.750000, 0.000000;;, + 179;3; -2.000000, 6.750000, 0.000000;;, + 180;3; -2.000000, 6.750000, 0.000000;;, + 181;3; -2.000000, 6.750000, 0.000000;;, + 182;3; -2.000000, 6.750000, 0.000000;;, + 183;3; -2.000000, 6.750000, 0.000000;;, + 184;3; -2.000000, 6.750000, 0.000000;;, + 185;3; -2.000000, 6.750000, 0.000000;;, + 186;3; -2.000000, 6.750000, 0.000000;;, + 187;3; -2.000000, 6.750000, 0.000000;;, + 188;3; -2.000000, 6.750000, 0.000000;;, + 189;3; -2.000000, 6.750000, 0.000000;;, + 190;3; -2.000000, 6.750000,-0.000000;;, + 191;3; -2.000000, 6.750000, 0.000000;;, + 192;3; -2.000000, 6.749999,-0.000000;;, + 193;3; -2.000000, 6.750000, 0.000000;;, + 194;3; -2.000000, 6.750000, 0.000000;;, + 195;3; -2.000000, 6.750000, 0.000000;;, + 196;3; -2.000000, 6.749999, 0.000000;;, + 197;3; -2.000000, 6.750000, 0.000000;;, + 198;3; -2.000000, 6.750000, 0.000000;;, + 199;3; -2.000000, 6.750000, 0.000000;;, + 200;3; -2.000000, 6.750000, 0.000000;;, + 201;3; -2.000000, 6.750000, 0.000000;;, + 202;3; -2.000000, 6.750000,-0.000000;;, + 203;3; -2.000000, 6.750000, 0.000000;;, + 204;3; -2.000000, 6.750000, 0.000000;;, + 205;3; -2.000000, 6.750000, 0.000000;;, + 206;3; -2.000000, 6.750000, 0.000000;;, + 207;3; -2.000000, 6.750000, 0.000000;;, + 208;3; -2.000000, 6.750000, 0.000000;;, + 209;3; -2.000000, 6.750000,-0.000000;;, + 210;3; -2.000000, 6.750000, 0.000000;;, + 211;3; -2.000000, 6.750000,-0.000000;;, + 212;3; -2.000000, 6.750000, 0.000000;;, + 213;3; -2.000000, 6.750000, 0.000000;;, + 214;3; -2.000000, 6.750000, 0.000000;;, + 215;3; -2.000000, 6.750000, 0.000000;;, + 216;3; -2.000000, 6.750000, 0.000000;;, + 217;3; -2.000000, 6.749999, 0.000000;;, + 218;3; -2.000000, 6.750000, 0.000000;;, + 219;3; -2.000000, 6.750000, 0.000000;;, + 220;3; -2.000000, 6.750000, 0.000000;;; + } + AnimationKey { //Rotation + 0; + 221; + 0;4; -0.000978,-0.997299, 0.072152, 0.013690;;, + 1;4; -0.000756,-0.997293, 0.072149, 0.013783;;, + 2;4; -0.000085,-0.997275, 0.072138, 0.014061;;, + 3;4; 0.001037,-0.997244, 0.072120, 0.014527;;, + 4;4; 0.002602,-0.997202, 0.072094, 0.015177;;, + 5;4; 0.004592,-0.997147, 0.072062, 0.016004;;, + 6;4; 0.006971,-0.997083, 0.072024, 0.016992;;, + 7;4; 0.009691,-0.997008, 0.071980, 0.018122;;, + 8;4; 0.012686,-0.996927, 0.071932, 0.019366;;, + 9;4; 0.015873,-0.996840, 0.071881, 0.020690;;, + 10;4; 0.019160,-0.996750, 0.071828, 0.022055;;, + 11;4; 0.022446,-0.996661, 0.071775, 0.023420;;, + 12;4; 0.025633,-0.996574, 0.071724, 0.024744;;, + 13;4; 0.028628,-0.996492, 0.071675, 0.025988;;, + 14;4; 0.031348,-0.996418, 0.071631, 0.027118;;, + 15;4; 0.033728,-0.996354, 0.071593, 0.028106;;, + 16;4; 0.035717,-0.996299, 0.071561, 0.028932;;, + 17;4; 0.037282,-0.996257, 0.071536, 0.029583;;, + 18;4; 0.038404,-0.996226, 0.071518, 0.030049;;, + 19;4; 0.039075,-0.996208, 0.071507, 0.030327;;, + 20;4; 0.039297,-0.996202, 0.071503, 0.030419;;, + 21;4; 0.039075,-0.996208, 0.071507, 0.030327;;, + 22;4; 0.038404,-0.996226, 0.071518, 0.030049;;, + 23;4; 0.037282,-0.996257, 0.071536, 0.029583;;, + 24;4; 0.035717,-0.996299, 0.071561, 0.028932;;, + 25;4; 0.033728,-0.996354, 0.071593, 0.028106;;, + 26;4; 0.031348,-0.996418, 0.071631, 0.027118;;, + 27;4; 0.028628,-0.996493, 0.071675, 0.025988;;, + 28;4; 0.025633,-0.996574, 0.071724, 0.024744;;, + 29;4; 0.022446,-0.996661, 0.071775, 0.023420;;, + 30;4; 0.019160,-0.996750, 0.071828, 0.022055;;, + 31;4; 0.015873,-0.996840, 0.071881, 0.020690;;, + 32;4; 0.012686,-0.996927, 0.071932, 0.019366;;, + 33;4; 0.009691,-0.997009, 0.071980, 0.018122;;, + 34;4; 0.006971,-0.997083, 0.072024, 0.016992;;, + 35;4; 0.004592,-0.997147, 0.072062, 0.016004;;, + 36;4; 0.002602,-0.997202, 0.072094, 0.015177;;, + 37;4; 0.001037,-0.997244, 0.072120, 0.014527;;, + 38;4; -0.000085,-0.997275, 0.072138, 0.014061;;, + 39;4; -0.000756,-0.997293, 0.072149, 0.013783;;, + 40;4; -0.000978,-0.997299, 0.072152, 0.013690;;, + 41;4; -0.000756,-0.997293, 0.072149, 0.013783;;, + 42;4; -0.000085,-0.997275, 0.072138, 0.014061;;, + 43;4; 0.001037,-0.997244, 0.072120, 0.014527;;, + 44;4; 0.002602,-0.997202, 0.072094, 0.015177;;, + 45;4; 0.004592,-0.997147, 0.072062, 0.016004;;, + 46;4; 0.006971,-0.997083, 0.072024, 0.016992;;, + 47;4; 0.009691,-0.997008, 0.071980, 0.018122;;, + 48;4; 0.012686,-0.996927, 0.071932, 0.019366;;, + 49;4; 0.015873,-0.996840, 0.071881, 0.020690;;, + 50;4; 0.019160,-0.996750, 0.071828, 0.022055;;, + 51;4; 0.022446,-0.996661, 0.071775, 0.023420;;, + 52;4; 0.025633,-0.996574, 0.071724, 0.024744;;, + 53;4; 0.028628,-0.996492, 0.071675, 0.025988;;, + 54;4; 0.031348,-0.996418, 0.071631, 0.027118;;, + 55;4; 0.033728,-0.996354, 0.071593, 0.028106;;, + 56;4; 0.035717,-0.996299, 0.071561, 0.028932;;, + 57;4; 0.037282,-0.996257, 0.071536, 0.029583;;, + 58;4; 0.038404,-0.996226, 0.071518, 0.030049;;, + 59;4; 0.039075,-0.996208, 0.071507, 0.030327;;, + 60;4; 0.039297,-0.996202, 0.071503, 0.030419;;, + 61;4; 0.039088,-0.996207, 0.071507, 0.030333;;, + 62;4; 0.038502,-0.996223, 0.071516, 0.030089;;, + 63;4; 0.037589,-0.996248, 0.071531, 0.029710;;, + 64;4; 0.036390,-0.996281, 0.071550, 0.029212;;, + 65;4; 0.034939,-0.996320, 0.071574, 0.028609;;, + 66;4; 0.033263,-0.996366, 0.071601, 0.027913;;, + 67;4; 0.031388,-0.996417, 0.071631, 0.027134;;, + 68;4; 0.029333,-0.996473, 0.071664, 0.026281;;, + 69;4; 0.027118,-0.996534, 0.071700, 0.025361;;, + 70;4; 0.024760,-0.996598, 0.071738, 0.024381;;, + 71;4; 0.022276,-0.996666, 0.071778, 0.023349;;, + 72;4; 0.019680,-0.996736, 0.071819, 0.022271;;, + 73;4; 0.016990,-0.996810, 0.071863, 0.021154;;, + 74;4; 0.014225,-0.996885, 0.071907, 0.020005;;, + 75;4; 0.011405,-0.996962, 0.071953, 0.018834;;, + 76;4; 0.008560,-0.997039, 0.071999, 0.017652;;, + 77;4; 0.005732,-0.997116, 0.072044, 0.016478;;, + 78;4; 0.002998,-0.997191, 0.072088, 0.015342;;, + 79;4; 0.000529,-0.997258, 0.072128, 0.014316;;, + 80;4; -0.000978,-0.997299, 0.072152, 0.013690;;, + 81;4; -0.000978,-0.997299, 0.072152, 0.013690;;, + 82;4; 0.000529,-0.997258, 0.072128, 0.014316;;, + 83;4; 0.002998,-0.997191, 0.072088, 0.015342;;, + 84;4; 0.005732,-0.997116, 0.072044, 0.016478;;, + 85;4; 0.008560,-0.997039, 0.071999, 0.017652;;, + 86;4; 0.011405,-0.996962, 0.071953, 0.018834;;, + 87;4; 0.014225,-0.996885, 0.071907, 0.020005;;, + 88;4; 0.016990,-0.996810, 0.071863, 0.021154;;, + 89;4; 0.019680,-0.996736, 0.071819, 0.022271;;, + 90;4; 0.022276,-0.996666, 0.071778, 0.023349;;, + 91;4; 0.024760,-0.996598, 0.071738, 0.024381;;, + 92;4; 0.027118,-0.996534, 0.071700, 0.025361;;, + 93;4; 0.029333,-0.996473, 0.071664, 0.026281;;, + 94;4; 0.031388,-0.996417, 0.071631, 0.027134;;, + 95;4; 0.033263,-0.996366, 0.071601, 0.027913;;, + 96;4; 0.034939,-0.996320, 0.071574, 0.028609;;, + 97;4; 0.036390,-0.996281, 0.071550, 0.029212;;, + 98;4; 0.037589,-0.996248, 0.071531, 0.029710;;, + 99;4; 0.038502,-0.996223, 0.071516, 0.030089;;, + 100;4; 0.039088,-0.996207, 0.071507, 0.030333;;, + 101;4; 0.039297,-0.996202, 0.071503, 0.030419;;, + 102;4; 0.039075,-0.996208, 0.071507, 0.030327;;, + 103;4; 0.038404,-0.996226, 0.071518, 0.030049;;, + 104;4; 0.037282,-0.996257, 0.071536, 0.029583;;, + 105;4; 0.035717,-0.996299, 0.071561, 0.028932;;, + 106;4; 0.033728,-0.996354, 0.071593, 0.028106;;, + 107;4; 0.031348,-0.996418, 0.071631, 0.027118;;, + 108;4; 0.028628,-0.996493, 0.071675, 0.025988;;, + 109;4; 0.025633,-0.996574, 0.071724, 0.024744;;, + 110;4; 0.022446,-0.996661, 0.071775, 0.023420;;, + 111;4; 0.019160,-0.996750, 0.071828, 0.022055;;, + 112;4; 0.015873,-0.996840, 0.071881, 0.020690;;, + 113;4; 0.012686,-0.996927, 0.071932, 0.019366;;, + 114;4; 0.009691,-0.997009, 0.071980, 0.018122;;, + 115;4; 0.006971,-0.997083, 0.072024, 0.016992;;, + 116;4; 0.004592,-0.997147, 0.072062, 0.016004;;, + 117;4; 0.002602,-0.997202, 0.072094, 0.015177;;, + 118;4; 0.001037,-0.997244, 0.072120, 0.014527;;, + 119;4; -0.000085,-0.997275, 0.072138, 0.014061;;, + 120;4; -0.000756,-0.997293, 0.072149, 0.013783;;, + 121;4; -0.000978,-0.997299, 0.072152, 0.013690;;, + 122;4; -0.000756,-0.997293, 0.072149, 0.013783;;, + 123;4; -0.000085,-0.997275, 0.072138, 0.014061;;, + 124;4; 0.001037,-0.997244, 0.072120, 0.014527;;, + 125;4; 0.002602,-0.997202, 0.072094, 0.015177;;, + 126;4; 0.004592,-0.997147, 0.072062, 0.016004;;, + 127;4; 0.006971,-0.997083, 0.072024, 0.016992;;, + 128;4; 0.009691,-0.997008, 0.071980, 0.018122;;, + 129;4; 0.012686,-0.996927, 0.071932, 0.019366;;, + 130;4; 0.015873,-0.996840, 0.071881, 0.020690;;, + 131;4; 0.019160,-0.996750, 0.071828, 0.022055;;, + 132;4; 0.022446,-0.996661, 0.071775, 0.023420;;, + 133;4; 0.025633,-0.996574, 0.071724, 0.024744;;, + 134;4; 0.028628,-0.996492, 0.071675, 0.025988;;, + 135;4; 0.031348,-0.996418, 0.071631, 0.027118;;, + 136;4; 0.033728,-0.996354, 0.071593, 0.028106;;, + 137;4; 0.035717,-0.996299, 0.071561, 0.028932;;, + 138;4; 0.037282,-0.996257, 0.071536, 0.029583;;, + 139;4; 0.038404,-0.996226, 0.071518, 0.030049;;, + 140;4; 0.039075,-0.996208, 0.071507, 0.030327;;, + 141;4; 0.039297,-0.996202, 0.071503, 0.030419;;, + 142;4; 0.039128,-0.996207, 0.071506, 0.030336;;, + 143;4; 0.038651,-0.996223, 0.071514, 0.030100;;, + 144;4; 0.037905,-0.996248, 0.071527, 0.029733;;, + 145;4; 0.036918,-0.996281, 0.071543, 0.029250;;, + 146;4; 0.035716,-0.996321, 0.071563, 0.028665;;, + 147;4; 0.034318,-0.996367, 0.071586, 0.027990;;, + 148;4; 0.032740,-0.996419, 0.071612, 0.027232;;, + 149;4; 0.030996,-0.996475, 0.071641, 0.026401;;, + 150;4; 0.029097,-0.996535, 0.071672, 0.025504;;, + 151;4; 0.027052,-0.996600, 0.071706, 0.024547;;, + 152;4; 0.024869,-0.996668, 0.071742, 0.023537;;, + 153;4; 0.022553,-0.996739, 0.071780, 0.022479;;, + 154;4; 0.020108,-0.996813, 0.071820, 0.021379;;, + 155;4; 0.017538,-0.996888, 0.071862, 0.020245;;, + 156;4; 0.014842,-0.996965, 0.071906, 0.019082;;, + 157;4; 0.012018,-0.997043, 0.071951, 0.017902;;, + 158;4; 0.009059,-0.997120, 0.071998, 0.016718;;, + 159;4; 0.005950,-0.997194, 0.072048, 0.015556;;, + 160;4; 0.002652,-0.997260, 0.072099, 0.014470;;, + 161;4; -0.000978,-0.997299, 0.072152, 0.013690;;, + 162;4; -0.003918,-0.958043, 0.286297, 0.013149;;, + 163;4; -0.003918,-0.958043, 0.286297, 0.013149;;, + 164;4; -0.003918,-0.958043, 0.286297, 0.013149;;, + 165;4; -0.003918,-0.958043, 0.286297, 0.013149;;, + 166;4; -0.003918,-0.958043, 0.286297, 0.013149;;, + 167;4; -0.003918,-0.958043, 0.286297, 0.013149;;, + 168;4; -0.000978,-0.997299, 0.072152, 0.013690;;, + 169;4; -0.027462,-0.993490, 0.067048, 0.017181;;, + 170;4; -0.101886,-0.981969, 0.063627, 0.027024;;, + 171;4; -0.197381,-0.966977, 0.061971, 0.039667;;, + 172;4; -0.271737,-0.955241, 0.061528, 0.049515;;, + 173;4; -0.298135,-0.951063, 0.061515, 0.053011;;, + 174;4; -0.281310,-0.955156, 0.062329, 0.050806;;, + 175;4; -0.229756,-0.966690, 0.064679, 0.044029;;, + 176;4; -0.152309,-0.981521, 0.067851, 0.033813;;, + 177;4; -0.070037,-0.993111, 0.070622, 0.022912;;, + 178;4; -0.000978,-0.997299, 0.072152, 0.013690;;, + 179;4; 0.068097,-0.993364, 0.072517, 0.004357;;, + 180;4; 0.150414,-0.982075, 0.072004,-0.006858;;, + 181;4; 0.227918,-0.967529, 0.070960,-0.017477;;, + 182;4; 0.279517,-0.956183, 0.070026,-0.024568;;, + 183;4; 0.296358,-0.952153, 0.069674,-0.026885;;, + 184;4; 0.269932,-0.956166, 0.069894,-0.023278;;, + 185;4; 0.195505,-0.967469, 0.070514,-0.013118;;, + 186;4; 0.099930,-0.981983, 0.071311,-0.000073;;, + 187;4; 0.025468,-0.993286, 0.071932, 0.010085;;, + 188;4; -0.000978,-0.997299, 0.072152, 0.013690;;, + 189;4; -0.000978,-0.997299, 0.072152, 0.013690;;, + 190;4; -0.008545,-0.996939, 0.072024, 0.015345;;, + 191;4; -0.029857,-0.995925, 0.071663, 0.020005;;, + 192;4; -0.057222,-0.994623, 0.071199, 0.025988;;, + 193;4; -0.078533,-0.993609, 0.070838, 0.030648;;, + 194;4; -0.086100,-0.993249, 0.070709, 0.032302;;, + 195;4; -0.078533,-0.993609, 0.070838, 0.030648;;, + 196;4; -0.057222,-0.994623, 0.071199, 0.025988;;, + 197;4; -0.029857,-0.995925, 0.071663, 0.020005;;, + 198;4; -0.008545,-0.996939, 0.072024, 0.015345;;, + 199;4; -0.000978,-0.997299, 0.072152, 0.013690;;, + 200;4; -0.000978,-0.997299, 0.072152, 0.013690;;, + 201;4; -0.027408,-0.993189, 0.071207, 0.017185;;, + 202;4; -0.101825,-0.981613, 0.068544, 0.027028;;, + 203;4; -0.197342,-0.966749, 0.065124, 0.039670;;, + 204;4; -0.271725,-0.955173, 0.062460, 0.049516;;, + 205;4; -0.298135,-0.951063, 0.061515, 0.053011;;, + 206;4; -0.281310,-0.955156, 0.062329, 0.050806;;, + 207;4; -0.229756,-0.966690, 0.064679, 0.044029;;, + 208;4; -0.152309,-0.981521, 0.067851, 0.033813;;, + 209;4; -0.070037,-0.993111, 0.070622, 0.022912;;, + 210;4; -0.000978,-0.997299, 0.072152, 0.013690;;, + 211;4; 0.068097,-0.993364, 0.072517, 0.004357;;, + 212;4; 0.150414,-0.982075, 0.072004,-0.006858;;, + 213;4; 0.227918,-0.967529, 0.070960,-0.017477;;, + 214;4; 0.279517,-0.956183, 0.070026,-0.024568;;, + 215;4; 0.296358,-0.952153, 0.069674,-0.026885;;, + 216;4; 0.269943,-0.956166, 0.069894,-0.023277;;, + 217;4; 0.195568,-0.967469, 0.070514,-0.013114;;, + 218;4; 0.100029,-0.981982, 0.071310,-0.000067;;, + 219;4; 0.025516,-0.993286, 0.071931, 0.010088;;, + 220;4; -0.000978,-0.997299, 0.072152, 0.013690;;; + } + AnimationKey { //Scale + 1; + 221; + 0;3; 1.000000, 1.000000, 1.000000;;, + 1;3; 1.000000, 1.000000, 1.000000;;, + 2;3; 1.000000, 1.000000, 1.000000;;, + 3;3; 1.000000, 1.000000, 1.000000;;, + 4;3; 1.000000, 1.000000, 1.000000;;, + 5;3; 1.000000, 1.000000, 1.000000;;, + 6;3; 1.000000, 1.000000, 1.000000;;, + 7;3; 1.000000, 1.000000, 1.000000;;, + 8;3; 1.000000, 1.000000, 1.000000;;, + 9;3; 1.000000, 1.000000, 1.000000;;, + 10;3; 1.000000, 1.000000, 1.000000;;, + 11;3; 1.000000, 1.000000, 1.000000;;, + 12;3; 1.000000, 1.000000, 1.000000;;, + 13;3; 1.000000, 1.000000, 1.000000;;, + 14;3; 1.000000, 1.000000, 1.000000;;, + 15;3; 1.000000, 1.000000, 1.000000;;, + 16;3; 1.000000, 1.000000, 1.000000;;, + 17;3; 1.000000, 1.000000, 1.000000;;, + 18;3; 1.000000, 1.000000, 1.000000;;, + 19;3; 1.000000, 1.000000, 1.000000;;, + 20;3; 1.000000, 1.000000, 1.000000;;, + 21;3; 1.000000, 1.000000, 1.000000;;, + 22;3; 1.000000, 1.000000, 1.000000;;, + 23;3; 1.000000, 1.000000, 1.000000;;, + 24;3; 1.000000, 1.000000, 1.000000;;, + 25;3; 1.000000, 1.000000, 1.000000;;, + 26;3; 1.000000, 1.000000, 1.000000;;, + 27;3; 1.000000, 1.000000, 1.000000;;, + 28;3; 1.000000, 1.000000, 1.000000;;, + 29;3; 1.000000, 1.000000, 1.000000;;, + 30;3; 1.000000, 1.000000, 1.000000;;, + 31;3; 1.000000, 1.000000, 1.000000;;, + 32;3; 1.000000, 1.000000, 1.000000;;, + 33;3; 1.000000, 1.000000, 1.000000;;, + 34;3; 1.000000, 1.000000, 1.000000;;, + 35;3; 1.000000, 1.000000, 1.000000;;, + 36;3; 1.000000, 1.000000, 1.000000;;, + 37;3; 1.000000, 1.000000, 1.000000;;, + 38;3; 1.000000, 1.000000, 1.000000;;, + 39;3; 1.000000, 1.000000, 1.000000;;, + 40;3; 1.000000, 1.000000, 1.000000;;, + 41;3; 1.000000, 1.000000, 1.000000;;, + 42;3; 1.000000, 1.000000, 1.000000;;, + 43;3; 1.000000, 1.000000, 1.000000;;, + 44;3; 1.000000, 1.000000, 1.000000;;, + 45;3; 1.000000, 1.000000, 1.000000;;, + 46;3; 1.000000, 1.000000, 1.000000;;, + 47;3; 1.000000, 1.000000, 1.000000;;, + 48;3; 1.000000, 1.000000, 1.000000;;, + 49;3; 1.000000, 1.000000, 1.000000;;, + 50;3; 1.000000, 1.000000, 1.000000;;, + 51;3; 1.000000, 1.000000, 1.000000;;, + 52;3; 1.000000, 1.000000, 1.000000;;, + 53;3; 1.000000, 1.000000, 1.000000;;, + 54;3; 1.000000, 1.000000, 1.000000;;, + 55;3; 1.000000, 1.000000, 1.000000;;, + 56;3; 1.000000, 1.000000, 1.000000;;, + 57;3; 1.000000, 1.000000, 1.000000;;, + 58;3; 1.000000, 1.000000, 1.000000;;, + 59;3; 1.000000, 1.000000, 1.000000;;, + 60;3; 1.000000, 1.000000, 1.000000;;, + 61;3; 1.000000, 1.000000, 1.000000;;, + 62;3; 1.000000, 1.000000, 1.000000;;, + 63;3; 1.000000, 1.000000, 1.000000;;, + 64;3; 1.000000, 1.000000, 1.000000;;, + 65;3; 1.000000, 1.000000, 1.000000;;, + 66;3; 1.000000, 1.000000, 1.000000;;, + 67;3; 1.000000, 1.000000, 1.000000;;, + 68;3; 1.000000, 1.000000, 1.000000;;, + 69;3; 1.000000, 1.000000, 1.000000;;, + 70;3; 1.000000, 1.000000, 1.000000;;, + 71;3; 1.000000, 1.000000, 1.000000;;, + 72;3; 1.000000, 1.000000, 1.000000;;, + 73;3; 1.000000, 1.000000, 1.000000;;, + 74;3; 1.000000, 1.000000, 1.000000;;, + 75;3; 1.000000, 1.000000, 1.000000;;, + 76;3; 1.000000, 1.000000, 1.000000;;, + 77;3; 1.000000, 1.000000, 1.000000;;, + 78;3; 1.000000, 1.000000, 1.000000;;, + 79;3; 1.000000, 1.000000, 1.000000;;, + 80;3; 1.000000, 1.000000, 1.000000;;, + 81;3; 1.000000, 1.000000, 1.000000;;, + 82;3; 1.000000, 1.000000, 1.000000;;, + 83;3; 1.000000, 1.000000, 1.000000;;, + 84;3; 1.000000, 1.000000, 1.000000;;, + 85;3; 1.000000, 1.000000, 1.000000;;, + 86;3; 1.000000, 1.000000, 1.000000;;, + 87;3; 1.000000, 1.000000, 1.000000;;, + 88;3; 1.000000, 1.000000, 1.000000;;, + 89;3; 1.000000, 1.000000, 1.000000;;, + 90;3; 1.000000, 1.000000, 1.000000;;, + 91;3; 1.000000, 1.000000, 1.000000;;, + 92;3; 1.000000, 1.000000, 1.000000;;, + 93;3; 1.000000, 1.000000, 1.000000;;, + 94;3; 1.000000, 1.000000, 1.000000;;, + 95;3; 1.000000, 1.000000, 1.000000;;, + 96;3; 1.000000, 1.000000, 1.000000;;, + 97;3; 1.000000, 1.000000, 1.000000;;, + 98;3; 1.000000, 1.000000, 1.000000;;, + 99;3; 1.000000, 1.000000, 1.000000;;, + 100;3; 1.000000, 1.000000, 1.000000;;, + 101;3; 1.000000, 1.000000, 1.000000;;, + 102;3; 1.000000, 1.000000, 1.000000;;, + 103;3; 1.000000, 1.000000, 1.000000;;, + 104;3; 1.000000, 1.000000, 1.000000;;, + 105;3; 1.000000, 1.000000, 1.000000;;, + 106;3; 1.000000, 1.000000, 1.000000;;, + 107;3; 1.000000, 1.000000, 1.000000;;, + 108;3; 1.000000, 1.000000, 1.000000;;, + 109;3; 1.000000, 1.000000, 1.000000;;, + 110;3; 1.000000, 1.000000, 1.000000;;, + 111;3; 1.000000, 1.000000, 1.000000;;, + 112;3; 1.000000, 1.000000, 1.000000;;, + 113;3; 1.000000, 1.000000, 1.000000;;, + 114;3; 1.000000, 1.000000, 1.000000;;, + 115;3; 1.000000, 1.000000, 1.000000;;, + 116;3; 1.000000, 1.000000, 1.000000;;, + 117;3; 1.000000, 1.000000, 1.000000;;, + 118;3; 1.000000, 1.000000, 1.000000;;, + 119;3; 1.000000, 1.000000, 1.000000;;, + 120;3; 1.000000, 1.000000, 1.000000;;, + 121;3; 1.000000, 1.000000, 1.000000;;, + 122;3; 1.000000, 1.000000, 1.000000;;, + 123;3; 1.000000, 1.000000, 1.000000;;, + 124;3; 1.000000, 1.000000, 1.000000;;, + 125;3; 1.000000, 1.000000, 1.000000;;, + 126;3; 1.000000, 1.000000, 1.000000;;, + 127;3; 1.000000, 1.000000, 1.000000;;, + 128;3; 1.000000, 1.000000, 1.000000;;, + 129;3; 1.000000, 1.000000, 1.000000;;, + 130;3; 1.000000, 1.000000, 1.000000;;, + 131;3; 1.000000, 1.000000, 1.000000;;, + 132;3; 1.000000, 1.000000, 1.000000;;, + 133;3; 1.000000, 1.000000, 1.000000;;, + 134;3; 1.000000, 1.000000, 1.000000;;, + 135;3; 1.000000, 1.000000, 1.000000;;, + 136;3; 1.000000, 1.000000, 1.000000;;, + 137;3; 1.000000, 1.000000, 1.000000;;, + 138;3; 1.000000, 1.000000, 1.000000;;, + 139;3; 1.000000, 1.000000, 1.000000;;, + 140;3; 1.000000, 1.000000, 1.000000;;, + 141;3; 1.000000, 1.000000, 1.000000;;, + 142;3; 1.000000, 1.000000, 1.000000;;, + 143;3; 1.000000, 1.000000, 1.000000;;, + 144;3; 1.000000, 1.000000, 1.000000;;, + 145;3; 1.000000, 1.000000, 1.000000;;, + 146;3; 1.000000, 1.000000, 1.000000;;, + 147;3; 1.000000, 1.000000, 1.000000;;, + 148;3; 1.000000, 1.000000, 1.000000;;, + 149;3; 1.000000, 1.000000, 1.000000;;, + 150;3; 1.000000, 1.000000, 1.000000;;, + 151;3; 1.000000, 1.000000, 1.000000;;, + 152;3; 1.000000, 1.000000, 1.000000;;, + 153;3; 1.000000, 1.000000, 1.000000;;, + 154;3; 1.000000, 1.000000, 1.000000;;, + 155;3; 1.000000, 1.000000, 1.000000;;, + 156;3; 1.000000, 1.000000, 1.000000;;, + 157;3; 1.000000, 1.000000, 1.000000;;, + 158;3; 1.000000, 1.000000, 1.000000;;, + 159;3; 1.000000, 1.000000, 1.000000;;, + 160;3; 1.000000, 1.000000, 1.000000;;, + 161;3; 1.000000, 1.000000, 1.000000;;, + 162;3; 1.000000, 1.000000, 1.000000;;, + 163;3; 1.000000, 1.000000, 1.000000;;, + 164;3; 1.000000, 1.000000, 1.000000;;, + 165;3; 1.000000, 1.000000, 1.000000;;, + 166;3; 1.000000, 1.000000, 1.000000;;, + 167;3; 1.000000, 1.000000, 1.000000;;, + 168;3; 1.000000, 1.000000, 1.000000;;, + 169;3; 1.000000, 1.000000, 1.000000;;, + 170;3; 1.000000, 1.000000, 1.000000;;, + 171;3; 1.000000, 1.000000, 1.000000;;, + 172;3; 1.000000, 1.000000, 1.000000;;, + 173;3; 1.000000, 1.000000, 1.000000;;, + 174;3; 1.000000, 1.000000, 1.000000;;, + 175;3; 1.000000, 1.000000, 1.000000;;, + 176;3; 1.000000, 1.000000, 1.000000;;, + 177;3; 1.000000, 1.000000, 1.000000;;, + 178;3; 1.000000, 1.000000, 1.000000;;, + 179;3; 1.000000, 1.000000, 1.000000;;, + 180;3; 1.000000, 1.000000, 1.000000;;, + 181;3; 1.000000, 1.000000, 1.000000;;, + 182;3; 1.000000, 1.000000, 1.000000;;, + 183;3; 1.000000, 1.000000, 1.000000;;, + 184;3; 1.000000, 1.000000, 1.000000;;, + 185;3; 1.000000, 1.000000, 1.000000;;, + 186;3; 1.000000, 1.000000, 1.000000;;, + 187;3; 1.000000, 1.000000, 1.000000;;, + 188;3; 1.000000, 1.000000, 1.000000;;, + 189;3; 1.000000, 1.000000, 1.000000;;, + 190;3; 1.000000, 1.000000, 1.000000;;, + 191;3; 1.000000, 1.000000, 1.000000;;, + 192;3; 1.000000, 1.000000, 1.000000;;, + 193;3; 1.000000, 1.000000, 1.000000;;, + 194;3; 1.000000, 1.000000, 1.000000;;, + 195;3; 1.000000, 1.000000, 1.000000;;, + 196;3; 1.000000, 1.000000, 1.000000;;, + 197;3; 1.000000, 1.000000, 1.000000;;, + 198;3; 1.000000, 1.000000, 1.000000;;, + 199;3; 1.000000, 1.000000, 1.000000;;, + 200;3; 1.000000, 1.000000, 1.000000;;, + 201;3; 1.000000, 1.000000, 1.000000;;, + 202;3; 1.000000, 1.000000, 1.000000;;, + 203;3; 1.000000, 1.000000, 1.000000;;, + 204;3; 1.000000, 1.000000, 1.000000;;, + 205;3; 1.000000, 1.000000, 1.000000;;, + 206;3; 1.000000, 1.000000, 1.000000;;, + 207;3; 1.000000, 1.000000, 1.000000;;, + 208;3; 1.000000, 1.000000, 1.000000;;, + 209;3; 1.000000, 1.000000, 1.000000;;, + 210;3; 1.000000, 1.000000, 1.000000;;, + 211;3; 1.000000, 1.000000, 1.000000;;, + 212;3; 1.000000, 1.000000, 1.000000;;, + 213;3; 1.000000, 1.000000, 1.000000;;, + 214;3; 1.000000, 1.000000, 1.000000;;, + 215;3; 1.000000, 1.000000, 1.000000;;, + 216;3; 1.000000, 1.000000, 1.000000;;, + 217;3; 1.000000, 1.000000, 1.000000;;, + 218;3; 1.000000, 1.000000, 1.000000;;, + 219;3; 1.000000, 1.000000, 1.000000;;, + 220;3; 1.000000, 1.000000, 1.000000;;; + } + } + Animation { + {Armature_Arm_Right} + AnimationKey { //Position + 2; + 221; + 0;3; 2.000000, 6.750000, 0.000000;;, + 1;3; 2.000000, 6.750000, 0.000000;;, + 2;3; 2.000000, 6.750000, 0.000000;;, + 3;3; 2.000000, 6.750000, 0.000000;;, + 4;3; 2.000000, 6.750000, 0.000000;;, + 5;3; 2.000000, 6.750000, 0.000000;;, + 6;3; 2.000000, 6.750000, 0.000000;;, + 7;3; 2.000000, 6.750000,-0.000000;;, + 8;3; 2.000000, 6.750000,-0.000000;;, + 9;3; 2.000000, 6.750000, 0.000000;;, + 10;3; 2.000000, 6.750000,-0.000000;;, + 11;3; 2.000000, 6.750000, 0.000000;;, + 12;3; 2.000000, 6.750000, 0.000000;;, + 13;3; 2.000000, 6.750000, 0.000000;;, + 14;3; 2.000000, 6.750000,-0.000000;;, + 15;3; 2.000000, 6.750000,-0.000000;;, + 16;3; 2.000000, 6.750000, 0.000000;;, + 17;3; 2.000000, 6.750001,-0.000000;;, + 18;3; 2.000000, 6.750000, 0.000000;;, + 19;3; 2.000000, 6.750000, 0.000000;;, + 20;3; 2.000000, 6.750000, 0.000000;;, + 21;3; 2.000000, 6.750000, 0.000000;;, + 22;3; 2.000000, 6.750000, 0.000000;;, + 23;3; 2.000000, 6.750001,-0.000000;;, + 24;3; 2.000000, 6.750000, 0.000000;;, + 25;3; 2.000000, 6.750000, 0.000000;;, + 26;3; 2.000000, 6.750000,-0.000000;;, + 27;3; 2.000000, 6.750000, 0.000000;;, + 28;3; 2.000000, 6.750000, 0.000000;;, + 29;3; 2.000000, 6.750000, 0.000000;;, + 30;3; 2.000000, 6.750000, 0.000000;;, + 31;3; 2.000000, 6.750000, 0.000000;;, + 32;3; 2.000000, 6.750000,-0.000000;;, + 33;3; 2.000000, 6.750000,-0.000000;;, + 34;3; 2.000000, 6.750000, 0.000000;;, + 35;3; 2.000000, 6.750000, 0.000000;;, + 36;3; 2.000000, 6.750000,-0.000000;;, + 37;3; 2.000000, 6.750000, 0.000000;;, + 38;3; 2.000000, 6.750000, 0.000000;;, + 39;3; 2.000000, 6.750000, 0.000000;;, + 40;3; 2.000000, 6.750000, 0.000000;;, + 41;3; 2.000000, 6.750000, 0.000000;;, + 42;3; 2.000000, 6.750000, 0.000000;;, + 43;3; 2.000000, 6.750000, 0.000000;;, + 44;3; 2.000000, 6.750000, 0.000000;;, + 45;3; 2.000000, 6.750000, 0.000000;;, + 46;3; 2.000000, 6.750000,-0.000000;;, + 47;3; 2.000000, 6.750000, 0.000000;;, + 48;3; 2.000000, 6.750000, 0.000000;;, + 49;3; 2.000000, 6.750000, 0.000000;;, + 50;3; 2.000000, 6.750000,-0.000000;;, + 51;3; 2.000000, 6.750000, 0.000000;;, + 52;3; 2.000000, 6.750000, 0.000000;;, + 53;3; 2.000000, 6.750000, 0.000000;;, + 54;3; 2.000000, 6.750000, 0.000000;;, + 55;3; 2.000000, 6.750000,-0.000000;;, + 56;3; 2.000000, 6.750000, 0.000000;;, + 57;3; 2.000000, 6.750001,-0.000000;;, + 58;3; 2.000000, 6.750000, 0.000000;;, + 59;3; 2.000000, 6.750000, 0.000000;;, + 60;3; 2.000000, 6.750000, 0.000000;;, + 61;3; 2.000000, 6.750000, 0.000000;;, + 62;3; 2.000000, 6.750000, 0.000000;;, + 63;3; 2.000000, 6.750000,-0.000000;;, + 64;3; 2.000000, 6.750000, 0.000000;;, + 65;3; 2.000000, 6.750000, 0.000000;;, + 66;3; 2.000000, 6.750000, 0.000000;;, + 67;3; 2.000000, 6.750000, 0.000000;;, + 68;3; 2.000000, 6.750000, 0.000000;;, + 69;3; 2.000000, 6.750000,-0.000000;;, + 70;3; 2.000000, 6.750000,-0.000000;;, + 71;3; 2.000000, 6.750000,-0.000000;;, + 72;3; 2.000000, 6.750000,-0.000000;;, + 73;3; 2.000000, 6.749999, 0.000000;;, + 74;3; 2.000000, 6.750000, 0.000000;;, + 75;3; 2.000000, 6.750000, 0.000000;;, + 76;3; 2.000000, 6.750000,-0.000000;;, + 77;3; 2.000000, 6.750000, 0.000000;;, + 78;3; 2.000000, 6.750000,-0.000000;;, + 79;3; 2.000000, 6.750000, 0.000000;;, + 80;3; 2.000000, 6.750000, 0.000000;;, + 81;3; 2.000000, 6.750000,-0.000000;;, + 82;3; 2.000000, 6.750000, 0.000000;;, + 83;3; 2.000000, 6.750000,-0.000000;;, + 84;3; 2.000000, 6.750000, 0.000000;;, + 85;3; 2.000000, 6.750000,-0.000000;;, + 86;3; 2.000000, 6.750000, 0.000000;;, + 87;3; 2.000000, 6.750000,-0.000000;;, + 88;3; 2.000000, 6.750000, 0.000000;;, + 89;3; 2.000000, 6.750000,-0.000000;;, + 90;3; 2.000000, 6.750000,-0.000000;;, + 91;3; 2.000000, 6.750000, 0.000000;;, + 92;3; 2.000000, 6.750000,-0.000000;;, + 93;3; 2.000000, 6.750000,-0.000000;;, + 94;3; 2.000000, 6.750000,-0.000000;;, + 95;3; 2.000000, 6.750000, 0.000000;;, + 96;3; 2.000000, 6.750000,-0.000000;;, + 97;3; 2.000000, 6.750000, 0.000000;;, + 98;3; 2.000000, 6.750000, 0.000000;;, + 99;3; 2.000000, 6.750000,-0.000000;;, + 100;3; 2.000000, 6.750000, 0.000000;;, + 101;3; 2.000000, 6.750000, 0.000000;;, + 102;3; 2.000000, 6.750000,-0.000000;;, + 103;3; 2.000000, 6.750000, 0.000000;;, + 104;3; 2.000000, 6.750000, 0.000000;;, + 105;3; 2.000000, 6.750000, 0.000000;;, + 106;3; 2.000000, 6.750000, 0.000000;;, + 107;3; 2.000000, 6.750000,-0.000000;;, + 108;3; 2.000000, 6.750000, 0.000000;;, + 109;3; 2.000000, 6.750000, 0.000000;;, + 110;3; 2.000000, 6.750000,-0.000000;;, + 111;3; 2.000000, 6.750000,-0.000000;;, + 112;3; 2.000000, 6.750000,-0.000000;;, + 113;3; 2.000000, 6.750000,-0.000000;;, + 114;3; 2.000000, 6.750000, 0.000000;;, + 115;3; 2.000000, 6.750000, 0.000000;;, + 116;3; 2.000000, 6.750000, 0.000000;;, + 117;3; 2.000000, 6.750000,-0.000000;;, + 118;3; 2.000000, 6.750000,-0.000000;;, + 119;3; 2.000000, 6.750000,-0.000000;;, + 120;3; 2.000000, 6.750000, 0.000000;;, + 121;3; 2.000000, 6.750000,-0.000000;;, + 122;3; 2.000000, 6.750000,-0.000000;;, + 123;3; 2.000000, 6.750000,-0.000000;;, + 124;3; 2.000000, 6.750000, 0.000000;;, + 125;3; 2.000000, 6.750000,-0.000000;;, + 126;3; 2.000000, 6.750000, 0.000000;;, + 127;3; 2.000000, 6.750000,-0.000000;;, + 128;3; 2.000000, 6.750000, 0.000000;;, + 129;3; 2.000000, 6.750000,-0.000000;;, + 130;3; 2.000000, 6.750000,-0.000000;;, + 131;3; 2.000000, 6.750000,-0.000000;;, + 132;3; 2.000000, 6.750000,-0.000000;;, + 133;3; 2.000000, 6.750000, 0.000000;;, + 134;3; 2.000000, 6.750000,-0.000000;;, + 135;3; 2.000000, 6.750000, 0.000000;;, + 136;3; 2.000000, 6.750000, 0.000000;;, + 137;3; 2.000000, 6.750000, 0.000000;;, + 138;3; 2.000000, 6.750000, 0.000000;;, + 139;3; 2.000000, 6.750000,-0.000000;;, + 140;3; 2.000000, 6.750000,-0.000000;;, + 141;3; 2.000000, 6.750000, 0.000000;;, + 142;3; 2.000000, 6.750000, 0.000000;;, + 143;3; 2.000000, 6.750000,-0.000000;;, + 144;3; 2.000000, 6.750000, 0.000000;;, + 145;3; 2.000000, 6.750000, 0.000000;;, + 146;3; 2.000000, 6.750000, 0.000000;;, + 147;3; 2.000000, 6.750000,-0.000000;;, + 148;3; 2.000000, 6.750000, 0.000000;;, + 149;3; 2.000000, 6.750000, 0.000000;;, + 150;3; 2.000000, 6.750000,-0.000000;;, + 151;3; 2.000000, 6.750000,-0.000000;;, + 152;3; 2.000000, 6.750000,-0.000000;;, + 153;3; 2.000000, 6.750000,-0.000000;;, + 154;3; 2.000000, 6.750000,-0.000000;;, + 155;3; 2.000000, 6.750000,-0.000000;;, + 156;3; 2.000000, 6.750000,-0.000000;;, + 157;3; 2.000000, 6.750000, 0.000000;;, + 158;3; 2.000000, 6.750000, 0.000000;;, + 159;3; 2.000000, 6.750000,-0.000000;;, + 160;3; 2.000000, 6.750000, 0.000000;;, + 161;3; 2.000000, 6.750000,-0.000000;;, + 162;3; 2.000000, 6.750000, 0.000000;;, + 163;3; 2.000000, 6.750000, 0.000000;;, + 164;3; 2.000000, 6.750000, 0.000000;;, + 165;3; 2.000000, 6.750000, 0.000000;;, + 166;3; 2.000000, 6.750000, 0.000000;;, + 167;3; 2.000000, 6.750000, 0.000000;;, + 168;3; 2.000000, 6.750000, 0.000000;;, + 169;3; 2.000000, 6.750000, 0.000000;;, + 170;3; 2.000000, 6.750000, 0.000000;;, + 171;3; 2.000000, 6.750000, 0.000000;;, + 172;3; 2.000000, 6.750000, 0.000000;;, + 173;3; 2.000000, 6.750000, 0.000000;;, + 174;3; 2.000000, 6.750000, 0.000000;;, + 175;3; 2.000000, 6.750000, 0.000000;;, + 176;3; 2.000000, 6.750000, 0.000000;;, + 177;3; 2.000000, 6.750000, 0.000000;;, + 178;3; 2.000000, 6.750000, 0.000000;;, + 179;3; 2.000000, 6.750000, 0.000000;;, + 180;3; 2.000000, 6.750000, 0.000000;;, + 181;3; 2.000000, 6.750000, 0.000000;;, + 182;3; 2.000000, 6.750000, 0.000000;;, + 183;3; 2.000000, 6.750000, 0.000000;;, + 184;3; 2.000000, 6.750000, 0.000000;;, + 185;3; 2.000000, 6.750000, 0.000000;;, + 186;3; 2.000000, 6.750000, 0.000000;;, + 187;3; 2.000000, 6.750000, 0.000000;;, + 188;3; 2.000000, 6.750000, 0.000000;;, + 189;3; 2.000000, 6.750000, 0.000000;;, + 190;3; 2.000000, 6.750000,-0.000000;;, + 191;3; 2.000000, 6.750000, 0.000000;;, + 192;3; 2.000000, 6.749999,-0.000000;;, + 193;3; 2.000000, 6.750000, 0.000000;;, + 194;3; 2.000000, 6.750000, 0.000000;;, + 195;3; 2.000000, 6.750000, 0.000000;;, + 196;3; 2.000000, 6.749999, 0.000000;;, + 197;3; 2.000000, 6.750000, 0.000000;;, + 198;3; 2.000000, 6.750000, 0.000000;;, + 199;3; 2.000000, 6.750000, 0.000000;;, + 200;3; 2.000000, 6.750000, 0.000000;;, + 201;3; 2.000000, 6.750000, 0.000000;;, + 202;3; 2.000000, 6.750000,-0.000000;;, + 203;3; 2.000000, 6.750000, 0.000000;;, + 204;3; 2.000000, 6.750000, 0.000000;;, + 205;3; 2.000000, 6.750000, 0.000000;;, + 206;3; 2.000000, 6.750000, 0.000000;;, + 207;3; 2.000000, 6.750000, 0.000000;;, + 208;3; 2.000000, 6.750000, 0.000000;;, + 209;3; 2.000000, 6.750000,-0.000000;;, + 210;3; 2.000000, 6.750000, 0.000000;;, + 211;3; 2.000000, 6.750000,-0.000000;;, + 212;3; 2.000000, 6.750000, 0.000000;;, + 213;3; 2.000000, 6.750000, 0.000000;;, + 214;3; 2.000000, 6.750000, 0.000000;;, + 215;3; 2.000000, 6.750000, 0.000000;;, + 216;3; 2.000000, 6.750000, 0.000000;;, + 217;3; 2.000000, 6.749999, 0.000000;;, + 218;3; 2.000000, 6.750000, 0.000000;;, + 219;3; 2.000000, 6.750000, 0.000000;;, + 220;3; 2.000000, 6.750000, 0.000000;;; + } + AnimationKey { //Rotation + 0; + 221; + 0;4; -0.000978,-0.997299,-0.072152,-0.013690;;, + 1;4; -0.000756,-0.997293,-0.072149,-0.013783;;, + 2;4; -0.000085,-0.997275,-0.072138,-0.014061;;, + 3;4; 0.001037,-0.997244,-0.072120,-0.014527;;, + 4;4; 0.002602,-0.997202,-0.072094,-0.015177;;, + 5;4; 0.004592,-0.997147,-0.072062,-0.016004;;, + 6;4; 0.006971,-0.997083,-0.072024,-0.016992;;, + 7;4; 0.009691,-0.997008,-0.071980,-0.018122;;, + 8;4; 0.012686,-0.996927,-0.071932,-0.019366;;, + 9;4; 0.015873,-0.996840,-0.071881,-0.020690;;, + 10;4; 0.019160,-0.996750,-0.071828,-0.022055;;, + 11;4; 0.022446,-0.996661,-0.071775,-0.023420;;, + 12;4; 0.025633,-0.996574,-0.071724,-0.024744;;, + 13;4; 0.028628,-0.996492,-0.071675,-0.025988;;, + 14;4; 0.031348,-0.996418,-0.071631,-0.027118;;, + 15;4; 0.033728,-0.996354,-0.071593,-0.028106;;, + 16;4; 0.035717,-0.996299,-0.071561,-0.028932;;, + 17;4; 0.037282,-0.996257,-0.071536,-0.029583;;, + 18;4; 0.038404,-0.996226,-0.071518,-0.030049;;, + 19;4; 0.039075,-0.996208,-0.071507,-0.030327;;, + 20;4; 0.039297,-0.996202,-0.071503,-0.030419;;, + 21;4; 0.039075,-0.996208,-0.071507,-0.030327;;, + 22;4; 0.038404,-0.996226,-0.071518,-0.030049;;, + 23;4; 0.037282,-0.996257,-0.071536,-0.029583;;, + 24;4; 0.035717,-0.996299,-0.071561,-0.028932;;, + 25;4; 0.033728,-0.996354,-0.071593,-0.028106;;, + 26;4; 0.031348,-0.996418,-0.071631,-0.027118;;, + 27;4; 0.028628,-0.996493,-0.071675,-0.025988;;, + 28;4; 0.025633,-0.996574,-0.071724,-0.024744;;, + 29;4; 0.022446,-0.996661,-0.071775,-0.023420;;, + 30;4; 0.019160,-0.996750,-0.071828,-0.022055;;, + 31;4; 0.015873,-0.996840,-0.071881,-0.020690;;, + 32;4; 0.012686,-0.996927,-0.071932,-0.019366;;, + 33;4; 0.009691,-0.997009,-0.071980,-0.018122;;, + 34;4; 0.006971,-0.997083,-0.072024,-0.016992;;, + 35;4; 0.004592,-0.997147,-0.072062,-0.016004;;, + 36;4; 0.002602,-0.997202,-0.072094,-0.015177;;, + 37;4; 0.001037,-0.997244,-0.072120,-0.014527;;, + 38;4; -0.000085,-0.997275,-0.072138,-0.014061;;, + 39;4; -0.000756,-0.997293,-0.072149,-0.013783;;, + 40;4; -0.000978,-0.997299,-0.072152,-0.013690;;, + 41;4; -0.000756,-0.997293,-0.072149,-0.013783;;, + 42;4; -0.000085,-0.997275,-0.072138,-0.014061;;, + 43;4; 0.001037,-0.997244,-0.072120,-0.014527;;, + 44;4; 0.002602,-0.997202,-0.072094,-0.015177;;, + 45;4; 0.004592,-0.997147,-0.072062,-0.016004;;, + 46;4; 0.006971,-0.997083,-0.072024,-0.016992;;, + 47;4; 0.009691,-0.997008,-0.071980,-0.018122;;, + 48;4; 0.012686,-0.996927,-0.071932,-0.019366;;, + 49;4; 0.015873,-0.996840,-0.071881,-0.020690;;, + 50;4; 0.019160,-0.996750,-0.071828,-0.022055;;, + 51;4; 0.022446,-0.996661,-0.071775,-0.023420;;, + 52;4; 0.025633,-0.996574,-0.071724,-0.024744;;, + 53;4; 0.028628,-0.996492,-0.071675,-0.025988;;, + 54;4; 0.031348,-0.996418,-0.071631,-0.027118;;, + 55;4; 0.033728,-0.996354,-0.071593,-0.028106;;, + 56;4; 0.035717,-0.996299,-0.071561,-0.028932;;, + 57;4; 0.037282,-0.996257,-0.071536,-0.029583;;, + 58;4; 0.038404,-0.996226,-0.071518,-0.030049;;, + 59;4; 0.039075,-0.996208,-0.071507,-0.030327;;, + 60;4; 0.039297,-0.996202,-0.071503,-0.030419;;, + 61;4; 0.039088,-0.996207,-0.071507,-0.030333;;, + 62;4; 0.038502,-0.996223,-0.071516,-0.030089;;, + 63;4; 0.037589,-0.996248,-0.071531,-0.029710;;, + 64;4; 0.036390,-0.996281,-0.071550,-0.029212;;, + 65;4; 0.034939,-0.996320,-0.071574,-0.028609;;, + 66;4; 0.033263,-0.996366,-0.071601,-0.027913;;, + 67;4; 0.031388,-0.996417,-0.071631,-0.027134;;, + 68;4; 0.029333,-0.996473,-0.071664,-0.026281;;, + 69;4; 0.027118,-0.996534,-0.071700,-0.025361;;, + 70;4; 0.024760,-0.996598,-0.071738,-0.024381;;, + 71;4; 0.022276,-0.996666,-0.071778,-0.023349;;, + 72;4; 0.019680,-0.996736,-0.071819,-0.022271;;, + 73;4; 0.016990,-0.996810,-0.071863,-0.021154;;, + 74;4; 0.014225,-0.996885,-0.071907,-0.020005;;, + 75;4; 0.011405,-0.996962,-0.071953,-0.018834;;, + 76;4; 0.008560,-0.997039,-0.071999,-0.017652;;, + 77;4; 0.005732,-0.997116,-0.072044,-0.016478;;, + 78;4; 0.002998,-0.997191,-0.072088,-0.015342;;, + 79;4; 0.000529,-0.997258,-0.072128,-0.014316;;, + 80;4; -0.000978,-0.997299,-0.072152,-0.013690;;, + 81;4; -0.000978,-0.997299,-0.072152,-0.013690;;, + 82;4; 0.000529,-0.997258,-0.072128,-0.014316;;, + 83;4; 0.002998,-0.997191,-0.072088,-0.015342;;, + 84;4; 0.005732,-0.997116,-0.072044,-0.016478;;, + 85;4; 0.008560,-0.997039,-0.071999,-0.017652;;, + 86;4; 0.011405,-0.996962,-0.071953,-0.018834;;, + 87;4; 0.014225,-0.996885,-0.071907,-0.020005;;, + 88;4; 0.016990,-0.996810,-0.071863,-0.021154;;, + 89;4; 0.019680,-0.996736,-0.071819,-0.022271;;, + 90;4; 0.022276,-0.996666,-0.071778,-0.023349;;, + 91;4; 0.024760,-0.996598,-0.071738,-0.024381;;, + 92;4; 0.027118,-0.996534,-0.071700,-0.025361;;, + 93;4; 0.029333,-0.996473,-0.071664,-0.026281;;, + 94;4; 0.031388,-0.996417,-0.071631,-0.027134;;, + 95;4; 0.033263,-0.996366,-0.071601,-0.027913;;, + 96;4; 0.034939,-0.996320,-0.071574,-0.028609;;, + 97;4; 0.036390,-0.996281,-0.071550,-0.029212;;, + 98;4; 0.037589,-0.996248,-0.071531,-0.029710;;, + 99;4; 0.038502,-0.996223,-0.071516,-0.030089;;, + 100;4; 0.039088,-0.996207,-0.071507,-0.030333;;, + 101;4; 0.039297,-0.996202,-0.071503,-0.030419;;, + 102;4; 0.039075,-0.996208,-0.071507,-0.030327;;, + 103;4; 0.038404,-0.996226,-0.071518,-0.030049;;, + 104;4; 0.037282,-0.996257,-0.071536,-0.029583;;, + 105;4; 0.035717,-0.996299,-0.071561,-0.028932;;, + 106;4; 0.033728,-0.996354,-0.071593,-0.028106;;, + 107;4; 0.031348,-0.996418,-0.071631,-0.027118;;, + 108;4; 0.028628,-0.996493,-0.071675,-0.025988;;, + 109;4; 0.025633,-0.996574,-0.071724,-0.024744;;, + 110;4; 0.022446,-0.996661,-0.071775,-0.023420;;, + 111;4; 0.019160,-0.996750,-0.071828,-0.022055;;, + 112;4; 0.015873,-0.996840,-0.071881,-0.020690;;, + 113;4; 0.012686,-0.996927,-0.071932,-0.019366;;, + 114;4; 0.009691,-0.997009,-0.071980,-0.018122;;, + 115;4; 0.006971,-0.997083,-0.072024,-0.016992;;, + 116;4; 0.004592,-0.997147,-0.072062,-0.016004;;, + 117;4; 0.002602,-0.997202,-0.072094,-0.015177;;, + 118;4; 0.001037,-0.997244,-0.072120,-0.014527;;, + 119;4; -0.000085,-0.997275,-0.072138,-0.014061;;, + 120;4; -0.000756,-0.997293,-0.072149,-0.013783;;, + 121;4; -0.000978,-0.997299,-0.072152,-0.013690;;, + 122;4; -0.000756,-0.997293,-0.072149,-0.013783;;, + 123;4; -0.000085,-0.997275,-0.072138,-0.014061;;, + 124;4; 0.001037,-0.997244,-0.072120,-0.014527;;, + 125;4; 0.002602,-0.997202,-0.072094,-0.015177;;, + 126;4; 0.004592,-0.997147,-0.072062,-0.016004;;, + 127;4; 0.006971,-0.997083,-0.072024,-0.016992;;, + 128;4; 0.009691,-0.997008,-0.071980,-0.018122;;, + 129;4; 0.012686,-0.996927,-0.071932,-0.019366;;, + 130;4; 0.015873,-0.996840,-0.071881,-0.020690;;, + 131;4; 0.019160,-0.996750,-0.071828,-0.022055;;, + 132;4; 0.022446,-0.996661,-0.071775,-0.023420;;, + 133;4; 0.025633,-0.996574,-0.071724,-0.024744;;, + 134;4; 0.028628,-0.996492,-0.071675,-0.025988;;, + 135;4; 0.031348,-0.996418,-0.071631,-0.027118;;, + 136;4; 0.033728,-0.996354,-0.071593,-0.028106;;, + 137;4; 0.035717,-0.996299,-0.071561,-0.028932;;, + 138;4; 0.037282,-0.996257,-0.071536,-0.029583;;, + 139;4; 0.038404,-0.996226,-0.071518,-0.030049;;, + 140;4; 0.039075,-0.996208,-0.071507,-0.030327;;, + 141;4; 0.039297,-0.996202,-0.071503,-0.030419;;, + 142;4; 0.039128,-0.996207,-0.071506,-0.030336;;, + 143;4; 0.038651,-0.996223,-0.071514,-0.030100;;, + 144;4; 0.037905,-0.996248,-0.071527,-0.029733;;, + 145;4; 0.036918,-0.996281,-0.071543,-0.029250;;, + 146;4; 0.035716,-0.996321,-0.071563,-0.028665;;, + 147;4; 0.034318,-0.996367,-0.071586,-0.027990;;, + 148;4; 0.032740,-0.996419,-0.071612,-0.027232;;, + 149;4; 0.030996,-0.996475,-0.071641,-0.026401;;, + 150;4; 0.029097,-0.996535,-0.071672,-0.025504;;, + 151;4; 0.027052,-0.996600,-0.071706,-0.024547;;, + 152;4; 0.024869,-0.996668,-0.071742,-0.023537;;, + 153;4; 0.022553,-0.996739,-0.071780,-0.022479;;, + 154;4; 0.020108,-0.996813,-0.071820,-0.021379;;, + 155;4; 0.017538,-0.996888,-0.071862,-0.020245;;, + 156;4; 0.014842,-0.996965,-0.071906,-0.019082;;, + 157;4; 0.012018,-0.997043,-0.071951,-0.017902;;, + 158;4; 0.009059,-0.997120,-0.071998,-0.016718;;, + 159;4; 0.005950,-0.997194,-0.072048,-0.015556;;, + 160;4; 0.002652,-0.997260,-0.072099,-0.014470;;, + 161;4; -0.000978,-0.997299,-0.072152,-0.013690;;, + 162;4; -0.003918,-0.958043,-0.286297,-0.013149;;, + 163;4; -0.003918,-0.958043,-0.286297,-0.013149;;, + 164;4; -0.003918,-0.958043,-0.286297,-0.013149;;, + 165;4; -0.003918,-0.958043,-0.286297,-0.013149;;, + 166;4; -0.003918,-0.958043,-0.286297,-0.013149;;, + 167;4; -0.003918,-0.958043,-0.286297,-0.013149;;, + 168;4; -0.000978,-0.997299,-0.072152,-0.013690;;, + 169;4; 0.036347,-0.993296,-0.071786,-0.010872;;, + 170;4; 0.112807,-0.981995,-0.071141,-0.000858;;, + 171;4; 0.203776,-0.967477,-0.070406, 0.012520;;, + 172;4; 0.272381,-0.956168,-0.069861, 0.023101;;, + 173;4; 0.296358,-0.952153,-0.069674, 0.026885;;, + 174;4; 0.279517,-0.956183,-0.070026, 0.024568;;, + 175;4; 0.227918,-0.967529,-0.070960, 0.017477;;, + 176;4; 0.150414,-0.982075,-0.072004, 0.006858;;, + 177;4; 0.068097,-0.993364,-0.072517,-0.004357;;, + 178;4; -0.000978,-0.997299,-0.072152,-0.013690;;, + 179;4; -0.070037,-0.993111,-0.070622,-0.022912;;, + 180;4; -0.152309,-0.981521,-0.067851,-0.033813;;, + 181;4; -0.229756,-0.966690,-0.064679,-0.044029;;, + 182;4; -0.281310,-0.955156,-0.062329,-0.050806;;, + 183;4; -0.298135,-0.951063,-0.061515,-0.053011;;, + 184;4; -0.272259,-0.955140,-0.062465,-0.049482;;, + 185;4; -0.200471,-0.966555,-0.065152,-0.039474;;, + 186;4; -0.106835,-0.981308,-0.068589,-0.026713;;, + 187;4; -0.029968,-0.993038,-0.071230,-0.017022;;, + 188;4; -0.000978,-0.997299,-0.072152,-0.013690;;, + 189;4; -0.835215,-0.536105, 0.025760,-0.119765;;, + 190;4; -0.803181,-0.565890, 0.021820,-0.111185;;, + 191;4; -0.718113,-0.648332, 0.010762,-0.086701;;, + 192;4; -0.614352,-0.752504,-0.003387,-0.054936;;, + 193;4; -0.534771,-0.833228,-0.014392,-0.030125;;, + 194;4; -0.506097,-0.862019,-0.018304,-0.021341;;, + 195;4; -0.535294,-0.833114,-0.014391,-0.030093;;, + 196;4; -0.617412,-0.751837,-0.003378,-0.054751;;, + 197;4; -0.723024,-0.647281, 0.010774,-0.086403;;, + 198;4; -0.805700,-0.565371, 0.021825,-0.111030;;, + 199;4; -0.835215,-0.536105, 0.025760,-0.119765;;, + 200;4; -0.538708,-0.840711,-0.006527,-0.054376;;, + 201;4; -0.565312,-0.813349,-0.003640,-0.060174;;, + 202;4; -0.639811,-0.736783, 0.004462,-0.076531;;, + 203;4; -0.734947,-0.639071, 0.014829,-0.097562;;, + 204;4; -0.808914,-0.563118, 0.022894,-0.113949;;, + 205;4; -0.835215,-0.536105, 0.025760,-0.119765;;, + 206;4; -0.805960,-0.565075, 0.021843,-0.111016;;, + 207;4; -0.723557,-0.646675, 0.010811,-0.086373;;, + 208;4; -0.617754,-0.751449,-0.003355,-0.054733;;, + 209;4; -0.535352,-0.833048,-0.014387,-0.030090;;, + 210;4; -0.506097,-0.862019,-0.018304,-0.021341;;, + 211;4; -0.535352,-0.833048,-0.014387,-0.030090;;, + 212;4; -0.617754,-0.751449,-0.003355,-0.054733;;, + 213;4; -0.723557,-0.646675, 0.010811,-0.086373;;, + 214;4; -0.805960,-0.565075, 0.021843,-0.111016;;, + 215;4; -0.835215,-0.536105, 0.025760,-0.119765;;, + 216;4; -0.808873,-0.563165, 0.022891,-0.113952;;, + 217;4; -0.734703,-0.639351, 0.014812,-0.097576;;, + 218;4; -0.639430,-0.737222, 0.004436,-0.076552;;, + 219;4; -0.565126,-0.813563,-0.003653,-0.060185;;, + 220;4; -0.538708,-0.840711,-0.006527,-0.054376;;; + } + AnimationKey { //Scale + 1; + 221; + 0;3; 1.000000, 1.000000, 1.000000;;, + 1;3; 1.000000, 1.000000, 1.000000;;, + 2;3; 1.000000, 1.000000, 1.000000;;, + 3;3; 1.000000, 1.000000, 1.000000;;, + 4;3; 1.000000, 1.000000, 1.000000;;, + 5;3; 1.000000, 1.000000, 1.000000;;, + 6;3; 1.000000, 1.000000, 1.000000;;, + 7;3; 1.000000, 1.000000, 1.000000;;, + 8;3; 1.000000, 1.000000, 1.000000;;, + 9;3; 1.000000, 1.000000, 1.000000;;, + 10;3; 1.000000, 1.000000, 1.000000;;, + 11;3; 1.000000, 1.000000, 1.000000;;, + 12;3; 1.000000, 1.000000, 1.000000;;, + 13;3; 1.000000, 1.000000, 1.000000;;, + 14;3; 1.000000, 1.000000, 1.000000;;, + 15;3; 1.000000, 1.000000, 1.000000;;, + 16;3; 1.000000, 1.000000, 1.000000;;, + 17;3; 1.000000, 1.000000, 1.000000;;, + 18;3; 1.000000, 1.000000, 1.000000;;, + 19;3; 1.000000, 1.000000, 1.000000;;, + 20;3; 1.000000, 1.000000, 1.000000;;, + 21;3; 1.000000, 1.000000, 1.000000;;, + 22;3; 1.000000, 1.000000, 1.000000;;, + 23;3; 1.000000, 1.000000, 1.000000;;, + 24;3; 1.000000, 1.000000, 1.000000;;, + 25;3; 1.000000, 1.000000, 1.000000;;, + 26;3; 1.000000, 1.000000, 1.000000;;, + 27;3; 1.000000, 1.000000, 1.000000;;, + 28;3; 1.000000, 1.000000, 1.000000;;, + 29;3; 1.000000, 1.000000, 1.000000;;, + 30;3; 1.000000, 1.000000, 1.000000;;, + 31;3; 1.000000, 1.000000, 1.000000;;, + 32;3; 1.000000, 1.000000, 1.000000;;, + 33;3; 1.000000, 1.000000, 1.000000;;, + 34;3; 1.000000, 1.000000, 1.000000;;, + 35;3; 1.000000, 1.000000, 1.000000;;, + 36;3; 1.000000, 1.000000, 1.000000;;, + 37;3; 1.000000, 1.000000, 1.000000;;, + 38;3; 1.000000, 1.000000, 1.000000;;, + 39;3; 1.000000, 1.000000, 1.000000;;, + 40;3; 1.000000, 1.000000, 1.000000;;, + 41;3; 1.000000, 1.000000, 1.000000;;, + 42;3; 1.000000, 1.000000, 1.000000;;, + 43;3; 1.000000, 1.000000, 1.000000;;, + 44;3; 1.000000, 1.000000, 1.000000;;, + 45;3; 1.000000, 1.000000, 1.000000;;, + 46;3; 1.000000, 1.000000, 1.000000;;, + 47;3; 1.000000, 1.000000, 1.000000;;, + 48;3; 1.000000, 1.000000, 1.000000;;, + 49;3; 1.000000, 1.000000, 1.000000;;, + 50;3; 1.000000, 1.000000, 1.000000;;, + 51;3; 1.000000, 1.000000, 1.000000;;, + 52;3; 1.000000, 1.000000, 1.000000;;, + 53;3; 1.000000, 1.000000, 1.000000;;, + 54;3; 1.000000, 1.000000, 1.000000;;, + 55;3; 1.000000, 1.000000, 1.000000;;, + 56;3; 1.000000, 1.000000, 1.000000;;, + 57;3; 1.000000, 1.000000, 1.000000;;, + 58;3; 1.000000, 1.000000, 1.000000;;, + 59;3; 1.000000, 1.000000, 1.000000;;, + 60;3; 1.000000, 1.000000, 1.000000;;, + 61;3; 1.000000, 1.000000, 1.000000;;, + 62;3; 1.000000, 1.000000, 1.000000;;, + 63;3; 1.000000, 1.000000, 1.000000;;, + 64;3; 1.000000, 1.000000, 1.000000;;, + 65;3; 1.000000, 1.000000, 1.000000;;, + 66;3; 1.000000, 1.000000, 1.000000;;, + 67;3; 1.000000, 1.000000, 1.000000;;, + 68;3; 1.000000, 1.000000, 1.000000;;, + 69;3; 1.000000, 1.000000, 1.000000;;, + 70;3; 1.000000, 1.000000, 1.000000;;, + 71;3; 1.000000, 1.000000, 1.000000;;, + 72;3; 1.000000, 1.000000, 1.000000;;, + 73;3; 1.000000, 1.000000, 1.000000;;, + 74;3; 1.000000, 1.000000, 1.000000;;, + 75;3; 1.000000, 1.000000, 1.000000;;, + 76;3; 1.000000, 1.000000, 1.000000;;, + 77;3; 1.000000, 1.000000, 1.000000;;, + 78;3; 1.000000, 1.000000, 1.000000;;, + 79;3; 1.000000, 1.000000, 1.000000;;, + 80;3; 1.000000, 1.000000, 1.000000;;, + 81;3; 1.000000, 1.000000, 1.000000;;, + 82;3; 1.000000, 1.000000, 1.000000;;, + 83;3; 1.000000, 1.000000, 1.000000;;, + 84;3; 1.000000, 1.000000, 1.000000;;, + 85;3; 1.000000, 1.000000, 1.000000;;, + 86;3; 1.000000, 1.000000, 1.000000;;, + 87;3; 1.000000, 1.000000, 1.000000;;, + 88;3; 1.000000, 1.000000, 1.000000;;, + 89;3; 1.000000, 1.000000, 1.000000;;, + 90;3; 1.000000, 1.000000, 1.000000;;, + 91;3; 1.000000, 1.000000, 1.000000;;, + 92;3; 1.000000, 1.000000, 1.000000;;, + 93;3; 1.000000, 1.000000, 1.000000;;, + 94;3; 1.000000, 1.000000, 1.000000;;, + 95;3; 1.000000, 1.000000, 1.000000;;, + 96;3; 1.000000, 1.000000, 1.000000;;, + 97;3; 1.000000, 1.000000, 1.000000;;, + 98;3; 1.000000, 1.000000, 1.000000;;, + 99;3; 1.000000, 1.000000, 1.000000;;, + 100;3; 1.000000, 1.000000, 1.000000;;, + 101;3; 1.000000, 1.000000, 1.000000;;, + 102;3; 1.000000, 1.000000, 1.000000;;, + 103;3; 1.000000, 1.000000, 1.000000;;, + 104;3; 1.000000, 1.000000, 1.000000;;, + 105;3; 1.000000, 1.000000, 1.000000;;, + 106;3; 1.000000, 1.000000, 1.000000;;, + 107;3; 1.000000, 1.000000, 1.000000;;, + 108;3; 1.000000, 1.000000, 1.000000;;, + 109;3; 1.000000, 1.000000, 1.000000;;, + 110;3; 1.000000, 1.000000, 1.000000;;, + 111;3; 1.000000, 1.000000, 1.000000;;, + 112;3; 1.000000, 1.000000, 1.000000;;, + 113;3; 1.000000, 1.000000, 1.000000;;, + 114;3; 1.000000, 1.000000, 1.000000;;, + 115;3; 1.000000, 1.000000, 1.000000;;, + 116;3; 1.000000, 1.000000, 1.000000;;, + 117;3; 1.000000, 1.000000, 1.000000;;, + 118;3; 1.000000, 1.000000, 1.000000;;, + 119;3; 1.000000, 1.000000, 1.000000;;, + 120;3; 1.000000, 1.000000, 1.000000;;, + 121;3; 1.000000, 1.000000, 1.000000;;, + 122;3; 1.000000, 1.000000, 1.000000;;, + 123;3; 1.000000, 1.000000, 1.000000;;, + 124;3; 1.000000, 1.000000, 1.000000;;, + 125;3; 1.000000, 1.000000, 1.000000;;, + 126;3; 1.000000, 1.000000, 1.000000;;, + 127;3; 1.000000, 1.000000, 1.000000;;, + 128;3; 1.000000, 1.000000, 1.000000;;, + 129;3; 1.000000, 1.000000, 1.000000;;, + 130;3; 1.000000, 1.000000, 1.000000;;, + 131;3; 1.000000, 1.000000, 1.000000;;, + 132;3; 1.000000, 1.000000, 1.000000;;, + 133;3; 1.000000, 1.000000, 1.000000;;, + 134;3; 1.000000, 1.000000, 1.000000;;, + 135;3; 1.000000, 1.000000, 1.000000;;, + 136;3; 1.000000, 1.000000, 1.000000;;, + 137;3; 1.000000, 1.000000, 1.000000;;, + 138;3; 1.000000, 1.000000, 1.000000;;, + 139;3; 1.000000, 1.000000, 1.000000;;, + 140;3; 1.000000, 1.000000, 1.000000;;, + 141;3; 1.000000, 1.000000, 1.000000;;, + 142;3; 1.000000, 1.000000, 1.000000;;, + 143;3; 1.000000, 1.000000, 1.000000;;, + 144;3; 1.000000, 1.000000, 1.000000;;, + 145;3; 1.000000, 1.000000, 1.000000;;, + 146;3; 1.000000, 1.000000, 1.000000;;, + 147;3; 1.000000, 1.000000, 1.000000;;, + 148;3; 1.000000, 1.000000, 1.000000;;, + 149;3; 1.000000, 1.000000, 1.000000;;, + 150;3; 1.000000, 1.000000, 1.000000;;, + 151;3; 1.000000, 1.000000, 1.000000;;, + 152;3; 1.000000, 1.000000, 1.000000;;, + 153;3; 1.000000, 1.000000, 1.000000;;, + 154;3; 1.000000, 1.000000, 1.000000;;, + 155;3; 1.000000, 1.000000, 1.000000;;, + 156;3; 1.000000, 1.000000, 1.000000;;, + 157;3; 1.000000, 1.000000, 1.000000;;, + 158;3; 1.000000, 1.000000, 1.000000;;, + 159;3; 1.000000, 1.000000, 1.000000;;, + 160;3; 1.000000, 1.000000, 1.000000;;, + 161;3; 1.000000, 1.000000, 1.000000;;, + 162;3; 1.000000, 1.000000, 1.000000;;, + 163;3; 1.000000, 1.000000, 1.000000;;, + 164;3; 1.000000, 1.000000, 1.000000;;, + 165;3; 1.000000, 1.000000, 1.000000;;, + 166;3; 1.000000, 1.000000, 1.000000;;, + 167;3; 1.000000, 1.000000, 1.000000;;, + 168;3; 1.000000, 1.000000, 1.000000;;, + 169;3; 1.000000, 1.000000, 1.000000;;, + 170;3; 1.000000, 1.000000, 1.000000;;, + 171;3; 1.000000, 1.000000, 1.000000;;, + 172;3; 1.000000, 1.000000, 1.000000;;, + 173;3; 1.000000, 1.000000, 1.000000;;, + 174;3; 1.000000, 1.000000, 1.000000;;, + 175;3; 1.000000, 1.000000, 1.000000;;, + 176;3; 1.000000, 1.000000, 1.000000;;, + 177;3; 1.000000, 1.000000, 1.000000;;, + 178;3; 1.000000, 1.000000, 1.000000;;, + 179;3; 1.000000, 1.000000, 1.000000;;, + 180;3; 1.000000, 1.000000, 1.000000;;, + 181;3; 1.000000, 1.000000, 1.000000;;, + 182;3; 1.000000, 1.000000, 1.000000;;, + 183;3; 1.000000, 1.000000, 1.000000;;, + 184;3; 1.000000, 1.000000, 1.000000;;, + 185;3; 1.000000, 1.000000, 1.000000;;, + 186;3; 1.000000, 1.000000, 1.000000;;, + 187;3; 1.000000, 1.000000, 1.000000;;, + 188;3; 1.000000, 1.000000, 1.000000;;, + 189;3; 1.000000, 1.000000, 1.000000;;, + 190;3; 1.000000, 1.000000, 1.000000;;, + 191;3; 1.000000, 1.000000, 1.000000;;, + 192;3; 1.000000, 1.000000, 1.000000;;, + 193;3; 1.000000, 1.000000, 1.000000;;, + 194;3; 1.000000, 1.000000, 1.000000;;, + 195;3; 1.000000, 1.000000, 1.000000;;, + 196;3; 1.000000, 1.000000, 1.000000;;, + 197;3; 1.000000, 1.000000, 1.000000;;, + 198;3; 1.000000, 1.000000, 1.000000;;, + 199;3; 1.000000, 1.000000, 1.000000;;, + 200;3; 1.000000, 1.000000, 1.000000;;, + 201;3; 1.000000, 1.000000, 1.000000;;, + 202;3; 1.000000, 1.000000, 1.000000;;, + 203;3; 1.000000, 1.000000, 1.000000;;, + 204;3; 1.000000, 1.000000, 1.000000;;, + 205;3; 1.000000, 1.000000, 1.000000;;, + 206;3; 1.000000, 1.000000, 1.000000;;, + 207;3; 1.000000, 1.000000, 1.000000;;, + 208;3; 1.000000, 1.000000, 1.000000;;, + 209;3; 1.000000, 1.000000, 1.000000;;, + 210;3; 1.000000, 1.000000, 1.000000;;, + 211;3; 1.000000, 1.000000, 1.000000;;, + 212;3; 1.000000, 1.000000, 1.000000;;, + 213;3; 1.000000, 1.000000, 1.000000;;, + 214;3; 1.000000, 1.000000, 1.000000;;, + 215;3; 1.000000, 1.000000, 1.000000;;, + 216;3; 1.000000, 1.000000, 1.000000;;, + 217;3; 1.000000, 1.000000, 1.000000;;, + 218;3; 1.000000, 1.000000, 1.000000;;, + 219;3; 1.000000, 1.000000, 1.000000;;, + 220;3; 1.000000, 1.000000, 1.000000;;; + } + } + Animation { + {Armature_Leg_Right} + AnimationKey { //Position + 2; + 221; + 0;3; 1.000000, 0.000000,-0.000001;;, + 1;3; 1.000000,-0.000000,-0.000001;;, + 2;3; 1.000000,-0.000000,-0.000001;;, + 3;3; 1.000000,-0.000000,-0.000001;;, + 4;3; 1.000000,-0.000000,-0.000001;;, + 5;3; 1.000000,-0.000000,-0.000001;;, + 6;3; 1.000000,-0.000000,-0.000001;;, + 7;3; 1.000000,-0.000000,-0.000001;;, + 8;3; 1.000000,-0.000000,-0.000001;;, + 9;3; 1.000000,-0.000000,-0.000001;;, + 10;3; 1.000000,-0.000000,-0.000000;;, + 11;3; 1.000000,-0.000000,-0.000000;;, + 12;3; 1.000000,-0.000000,-0.000000;;, + 13;3; 1.000000,-0.000000,-0.000000;;, + 14;3; 1.000000,-0.000000,-0.000000;;, + 15;3; 1.000000,-0.000000,-0.000001;;, + 16;3; 1.000000,-0.000000,-0.000001;;, + 17;3; 1.000000,-0.000000,-0.000001;;, + 18;3; 1.000000,-0.000000,-0.000001;;, + 19;3; 1.000000,-0.000000,-0.000001;;, + 20;3; 1.000000,-0.000000,-0.000001;;, + 21;3; 1.000000,-0.000000,-0.000001;;, + 22;3; 1.000000,-0.000000,-0.000000;;, + 23;3; 1.000000,-0.000000,-0.000001;;, + 24;3; 1.000000,-0.000000,-0.000001;;, + 25;3; 1.000000,-0.000000,-0.000001;;, + 26;3; 1.000000,-0.000000,-0.000000;;, + 27;3; 1.000000,-0.000000,-0.000000;;, + 28;3; 1.000000,-0.000000,-0.000000;;, + 29;3; 1.000000,-0.000000,-0.000000;;, + 30;3; 1.000000,-0.000000,-0.000000;;, + 31;3; 1.000000,-0.000000,-0.000001;;, + 32;3; 1.000000,-0.000000,-0.000001;;, + 33;3; 1.000000,-0.000000,-0.000001;;, + 34;3; 1.000000,-0.000000,-0.000001;;, + 35;3; 1.000000,-0.000000,-0.000001;;, + 36;3; 1.000000,-0.000000,-0.000001;;, + 37;3; 1.000000,-0.000000,-0.000001;;, + 38;3; 1.000000,-0.000000,-0.000001;;, + 39;3; 1.000000,-0.000000,-0.000001;;, + 40;3; 1.000000, 0.000000,-0.000001;;, + 41;3; 1.000000,-0.000000,-0.000001;;, + 42;3; 1.000000,-0.000000,-0.000001;;, + 43;3; 1.000000,-0.000000,-0.000001;;, + 44;3; 1.000000,-0.000000,-0.000001;;, + 45;3; 1.000000,-0.000000,-0.000001;;, + 46;3; 1.000000,-0.000000,-0.000001;;, + 47;3; 1.000000,-0.000000,-0.000001;;, + 48;3; 1.000000,-0.000000,-0.000001;;, + 49;3; 1.000000,-0.000000,-0.000001;;, + 50;3; 1.000000,-0.000000,-0.000000;;, + 51;3; 1.000000,-0.000000,-0.000000;;, + 52;3; 1.000000,-0.000000,-0.000000;;, + 53;3; 1.000000,-0.000000,-0.000000;;, + 54;3; 1.000000,-0.000000,-0.000000;;, + 55;3; 1.000000,-0.000000,-0.000001;;, + 56;3; 1.000000,-0.000000,-0.000001;;, + 57;3; 1.000000,-0.000000,-0.000001;;, + 58;3; 1.000000,-0.000000,-0.000001;;, + 59;3; 1.000000,-0.000000,-0.000001;;, + 60;3; 1.000000,-0.000000,-0.000001;;, + 61;3; 1.000000,-0.000000,-0.000001;;, + 62;3; 1.000000,-0.000000,-0.000001;;, + 63;3; 1.000000,-0.000000,-0.000001;;, + 64;3; 1.000000,-0.000000,-0.000001;;, + 65;3; 1.000000,-0.000000,-0.000001;;, + 66;3; 1.000000,-0.000000,-0.000001;;, + 67;3; 1.000000,-0.000000,-0.000000;;, + 68;3; 1.000000,-0.000000,-0.000000;;, + 69;3; 1.000000,-0.000000,-0.000000;;, + 70;3; 1.000000,-0.000000,-0.000000;;, + 71;3; 1.000000,-0.000000,-0.000000;;, + 72;3; 1.000000,-0.000000,-0.000000;;, + 73;3; 1.000000,-0.000000,-0.000000;;, + 74;3; 1.000000,-0.000000,-0.000001;;, + 75;3; 1.000000,-0.000000,-0.000001;;, + 76;3; 1.000000,-0.000000,-0.000001;;, + 77;3; 1.000000,-0.000000,-0.000001;;, + 78;3; 1.000000,-0.000000,-0.000001;;, + 79;3; 1.000000,-0.000000,-0.000001;;, + 80;3; 1.000000, 0.000000,-0.000001;;, + 81;3; 1.000000, 0.000000,-0.000001;;, + 82;3; 1.000000,-0.000000,-0.000001;;, + 83;3; 1.000000,-0.000000,-0.000001;;, + 84;3; 1.000000,-0.000000,-0.000001;;, + 85;3; 1.000000,-0.000000,-0.000001;;, + 86;3; 1.000000,-0.000000,-0.000001;;, + 87;3; 1.000000,-0.000000,-0.000001;;, + 88;3; 1.000000,-0.000000,-0.000001;;, + 89;3; 1.000000,-0.000000,-0.000001;;, + 90;3; 1.000000,-0.000000,-0.000001;;, + 91;3; 1.000000,-0.000000,-0.000001;;, + 92;3; 1.000000,-0.000000,-0.000001;;, + 93;3; 1.000000,-0.000000,-0.000001;;, + 94;3; 1.000000,-0.000000,-0.000001;;, + 95;3; 1.000000,-0.000000,-0.000001;;, + 96;3; 1.000000,-0.000000,-0.000001;;, + 97;3; 1.000000,-0.000000,-0.000001;;, + 98;3; 1.000000,-0.000000,-0.000001;;, + 99;3; 1.000000,-0.000000,-0.000001;;, + 100;3; 1.000000,-0.000000,-0.000001;;, + 101;3; 1.000000,-0.000000,-0.000001;;, + 102;3; 1.000000,-0.000000,-0.000001;;, + 103;3; 1.000000,-0.000000,-0.000001;;, + 104;3; 1.000000,-0.000000,-0.000001;;, + 105;3; 1.000000,-0.000000,-0.000001;;, + 106;3; 1.000000,-0.000000,-0.000001;;, + 107;3; 1.000000,-0.000000,-0.000001;;, + 108;3; 1.000000,-0.000000,-0.000001;;, + 109;3; 1.000000,-0.000000,-0.000001;;, + 110;3; 1.000000,-0.000000,-0.000001;;, + 111;3; 1.000000,-0.000000,-0.000001;;, + 112;3; 1.000000,-0.000000,-0.000001;;, + 113;3; 1.000000,-0.000000,-0.000001;;, + 114;3; 1.000000,-0.000000,-0.000001;;, + 115;3; 1.000000,-0.000000,-0.000001;;, + 116;3; 1.000000,-0.000000,-0.000001;;, + 117;3; 1.000000,-0.000000,-0.000001;;, + 118;3; 1.000000,-0.000000,-0.000001;;, + 119;3; 1.000000,-0.000000,-0.000001;;, + 120;3; 1.000000,-0.000000,-0.000001;;, + 121;3; 1.000000, 0.000000,-0.000001;;, + 122;3; 1.000000,-0.000000,-0.000001;;, + 123;3; 1.000000,-0.000000,-0.000001;;, + 124;3; 1.000000,-0.000000,-0.000001;;, + 125;3; 1.000000,-0.000000,-0.000001;;, + 126;3; 1.000000,-0.000000,-0.000001;;, + 127;3; 1.000000,-0.000000,-0.000001;;, + 128;3; 1.000000,-0.000000,-0.000001;;, + 129;3; 1.000000,-0.000000,-0.000001;;, + 130;3; 1.000000,-0.000000,-0.000001;;, + 131;3; 1.000000,-0.000000,-0.000001;;, + 132;3; 1.000000,-0.000000,-0.000001;;, + 133;3; 1.000000,-0.000000,-0.000001;;, + 134;3; 1.000000,-0.000000,-0.000001;;, + 135;3; 1.000000,-0.000000,-0.000001;;, + 136;3; 1.000000,-0.000000,-0.000001;;, + 137;3; 1.000000,-0.000000,-0.000001;;, + 138;3; 1.000000,-0.000000,-0.000001;;, + 139;3; 1.000000,-0.000000,-0.000001;;, + 140;3; 1.000000,-0.000000,-0.000001;;, + 141;3; 1.000000,-0.000000,-0.000001;;, + 142;3; 1.000000,-0.000000,-0.000001;;, + 143;3; 1.000000,-0.000000,-0.000001;;, + 144;3; 1.000000,-0.000000,-0.000001;;, + 145;3; 1.000000,-0.000000,-0.000001;;, + 146;3; 1.000000,-0.000000,-0.000001;;, + 147;3; 1.000000,-0.000000,-0.000001;;, + 148;3; 1.000000,-0.000000,-0.000001;;, + 149;3; 1.000000,-0.000000,-0.000001;;, + 150;3; 1.000000,-0.000000,-0.000001;;, + 151;3; 1.000000,-0.000000,-0.000001;;, + 152;3; 1.000000,-0.000000,-0.000001;;, + 153;3; 1.000000,-0.000000,-0.000001;;, + 154;3; 1.000000,-0.000000,-0.000001;;, + 155;3; 1.000000,-0.000000,-0.000001;;, + 156;3; 1.000000,-0.000000,-0.000001;;, + 157;3; 1.000000,-0.000000,-0.000001;;, + 158;3; 1.000000,-0.000000,-0.000001;;, + 159;3; 1.000000,-0.000000,-0.000001;;, + 160;3; 1.000000,-0.000000,-0.000001;;, + 161;3; 1.000000, 0.000000,-0.000001;;, + 162;3; 1.000000,-0.000000,-0.000000;;, + 163;3; 1.000000,-0.000000,-0.000000;;, + 164;3; 1.000000,-0.000000,-0.000000;;, + 165;3; 1.000000,-0.000000,-0.000000;;, + 166;3; 1.000000,-0.000000,-0.000000;;, + 167;3; 1.000000,-0.000000,-0.000000;;, + 168;3; 1.000000, 0.000000,-0.000001;;, + 169;3; 1.000000, 0.000000,-0.000001;;, + 170;3; 1.000000, 0.000000,-0.000001;;, + 171;3; 1.000000, 0.000000,-0.000001;;, + 172;3; 1.000000, 0.000000,-0.000001;;, + 173;3; 1.000000, 0.000000,-0.000001;;, + 174;3; 1.000000, 0.000000,-0.000001;;, + 175;3; 1.000000, 0.000000,-0.000001;;, + 176;3; 1.000000, 0.000000,-0.000001;;, + 177;3; 1.000000, 0.000000,-0.000001;;, + 178;3; 1.000000, 0.000000,-0.000001;;, + 179;3; 1.000000, 0.000000,-0.000001;;, + 180;3; 1.000000, 0.000000,-0.000001;;, + 181;3; 1.000000, 0.000000,-0.000001;;, + 182;3; 1.000000, 0.000000,-0.000001;;, + 183;3; 1.000000, 0.000000,-0.000001;;, + 184;3; 1.000000, 0.000000,-0.000001;;, + 185;3; 1.000000, 0.000000,-0.000001;;, + 186;3; 1.000000, 0.000000,-0.000001;;, + 187;3; 1.000000, 0.000000,-0.000001;;, + 188;3; 1.000000, 0.000000,-0.000001;;, + 189;3; 1.000000, 0.000000,-0.000001;;, + 190;3; 1.000000, 0.000000,-0.000001;;, + 191;3; 1.000000, 0.000000,-0.000001;;, + 192;3; 1.000000, 0.000000,-0.000000;;, + 193;3; 1.000000, 0.000000,-0.000001;;, + 194;3; 1.000000, 0.000000,-0.000001;;, + 195;3; 1.000000, 0.000000,-0.000001;;, + 196;3; 1.000000, 0.000000,-0.000000;;, + 197;3; 1.000000, 0.000000,-0.000001;;, + 198;3; 1.000000, 0.000000,-0.000001;;, + 199;3; 1.000000, 0.000000,-0.000001;;, + 200;3; 1.000000, 0.000000,-0.000001;;, + 201;3; 1.000000,-0.000000,-0.000001;;, + 202;3; 1.000000,-0.000000,-0.000001;;, + 203;3; 1.000000,-0.000000,-0.000000;;, + 204;3; 1.000000,-0.000000,-0.000001;;, + 205;3; 1.000000,-0.000000,-0.000001;;, + 206;3; 1.000000,-0.000000,-0.000000;;, + 207;3; 1.000000,-0.000000,-0.000001;;, + 208;3; 1.000000, 0.000000,-0.000000;;, + 209;3; 1.000000, 0.000000,-0.000000;;, + 210;3; 1.000000, 0.000000,-0.000001;;, + 211;3; 1.000000, 0.000000,-0.000000;;, + 212;3; 1.000000, 0.000000,-0.000000;;, + 213;3; 1.000000,-0.000000,-0.000001;;, + 214;3; 1.000000,-0.000000,-0.000000;;, + 215;3; 1.000000,-0.000000,-0.000001;;, + 216;3; 1.000000,-0.000000,-0.000001;;, + 217;3; 1.000000,-0.000000,-0.000000;;, + 218;3; 1.000000,-0.000000,-0.000001;;, + 219;3; 1.000000,-0.000000,-0.000001;;, + 220;3; 1.000000, 0.000000,-0.000001;;; + } + AnimationKey { //Rotation + 0; + 221; + 0;4; -0.000000, 1.000000,-0.000000,-0.000000;;, + 1;4; -0.000240, 0.999995,-0.000000,-0.000000;;, + 2;4; -0.000967, 0.999979,-0.000000,-0.000000;;, + 3;4; -0.002182, 0.999952,-0.000000,-0.000000;;, + 4;4; -0.003877, 0.999915,-0.000000,-0.000000;;, + 5;4; -0.006032, 0.999868,-0.000000,-0.000000;;, + 6;4; -0.008609, 0.999812,-0.000000,-0.000000;;, + 7;4; -0.011555, 0.999748,-0.000000,-0.000000;;, + 8;4; -0.014798, 0.999677,-0.000000,-0.000000;;, + 9;4; -0.018250, 0.999602,-0.000000,-0.000000;;, + 10;4; -0.021810, 0.999524,-0.000000,-0.000000;;, + 11;4; -0.025369, 0.999446,-0.000000,-0.000000;;, + 12;4; -0.028821, 0.999371,-0.000000,-0.000000;;, + 13;4; -0.032064, 0.999300,-0.000000,-0.000000;;, + 14;4; -0.035010, 0.999236,-0.000000,-0.000000;;, + 15;4; -0.037588, 0.999180,-0.000000,-0.000000;;, + 16;4; -0.039742, 0.999133,-0.000000,-0.000000;;, + 17;4; -0.041437, 0.999096,-0.000000,-0.000000;;, + 18;4; -0.042652, 0.999069,-0.000000,-0.000000;;, + 19;4; -0.043379, 0.999053,-0.000000,-0.000000;;, + 20;4; -0.043619, 0.999048,-0.000000,-0.000000;;, + 21;4; -0.043379, 0.999053,-0.000000,-0.000000;;, + 22;4; -0.042652, 0.999069,-0.000000,-0.000000;;, + 23;4; -0.041437, 0.999096,-0.000000,-0.000000;;, + 24;4; -0.039742, 0.999133,-0.000000,-0.000000;;, + 25;4; -0.037588, 0.999180,-0.000000,-0.000000;;, + 26;4; -0.035010, 0.999236,-0.000000,-0.000000;;, + 27;4; -0.032064, 0.999300,-0.000000,-0.000000;;, + 28;4; -0.028821, 0.999371,-0.000000,-0.000000;;, + 29;4; -0.025369, 0.999446,-0.000000,-0.000000;;, + 30;4; -0.021810, 0.999524,-0.000000,-0.000000;;, + 31;4; -0.018250, 0.999602,-0.000000,-0.000000;;, + 32;4; -0.014798, 0.999677,-0.000000,-0.000000;;, + 33;4; -0.011555, 0.999748,-0.000000,-0.000000;;, + 34;4; -0.008609, 0.999812,-0.000000,-0.000000;;, + 35;4; -0.006032, 0.999868,-0.000000,-0.000000;;, + 36;4; -0.003877, 0.999915,-0.000000,-0.000000;;, + 37;4; -0.002182, 0.999952,-0.000000,-0.000000;;, + 38;4; -0.000967, 0.999979,-0.000000,-0.000000;;, + 39;4; -0.000240, 0.999995,-0.000000,-0.000000;;, + 40;4; -0.000000, 1.000000,-0.000000,-0.000000;;, + 41;4; -0.000240, 0.999995,-0.000000,-0.000000;;, + 42;4; -0.000967, 0.999979,-0.000000,-0.000000;;, + 43;4; -0.002182, 0.999952,-0.000000,-0.000000;;, + 44;4; -0.003877, 0.999915,-0.000000,-0.000000;;, + 45;4; -0.006032, 0.999868,-0.000000,-0.000000;;, + 46;4; -0.008609, 0.999812,-0.000000,-0.000000;;, + 47;4; -0.011555, 0.999748,-0.000000,-0.000000;;, + 48;4; -0.014798, 0.999677,-0.000000,-0.000000;;, + 49;4; -0.018250, 0.999602,-0.000000,-0.000000;;, + 50;4; -0.021810, 0.999524,-0.000000,-0.000000;;, + 51;4; -0.025369, 0.999446,-0.000000,-0.000000;;, + 52;4; -0.028821, 0.999371,-0.000000,-0.000000;;, + 53;4; -0.032064, 0.999300,-0.000000,-0.000000;;, + 54;4; -0.035010, 0.999236,-0.000000,-0.000000;;, + 55;4; -0.037588, 0.999180,-0.000000,-0.000000;;, + 56;4; -0.039742, 0.999133,-0.000000,-0.000000;;, + 57;4; -0.041437, 0.999096,-0.000000,-0.000000;;, + 58;4; -0.042652, 0.999069,-0.000000,-0.000000;;, + 59;4; -0.043379, 0.999053,-0.000000,-0.000000;;, + 60;4; -0.043619, 0.999048,-0.000000,-0.000000;;, + 61;4; -0.043616, 0.999053,-0.000000,-0.000000;;, + 62;4; -0.043594, 0.999067,-0.000000,-0.000000;;, + 63;4; -0.043536, 0.999089,-0.000000,-0.000000;;, + 64;4; -0.043427, 0.999117,-0.000000,-0.000000;;, + 65;4; -0.043250, 0.999151,-0.000000,-0.000000;;, + 66;4; -0.042989, 0.999191,-0.000000,-0.000000;;, + 67;4; -0.042627, 0.999235,-0.000000,-0.000000;;, + 68;4; -0.042144, 0.999283,-0.000000,-0.000000;;, + 69;4; -0.041519, 0.999336,-0.000000,-0.000000;;, + 70;4; -0.040726, 0.999391,-0.000000,-0.000000;;, + 71;4; -0.039733, 0.999450,-0.000000,-0.000000;;, + 72;4; -0.038501, 0.999511,-0.000000,-0.000000;;, + 73;4; -0.036980, 0.999575,-0.000000,-0.000000;;, + 74;4; -0.035101, 0.999640,-0.000000,-0.000000;;, + 75;4; -0.032770, 0.999707,-0.000000,-0.000000;;, + 76;4; -0.029842, 0.999774,-0.000000,-0.000000;;, + 77;4; -0.026086, 0.999841,-0.000000,-0.000000;;, + 78;4; -0.021070, 0.999906,-0.000000,-0.000000;;, + 79;4; -0.013794, 0.999964,-0.000000,-0.000000;;, + 80;4; -0.000000, 1.000000,-0.000000,-0.000000;;, + 81;4; 0.707107, 0.707107, 0.000000,-0.000000;;, + 82;4; 0.705874, 0.708245, 0.000000,-0.000000;;, + 83;4; 0.703907, 0.710101, 0.000000,-0.000000;;, + 84;4; 0.701752, 0.712152, 0.000000,-0.000000;;, + 85;4; 0.699533, 0.714271, 0.000000,-0.000000;;, + 86;4; 0.697308, 0.716402, 0.000000,-0.000000;;, + 87;4; 0.695107, 0.718513, 0.000000,-0.000000;;, + 88;4; 0.692951, 0.720584, 0.000000,-0.000000;;, + 89;4; 0.690857, 0.722597, 0.000000,-0.000000;;, + 90;4; 0.688837, 0.724539, 0.000000,-0.000000;;, + 91;4; 0.686904, 0.726399, 0.000000,-0.000000;;, + 92;4; 0.685070, 0.728163, 0.000000,-0.000000;;, + 93;4; 0.683348, 0.729820, 0.000000,-0.000000;;, + 94;4; 0.681750, 0.731358, 0.000000,-0.000000;;, + 95;4; 0.680291, 0.732761, 0.000000,-0.000000;;, + 96;4; 0.678987, 0.734015, 0.000000,-0.000000;;, + 97;4; 0.677857, 0.735101, 0.000000,-0.000000;;, + 98;4; 0.676923, 0.735999, 0.000000,-0.000000;;, + 99;4; 0.676211, 0.736682, 0.000000,-0.000000;;, + 100;4; 0.675753, 0.737121, 0.000000,-0.000000;;, + 101;4; 0.675590, 0.737277, 0.000000,-0.000000;;, + 102;4; 0.675764, 0.737111, 0.000000,-0.000000;;, + 103;4; 0.676289, 0.736609, 0.000000,-0.000000;;, + 104;4; 0.677167, 0.735768, 0.000000,-0.000000;;, + 105;4; 0.678392, 0.734596, 0.000000,-0.000000;;, + 106;4; 0.679948, 0.733105, 0.000000,-0.000000;;, + 107;4; 0.681811, 0.731323, 0.000000,-0.000000;;, + 108;4; 0.683939, 0.729285, 0.000000,-0.000000;;, + 109;4; 0.686283, 0.727042, 0.000000,-0.000000;;, + 110;4; 0.688777, 0.724654, 0.000000,-0.000000;;, + 111;4; 0.691348, 0.722192, 0.000000,-0.000000;;, + 112;4; 0.693920, 0.719730, 0.000000,-0.000000;;, + 113;4; 0.696414, 0.717343, 0.000000,-0.000000;;, + 114;4; 0.698758, 0.715099, 0.000000,-0.000000;;, + 115;4; 0.700886, 0.713062, 0.000000,-0.000000;;, + 116;4; 0.702748, 0.711279, 0.000000,-0.000000;;, + 117;4; 0.704305, 0.709789, 0.000000,-0.000000;;, + 118;4; 0.705530, 0.708616, 0.000000,-0.000000;;, + 119;4; 0.706408, 0.707776, 0.000000,-0.000000;;, + 120;4; 0.706933, 0.707273, 0.000000,-0.000000;;, + 121;4; 0.707107, 0.707107, 0.000000,-0.000000;;, + 122;4; 0.706933, 0.707273, 0.000000,-0.000000;;, + 123;4; 0.706408, 0.707776, 0.000000,-0.000000;;, + 124;4; 0.705530, 0.708616, 0.000000,-0.000000;;, + 125;4; 0.704305, 0.709789, 0.000000,-0.000000;;, + 126;4; 0.702749, 0.711279, 0.000000,-0.000000;;, + 127;4; 0.700886, 0.713062, 0.000000,-0.000000;;, + 128;4; 0.698758, 0.715099, 0.000000,-0.000000;;, + 129;4; 0.696414, 0.717343, 0.000000,-0.000000;;, + 130;4; 0.693920, 0.719730, 0.000000,-0.000000;;, + 131;4; 0.691348, 0.722192, 0.000000,-0.000000;;, + 132;4; 0.688777, 0.724654, 0.000000,-0.000000;;, + 133;4; 0.686283, 0.727042, 0.000000,-0.000000;;, + 134;4; 0.683939, 0.729285, 0.000000,-0.000000;;, + 135;4; 0.681811, 0.731323, 0.000000,-0.000000;;, + 136;4; 0.679949, 0.733105, 0.000000,-0.000000;;, + 137;4; 0.678392, 0.734596, 0.000000,-0.000000;;, + 138;4; 0.677167, 0.735768, 0.000000,-0.000000;;, + 139;4; 0.676289, 0.736609, 0.000000,-0.000000;;, + 140;4; 0.675764, 0.737111, 0.000000,-0.000000;;, + 141;4; 0.675590, 0.737277, 0.000000,-0.000000;;, + 142;4; 0.675753, 0.737121, 0.000000,-0.000000;;, + 143;4; 0.676211, 0.736682, 0.000000,-0.000000;;, + 144;4; 0.676923, 0.735999, 0.000000,-0.000000;;, + 145;4; 0.677857, 0.735101, 0.000000,-0.000000;;, + 146;4; 0.678987, 0.734015, 0.000000,-0.000000;;, + 147;4; 0.680291, 0.732761, 0.000000,-0.000000;;, + 148;4; 0.681750, 0.731358, 0.000000,-0.000000;;, + 149;4; 0.683348, 0.729820, 0.000000,-0.000000;;, + 150;4; 0.685070, 0.728163, 0.000000,-0.000000;;, + 151;4; 0.686904, 0.726398, 0.000000,-0.000000;;, + 152;4; 0.688837, 0.724539, 0.000000,-0.000000;;, + 153;4; 0.690857, 0.722596, 0.000000,-0.000000;;, + 154;4; 0.692951, 0.720583, 0.000000,-0.000000;;, + 155;4; 0.695107, 0.718512, 0.000000,-0.000000;;, + 156;4; 0.697308, 0.716401, 0.000000,-0.000000;;, + 157;4; 0.699533, 0.714270, 0.000000,-0.000000;;, + 158;4; 0.701752, 0.712151, 0.000000,-0.000000;;, + 159;4; 0.703907, 0.710100, 0.000000,-0.000000;;, + 160;4; 0.705874, 0.708244, 0.000000,-0.000000;;, + 161;4; 0.707107, 0.707107, 0.000000,-0.000000;;, + 162;4; -0.000000, 0.991445, 0.130526,-0.000000;;, + 163;4; -0.000000, 0.991445, 0.130526,-0.000000;;, + 164;4; -0.000000, 0.991445, 0.130526,-0.000000;;, + 165;4; -0.000000, 0.991445, 0.130526,-0.000000;;, + 166;4; -0.000000, 0.991445, 0.130526,-0.000000;;, + 167;4; -0.000000, 0.991445, 0.130526,-0.000000;;, + 168;4; -0.000000, 1.000000,-0.000000,-0.000000;;, + 169;4; 0.034052, 0.993234, 0.000000,-0.000000;;, + 170;4; 0.129903, 0.974175, 0.000000,-0.000000;;, + 171;4; 0.252901, 0.949704, 0.000000,-0.000000;;, + 172;4; 0.348675, 0.930646, 0.000000,-0.000000;;, + 173;4; 0.382683, 0.923880, 0.000000,-0.000000;;, + 174;4; 0.361005, 0.930646, 0.000000,-0.000000;;, + 175;4; 0.294618, 0.949704, 0.000000,-0.000000;;, + 176;4; 0.194899, 0.974175, 0.000000,-0.000000;;, + 177;4; 0.088939, 0.993234, 0.000000,-0.000000;;, + 178;4; -0.000000, 1.000000,-0.000000,-0.000000;;, + 179;4; -0.088939, 0.993234,-0.000000,-0.000000;;, + 180;4; -0.194899, 0.974175,-0.000000,-0.000000;;, + 181;4; -0.294618, 0.949704,-0.000000,-0.000000;;, + 182;4; -0.361005, 0.930646,-0.000000,-0.000000;;, + 183;4; -0.382683, 0.923880,-0.000000,-0.000000;;, + 184;4; -0.348675, 0.930646,-0.000000,-0.000000;;, + 185;4; -0.252901, 0.949704,-0.000000,-0.000000;;, + 186;4; -0.129904, 0.974175,-0.000000,-0.000000;;, + 187;4; -0.034052, 0.993234,-0.000000,-0.000000;;, + 188;4; -0.000000, 1.000000,-0.000000,-0.000000;;, + 189;4; -0.000000, 1.000000,-0.000000,-0.000000;;, + 190;4; 0.003877, 0.999915, 0.000000,-0.000000;;, + 191;4; 0.014798, 0.999677, 0.000000,-0.000000;;, + 192;4; 0.028821, 0.999371, 0.000000,-0.000000;;, + 193;4; 0.039742, 0.999133, 0.000000,-0.000000;;, + 194;4; 0.043619, 0.999048, 0.000000,-0.000000;;, + 195;4; 0.039742, 0.999133, 0.000000,-0.000000;;, + 196;4; 0.028821, 0.999371, 0.000000,-0.000000;;, + 197;4; 0.014798, 0.999677, 0.000000,-0.000000;;, + 198;4; 0.003877, 0.999915, 0.000000,-0.000000;;, + 199;4; -0.000000, 1.000000,-0.000000,-0.000000;;, + 200;4; -0.000000, 1.000000,-0.000000,-0.000000;;, + 201;4; 0.034052, 0.993233, 0.000000,-0.000000;;, + 202;4; 0.129903, 0.974175, 0.000000,-0.000000;;, + 203;4; 0.252901, 0.949704, 0.000000,-0.000000;;, + 204;4; 0.348675, 0.930646, 0.000000,-0.000000;;, + 205;4; 0.382683, 0.923880, 0.000000,-0.000000;;, + 206;4; 0.361005, 0.930646, 0.000000,-0.000000;;, + 207;4; 0.294618, 0.949704, 0.000000,-0.000000;;, + 208;4; 0.194899, 0.974175, 0.000000,-0.000000;;, + 209;4; 0.088939, 0.993234, 0.000000,-0.000000;;, + 210;4; -0.000000, 1.000000,-0.000000,-0.000000;;, + 211;4; -0.088939, 0.993234,-0.000000,-0.000000;;, + 212;4; -0.194899, 0.974175,-0.000000,-0.000000;;, + 213;4; -0.294618, 0.949704,-0.000000,-0.000000;;, + 214;4; -0.361005, 0.930646,-0.000000,-0.000000;;, + 215;4; -0.382683, 0.923880,-0.000000,-0.000000;;, + 216;4; -0.348699, 0.930646,-0.000000,-0.000000;;, + 217;4; -0.253041, 0.949703,-0.000000,-0.000000;;, + 218;4; -0.130122, 0.974173,-0.000000,-0.000000;;, + 219;4; -0.034158, 0.993233,-0.000000,-0.000000;;, + 220;4; -0.000000, 1.000000,-0.000000,-0.000000;;; + } + AnimationKey { //Scale + 1; + 221; + 0;3; 1.000000, 1.000000, 1.000000;;, + 1;3; 1.000000, 1.000000, 1.000000;;, + 2;3; 1.000000, 1.000000, 1.000000;;, + 3;3; 1.000000, 1.000000, 1.000000;;, + 4;3; 1.000000, 1.000000, 1.000000;;, + 5;3; 1.000000, 1.000000, 1.000000;;, + 6;3; 1.000000, 1.000000, 1.000000;;, + 7;3; 1.000000, 1.000000, 1.000000;;, + 8;3; 1.000000, 1.000000, 1.000000;;, + 9;3; 1.000000, 1.000000, 1.000000;;, + 10;3; 1.000000, 1.000000, 1.000000;;, + 11;3; 1.000000, 1.000000, 1.000000;;, + 12;3; 1.000000, 1.000000, 1.000000;;, + 13;3; 1.000000, 1.000000, 1.000000;;, + 14;3; 1.000000, 1.000000, 1.000000;;, + 15;3; 1.000000, 1.000000, 1.000000;;, + 16;3; 1.000000, 1.000000, 1.000000;;, + 17;3; 1.000000, 1.000000, 1.000000;;, + 18;3; 1.000000, 1.000000, 1.000000;;, + 19;3; 1.000000, 1.000000, 1.000000;;, + 20;3; 1.000000, 1.000000, 1.000000;;, + 21;3; 1.000000, 1.000000, 1.000000;;, + 22;3; 1.000000, 1.000000, 1.000000;;, + 23;3; 1.000000, 1.000000, 1.000000;;, + 24;3; 1.000000, 1.000000, 1.000000;;, + 25;3; 1.000000, 1.000000, 1.000000;;, + 26;3; 1.000000, 1.000000, 1.000000;;, + 27;3; 1.000000, 1.000000, 1.000000;;, + 28;3; 1.000000, 1.000000, 1.000000;;, + 29;3; 1.000000, 1.000000, 1.000000;;, + 30;3; 1.000000, 1.000000, 1.000000;;, + 31;3; 1.000000, 1.000000, 1.000000;;, + 32;3; 1.000000, 1.000000, 1.000000;;, + 33;3; 1.000000, 1.000000, 1.000000;;, + 34;3; 1.000000, 1.000000, 1.000000;;, + 35;3; 1.000000, 1.000000, 1.000000;;, + 36;3; 1.000000, 1.000000, 1.000000;;, + 37;3; 1.000000, 1.000000, 1.000000;;, + 38;3; 1.000000, 1.000000, 1.000000;;, + 39;3; 1.000000, 1.000000, 1.000000;;, + 40;3; 1.000000, 1.000000, 1.000000;;, + 41;3; 1.000000, 1.000000, 1.000000;;, + 42;3; 1.000000, 1.000000, 1.000000;;, + 43;3; 1.000000, 1.000000, 1.000000;;, + 44;3; 1.000000, 1.000000, 1.000000;;, + 45;3; 1.000000, 1.000000, 1.000000;;, + 46;3; 1.000000, 1.000000, 1.000000;;, + 47;3; 1.000000, 1.000000, 1.000000;;, + 48;3; 1.000000, 1.000000, 1.000000;;, + 49;3; 1.000000, 1.000000, 1.000000;;, + 50;3; 1.000000, 1.000000, 1.000000;;, + 51;3; 1.000000, 1.000000, 1.000000;;, + 52;3; 1.000000, 1.000000, 1.000000;;, + 53;3; 1.000000, 1.000000, 1.000000;;, + 54;3; 1.000000, 1.000000, 1.000000;;, + 55;3; 1.000000, 1.000000, 1.000000;;, + 56;3; 1.000000, 1.000000, 1.000000;;, + 57;3; 1.000000, 1.000000, 1.000000;;, + 58;3; 1.000000, 1.000000, 1.000000;;, + 59;3; 1.000000, 1.000000, 1.000000;;, + 60;3; 1.000000, 1.000000, 1.000000;;, + 61;3; 1.000000, 1.000000, 1.000000;;, + 62;3; 1.000000, 1.000000, 1.000000;;, + 63;3; 1.000000, 1.000000, 1.000000;;, + 64;3; 1.000000, 1.000000, 1.000000;;, + 65;3; 1.000000, 1.000000, 1.000000;;, + 66;3; 1.000000, 1.000000, 1.000000;;, + 67;3; 1.000000, 1.000000, 1.000000;;, + 68;3; 1.000000, 1.000000, 1.000000;;, + 69;3; 1.000000, 1.000000, 1.000000;;, + 70;3; 1.000000, 1.000000, 1.000000;;, + 71;3; 1.000000, 1.000000, 1.000000;;, + 72;3; 1.000000, 1.000000, 1.000000;;, + 73;3; 1.000000, 1.000000, 1.000000;;, + 74;3; 1.000000, 1.000000, 1.000000;;, + 75;3; 1.000000, 1.000000, 1.000000;;, + 76;3; 1.000000, 1.000000, 1.000000;;, + 77;3; 1.000000, 1.000000, 1.000000;;, + 78;3; 1.000000, 1.000000, 1.000000;;, + 79;3; 1.000000, 1.000000, 1.000000;;, + 80;3; 1.000000, 1.000000, 1.000000;;, + 81;3; 1.000000, 1.000000, 1.000000;;, + 82;3; 1.000000, 1.000000, 1.000000;;, + 83;3; 1.000000, 1.000000, 1.000000;;, + 84;3; 1.000000, 1.000000, 1.000000;;, + 85;3; 1.000000, 1.000000, 1.000000;;, + 86;3; 1.000000, 1.000000, 1.000000;;, + 87;3; 1.000000, 1.000000, 1.000000;;, + 88;3; 1.000000, 1.000000, 1.000000;;, + 89;3; 1.000000, 1.000000, 1.000000;;, + 90;3; 1.000000, 1.000000, 1.000000;;, + 91;3; 1.000000, 1.000000, 1.000000;;, + 92;3; 1.000000, 1.000000, 1.000000;;, + 93;3; 1.000000, 1.000000, 1.000000;;, + 94;3; 1.000000, 1.000000, 1.000000;;, + 95;3; 1.000000, 1.000000, 1.000000;;, + 96;3; 1.000000, 1.000000, 1.000000;;, + 97;3; 1.000000, 1.000000, 1.000000;;, + 98;3; 1.000000, 1.000000, 1.000000;;, + 99;3; 1.000000, 1.000000, 1.000000;;, + 100;3; 1.000000, 1.000000, 1.000000;;, + 101;3; 1.000000, 1.000000, 1.000000;;, + 102;3; 1.000000, 1.000000, 1.000000;;, + 103;3; 1.000000, 1.000000, 1.000000;;, + 104;3; 1.000000, 1.000000, 1.000000;;, + 105;3; 1.000000, 1.000000, 1.000000;;, + 106;3; 1.000000, 1.000000, 1.000000;;, + 107;3; 1.000000, 1.000000, 1.000000;;, + 108;3; 1.000000, 1.000000, 1.000000;;, + 109;3; 1.000000, 1.000000, 0.999999;;, + 110;3; 1.000000, 1.000000, 1.000000;;, + 111;3; 1.000000, 1.000000, 1.000000;;, + 112;3; 1.000000, 1.000000, 1.000000;;, + 113;3; 1.000000, 1.000000, 1.000000;;, + 114;3; 1.000000, 1.000000, 1.000000;;, + 115;3; 1.000000, 1.000000, 1.000000;;, + 116;3; 1.000000, 1.000000, 1.000000;;, + 117;3; 1.000000, 1.000000, 1.000000;;, + 118;3; 1.000000, 1.000000, 1.000000;;, + 119;3; 1.000000, 1.000000, 1.000000;;, + 120;3; 1.000000, 1.000000, 1.000000;;, + 121;3; 1.000000, 1.000000, 1.000000;;, + 122;3; 1.000000, 1.000000, 1.000000;;, + 123;3; 1.000000, 1.000000, 1.000000;;, + 124;3; 1.000000, 1.000000, 1.000000;;, + 125;3; 1.000000, 1.000000, 1.000000;;, + 126;3; 1.000000, 1.000000, 1.000000;;, + 127;3; 1.000000, 1.000000, 1.000000;;, + 128;3; 1.000000, 1.000000, 1.000000;;, + 129;3; 1.000000, 1.000000, 1.000000;;, + 130;3; 1.000000, 1.000000, 1.000000;;, + 131;3; 1.000000, 1.000000, 1.000000;;, + 132;3; 1.000000, 1.000000, 1.000000;;, + 133;3; 1.000000, 1.000000, 0.999999;;, + 134;3; 1.000000, 1.000000, 1.000000;;, + 135;3; 1.000000, 1.000000, 1.000000;;, + 136;3; 1.000000, 1.000000, 1.000000;;, + 137;3; 1.000000, 1.000000, 1.000000;;, + 138;3; 1.000000, 1.000000, 1.000000;;, + 139;3; 1.000000, 1.000000, 1.000000;;, + 140;3; 1.000000, 1.000000, 1.000000;;, + 141;3; 1.000000, 1.000000, 1.000000;;, + 142;3; 1.000000, 1.000000, 1.000000;;, + 143;3; 1.000000, 1.000000, 1.000000;;, + 144;3; 1.000000, 1.000000, 1.000000;;, + 145;3; 1.000000, 1.000000, 1.000000;;, + 146;3; 1.000000, 1.000000, 1.000000;;, + 147;3; 1.000000, 1.000000, 1.000000;;, + 148;3; 1.000000, 1.000000, 1.000000;;, + 149;3; 1.000000, 1.000000, 1.000000;;, + 150;3; 1.000000, 1.000000, 1.000000;;, + 151;3; 1.000000, 1.000000, 1.000000;;, + 152;3; 1.000000, 1.000000, 1.000000;;, + 153;3; 1.000000, 1.000000, 1.000000;;, + 154;3; 1.000000, 1.000000, 1.000000;;, + 155;3; 1.000000, 1.000000, 1.000000;;, + 156;3; 1.000000, 1.000000, 1.000000;;, + 157;3; 1.000000, 1.000000, 1.000000;;, + 158;3; 1.000000, 1.000000, 1.000000;;, + 159;3; 1.000000, 1.000000, 0.999999;;, + 160;3; 1.000000, 1.000000, 1.000000;;, + 161;3; 1.000000, 1.000000, 1.000000;;, + 162;3; 1.000000, 1.000000, 1.000000;;, + 163;3; 1.000000, 1.000000, 1.000000;;, + 164;3; 1.000000, 1.000000, 1.000000;;, + 165;3; 1.000000, 1.000000, 1.000000;;, + 166;3; 1.000000, 1.000000, 1.000000;;, + 167;3; 1.000000, 1.000000, 1.000000;;, + 168;3; 1.000000, 1.000000, 1.000000;;, + 169;3; 1.000000, 1.000000, 1.000000;;, + 170;3; 1.000000, 1.000000, 1.000000;;, + 171;3; 1.000000, 1.000000, 1.000000;;, + 172;3; 1.000000, 1.000000, 1.000000;;, + 173;3; 1.000000, 1.000000, 1.000000;;, + 174;3; 1.000000, 1.000000, 1.000000;;, + 175;3; 1.000000, 1.000000, 1.000000;;, + 176;3; 1.000000, 1.000000, 1.000000;;, + 177;3; 1.000000, 1.000000, 1.000000;;, + 178;3; 1.000000, 1.000000, 1.000000;;, + 179;3; 1.000000, 1.000000, 1.000000;;, + 180;3; 1.000000, 1.000000, 1.000000;;, + 181;3; 1.000000, 1.000000, 1.000000;;, + 182;3; 1.000000, 1.000000, 1.000000;;, + 183;3; 1.000000, 1.000000, 1.000000;;, + 184;3; 1.000000, 1.000000, 1.000000;;, + 185;3; 1.000000, 1.000000, 1.000000;;, + 186;3; 1.000000, 1.000000, 1.000000;;, + 187;3; 1.000000, 1.000000, 1.000000;;, + 188;3; 1.000000, 1.000000, 1.000000;;, + 189;3; 1.000000, 1.000000, 1.000000;;, + 190;3; 1.000000, 1.000000, 1.000000;;, + 191;3; 1.000000, 1.000000, 1.000000;;, + 192;3; 1.000000, 1.000000, 1.000000;;, + 193;3; 1.000000, 1.000000, 1.000000;;, + 194;3; 1.000000, 1.000000, 1.000000;;, + 195;3; 1.000000, 1.000000, 1.000000;;, + 196;3; 1.000000, 1.000000, 1.000000;;, + 197;3; 1.000000, 1.000000, 1.000000;;, + 198;3; 1.000000, 1.000000, 1.000000;;, + 199;3; 1.000000, 1.000000, 1.000000;;, + 200;3; 1.000000, 1.000000, 1.000000;;, + 201;3; 1.000000, 1.000000, 1.000000;;, + 202;3; 1.000000, 1.000000, 1.000000;;, + 203;3; 1.000000, 1.000000, 1.000000;;, + 204;3; 1.000000, 1.000000, 1.000000;;, + 205;3; 1.000000, 1.000000, 1.000000;;, + 206;3; 1.000000, 1.000000, 1.000000;;, + 207;3; 1.000000, 1.000000, 1.000000;;, + 208;3; 1.000000, 1.000000, 1.000000;;, + 209;3; 1.000000, 1.000000, 1.000000;;, + 210;3; 1.000000, 1.000000, 1.000000;;, + 211;3; 1.000000, 1.000000, 1.000000;;, + 212;3; 1.000000, 1.000000, 1.000000;;, + 213;3; 1.000000, 1.000000, 1.000000;;, + 214;3; 1.000000, 1.000000, 1.000000;;, + 215;3; 1.000000, 1.000000, 1.000000;;, + 216;3; 1.000000, 1.000000, 1.000000;;, + 217;3; 1.000000, 1.000000, 1.000000;;, + 218;3; 1.000000, 1.000000, 1.000000;;, + 219;3; 1.000000, 1.000000, 1.000000;;, + 220;3; 1.000000, 1.000000, 1.000000;;; + } + } + Animation { + {Armature_Leg_Left} + AnimationKey { //Position + 2; + 221; + 0;3; -1.000000, 0.000000,-0.000001;;, + 1;3; -1.000000,-0.000000,-0.000001;;, + 2;3; -1.000000,-0.000000,-0.000001;;, + 3;3; -1.000000,-0.000000,-0.000001;;, + 4;3; -1.000000,-0.000000,-0.000001;;, + 5;3; -1.000000,-0.000000,-0.000001;;, + 6;3; -1.000000,-0.000000,-0.000001;;, + 7;3; -1.000000,-0.000000,-0.000001;;, + 8;3; -1.000000,-0.000000,-0.000001;;, + 9;3; -1.000000,-0.000000,-0.000001;;, + 10;3; -1.000000,-0.000000,-0.000000;;, + 11;3; -1.000000,-0.000000,-0.000000;;, + 12;3; -1.000000,-0.000000,-0.000000;;, + 13;3; -1.000000,-0.000000,-0.000000;;, + 14;3; -1.000000,-0.000000,-0.000000;;, + 15;3; -1.000000,-0.000000,-0.000001;;, + 16;3; -1.000000,-0.000000,-0.000001;;, + 17;3; -1.000000,-0.000000,-0.000001;;, + 18;3; -1.000000,-0.000000,-0.000001;;, + 19;3; -1.000000,-0.000000,-0.000001;;, + 20;3; -1.000000,-0.000000,-0.000001;;, + 21;3; -1.000000,-0.000000,-0.000001;;, + 22;3; -1.000000,-0.000000,-0.000000;;, + 23;3; -1.000000,-0.000000,-0.000001;;, + 24;3; -1.000000,-0.000000,-0.000001;;, + 25;3; -1.000000,-0.000000,-0.000001;;, + 26;3; -1.000000,-0.000000,-0.000000;;, + 27;3; -1.000000,-0.000000,-0.000000;;, + 28;3; -1.000000,-0.000000,-0.000000;;, + 29;3; -1.000000,-0.000000,-0.000000;;, + 30;3; -1.000000,-0.000000,-0.000000;;, + 31;3; -1.000000,-0.000000,-0.000001;;, + 32;3; -1.000000,-0.000000,-0.000001;;, + 33;3; -1.000000,-0.000000,-0.000001;;, + 34;3; -1.000000,-0.000000,-0.000001;;, + 35;3; -1.000000,-0.000000,-0.000001;;, + 36;3; -1.000000,-0.000000,-0.000001;;, + 37;3; -1.000000,-0.000000,-0.000001;;, + 38;3; -1.000000,-0.000000,-0.000001;;, + 39;3; -1.000000,-0.000000,-0.000001;;, + 40;3; -1.000000, 0.000000,-0.000001;;, + 41;3; -1.000000,-0.000000,-0.000001;;, + 42;3; -1.000000,-0.000000,-0.000001;;, + 43;3; -1.000000,-0.000000,-0.000001;;, + 44;3; -1.000000,-0.000000,-0.000001;;, + 45;3; -1.000000,-0.000000,-0.000001;;, + 46;3; -1.000000,-0.000000,-0.000001;;, + 47;3; -1.000000,-0.000000,-0.000001;;, + 48;3; -1.000000,-0.000000,-0.000001;;, + 49;3; -1.000000,-0.000000,-0.000001;;, + 50;3; -1.000000,-0.000000,-0.000000;;, + 51;3; -1.000000,-0.000000,-0.000000;;, + 52;3; -1.000000,-0.000000,-0.000000;;, + 53;3; -1.000000,-0.000000,-0.000000;;, + 54;3; -1.000000,-0.000000,-0.000000;;, + 55;3; -1.000000,-0.000000,-0.000001;;, + 56;3; -1.000000,-0.000000,-0.000001;;, + 57;3; -1.000000,-0.000000,-0.000001;;, + 58;3; -1.000000,-0.000000,-0.000001;;, + 59;3; -1.000000,-0.000000,-0.000001;;, + 60;3; -1.000000,-0.000000,-0.000001;;, + 61;3; -1.000000,-0.000000,-0.000001;;, + 62;3; -1.000000,-0.000000,-0.000001;;, + 63;3; -1.000000,-0.000000,-0.000001;;, + 64;3; -1.000000,-0.000000,-0.000001;;, + 65;3; -1.000000,-0.000000,-0.000001;;, + 66;3; -1.000000,-0.000000,-0.000001;;, + 67;3; -1.000000,-0.000000,-0.000000;;, + 68;3; -1.000000,-0.000000,-0.000000;;, + 69;3; -1.000000,-0.000000,-0.000000;;, + 70;3; -1.000000,-0.000000,-0.000000;;, + 71;3; -1.000000,-0.000000,-0.000000;;, + 72;3; -1.000000,-0.000000,-0.000000;;, + 73;3; -1.000000,-0.000000,-0.000000;;, + 74;3; -1.000000,-0.000000,-0.000001;;, + 75;3; -1.000000,-0.000000,-0.000001;;, + 76;3; -1.000000,-0.000000,-0.000001;;, + 77;3; -1.000000,-0.000000,-0.000001;;, + 78;3; -1.000000,-0.000000,-0.000001;;, + 79;3; -1.000000,-0.000000,-0.000001;;, + 80;3; -1.000000, 0.000000,-0.000001;;, + 81;3; -1.000000, 0.000000,-0.000001;;, + 82;3; -1.000000,-0.000000,-0.000001;;, + 83;3; -1.000000,-0.000000,-0.000001;;, + 84;3; -1.000000,-0.000000,-0.000001;;, + 85;3; -1.000000,-0.000000,-0.000001;;, + 86;3; -1.000000,-0.000000,-0.000001;;, + 87;3; -1.000000,-0.000000,-0.000001;;, + 88;3; -1.000000,-0.000000,-0.000001;;, + 89;3; -1.000000,-0.000000,-0.000001;;, + 90;3; -1.000000,-0.000000,-0.000001;;, + 91;3; -1.000000,-0.000000,-0.000001;;, + 92;3; -1.000000,-0.000000,-0.000001;;, + 93;3; -1.000000,-0.000000,-0.000001;;, + 94;3; -1.000000,-0.000000,-0.000001;;, + 95;3; -1.000000,-0.000000,-0.000001;;, + 96;3; -1.000000,-0.000000,-0.000001;;, + 97;3; -1.000000,-0.000000,-0.000001;;, + 98;3; -1.000000,-0.000000,-0.000001;;, + 99;3; -1.000000,-0.000000,-0.000001;;, + 100;3; -1.000000,-0.000000,-0.000001;;, + 101;3; -1.000000,-0.000000,-0.000001;;, + 102;3; -1.000000,-0.000000,-0.000001;;, + 103;3; -1.000000,-0.000000,-0.000001;;, + 104;3; -1.000000,-0.000000,-0.000001;;, + 105;3; -1.000000,-0.000000,-0.000001;;, + 106;3; -1.000000,-0.000000,-0.000001;;, + 107;3; -1.000000,-0.000000,-0.000001;;, + 108;3; -1.000000,-0.000000,-0.000001;;, + 109;3; -1.000000,-0.000000,-0.000001;;, + 110;3; -1.000000,-0.000000,-0.000001;;, + 111;3; -1.000000,-0.000000,-0.000001;;, + 112;3; -1.000000,-0.000000,-0.000001;;, + 113;3; -1.000000,-0.000000,-0.000001;;, + 114;3; -1.000000,-0.000000,-0.000001;;, + 115;3; -1.000000,-0.000000,-0.000001;;, + 116;3; -1.000000,-0.000000,-0.000001;;, + 117;3; -1.000000,-0.000000,-0.000001;;, + 118;3; -1.000000,-0.000000,-0.000001;;, + 119;3; -1.000000,-0.000000,-0.000001;;, + 120;3; -1.000000,-0.000000,-0.000001;;, + 121;3; -1.000000, 0.000000,-0.000001;;, + 122;3; -1.000000,-0.000000,-0.000001;;, + 123;3; -1.000000,-0.000000,-0.000001;;, + 124;3; -1.000000,-0.000000,-0.000001;;, + 125;3; -1.000000,-0.000000,-0.000001;;, + 126;3; -1.000000,-0.000000,-0.000001;;, + 127;3; -1.000000,-0.000000,-0.000001;;, + 128;3; -1.000000,-0.000000,-0.000001;;, + 129;3; -1.000000,-0.000000,-0.000001;;, + 130;3; -1.000000,-0.000000,-0.000001;;, + 131;3; -1.000000,-0.000000,-0.000001;;, + 132;3; -1.000000,-0.000000,-0.000001;;, + 133;3; -1.000000,-0.000000,-0.000001;;, + 134;3; -1.000000,-0.000000,-0.000001;;, + 135;3; -1.000000,-0.000000,-0.000001;;, + 136;3; -1.000000,-0.000000,-0.000001;;, + 137;3; -1.000000,-0.000000,-0.000001;;, + 138;3; -1.000000,-0.000000,-0.000001;;, + 139;3; -1.000000,-0.000000,-0.000001;;, + 140;3; -1.000000,-0.000000,-0.000001;;, + 141;3; -1.000000,-0.000000,-0.000001;;, + 142;3; -1.000000,-0.000000,-0.000001;;, + 143;3; -1.000000,-0.000000,-0.000001;;, + 144;3; -1.000000,-0.000000,-0.000001;;, + 145;3; -1.000000,-0.000000,-0.000001;;, + 146;3; -1.000000,-0.000000,-0.000001;;, + 147;3; -1.000000,-0.000000,-0.000001;;, + 148;3; -1.000000,-0.000000,-0.000001;;, + 149;3; -1.000000,-0.000000,-0.000001;;, + 150;3; -1.000000,-0.000000,-0.000001;;, + 151;3; -1.000000,-0.000000,-0.000001;;, + 152;3; -1.000000,-0.000000,-0.000001;;, + 153;3; -1.000000,-0.000000,-0.000001;;, + 154;3; -1.000000,-0.000000,-0.000001;;, + 155;3; -1.000000,-0.000000,-0.000001;;, + 156;3; -1.000000,-0.000000,-0.000001;;, + 157;3; -1.000000,-0.000000,-0.000001;;, + 158;3; -1.000000,-0.000000,-0.000001;;, + 159;3; -1.000000,-0.000000,-0.000001;;, + 160;3; -1.000000,-0.000000,-0.000001;;, + 161;3; -1.000000, 0.000000,-0.000001;;, + 162;3; -1.000000,-0.000000,-0.000000;;, + 163;3; -1.000000,-0.000000,-0.000000;;, + 164;3; -1.000000,-0.000000,-0.000000;;, + 165;3; -1.000000,-0.000000,-0.000000;;, + 166;3; -1.000000,-0.000000,-0.000000;;, + 167;3; -1.000000,-0.000000,-0.000000;;, + 168;3; -1.000000, 0.000000,-0.000001;;, + 169;3; -1.000000, 0.000000,-0.000001;;, + 170;3; -1.000000, 0.000000,-0.000001;;, + 171;3; -1.000000, 0.000000,-0.000001;;, + 172;3; -1.000000, 0.000000,-0.000001;;, + 173;3; -1.000000, 0.000000,-0.000001;;, + 174;3; -1.000000, 0.000000,-0.000001;;, + 175;3; -1.000000, 0.000000,-0.000001;;, + 176;3; -1.000000, 0.000000,-0.000001;;, + 177;3; -1.000000, 0.000000,-0.000001;;, + 178;3; -1.000000, 0.000000,-0.000001;;, + 179;3; -1.000000, 0.000000,-0.000001;;, + 180;3; -1.000000, 0.000000,-0.000001;;, + 181;3; -1.000000, 0.000000,-0.000001;;, + 182;3; -1.000000, 0.000000,-0.000001;;, + 183;3; -1.000000, 0.000000,-0.000001;;, + 184;3; -1.000000, 0.000000,-0.000001;;, + 185;3; -1.000000, 0.000000,-0.000001;;, + 186;3; -1.000000, 0.000000,-0.000001;;, + 187;3; -1.000000, 0.000000,-0.000001;;, + 188;3; -1.000000, 0.000000,-0.000001;;, + 189;3; -1.000000, 0.000000,-0.000001;;, + 190;3; -1.000000, 0.000000,-0.000001;;, + 191;3; -1.000000, 0.000000,-0.000001;;, + 192;3; -1.000000, 0.000000,-0.000000;;, + 193;3; -1.000000, 0.000000,-0.000001;;, + 194;3; -1.000000, 0.000000,-0.000001;;, + 195;3; -1.000000, 0.000000,-0.000001;;, + 196;3; -1.000000, 0.000000,-0.000000;;, + 197;3; -1.000000, 0.000000,-0.000001;;, + 198;3; -1.000000, 0.000000,-0.000001;;, + 199;3; -1.000000, 0.000000,-0.000001;;, + 200;3; -1.000000, 0.000000,-0.000001;;, + 201;3; -1.000000,-0.000000,-0.000001;;, + 202;3; -1.000000,-0.000000,-0.000001;;, + 203;3; -1.000000,-0.000000,-0.000000;;, + 204;3; -1.000000,-0.000000,-0.000001;;, + 205;3; -1.000000,-0.000000,-0.000001;;, + 206;3; -1.000000,-0.000000,-0.000000;;, + 207;3; -1.000000,-0.000000,-0.000001;;, + 208;3; -1.000000, 0.000000,-0.000000;;, + 209;3; -1.000000, 0.000000,-0.000000;;, + 210;3; -1.000000, 0.000000,-0.000001;;, + 211;3; -1.000000, 0.000000,-0.000000;;, + 212;3; -1.000000, 0.000000,-0.000000;;, + 213;3; -1.000000,-0.000000,-0.000001;;, + 214;3; -1.000000,-0.000000,-0.000000;;, + 215;3; -1.000000,-0.000000,-0.000001;;, + 216;3; -1.000000,-0.000000,-0.000001;;, + 217;3; -1.000000,-0.000000,-0.000000;;, + 218;3; -1.000000,-0.000000,-0.000001;;, + 219;3; -1.000000,-0.000000,-0.000001;;, + 220;3; -1.000000, 0.000000,-0.000001;;; + } + AnimationKey { //Rotation + 0; + 221; + 0;4; -0.000000, 1.000000,-0.000000,-0.000000;;, + 1;4; -0.000240, 0.999995,-0.000000,-0.000000;;, + 2;4; -0.000967, 0.999979,-0.000000,-0.000000;;, + 3;4; -0.002182, 0.999952,-0.000000,-0.000000;;, + 4;4; -0.003877, 0.999915,-0.000000,-0.000000;;, + 5;4; -0.006032, 0.999868,-0.000000,-0.000000;;, + 6;4; -0.008609, 0.999812,-0.000000,-0.000000;;, + 7;4; -0.011555, 0.999748,-0.000000,-0.000000;;, + 8;4; -0.014798, 0.999677,-0.000000,-0.000000;;, + 9;4; -0.018250, 0.999602,-0.000000,-0.000000;;, + 10;4; -0.021810, 0.999524,-0.000000,-0.000000;;, + 11;4; -0.025369, 0.999446,-0.000000,-0.000000;;, + 12;4; -0.028821, 0.999371,-0.000000,-0.000000;;, + 13;4; -0.032064, 0.999300,-0.000000,-0.000000;;, + 14;4; -0.035010, 0.999236,-0.000000,-0.000000;;, + 15;4; -0.037588, 0.999180,-0.000000,-0.000000;;, + 16;4; -0.039742, 0.999133,-0.000000,-0.000000;;, + 17;4; -0.041437, 0.999096,-0.000000,-0.000000;;, + 18;4; -0.042652, 0.999069,-0.000000,-0.000000;;, + 19;4; -0.043379, 0.999053,-0.000000,-0.000000;;, + 20;4; -0.043619, 0.999048,-0.000000,-0.000000;;, + 21;4; -0.043379, 0.999053,-0.000000,-0.000000;;, + 22;4; -0.042652, 0.999069,-0.000000,-0.000000;;, + 23;4; -0.041437, 0.999096,-0.000000,-0.000000;;, + 24;4; -0.039742, 0.999133,-0.000000,-0.000000;;, + 25;4; -0.037588, 0.999180,-0.000000,-0.000000;;, + 26;4; -0.035010, 0.999236,-0.000000,-0.000000;;, + 27;4; -0.032064, 0.999300,-0.000000,-0.000000;;, + 28;4; -0.028821, 0.999371,-0.000000,-0.000000;;, + 29;4; -0.025369, 0.999446,-0.000000,-0.000000;;, + 30;4; -0.021810, 0.999524,-0.000000,-0.000000;;, + 31;4; -0.018250, 0.999602,-0.000000,-0.000000;;, + 32;4; -0.014798, 0.999677,-0.000000,-0.000000;;, + 33;4; -0.011555, 0.999748,-0.000000,-0.000000;;, + 34;4; -0.008609, 0.999812,-0.000000,-0.000000;;, + 35;4; -0.006032, 0.999868,-0.000000,-0.000000;;, + 36;4; -0.003877, 0.999915,-0.000000,-0.000000;;, + 37;4; -0.002182, 0.999952,-0.000000,-0.000000;;, + 38;4; -0.000967, 0.999979,-0.000000,-0.000000;;, + 39;4; -0.000240, 0.999995,-0.000000,-0.000000;;, + 40;4; -0.000000, 1.000000,-0.000000,-0.000000;;, + 41;4; -0.000240, 0.999995,-0.000000,-0.000000;;, + 42;4; -0.000967, 0.999979,-0.000000,-0.000000;;, + 43;4; -0.002182, 0.999952,-0.000000,-0.000000;;, + 44;4; -0.003877, 0.999915,-0.000000,-0.000000;;, + 45;4; -0.006032, 0.999868,-0.000000,-0.000000;;, + 46;4; -0.008609, 0.999812,-0.000000,-0.000000;;, + 47;4; -0.011555, 0.999748,-0.000000,-0.000000;;, + 48;4; -0.014798, 0.999677,-0.000000,-0.000000;;, + 49;4; -0.018250, 0.999602,-0.000000,-0.000000;;, + 50;4; -0.021810, 0.999524,-0.000000,-0.000000;;, + 51;4; -0.025369, 0.999446,-0.000000,-0.000000;;, + 52;4; -0.028821, 0.999371,-0.000000,-0.000000;;, + 53;4; -0.032064, 0.999300,-0.000000,-0.000000;;, + 54;4; -0.035010, 0.999236,-0.000000,-0.000000;;, + 55;4; -0.037588, 0.999180,-0.000000,-0.000000;;, + 56;4; -0.039742, 0.999133,-0.000000,-0.000000;;, + 57;4; -0.041437, 0.999096,-0.000000,-0.000000;;, + 58;4; -0.042652, 0.999069,-0.000000,-0.000000;;, + 59;4; -0.043379, 0.999053,-0.000000,-0.000000;;, + 60;4; -0.043619, 0.999048,-0.000000,-0.000000;;, + 61;4; -0.043616, 0.999053,-0.000000,-0.000000;;, + 62;4; -0.043594, 0.999067,-0.000000,-0.000000;;, + 63;4; -0.043536, 0.999089,-0.000000,-0.000000;;, + 64;4; -0.043427, 0.999117,-0.000000,-0.000000;;, + 65;4; -0.043250, 0.999151,-0.000000,-0.000000;;, + 66;4; -0.042989, 0.999191,-0.000000,-0.000000;;, + 67;4; -0.042627, 0.999235,-0.000000,-0.000000;;, + 68;4; -0.042144, 0.999283,-0.000000,-0.000000;;, + 69;4; -0.041519, 0.999336,-0.000000,-0.000000;;, + 70;4; -0.040726, 0.999391,-0.000000,-0.000000;;, + 71;4; -0.039733, 0.999450,-0.000000,-0.000000;;, + 72;4; -0.038501, 0.999511,-0.000000,-0.000000;;, + 73;4; -0.036980, 0.999575,-0.000000,-0.000000;;, + 74;4; -0.035101, 0.999640,-0.000000,-0.000000;;, + 75;4; -0.032770, 0.999707,-0.000000,-0.000000;;, + 76;4; -0.029842, 0.999774,-0.000000,-0.000000;;, + 77;4; -0.026086, 0.999841,-0.000000,-0.000000;;, + 78;4; -0.021070, 0.999906,-0.000000,-0.000000;;, + 79;4; -0.013794, 0.999964,-0.000000,-0.000000;;, + 80;4; -0.000000, 1.000000,-0.000000,-0.000000;;, + 81;4; 0.707107, 0.707107, 0.000000,-0.000000;;, + 82;4; 0.705874, 0.708245, 0.000000,-0.000000;;, + 83;4; 0.703907, 0.710101, 0.000000,-0.000000;;, + 84;4; 0.701752, 0.712152, 0.000000,-0.000000;;, + 85;4; 0.699533, 0.714271, 0.000000,-0.000000;;, + 86;4; 0.697308, 0.716402, 0.000000,-0.000000;;, + 87;4; 0.695107, 0.718513, 0.000000,-0.000000;;, + 88;4; 0.692951, 0.720584, 0.000000,-0.000000;;, + 89;4; 0.690857, 0.722597, 0.000000,-0.000000;;, + 90;4; 0.688837, 0.724539, 0.000000,-0.000000;;, + 91;4; 0.686904, 0.726399, 0.000000,-0.000000;;, + 92;4; 0.685070, 0.728163, 0.000000,-0.000000;;, + 93;4; 0.683348, 0.729820, 0.000000,-0.000000;;, + 94;4; 0.681750, 0.731358, 0.000000,-0.000000;;, + 95;4; 0.680291, 0.732761, 0.000000,-0.000000;;, + 96;4; 0.678987, 0.734015, 0.000000,-0.000000;;, + 97;4; 0.677857, 0.735101, 0.000000,-0.000000;;, + 98;4; 0.676923, 0.735999, 0.000000,-0.000000;;, + 99;4; 0.676211, 0.736682, 0.000000,-0.000000;;, + 100;4; 0.675753, 0.737121, 0.000000,-0.000000;;, + 101;4; 0.675590, 0.737277, 0.000000,-0.000000;;, + 102;4; 0.675764, 0.737111, 0.000000,-0.000000;;, + 103;4; 0.676289, 0.736609, 0.000000,-0.000000;;, + 104;4; 0.677167, 0.735768, 0.000000,-0.000000;;, + 105;4; 0.678392, 0.734596, 0.000000,-0.000000;;, + 106;4; 0.679948, 0.733105, 0.000000,-0.000000;;, + 107;4; 0.681811, 0.731323, 0.000000,-0.000000;;, + 108;4; 0.683939, 0.729285, 0.000000,-0.000000;;, + 109;4; 0.686283, 0.727042, 0.000000,-0.000000;;, + 110;4; 0.688777, 0.724654, 0.000000,-0.000000;;, + 111;4; 0.691348, 0.722192, 0.000000,-0.000000;;, + 112;4; 0.693920, 0.719730, 0.000000,-0.000000;;, + 113;4; 0.696414, 0.717343, 0.000000,-0.000000;;, + 114;4; 0.698758, 0.715099, 0.000000,-0.000000;;, + 115;4; 0.700886, 0.713062, 0.000000,-0.000000;;, + 116;4; 0.702748, 0.711279, 0.000000,-0.000000;;, + 117;4; 0.704305, 0.709789, 0.000000,-0.000000;;, + 118;4; 0.705530, 0.708616, 0.000000,-0.000000;;, + 119;4; 0.706408, 0.707776, 0.000000,-0.000000;;, + 120;4; 0.706933, 0.707273, 0.000000,-0.000000;;, + 121;4; 0.707107, 0.707107, 0.000000,-0.000000;;, + 122;4; 0.706933, 0.707273, 0.000000,-0.000000;;, + 123;4; 0.706408, 0.707776, 0.000000,-0.000000;;, + 124;4; 0.705530, 0.708616, 0.000000,-0.000000;;, + 125;4; 0.704305, 0.709789, 0.000000,-0.000000;;, + 126;4; 0.702749, 0.711279, 0.000000,-0.000000;;, + 127;4; 0.700886, 0.713062, 0.000000,-0.000000;;, + 128;4; 0.698758, 0.715099, 0.000000,-0.000000;;, + 129;4; 0.696414, 0.717343, 0.000000,-0.000000;;, + 130;4; 0.693920, 0.719730, 0.000000,-0.000000;;, + 131;4; 0.691348, 0.722192, 0.000000,-0.000000;;, + 132;4; 0.688777, 0.724654, 0.000000,-0.000000;;, + 133;4; 0.686283, 0.727042, 0.000000,-0.000000;;, + 134;4; 0.683939, 0.729285, 0.000000,-0.000000;;, + 135;4; 0.681811, 0.731323, 0.000000,-0.000000;;, + 136;4; 0.679949, 0.733105, 0.000000,-0.000000;;, + 137;4; 0.678392, 0.734596, 0.000000,-0.000000;;, + 138;4; 0.677167, 0.735768, 0.000000,-0.000000;;, + 139;4; 0.676289, 0.736609, 0.000000,-0.000000;;, + 140;4; 0.675764, 0.737111, 0.000000,-0.000000;;, + 141;4; 0.675590, 0.737277, 0.000000,-0.000000;;, + 142;4; 0.675753, 0.737121, 0.000000,-0.000000;;, + 143;4; 0.676211, 0.736682, 0.000000,-0.000000;;, + 144;4; 0.676923, 0.735999, 0.000000,-0.000000;;, + 145;4; 0.677857, 0.735101, 0.000000,-0.000000;;, + 146;4; 0.678987, 0.734015, 0.000000,-0.000000;;, + 147;4; 0.680291, 0.732761, 0.000000,-0.000000;;, + 148;4; 0.681750, 0.731358, 0.000000,-0.000000;;, + 149;4; 0.683348, 0.729820, 0.000000,-0.000000;;, + 150;4; 0.685070, 0.728163, 0.000000,-0.000000;;, + 151;4; 0.686904, 0.726398, 0.000000,-0.000000;;, + 152;4; 0.688837, 0.724539, 0.000000,-0.000000;;, + 153;4; 0.690857, 0.722596, 0.000000,-0.000000;;, + 154;4; 0.692951, 0.720583, 0.000000,-0.000000;;, + 155;4; 0.695107, 0.718512, 0.000000,-0.000000;;, + 156;4; 0.697308, 0.716401, 0.000000,-0.000000;;, + 157;4; 0.699533, 0.714270, 0.000000,-0.000000;;, + 158;4; 0.701752, 0.712151, 0.000000,-0.000000;;, + 159;4; 0.703907, 0.710100, 0.000000,-0.000000;;, + 160;4; 0.705874, 0.708244, 0.000000,-0.000000;;, + 161;4; 0.707107, 0.707107, 0.000000,-0.000000;;, + 162;4; -0.000000, 0.991445,-0.130526,-0.000000;;, + 163;4; -0.000000, 0.991445,-0.130526,-0.000000;;, + 164;4; -0.000000, 0.991445,-0.130526,-0.000000;;, + 165;4; -0.000000, 0.991445,-0.130526,-0.000000;;, + 166;4; -0.000000, 0.991445,-0.130526,-0.000000;;, + 167;4; -0.000000, 0.991445,-0.130526,-0.000000;;, + 168;4; -0.000000, 1.000000,-0.000000,-0.000000;;, + 169;4; -0.034052, 0.993234,-0.000000,-0.000000;;, + 170;4; -0.129903, 0.974175,-0.000000,-0.000000;;, + 171;4; -0.252901, 0.949704,-0.000000,-0.000000;;, + 172;4; -0.348675, 0.930646,-0.000000,-0.000000;;, + 173;4; -0.382683, 0.923880,-0.000000,-0.000000;;, + 174;4; -0.361005, 0.930646,-0.000000,-0.000000;;, + 175;4; -0.294618, 0.949704,-0.000000,-0.000000;;, + 176;4; -0.194899, 0.974175,-0.000000,-0.000000;;, + 177;4; -0.088939, 0.993234,-0.000000,-0.000000;;, + 178;4; -0.000000, 1.000000,-0.000000,-0.000000;;, + 179;4; 0.088939, 0.993234, 0.000000,-0.000000;;, + 180;4; 0.194899, 0.974175, 0.000000,-0.000000;;, + 181;4; 0.294618, 0.949704, 0.000000,-0.000000;;, + 182;4; 0.361005, 0.930646, 0.000000,-0.000000;;, + 183;4; 0.382683, 0.923880, 0.000000,-0.000000;;, + 184;4; 0.348675, 0.930646, 0.000000,-0.000000;;, + 185;4; 0.252901, 0.949704, 0.000000,-0.000000;;, + 186;4; 0.129903, 0.974175, 0.000000,-0.000000;;, + 187;4; 0.034052, 0.993234, 0.000000,-0.000000;;, + 188;4; -0.000000, 1.000000,-0.000000,-0.000000;;, + 189;4; -0.000000, 1.000000,-0.000000,-0.000000;;, + 190;4; 0.003877, 0.999915, 0.000000,-0.000000;;, + 191;4; 0.014798, 0.999677, 0.000000,-0.000000;;, + 192;4; 0.028821, 0.999371, 0.000000,-0.000000;;, + 193;4; 0.039742, 0.999133, 0.000000,-0.000000;;, + 194;4; 0.043619, 0.999048, 0.000000,-0.000000;;, + 195;4; 0.039742, 0.999133, 0.000000,-0.000000;;, + 196;4; 0.028821, 0.999371, 0.000000,-0.000000;;, + 197;4; 0.014798, 0.999677, 0.000000,-0.000000;;, + 198;4; 0.003877, 0.999915, 0.000000,-0.000000;;, + 199;4; -0.000000, 1.000000,-0.000000,-0.000000;;, + 200;4; -0.000000, 1.000000,-0.000000,-0.000000;;, + 201;4; -0.034052, 0.993233,-0.000000,-0.000000;;, + 202;4; -0.129903, 0.974175,-0.000000,-0.000000;;, + 203;4; -0.252901, 0.949704,-0.000000,-0.000000;;, + 204;4; -0.348675, 0.930646,-0.000000,-0.000000;;, + 205;4; -0.382683, 0.923880,-0.000000,-0.000000;;, + 206;4; -0.361005, 0.930646,-0.000000,-0.000000;;, + 207;4; -0.294618, 0.949704,-0.000000,-0.000000;;, + 208;4; -0.194899, 0.974175,-0.000000,-0.000000;;, + 209;4; -0.088939, 0.993234,-0.000000,-0.000000;;, + 210;4; -0.000000, 1.000000,-0.000000,-0.000000;;, + 211;4; 0.088939, 0.993234, 0.000000,-0.000000;;, + 212;4; 0.194899, 0.974175, 0.000000,-0.000000;;, + 213;4; 0.294618, 0.949704, 0.000000,-0.000000;;, + 214;4; 0.361005, 0.930646, 0.000000,-0.000000;;, + 215;4; 0.382683, 0.923880, 0.000000,-0.000000;;, + 216;4; 0.348699, 0.930646, 0.000000,-0.000000;;, + 217;4; 0.253041, 0.949703, 0.000000,-0.000000;;, + 218;4; 0.130122, 0.974173, 0.000000,-0.000000;;, + 219;4; 0.034158, 0.993233, 0.000000,-0.000000;;, + 220;4; -0.000000, 1.000000,-0.000000,-0.000000;;; + } + AnimationKey { //Scale + 1; + 221; + 0;3; 1.000000, 1.000000, 1.000000;;, + 1;3; 1.000000, 1.000000, 1.000000;;, + 2;3; 1.000000, 1.000000, 1.000000;;, + 3;3; 1.000000, 1.000000, 1.000000;;, + 4;3; 1.000000, 1.000000, 1.000000;;, + 5;3; 1.000000, 1.000000, 1.000000;;, + 6;3; 1.000000, 1.000000, 1.000000;;, + 7;3; 1.000000, 1.000000, 1.000000;;, + 8;3; 1.000000, 1.000000, 1.000000;;, + 9;3; 1.000000, 1.000000, 1.000000;;, + 10;3; 1.000000, 1.000000, 1.000000;;, + 11;3; 1.000000, 1.000000, 1.000000;;, + 12;3; 1.000000, 1.000000, 1.000000;;, + 13;3; 1.000000, 1.000000, 1.000000;;, + 14;3; 1.000000, 1.000000, 1.000000;;, + 15;3; 1.000000, 1.000000, 1.000000;;, + 16;3; 1.000000, 1.000000, 1.000000;;, + 17;3; 1.000000, 1.000000, 1.000000;;, + 18;3; 1.000000, 1.000000, 1.000000;;, + 19;3; 1.000000, 1.000000, 1.000000;;, + 20;3; 1.000000, 1.000000, 1.000000;;, + 21;3; 1.000000, 1.000000, 1.000000;;, + 22;3; 1.000000, 1.000000, 1.000000;;, + 23;3; 1.000000, 1.000000, 1.000000;;, + 24;3; 1.000000, 1.000000, 1.000000;;, + 25;3; 1.000000, 1.000000, 1.000000;;, + 26;3; 1.000000, 1.000000, 1.000000;;, + 27;3; 1.000000, 1.000000, 1.000000;;, + 28;3; 1.000000, 1.000000, 1.000000;;, + 29;3; 1.000000, 1.000000, 1.000000;;, + 30;3; 1.000000, 1.000000, 1.000000;;, + 31;3; 1.000000, 1.000000, 1.000000;;, + 32;3; 1.000000, 1.000000, 1.000000;;, + 33;3; 1.000000, 1.000000, 1.000000;;, + 34;3; 1.000000, 1.000000, 1.000000;;, + 35;3; 1.000000, 1.000000, 1.000000;;, + 36;3; 1.000000, 1.000000, 1.000000;;, + 37;3; 1.000000, 1.000000, 1.000000;;, + 38;3; 1.000000, 1.000000, 1.000000;;, + 39;3; 1.000000, 1.000000, 1.000000;;, + 40;3; 1.000000, 1.000000, 1.000000;;, + 41;3; 1.000000, 1.000000, 1.000000;;, + 42;3; 1.000000, 1.000000, 1.000000;;, + 43;3; 1.000000, 1.000000, 1.000000;;, + 44;3; 1.000000, 1.000000, 1.000000;;, + 45;3; 1.000000, 1.000000, 1.000000;;, + 46;3; 1.000000, 1.000000, 1.000000;;, + 47;3; 1.000000, 1.000000, 1.000000;;, + 48;3; 1.000000, 1.000000, 1.000000;;, + 49;3; 1.000000, 1.000000, 1.000000;;, + 50;3; 1.000000, 1.000000, 1.000000;;, + 51;3; 1.000000, 1.000000, 1.000000;;, + 52;3; 1.000000, 1.000000, 1.000000;;, + 53;3; 1.000000, 1.000000, 1.000000;;, + 54;3; 1.000000, 1.000000, 1.000000;;, + 55;3; 1.000000, 1.000000, 1.000000;;, + 56;3; 1.000000, 1.000000, 1.000000;;, + 57;3; 1.000000, 1.000000, 1.000000;;, + 58;3; 1.000000, 1.000000, 1.000000;;, + 59;3; 1.000000, 1.000000, 1.000000;;, + 60;3; 1.000000, 1.000000, 1.000000;;, + 61;3; 1.000000, 1.000000, 1.000000;;, + 62;3; 1.000000, 1.000000, 1.000000;;, + 63;3; 1.000000, 1.000000, 1.000000;;, + 64;3; 1.000000, 1.000000, 1.000000;;, + 65;3; 1.000000, 1.000000, 1.000000;;, + 66;3; 1.000000, 1.000000, 1.000000;;, + 67;3; 1.000000, 1.000000, 1.000000;;, + 68;3; 1.000000, 1.000000, 1.000000;;, + 69;3; 1.000000, 1.000000, 1.000000;;, + 70;3; 1.000000, 1.000000, 1.000000;;, + 71;3; 1.000000, 1.000000, 1.000000;;, + 72;3; 1.000000, 1.000000, 1.000000;;, + 73;3; 1.000000, 1.000000, 1.000000;;, + 74;3; 1.000000, 1.000000, 1.000000;;, + 75;3; 1.000000, 1.000000, 1.000000;;, + 76;3; 1.000000, 1.000000, 1.000000;;, + 77;3; 1.000000, 1.000000, 1.000000;;, + 78;3; 1.000000, 1.000000, 1.000000;;, + 79;3; 1.000000, 1.000000, 1.000000;;, + 80;3; 1.000000, 1.000000, 1.000000;;, + 81;3; 1.000000, 1.000000, 1.000000;;, + 82;3; 1.000000, 1.000000, 1.000000;;, + 83;3; 1.000000, 1.000000, 1.000000;;, + 84;3; 1.000000, 1.000000, 1.000000;;, + 85;3; 1.000000, 1.000000, 1.000000;;, + 86;3; 1.000000, 1.000000, 1.000000;;, + 87;3; 1.000000, 1.000000, 1.000000;;, + 88;3; 1.000000, 1.000000, 1.000000;;, + 89;3; 1.000000, 1.000000, 1.000000;;, + 90;3; 1.000000, 1.000000, 1.000000;;, + 91;3; 1.000000, 1.000000, 1.000000;;, + 92;3; 1.000000, 1.000000, 1.000000;;, + 93;3; 1.000000, 1.000000, 1.000000;;, + 94;3; 1.000000, 1.000000, 1.000000;;, + 95;3; 1.000000, 1.000000, 1.000000;;, + 96;3; 1.000000, 1.000000, 1.000000;;, + 97;3; 1.000000, 1.000000, 1.000000;;, + 98;3; 1.000000, 1.000000, 1.000000;;, + 99;3; 1.000000, 1.000000, 1.000000;;, + 100;3; 1.000000, 1.000000, 1.000000;;, + 101;3; 1.000000, 1.000000, 1.000000;;, + 102;3; 1.000000, 1.000000, 1.000000;;, + 103;3; 1.000000, 1.000000, 1.000000;;, + 104;3; 1.000000, 1.000000, 1.000000;;, + 105;3; 1.000000, 1.000000, 1.000000;;, + 106;3; 1.000000, 1.000000, 1.000000;;, + 107;3; 1.000000, 1.000000, 1.000000;;, + 108;3; 1.000000, 1.000000, 1.000000;;, + 109;3; 1.000000, 1.000000, 0.999999;;, + 110;3; 1.000000, 1.000000, 1.000000;;, + 111;3; 1.000000, 1.000000, 1.000000;;, + 112;3; 1.000000, 1.000000, 1.000000;;, + 113;3; 1.000000, 1.000000, 1.000000;;, + 114;3; 1.000000, 1.000000, 1.000000;;, + 115;3; 1.000000, 1.000000, 1.000000;;, + 116;3; 1.000000, 1.000000, 1.000000;;, + 117;3; 1.000000, 1.000000, 1.000000;;, + 118;3; 1.000000, 1.000000, 1.000000;;, + 119;3; 1.000000, 1.000000, 1.000000;;, + 120;3; 1.000000, 1.000000, 1.000000;;, + 121;3; 1.000000, 1.000000, 1.000000;;, + 122;3; 1.000000, 1.000000, 1.000000;;, + 123;3; 1.000000, 1.000000, 1.000000;;, + 124;3; 1.000000, 1.000000, 1.000000;;, + 125;3; 1.000000, 1.000000, 1.000000;;, + 126;3; 1.000000, 1.000000, 1.000000;;, + 127;3; 1.000000, 1.000000, 1.000000;;, + 128;3; 1.000000, 1.000000, 1.000000;;, + 129;3; 1.000000, 1.000000, 1.000000;;, + 130;3; 1.000000, 1.000000, 1.000000;;, + 131;3; 1.000000, 1.000000, 1.000000;;, + 132;3; 1.000000, 1.000000, 1.000000;;, + 133;3; 1.000000, 1.000000, 0.999999;;, + 134;3; 1.000000, 1.000000, 1.000000;;, + 135;3; 1.000000, 1.000000, 1.000000;;, + 136;3; 1.000000, 1.000000, 1.000000;;, + 137;3; 1.000000, 1.000000, 1.000000;;, + 138;3; 1.000000, 1.000000, 1.000000;;, + 139;3; 1.000000, 1.000000, 1.000000;;, + 140;3; 1.000000, 1.000000, 1.000000;;, + 141;3; 1.000000, 1.000000, 1.000000;;, + 142;3; 1.000000, 1.000000, 1.000000;;, + 143;3; 1.000000, 1.000000, 1.000000;;, + 144;3; 1.000000, 1.000000, 1.000000;;, + 145;3; 1.000000, 1.000000, 1.000000;;, + 146;3; 1.000000, 1.000000, 1.000000;;, + 147;3; 1.000000, 1.000000, 1.000000;;, + 148;3; 1.000000, 1.000000, 1.000000;;, + 149;3; 1.000000, 1.000000, 1.000000;;, + 150;3; 1.000000, 1.000000, 1.000000;;, + 151;3; 1.000000, 1.000000, 1.000000;;, + 152;3; 1.000000, 1.000000, 1.000000;;, + 153;3; 1.000000, 1.000000, 1.000000;;, + 154;3; 1.000000, 1.000000, 1.000000;;, + 155;3; 1.000000, 1.000000, 1.000000;;, + 156;3; 1.000000, 1.000000, 1.000000;;, + 157;3; 1.000000, 1.000000, 1.000000;;, + 158;3; 1.000000, 1.000000, 1.000000;;, + 159;3; 1.000000, 1.000000, 0.999999;;, + 160;3; 1.000000, 1.000000, 1.000000;;, + 161;3; 1.000000, 1.000000, 1.000000;;, + 162;3; 1.000000, 1.000000, 1.000000;;, + 163;3; 1.000000, 1.000000, 1.000000;;, + 164;3; 1.000000, 1.000000, 1.000000;;, + 165;3; 1.000000, 1.000000, 1.000000;;, + 166;3; 1.000000, 1.000000, 1.000000;;, + 167;3; 1.000000, 1.000000, 1.000000;;, + 168;3; 1.000000, 1.000000, 1.000000;;, + 169;3; 1.000000, 1.000000, 1.000000;;, + 170;3; 1.000000, 1.000000, 1.000000;;, + 171;3; 1.000000, 1.000000, 1.000000;;, + 172;3; 1.000000, 1.000000, 1.000000;;, + 173;3; 1.000000, 1.000000, 1.000000;;, + 174;3; 1.000000, 1.000000, 1.000000;;, + 175;3; 1.000000, 1.000000, 1.000000;;, + 176;3; 1.000000, 1.000000, 1.000000;;, + 177;3; 1.000000, 1.000000, 1.000000;;, + 178;3; 1.000000, 1.000000, 1.000000;;, + 179;3; 1.000000, 1.000000, 1.000000;;, + 180;3; 1.000000, 1.000000, 1.000000;;, + 181;3; 1.000000, 1.000000, 1.000000;;, + 182;3; 1.000000, 1.000000, 1.000000;;, + 183;3; 1.000000, 1.000000, 1.000000;;, + 184;3; 1.000000, 1.000000, 1.000000;;, + 185;3; 1.000000, 1.000000, 1.000000;;, + 186;3; 1.000000, 1.000000, 1.000000;;, + 187;3; 1.000000, 1.000000, 1.000000;;, + 188;3; 1.000000, 1.000000, 1.000000;;, + 189;3; 1.000000, 1.000000, 1.000000;;, + 190;3; 1.000000, 1.000000, 1.000000;;, + 191;3; 1.000000, 1.000000, 1.000000;;, + 192;3; 1.000000, 1.000000, 1.000000;;, + 193;3; 1.000000, 1.000000, 1.000000;;, + 194;3; 1.000000, 1.000000, 1.000000;;, + 195;3; 1.000000, 1.000000, 1.000000;;, + 196;3; 1.000000, 1.000000, 1.000000;;, + 197;3; 1.000000, 1.000000, 1.000000;;, + 198;3; 1.000000, 1.000000, 1.000000;;, + 199;3; 1.000000, 1.000000, 1.000000;;, + 200;3; 1.000000, 1.000000, 1.000000;;, + 201;3; 1.000000, 1.000000, 1.000000;;, + 202;3; 1.000000, 1.000000, 1.000000;;, + 203;3; 1.000000, 1.000000, 1.000000;;, + 204;3; 1.000000, 1.000000, 1.000000;;, + 205;3; 1.000000, 1.000000, 1.000000;;, + 206;3; 1.000000, 1.000000, 1.000000;;, + 207;3; 1.000000, 1.000000, 1.000000;;, + 208;3; 1.000000, 1.000000, 1.000000;;, + 209;3; 1.000000, 1.000000, 1.000000;;, + 210;3; 1.000000, 1.000000, 1.000000;;, + 211;3; 1.000000, 1.000000, 1.000000;;, + 212;3; 1.000000, 1.000000, 1.000000;;, + 213;3; 1.000000, 1.000000, 1.000000;;, + 214;3; 1.000000, 1.000000, 1.000000;;, + 215;3; 1.000000, 1.000000, 1.000000;;, + 216;3; 1.000000, 1.000000, 1.000000;;, + 217;3; 1.000000, 1.000000, 1.000000;;, + 218;3; 1.000000, 1.000000, 1.000000;;, + 219;3; 1.000000, 1.000000, 1.000000;;, + 220;3; 1.000000, 1.000000, 1.000000;;; + } + } + Animation { + {Player} + AnimationKey { //Position + 2; + 221; + 0;3; 0.000000, 0.000000, 0.000000;;, + 1;3; 0.000000, 0.000000, 0.000000;;, + 2;3; 0.000000, 0.000000, 0.000000;;, + 3;3; 0.000000, 0.000000, 0.000000;;, + 4;3; 0.000000, 0.000000, 0.000000;;, + 5;3; 0.000000, 0.000000, 0.000000;;, + 6;3; 0.000000, 0.000000, 0.000000;;, + 7;3; 0.000000, 0.000000, 0.000000;;, + 8;3; 0.000000, 0.000000, 0.000000;;, + 9;3; 0.000000, 0.000000, 0.000000;;, + 10;3; 0.000000, 0.000000, 0.000000;;, + 11;3; 0.000000, 0.000000, 0.000000;;, + 12;3; 0.000000, 0.000000, 0.000000;;, + 13;3; 0.000000, 0.000000, 0.000000;;, + 14;3; 0.000000, 0.000000, 0.000000;;, + 15;3; 0.000000, 0.000000, 0.000000;;, + 16;3; 0.000000, 0.000000, 0.000000;;, + 17;3; 0.000000, 0.000000, 0.000000;;, + 18;3; 0.000000, 0.000000, 0.000000;;, + 19;3; 0.000000, 0.000000, 0.000000;;, + 20;3; 0.000000, 0.000000, 0.000000;;, + 21;3; 0.000000, 0.000000, 0.000000;;, + 22;3; 0.000000, 0.000000, 0.000000;;, + 23;3; 0.000000, 0.000000, 0.000000;;, + 24;3; 0.000000, 0.000000, 0.000000;;, + 25;3; 0.000000, 0.000000, 0.000000;;, + 26;3; 0.000000, 0.000000, 0.000000;;, + 27;3; 0.000000, 0.000000, 0.000000;;, + 28;3; 0.000000, 0.000000, 0.000000;;, + 29;3; 0.000000, 0.000000, 0.000000;;, + 30;3; 0.000000, 0.000000, 0.000000;;, + 31;3; 0.000000, 0.000000, 0.000000;;, + 32;3; 0.000000, 0.000000, 0.000000;;, + 33;3; 0.000000, 0.000000, 0.000000;;, + 34;3; 0.000000, 0.000000, 0.000000;;, + 35;3; 0.000000, 0.000000, 0.000000;;, + 36;3; 0.000000, 0.000000, 0.000000;;, + 37;3; 0.000000, 0.000000, 0.000000;;, + 38;3; 0.000000, 0.000000, 0.000000;;, + 39;3; 0.000000, 0.000000, 0.000000;;, + 40;3; 0.000000, 0.000000, 0.000000;;, + 41;3; 0.000000, 0.000000, 0.000000;;, + 42;3; 0.000000, 0.000000, 0.000000;;, + 43;3; 0.000000, 0.000000, 0.000000;;, + 44;3; 0.000000, 0.000000, 0.000000;;, + 45;3; 0.000000, 0.000000, 0.000000;;, + 46;3; 0.000000, 0.000000, 0.000000;;, + 47;3; 0.000000, 0.000000, 0.000000;;, + 48;3; 0.000000, 0.000000, 0.000000;;, + 49;3; 0.000000, 0.000000, 0.000000;;, + 50;3; 0.000000, 0.000000, 0.000000;;, + 51;3; 0.000000, 0.000000, 0.000000;;, + 52;3; 0.000000, 0.000000, 0.000000;;, + 53;3; 0.000000, 0.000000, 0.000000;;, + 54;3; 0.000000, 0.000000, 0.000000;;, + 55;3; 0.000000, 0.000000, 0.000000;;, + 56;3; 0.000000, 0.000000, 0.000000;;, + 57;3; 0.000000, 0.000000, 0.000000;;, + 58;3; 0.000000, 0.000000, 0.000000;;, + 59;3; 0.000000, 0.000000, 0.000000;;, + 60;3; 0.000000, 0.000000, 0.000000;;, + 61;3; 0.000000, 0.000000, 0.000000;;, + 62;3; 0.000000, 0.000000, 0.000000;;, + 63;3; 0.000000, 0.000000, 0.000000;;, + 64;3; 0.000000, 0.000000, 0.000000;;, + 65;3; 0.000000, 0.000000, 0.000000;;, + 66;3; 0.000000, 0.000000, 0.000000;;, + 67;3; 0.000000, 0.000000, 0.000000;;, + 68;3; 0.000000, 0.000000, 0.000000;;, + 69;3; 0.000000, 0.000000, 0.000000;;, + 70;3; 0.000000, 0.000000, 0.000000;;, + 71;3; 0.000000, 0.000000, 0.000000;;, + 72;3; 0.000000, 0.000000, 0.000000;;, + 73;3; 0.000000, 0.000000, 0.000000;;, + 74;3; 0.000000, 0.000000, 0.000000;;, + 75;3; 0.000000, 0.000000, 0.000000;;, + 76;3; 0.000000, 0.000000, 0.000000;;, + 77;3; 0.000000, 0.000000, 0.000000;;, + 78;3; 0.000000, 0.000000, 0.000000;;, + 79;3; 0.000000, 0.000000, 0.000000;;, + 80;3; 0.000000, 0.000000, 0.000000;;, + 81;3; 0.000000, 0.000000, 0.000000;;, + 82;3; 0.000000, 0.000000, 0.000000;;, + 83;3; 0.000000, 0.000000, 0.000000;;, + 84;3; 0.000000, 0.000000, 0.000000;;, + 85;3; 0.000000, 0.000000, 0.000000;;, + 86;3; 0.000000, 0.000000, 0.000000;;, + 87;3; 0.000000, 0.000000, 0.000000;;, + 88;3; 0.000000, 0.000000, 0.000000;;, + 89;3; 0.000000, 0.000000, 0.000000;;, + 90;3; 0.000000, 0.000000, 0.000000;;, + 91;3; 0.000000, 0.000000, 0.000000;;, + 92;3; 0.000000, 0.000000, 0.000000;;, + 93;3; 0.000000, 0.000000, 0.000000;;, + 94;3; 0.000000, 0.000000, 0.000000;;, + 95;3; 0.000000, 0.000000, 0.000000;;, + 96;3; 0.000000, 0.000000, 0.000000;;, + 97;3; 0.000000, 0.000000, 0.000000;;, + 98;3; 0.000000, 0.000000, 0.000000;;, + 99;3; 0.000000, 0.000000, 0.000000;;, + 100;3; 0.000000, 0.000000, 0.000000;;, + 101;3; 0.000000, 0.000000, 0.000000;;, + 102;3; 0.000000, 0.000000, 0.000000;;, + 103;3; 0.000000, 0.000000, 0.000000;;, + 104;3; 0.000000, 0.000000, 0.000000;;, + 105;3; 0.000000, 0.000000, 0.000000;;, + 106;3; 0.000000, 0.000000, 0.000000;;, + 107;3; 0.000000, 0.000000, 0.000000;;, + 108;3; 0.000000, 0.000000, 0.000000;;, + 109;3; 0.000000, 0.000000, 0.000000;;, + 110;3; 0.000000, 0.000000, 0.000000;;, + 111;3; 0.000000, 0.000000, 0.000000;;, + 112;3; 0.000000, 0.000000, 0.000000;;, + 113;3; 0.000000, 0.000000, 0.000000;;, + 114;3; 0.000000, 0.000000, 0.000000;;, + 115;3; 0.000000, 0.000000, 0.000000;;, + 116;3; 0.000000, 0.000000, 0.000000;;, + 117;3; 0.000000, 0.000000, 0.000000;;, + 118;3; 0.000000, 0.000000, 0.000000;;, + 119;3; 0.000000, 0.000000, 0.000000;;, + 120;3; 0.000000, 0.000000, 0.000000;;, + 121;3; 0.000000, 0.000000, 0.000000;;, + 122;3; 0.000000, 0.000000, 0.000000;;, + 123;3; 0.000000, 0.000000, 0.000000;;, + 124;3; 0.000000, 0.000000, 0.000000;;, + 125;3; 0.000000, 0.000000, 0.000000;;, + 126;3; 0.000000, 0.000000, 0.000000;;, + 127;3; 0.000000, 0.000000, 0.000000;;, + 128;3; 0.000000, 0.000000, 0.000000;;, + 129;3; 0.000000, 0.000000, 0.000000;;, + 130;3; 0.000000, 0.000000, 0.000000;;, + 131;3; 0.000000, 0.000000, 0.000000;;, + 132;3; 0.000000, 0.000000, 0.000000;;, + 133;3; 0.000000, 0.000000, 0.000000;;, + 134;3; 0.000000, 0.000000, 0.000000;;, + 135;3; 0.000000, 0.000000, 0.000000;;, + 136;3; 0.000000, 0.000000, 0.000000;;, + 137;3; 0.000000, 0.000000, 0.000000;;, + 138;3; 0.000000, 0.000000, 0.000000;;, + 139;3; 0.000000, 0.000000, 0.000000;;, + 140;3; 0.000000, 0.000000, 0.000000;;, + 141;3; 0.000000, 0.000000, 0.000000;;, + 142;3; 0.000000, 0.000000, 0.000000;;, + 143;3; 0.000000, 0.000000, 0.000000;;, + 144;3; 0.000000, 0.000000, 0.000000;;, + 145;3; 0.000000, 0.000000, 0.000000;;, + 146;3; 0.000000, 0.000000, 0.000000;;, + 147;3; 0.000000, 0.000000, 0.000000;;, + 148;3; 0.000000, 0.000000, 0.000000;;, + 149;3; 0.000000, 0.000000, 0.000000;;, + 150;3; 0.000000, 0.000000, 0.000000;;, + 151;3; 0.000000, 0.000000, 0.000000;;, + 152;3; 0.000000, 0.000000, 0.000000;;, + 153;3; 0.000000, 0.000000, 0.000000;;, + 154;3; 0.000000, 0.000000, 0.000000;;, + 155;3; 0.000000, 0.000000, 0.000000;;, + 156;3; 0.000000, 0.000000, 0.000000;;, + 157;3; 0.000000, 0.000000, 0.000000;;, + 158;3; 0.000000, 0.000000, 0.000000;;, + 159;3; 0.000000, 0.000000, 0.000000;;, + 160;3; 0.000000, 0.000000, 0.000000;;, + 161;3; 0.000000, 0.000000, 0.000000;;, + 162;3; 0.000000, 0.000000, 0.000000;;, + 163;3; 0.000000, 0.000000, 0.000000;;, + 164;3; 0.000000, 0.000000, 0.000000;;, + 165;3; 0.000000, 0.000000, 0.000000;;, + 166;3; 0.000000, 0.000000, 0.000000;;, + 167;3; 0.000000, 0.000000, 0.000000;;, + 168;3; 0.000000, 0.000000, 0.000000;;, + 169;3; 0.000000, 0.000000, 0.000000;;, + 170;3; 0.000000, 0.000000, 0.000000;;, + 171;3; 0.000000, 0.000000, 0.000000;;, + 172;3; 0.000000, 0.000000, 0.000000;;, + 173;3; 0.000000, 0.000000, 0.000000;;, + 174;3; 0.000000, 0.000000, 0.000000;;, + 175;3; 0.000000, 0.000000, 0.000000;;, + 176;3; 0.000000, 0.000000, 0.000000;;, + 177;3; 0.000000, 0.000000, 0.000000;;, + 178;3; 0.000000, 0.000000, 0.000000;;, + 179;3; 0.000000, 0.000000, 0.000000;;, + 180;3; 0.000000, 0.000000, 0.000000;;, + 181;3; 0.000000, 0.000000, 0.000000;;, + 182;3; 0.000000, 0.000000, 0.000000;;, + 183;3; 0.000000, 0.000000, 0.000000;;, + 184;3; 0.000000, 0.000000, 0.000000;;, + 185;3; 0.000000, 0.000000, 0.000000;;, + 186;3; 0.000000, 0.000000, 0.000000;;, + 187;3; 0.000000, 0.000000, 0.000000;;, + 188;3; 0.000000, 0.000000, 0.000000;;, + 189;3; 0.000000, 0.000000, 0.000000;;, + 190;3; 0.000000, 0.000000, 0.000000;;, + 191;3; 0.000000, 0.000000, 0.000000;;, + 192;3; 0.000000, 0.000000, 0.000000;;, + 193;3; 0.000000, 0.000000, 0.000000;;, + 194;3; 0.000000, 0.000000, 0.000000;;, + 195;3; 0.000000, 0.000000, 0.000000;;, + 196;3; 0.000000, 0.000000, 0.000000;;, + 197;3; 0.000000, 0.000000, 0.000000;;, + 198;3; 0.000000, 0.000000, 0.000000;;, + 199;3; 0.000000, 0.000000, 0.000000;;, + 200;3; 0.000000, 0.000000, 0.000000;;, + 201;3; 0.000000, 0.000000, 0.000000;;, + 202;3; 0.000000, 0.000000, 0.000000;;, + 203;3; 0.000000, 0.000000, 0.000000;;, + 204;3; 0.000000, 0.000000, 0.000000;;, + 205;3; 0.000000, 0.000000, 0.000000;;, + 206;3; 0.000000, 0.000000, 0.000000;;, + 207;3; 0.000000, 0.000000, 0.000000;;, + 208;3; 0.000000, 0.000000, 0.000000;;, + 209;3; 0.000000, 0.000000, 0.000000;;, + 210;3; 0.000000, 0.000000, 0.000000;;, + 211;3; 0.000000, 0.000000, 0.000000;;, + 212;3; 0.000000, 0.000000, 0.000000;;, + 213;3; 0.000000, 0.000000, 0.000000;;, + 214;3; 0.000000, 0.000000, 0.000000;;, + 215;3; 0.000000, 0.000000, 0.000000;;, + 216;3; 0.000000, 0.000000, 0.000000;;, + 217;3; 0.000000, 0.000000, 0.000000;;, + 218;3; 0.000000, 0.000000, 0.000000;;, + 219;3; 0.000000, 0.000000, 0.000000;;, + 220;3; 0.000000, 0.000000, 0.000000;;; + } + AnimationKey { //Rotation + 0; + 221; + 0;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 1;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 2;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 3;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 4;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 5;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 6;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 7;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 8;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 9;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 10;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 11;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 12;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 13;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 14;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 15;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 16;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 17;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 18;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 19;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 20;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 21;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 22;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 23;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 24;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 25;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 26;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 27;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 28;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 29;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 30;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 31;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 32;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 33;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 34;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 35;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 36;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 37;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 38;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 39;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 40;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 41;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 42;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 43;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 44;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 45;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 46;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 47;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 48;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 49;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 50;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 51;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 52;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 53;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 54;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 55;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 56;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 57;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 58;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 59;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 60;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 61;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 62;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 63;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 64;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 65;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 66;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 67;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 68;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 69;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 70;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 71;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 72;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 73;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 74;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 75;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 76;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 77;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 78;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 79;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 80;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 81;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 82;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 83;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 84;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 85;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 86;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 87;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 88;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 89;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 90;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 91;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 92;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 93;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 94;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 95;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 96;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 97;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 98;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 99;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 100;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 101;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 102;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 103;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 104;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 105;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 106;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 107;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 108;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 109;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 110;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 111;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 112;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 113;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 114;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 115;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 116;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 117;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 118;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 119;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 120;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 121;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 122;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 123;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 124;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 125;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 126;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 127;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 128;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 129;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 130;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 131;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 132;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 133;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 134;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 135;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 136;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 137;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 138;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 139;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 140;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 141;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 142;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 143;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 144;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 145;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 146;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 147;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 148;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 149;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 150;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 151;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 152;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 153;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 154;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 155;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 156;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 157;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 158;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 159;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 160;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 161;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 162;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 163;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 164;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 165;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 166;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 167;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 168;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 169;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 170;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 171;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 172;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 173;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 174;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 175;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 176;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 177;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 178;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 179;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 180;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 181;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 182;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 183;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 184;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 185;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 186;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 187;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 188;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 189;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 190;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 191;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 192;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 193;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 194;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 195;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 196;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 197;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 198;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 199;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 200;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 201;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 202;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 203;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 204;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 205;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 206;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 207;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 208;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 209;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 210;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 211;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 212;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 213;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 214;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 215;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 216;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 217;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 218;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 219;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 220;4; -1.000000, 0.000000, 0.000000, 0.000000;;; + } + AnimationKey { //Scale + 1; + 221; + 0;3; 1.000000, 1.000000, 1.000000;;, + 1;3; 1.000000, 1.000000, 1.000000;;, + 2;3; 1.000000, 1.000000, 1.000000;;, + 3;3; 1.000000, 1.000000, 1.000000;;, + 4;3; 1.000000, 1.000000, 1.000000;;, + 5;3; 1.000000, 1.000000, 1.000000;;, + 6;3; 1.000000, 1.000000, 1.000000;;, + 7;3; 1.000000, 1.000000, 1.000000;;, + 8;3; 1.000000, 1.000000, 1.000000;;, + 9;3; 1.000000, 1.000000, 1.000000;;, + 10;3; 1.000000, 1.000000, 1.000000;;, + 11;3; 1.000000, 1.000000, 1.000000;;, + 12;3; 1.000000, 1.000000, 1.000000;;, + 13;3; 1.000000, 1.000000, 1.000000;;, + 14;3; 1.000000, 1.000000, 1.000000;;, + 15;3; 1.000000, 1.000000, 1.000000;;, + 16;3; 1.000000, 1.000000, 1.000000;;, + 17;3; 1.000000, 1.000000, 1.000000;;, + 18;3; 1.000000, 1.000000, 1.000000;;, + 19;3; 1.000000, 1.000000, 1.000000;;, + 20;3; 1.000000, 1.000000, 1.000000;;, + 21;3; 1.000000, 1.000000, 1.000000;;, + 22;3; 1.000000, 1.000000, 1.000000;;, + 23;3; 1.000000, 1.000000, 1.000000;;, + 24;3; 1.000000, 1.000000, 1.000000;;, + 25;3; 1.000000, 1.000000, 1.000000;;, + 26;3; 1.000000, 1.000000, 1.000000;;, + 27;3; 1.000000, 1.000000, 1.000000;;, + 28;3; 1.000000, 1.000000, 1.000000;;, + 29;3; 1.000000, 1.000000, 1.000000;;, + 30;3; 1.000000, 1.000000, 1.000000;;, + 31;3; 1.000000, 1.000000, 1.000000;;, + 32;3; 1.000000, 1.000000, 1.000000;;, + 33;3; 1.000000, 1.000000, 1.000000;;, + 34;3; 1.000000, 1.000000, 1.000000;;, + 35;3; 1.000000, 1.000000, 1.000000;;, + 36;3; 1.000000, 1.000000, 1.000000;;, + 37;3; 1.000000, 1.000000, 1.000000;;, + 38;3; 1.000000, 1.000000, 1.000000;;, + 39;3; 1.000000, 1.000000, 1.000000;;, + 40;3; 1.000000, 1.000000, 1.000000;;, + 41;3; 1.000000, 1.000000, 1.000000;;, + 42;3; 1.000000, 1.000000, 1.000000;;, + 43;3; 1.000000, 1.000000, 1.000000;;, + 44;3; 1.000000, 1.000000, 1.000000;;, + 45;3; 1.000000, 1.000000, 1.000000;;, + 46;3; 1.000000, 1.000000, 1.000000;;, + 47;3; 1.000000, 1.000000, 1.000000;;, + 48;3; 1.000000, 1.000000, 1.000000;;, + 49;3; 1.000000, 1.000000, 1.000000;;, + 50;3; 1.000000, 1.000000, 1.000000;;, + 51;3; 1.000000, 1.000000, 1.000000;;, + 52;3; 1.000000, 1.000000, 1.000000;;, + 53;3; 1.000000, 1.000000, 1.000000;;, + 54;3; 1.000000, 1.000000, 1.000000;;, + 55;3; 1.000000, 1.000000, 1.000000;;, + 56;3; 1.000000, 1.000000, 1.000000;;, + 57;3; 1.000000, 1.000000, 1.000000;;, + 58;3; 1.000000, 1.000000, 1.000000;;, + 59;3; 1.000000, 1.000000, 1.000000;;, + 60;3; 1.000000, 1.000000, 1.000000;;, + 61;3; 1.000000, 1.000000, 1.000000;;, + 62;3; 1.000000, 1.000000, 1.000000;;, + 63;3; 1.000000, 1.000000, 1.000000;;, + 64;3; 1.000000, 1.000000, 1.000000;;, + 65;3; 1.000000, 1.000000, 1.000000;;, + 66;3; 1.000000, 1.000000, 1.000000;;, + 67;3; 1.000000, 1.000000, 1.000000;;, + 68;3; 1.000000, 1.000000, 1.000000;;, + 69;3; 1.000000, 1.000000, 1.000000;;, + 70;3; 1.000000, 1.000000, 1.000000;;, + 71;3; 1.000000, 1.000000, 1.000000;;, + 72;3; 1.000000, 1.000000, 1.000000;;, + 73;3; 1.000000, 1.000000, 1.000000;;, + 74;3; 1.000000, 1.000000, 1.000000;;, + 75;3; 1.000000, 1.000000, 1.000000;;, + 76;3; 1.000000, 1.000000, 1.000000;;, + 77;3; 1.000000, 1.000000, 1.000000;;, + 78;3; 1.000000, 1.000000, 1.000000;;, + 79;3; 1.000000, 1.000000, 1.000000;;, + 80;3; 1.000000, 1.000000, 1.000000;;, + 81;3; 1.000000, 1.000000, 1.000000;;, + 82;3; 1.000000, 1.000000, 1.000000;;, + 83;3; 1.000000, 1.000000, 1.000000;;, + 84;3; 1.000000, 1.000000, 1.000000;;, + 85;3; 1.000000, 1.000000, 1.000000;;, + 86;3; 1.000000, 1.000000, 1.000000;;, + 87;3; 1.000000, 1.000000, 1.000000;;, + 88;3; 1.000000, 1.000000, 1.000000;;, + 89;3; 1.000000, 1.000000, 1.000000;;, + 90;3; 1.000000, 1.000000, 1.000000;;, + 91;3; 1.000000, 1.000000, 1.000000;;, + 92;3; 1.000000, 1.000000, 1.000000;;, + 93;3; 1.000000, 1.000000, 1.000000;;, + 94;3; 1.000000, 1.000000, 1.000000;;, + 95;3; 1.000000, 1.000000, 1.000000;;, + 96;3; 1.000000, 1.000000, 1.000000;;, + 97;3; 1.000000, 1.000000, 1.000000;;, + 98;3; 1.000000, 1.000000, 1.000000;;, + 99;3; 1.000000, 1.000000, 1.000000;;, + 100;3; 1.000000, 1.000000, 1.000000;;, + 101;3; 1.000000, 1.000000, 1.000000;;, + 102;3; 1.000000, 1.000000, 1.000000;;, + 103;3; 1.000000, 1.000000, 1.000000;;, + 104;3; 1.000000, 1.000000, 1.000000;;, + 105;3; 1.000000, 1.000000, 1.000000;;, + 106;3; 1.000000, 1.000000, 1.000000;;, + 107;3; 1.000000, 1.000000, 1.000000;;, + 108;3; 1.000000, 1.000000, 1.000000;;, + 109;3; 1.000000, 1.000000, 1.000000;;, + 110;3; 1.000000, 1.000000, 1.000000;;, + 111;3; 1.000000, 1.000000, 1.000000;;, + 112;3; 1.000000, 1.000000, 1.000000;;, + 113;3; 1.000000, 1.000000, 1.000000;;, + 114;3; 1.000000, 1.000000, 1.000000;;, + 115;3; 1.000000, 1.000000, 1.000000;;, + 116;3; 1.000000, 1.000000, 1.000000;;, + 117;3; 1.000000, 1.000000, 1.000000;;, + 118;3; 1.000000, 1.000000, 1.000000;;, + 119;3; 1.000000, 1.000000, 1.000000;;, + 120;3; 1.000000, 1.000000, 1.000000;;, + 121;3; 1.000000, 1.000000, 1.000000;;, + 122;3; 1.000000, 1.000000, 1.000000;;, + 123;3; 1.000000, 1.000000, 1.000000;;, + 124;3; 1.000000, 1.000000, 1.000000;;, + 125;3; 1.000000, 1.000000, 1.000000;;, + 126;3; 1.000000, 1.000000, 1.000000;;, + 127;3; 1.000000, 1.000000, 1.000000;;, + 128;3; 1.000000, 1.000000, 1.000000;;, + 129;3; 1.000000, 1.000000, 1.000000;;, + 130;3; 1.000000, 1.000000, 1.000000;;, + 131;3; 1.000000, 1.000000, 1.000000;;, + 132;3; 1.000000, 1.000000, 1.000000;;, + 133;3; 1.000000, 1.000000, 1.000000;;, + 134;3; 1.000000, 1.000000, 1.000000;;, + 135;3; 1.000000, 1.000000, 1.000000;;, + 136;3; 1.000000, 1.000000, 1.000000;;, + 137;3; 1.000000, 1.000000, 1.000000;;, + 138;3; 1.000000, 1.000000, 1.000000;;, + 139;3; 1.000000, 1.000000, 1.000000;;, + 140;3; 1.000000, 1.000000, 1.000000;;, + 141;3; 1.000000, 1.000000, 1.000000;;, + 142;3; 1.000000, 1.000000, 1.000000;;, + 143;3; 1.000000, 1.000000, 1.000000;;, + 144;3; 1.000000, 1.000000, 1.000000;;, + 145;3; 1.000000, 1.000000, 1.000000;;, + 146;3; 1.000000, 1.000000, 1.000000;;, + 147;3; 1.000000, 1.000000, 1.000000;;, + 148;3; 1.000000, 1.000000, 1.000000;;, + 149;3; 1.000000, 1.000000, 1.000000;;, + 150;3; 1.000000, 1.000000, 1.000000;;, + 151;3; 1.000000, 1.000000, 1.000000;;, + 152;3; 1.000000, 1.000000, 1.000000;;, + 153;3; 1.000000, 1.000000, 1.000000;;, + 154;3; 1.000000, 1.000000, 1.000000;;, + 155;3; 1.000000, 1.000000, 1.000000;;, + 156;3; 1.000000, 1.000000, 1.000000;;, + 157;3; 1.000000, 1.000000, 1.000000;;, + 158;3; 1.000000, 1.000000, 1.000000;;, + 159;3; 1.000000, 1.000000, 1.000000;;, + 160;3; 1.000000, 1.000000, 1.000000;;, + 161;3; 1.000000, 1.000000, 1.000000;;, + 162;3; 1.000000, 1.000000, 1.000000;;, + 163;3; 1.000000, 1.000000, 1.000000;;, + 164;3; 1.000000, 1.000000, 1.000000;;, + 165;3; 1.000000, 1.000000, 1.000000;;, + 166;3; 1.000000, 1.000000, 1.000000;;, + 167;3; 1.000000, 1.000000, 1.000000;;, + 168;3; 1.000000, 1.000000, 1.000000;;, + 169;3; 1.000000, 1.000000, 1.000000;;, + 170;3; 1.000000, 1.000000, 1.000000;;, + 171;3; 1.000000, 1.000000, 1.000000;;, + 172;3; 1.000000, 1.000000, 1.000000;;, + 173;3; 1.000000, 1.000000, 1.000000;;, + 174;3; 1.000000, 1.000000, 1.000000;;, + 175;3; 1.000000, 1.000000, 1.000000;;, + 176;3; 1.000000, 1.000000, 1.000000;;, + 177;3; 1.000000, 1.000000, 1.000000;;, + 178;3; 1.000000, 1.000000, 1.000000;;, + 179;3; 1.000000, 1.000000, 1.000000;;, + 180;3; 1.000000, 1.000000, 1.000000;;, + 181;3; 1.000000, 1.000000, 1.000000;;, + 182;3; 1.000000, 1.000000, 1.000000;;, + 183;3; 1.000000, 1.000000, 1.000000;;, + 184;3; 1.000000, 1.000000, 1.000000;;, + 185;3; 1.000000, 1.000000, 1.000000;;, + 186;3; 1.000000, 1.000000, 1.000000;;, + 187;3; 1.000000, 1.000000, 1.000000;;, + 188;3; 1.000000, 1.000000, 1.000000;;, + 189;3; 1.000000, 1.000000, 1.000000;;, + 190;3; 1.000000, 1.000000, 1.000000;;, + 191;3; 1.000000, 1.000000, 1.000000;;, + 192;3; 1.000000, 1.000000, 1.000000;;, + 193;3; 1.000000, 1.000000, 1.000000;;, + 194;3; 1.000000, 1.000000, 1.000000;;, + 195;3; 1.000000, 1.000000, 1.000000;;, + 196;3; 1.000000, 1.000000, 1.000000;;, + 197;3; 1.000000, 1.000000, 1.000000;;, + 198;3; 1.000000, 1.000000, 1.000000;;, + 199;3; 1.000000, 1.000000, 1.000000;;, + 200;3; 1.000000, 1.000000, 1.000000;;, + 201;3; 1.000000, 1.000000, 1.000000;;, + 202;3; 1.000000, 1.000000, 1.000000;;, + 203;3; 1.000000, 1.000000, 1.000000;;, + 204;3; 1.000000, 1.000000, 1.000000;;, + 205;3; 1.000000, 1.000000, 1.000000;;, + 206;3; 1.000000, 1.000000, 1.000000;;, + 207;3; 1.000000, 1.000000, 1.000000;;, + 208;3; 1.000000, 1.000000, 1.000000;;, + 209;3; 1.000000, 1.000000, 1.000000;;, + 210;3; 1.000000, 1.000000, 1.000000;;, + 211;3; 1.000000, 1.000000, 1.000000;;, + 212;3; 1.000000, 1.000000, 1.000000;;, + 213;3; 1.000000, 1.000000, 1.000000;;, + 214;3; 1.000000, 1.000000, 1.000000;;, + 215;3; 1.000000, 1.000000, 1.000000;;, + 216;3; 1.000000, 1.000000, 1.000000;;, + 217;3; 1.000000, 1.000000, 1.000000;;, + 218;3; 1.000000, 1.000000, 1.000000;;, + 219;3; 1.000000, 1.000000, 1.000000;;, + 220;3; 1.000000, 1.000000, 1.000000;;; + } + } +} //End of AnimationSet diff --git a/mods/default/nodes.lua b/mods/default/nodes.lua new file mode 100644 index 0000000..34b873e --- /dev/null +++ b/mods/default/nodes.lua @@ -0,0 +1,1394 @@ +-- mods/default/nodes.lua + +minetest.register_node("default:stone", { + description = "Stone", + tiles = {"default_stone.png"}, + is_ground_content = true, + groups = {cracky=3, stone=1}, + drop = 'default:cobble', + legacy_mineral = true, + sounds = default.node_sound_stone_defaults(), +}) + +minetest.register_node("default:desert_stone", { + description = "Desert Stone", + tiles = {"default_desert_stone.png"}, + is_ground_content = true, + groups = {cracky=3, stone=1}, + drop = 'default:desert_stone', + legacy_mineral = true, + sounds = default.node_sound_stone_defaults(), +}) + +minetest.register_node("default:stone_with_coal", { + description = "Coal Ore", + tiles = {"default_stone.png^default_mineral_coal.png"}, + is_ground_content = true, + groups = {cracky=3}, + drop = 'default:coal_lump', + sounds = default.node_sound_stone_defaults(), +}) + +minetest.register_node("default:stone_with_iron", { + description = "Iron Ore", + tiles = {"default_stone.png^default_mineral_iron.png"}, + is_ground_content = true, + groups = {cracky=2}, + drop = 'default:iron_lump', + sounds = default.node_sound_stone_defaults(), +}) + +minetest.register_node("default:stone_with_copper", { + description = "Copper Ore", + tiles = {"default_stone.png^default_mineral_copper.png"}, + is_ground_content = true, + groups = {cracky=2}, + drop = 'default:copper_lump', + sounds = default.node_sound_stone_defaults(), +}) + +minetest.register_node("default:stone_with_mese", { + description = "Mese Ore", + tiles = {"default_stone.png^default_mineral_mese.png"}, + is_ground_content = true, + groups = {cracky=1}, + drop = "default:mese_crystal", + sounds = default.node_sound_stone_defaults(), +}) + +minetest.register_node("default:stone_with_gold", { + description = "Gold Ore", + tiles = {"default_stone.png^default_mineral_gold.png"}, + is_ground_content = true, + groups = {cracky=2}, + drop = "default:gold_lump", + sounds = default.node_sound_stone_defaults(), +}) + +minetest.register_node("default:stone_with_diamond", { + description = "Diamond Ore", + tiles = {"default_stone.png^default_mineral_diamond.png"}, + is_ground_content = true, + groups = {cracky=1}, + drop = "default:diamond", + sounds = default.node_sound_stone_defaults(), +}) + +minetest.register_node("default:stonebrick", { + description = "Stone Brick", + tiles = {"default_stone_brick.png"}, + groups = {cracky=2, stone=1}, + sounds = default.node_sound_stone_defaults(), +}) + +minetest.register_node("default:desert_stonebrick", { + description = "Desert Stone Brick", + tiles = {"default_desert_stone_brick.png"}, + groups = {cracky=2, stone=1}, + sounds = default.node_sound_stone_defaults(), +}) + +minetest.register_node("default:dirt_with_grass", { + description = "Dirt with Grass", + tiles = {"default_grass.png", "default_dirt.png", "default_dirt.png^default_grass_side.png"}, + is_ground_content = true, + groups = {crumbly=3,soil=1}, + drop = 'default:dirt', + sounds = default.node_sound_dirt_defaults({ + footstep = {name="default_grass_footstep", gain=0.25}, + }), +}) + +minetest.register_node("default:dirt_with_grass_footsteps", { + description = "Dirt with Grass and Footsteps", + tiles = {"default_grass_footsteps.png", "default_dirt.png", "default_dirt.png^default_grass_side.png"}, + is_ground_content = true, + groups = {crumbly=3,soil=1,not_in_creative_inventory=1}, + drop = 'default:dirt', + sounds = default.node_sound_dirt_defaults({ + footstep = {name="default_grass_footstep", gain=0.25}, + }), +}) + +minetest.register_node("default:dirt_with_snow", { + description = "Dirt with Snow", + tiles = {"default_snow.png", "default_dirt.png", "default_dirt.png^default_snow_side.png"}, + is_ground_content = true, + groups = {crumbly=3}, + drop = 'default:dirt', + sounds = default.node_sound_dirt_defaults({ + footstep = {name="default_snow_footstep", gain=0.25}, + }), +}) + +minetest.register_node("default:dirt", { + description = "Dirt", + tiles = {"default_dirt.png"}, + is_ground_content = true, + groups = {crumbly=3,soil=1}, + sounds = default.node_sound_dirt_defaults(), +}) + +minetest.register_abm({ + nodenames = {"default:dirt"}, + interval = 2, + chance = 200, + action = function(pos, node) + local above = {x=pos.x, y=pos.y+1, z=pos.z} + local name = minetest.get_node(above).name + local nodedef = minetest.registered_nodes[name] + if nodedef and (nodedef.sunlight_propagates or nodedef.paramtype == "light") + and nodedef.liquidtype == "none" + and (minetest.get_node_light(above) or 0) >= 13 then + if name == "default:snow" or name == "default:snowblock" then + minetest.set_node(pos, {name = "default:dirt_with_snow"}) + else + minetest.set_node(pos, {name = "default:dirt_with_grass"}) + end + end + end +}) + +minetest.register_abm({ + nodenames = {"default:dirt_with_grass"}, + interval = 2, + chance = 20, + action = function(pos, node) + local above = {x=pos.x, y=pos.y+1, z=pos.z} + local name = minetest.get_node(above).name + local nodedef = minetest.registered_nodes[name] + if name ~= "ignore" and nodedef + and not ((nodedef.sunlight_propagates or nodedef.paramtype == "light") + and nodedef.liquidtype == "none") then + minetest.set_node(pos, {name = "default:dirt"}) + end + end +}) + +minetest.register_node("default:sand", { + description = "Sand", + tiles = {"default_sand.png"}, + is_ground_content = true, + groups = {crumbly=3, falling_node=1, sand=1}, + sounds = default.node_sound_sand_defaults(), +}) + +minetest.register_node("default:desert_sand", { + description = "Desert Sand", + tiles = {"default_desert_sand.png"}, + is_ground_content = true, + groups = {crumbly=3, falling_node=1, sand=1}, + sounds = default.node_sound_sand_defaults(), +}) + +minetest.register_node("default:gravel", { + description = "Gravel", + tiles = {"default_gravel.png"}, + is_ground_content = true, + groups = {crumbly=2, falling_node=1}, + sounds = default.node_sound_dirt_defaults({ + footstep = {name="default_gravel_footstep", gain=0.5}, + dug = {name="default_gravel_footstep", gain=1.0}, + }), +}) + +minetest.register_node("default:sandstone", { + description = "Sandstone", + tiles = {"default_sandstone.png"}, + is_ground_content = true, + groups = {crumbly=2,cracky=3}, + sounds = default.node_sound_stone_defaults(), +}) + +minetest.register_node("default:sandstonebrick", { + description = "Sandstone Brick", + tiles = {"default_sandstone_brick.png"}, + is_ground_content = true, + groups = {cracky=2}, + sounds = default.node_sound_stone_defaults(), +}) + +minetest.register_node("default:clay", { + description = "Clay", + tiles = {"default_clay.png"}, + is_ground_content = true, + groups = {crumbly=3}, + drop = 'default:clay_lump 4', + sounds = default.node_sound_dirt_defaults(), +}) + +minetest.register_node("default:brick", { + description = "Brick Block", + tiles = {"default_brick.png"}, + is_ground_content = false, + groups = {cracky=3}, + sounds = default.node_sound_stone_defaults(), +}) + +minetest.register_node("default:tree", { + description = "Tree", + tiles = {"default_tree_top.png", "default_tree_top.png", "default_tree.png"}, + paramtype2 = "facedir", + is_ground_content = false, + groups = {tree=1,choppy=2,oddly_breakable_by_hand=1,flammable=2}, + sounds = default.node_sound_wood_defaults(), + on_place = minetest.rotate_node +}) + +minetest.register_node("default:jungletree", { + description = "Jungle Tree", + tiles = {"default_jungletree_top.png", "default_jungletree_top.png", "default_jungletree.png"}, + paramtype2 = "facedir", + is_ground_content = false, + groups = {tree=1,choppy=2,oddly_breakable_by_hand=1,flammable=2}, + sounds = default.node_sound_wood_defaults(), + on_place = minetest.rotate_node +}) + +minetest.register_node("default:junglewood", { + description = "Junglewood Planks", + tiles = {"default_junglewood.png"}, + groups = {choppy=2,oddly_breakable_by_hand=2,flammable=3,wood=1}, + sounds = default.node_sound_wood_defaults(), +}) + +minetest.register_node("default:jungleleaves", { + description = "Jungle Leaves", + drawtype = "allfaces_optional", + visual_scale = 1.3, + tiles = {"default_jungleleaves.png"}, + paramtype = "light", + waving = 1, + is_ground_content = false, + groups = {snappy=3, leafdecay=3, flammable=2, leaves=1}, + drop = { + max_items = 1, + items = { + { + -- player will get sapling with 1/20 chance + items = {'default:junglesapling'}, + rarity = 20, + }, + { + -- player will get leaves only if he get no saplings, + -- this is because max_items is 1 + items = {'default:jungleleaves'}, + } + } + }, + sounds = default.node_sound_leaves_defaults(), +}) + +minetest.register_node("default:junglesapling", { + description = "Jungle Sapling", + drawtype = "plantlike", + visual_scale = 1.0, + tiles = {"default_junglesapling.png"}, + inventory_image = "default_junglesapling.png", + wield_image = "default_junglesapling.png", + paramtype = "light", + walkable = false, + selection_box = { + type = "fixed", + fixed = {-0.3, -0.5, -0.3, 0.3, 0.35, 0.3} + }, + groups = {snappy=2,dig_immediate=3,flammable=2,attached_node=1}, + sounds = default.node_sound_leaves_defaults(), +}) + +minetest.register_node("default:junglegrass", { + description = "Jungle Grass", + drawtype = "plantlike", + visual_scale = 1.3, + tiles = {"default_junglegrass.png"}, + inventory_image = "default_junglegrass.png", + wield_image = "default_junglegrass.png", + paramtype = "light", + walkable = false, + buildable_to = true, + is_ground_content = true, + groups = {snappy=3,flammable=2,flora=1,attached_node=1}, + sounds = default.node_sound_leaves_defaults(), + selection_box = { + type = "fixed", + fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5}, + }, +}) + +minetest.register_node("default:leaves", { + description = "Leaves", + drawtype = "allfaces_optional", + visual_scale = 1.3, + tiles = {"default_leaves.png"}, + paramtype = "light", + waving = 1, + is_ground_content = false, + groups = {snappy=3, leafdecay=3, flammable=2, leaves=1}, + drop = { + max_items = 1, + items = { + { + -- player will get sapling with 1/20 chance + items = {'default:sapling'}, + rarity = 20, + }, + { + -- player will get leaves only if he get no saplings, + -- this is because max_items is 1 + items = {'default:leaves'}, + } + } + }, + sounds = default.node_sound_leaves_defaults(), +}) + +minetest.register_node("default:cactus", { + description = "Cactus", + tiles = {"default_cactus_top.png", "default_cactus_top.png", "default_cactus_side.png"}, + paramtype2 = "facedir", + is_ground_content = true, + groups = {snappy=1,choppy=3,flammable=2}, + sounds = default.node_sound_wood_defaults(), + on_place = minetest.rotate_node +}) + +minetest.register_node("default:papyrus", { + description = "Papyrus", + drawtype = "plantlike", + tiles = {"default_papyrus.png"}, + inventory_image = "default_papyrus.png", + wield_image = "default_papyrus.png", + paramtype = "light", + walkable = false, + is_ground_content = true, + selection_box = { + type = "fixed", + fixed = {-0.3, -0.5, -0.3, 0.3, 0.5, 0.3} + }, + groups = {snappy=3,flammable=2}, + sounds = default.node_sound_leaves_defaults(), +}) + +minetest.register_node("default:bookshelf", { + description = "Bookshelf", + tiles = {"default_wood.png", "default_wood.png", "default_bookshelf.png"}, + is_ground_content = false, + groups = {choppy=3,oddly_breakable_by_hand=2,flammable=3}, + sounds = default.node_sound_wood_defaults(), +}) + +minetest.register_node("default:glass", { + description = "Glass", + drawtype = "glasslike", + tiles = {"default_glass.png"}, + inventory_image = minetest.inventorycube("default_glass.png"), + paramtype = "light", + sunlight_propagates = true, + is_ground_content = false, + groups = {cracky=3,oddly_breakable_by_hand=3}, + sounds = default.node_sound_glass_defaults(), +}) + +minetest.register_node("default:fence_wood", { + description = "Wooden Fence", + drawtype = "fencelike", + tiles = {"default_wood.png"}, + inventory_image = "default_fence.png", + wield_image = "default_fence.png", + paramtype = "light", + is_ground_content = false, + selection_box = { + type = "fixed", + fixed = {-1/7, -1/2, -1/7, 1/7, 1/2, 1/7}, + }, + groups = {choppy=2,oddly_breakable_by_hand=2,flammable=2}, + sounds = default.node_sound_wood_defaults(), +}) + +minetest.register_node("default:rail", { + description = "Rail", + drawtype = "raillike", + tiles = {"default_rail.png", "default_rail_curved.png", "default_rail_t_junction.png", "default_rail_crossing.png"}, + inventory_image = "default_rail.png", + wield_image = "default_rail.png", + paramtype = "light", + walkable = false, + is_ground_content = false, + selection_box = { + type = "fixed", + -- but how to specify the dimensions for curved and sideways rails? + fixed = {-1/2, -1/2, -1/2, 1/2, -1/2+1/16, 1/2}, + }, + groups = {bendy=2,dig_immediate=2,attached_node=1}, +}) + +minetest.register_node("default:ladder", { + description = "Ladder", + drawtype = "signlike", + tiles = {"default_ladder.png"}, + inventory_image = "default_ladder.png", + wield_image = "default_ladder.png", + paramtype = "light", + paramtype2 = "wallmounted", + walkable = false, + climbable = true, + is_ground_content = false, + selection_box = { + type = "wallmounted", + --wall_top = = + --wall_bottom = = + --wall_side = = + }, + groups = {choppy=2,oddly_breakable_by_hand=3,flammable=2}, + legacy_wallmounted = true, + sounds = default.node_sound_wood_defaults(), +}) + +minetest.register_node("default:wood", { + description = "Wooden Planks", + tiles = {"default_wood.png"}, + groups = {choppy=2,oddly_breakable_by_hand=2,flammable=3,wood=1}, + sounds = default.node_sound_wood_defaults(), +}) + +minetest.register_node("default:cloud", { + description = "Cloud", + tiles = {"default_cloud.png"}, + sounds = default.node_sound_defaults(), + groups = {not_in_creative_inventory=1}, +}) + +minetest.register_node("default:water_flowing", { + description = "Flowing Water", + inventory_image = minetest.inventorycube("default_water.png"), + drawtype = "flowingliquid", + tiles = {"default_water.png"}, + special_tiles = { + { + image="default_water_flowing_animated.png", + backface_culling=false, + animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=0.8} + }, + { + image="default_water_flowing_animated.png", + backface_culling=true, + animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=0.8} + }, + }, + alpha = WATER_ALPHA, + paramtype = "light", + paramtype2 = "flowingliquid", + walkable = false, + pointable = false, + diggable = false, + buildable_to = true, + drop = "", + drowning = 1, + liquidtype = "flowing", + liquid_alternative_flowing = "default:water_flowing", + liquid_alternative_source = "default:water_source", + liquid_viscosity = WATER_VISC, + freezemelt = "default:snow", + post_effect_color = {a=64, r=100, g=100, b=200}, + groups = {water=3, liquid=3, puts_out_fire=1, not_in_creative_inventory=1, freezes=1, melt_around=1}, +}) + +minetest.register_node("default:water_source", { + description = "Water Source", + inventory_image = minetest.inventorycube("default_water.png"), + drawtype = "liquid", + tiles = { + {name="default_water_source_animated.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=2.0}} + }, + special_tiles = { + -- New-style water source material (mostly unused) + { + name="default_water_source_animated.png", + animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=2.0}, + backface_culling = false, + } + }, + alpha = WATER_ALPHA, + paramtype = "light", + walkable = false, + pointable = false, + diggable = false, + buildable_to = true, + drop = "", + drowning = 1, + liquidtype = "source", + liquid_alternative_flowing = "default:water_flowing", + liquid_alternative_source = "default:water_source", + liquid_viscosity = WATER_VISC, + freezemelt = "default:ice", + post_effect_color = {a=64, r=100, g=100, b=200}, + groups = {water=3, liquid=3, puts_out_fire=1, freezes=1}, +}) + +minetest.register_node("default:lava_flowing", { + description = "Flowing Lava", + inventory_image = minetest.inventorycube("default_lava.png"), + drawtype = "flowingliquid", + tiles = {"default_lava.png"}, + special_tiles = { + { + image="default_lava_flowing_animated.png", + backface_culling=false, + animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=3.3} + }, + { + image="default_lava_flowing_animated.png", + backface_culling=true, + animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=3.3} + }, + }, + paramtype = "light", + paramtype2 = "flowingliquid", + light_source = LIGHT_MAX - 1, + walkable = false, + pointable = false, + diggable = false, + buildable_to = true, + drop = "", + drowning = 1, + liquidtype = "flowing", + liquid_alternative_flowing = "default:lava_flowing", + liquid_alternative_source = "default:lava_source", + liquid_viscosity = LAVA_VISC, + liquid_renewable = false, + damage_per_second = 4*2, + post_effect_color = {a=192, r=255, g=64, b=0}, + groups = {lava=3, liquid=2, hot=3, igniter=1, not_in_creative_inventory=1}, +}) + +minetest.register_node("default:lava_source", { + description = "Lava Source", + inventory_image = minetest.inventorycube("default_lava.png"), + drawtype = "liquid", + tiles = { + {name="default_lava_source_animated.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=3.0}} + }, + special_tiles = { + -- New-style lava source material (mostly unused) + { + name="default_lava_source_animated.png", + animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=3.0}, + backface_culling = false, + } + }, + paramtype = "light", + light_source = LIGHT_MAX - 1, + walkable = false, + pointable = false, + diggable = false, + buildable_to = true, + drop = "", + drowning = 1, + liquidtype = "source", + liquid_alternative_flowing = "default:lava_flowing", + liquid_alternative_source = "default:lava_source", + liquid_viscosity = LAVA_VISC, + liquid_renewable = false, + damage_per_second = 4*2, + post_effect_color = {a=192, r=255, g=64, b=0}, + groups = {lava=3, liquid=2, hot=3, igniter=1}, +}) + +minetest.register_node("default:torch", { + description = "Torch", + drawtype = "torchlike", + --tiles = {"default_torch_on_floor.png", "default_torch_on_ceiling.png", "default_torch.png"}, + tiles = { + {name="default_torch_on_floor_animated.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=3.0}}, + {name="default_torch_on_ceiling_animated.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=3.0}}, + {name="default_torch_animated.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=3.0}} + }, + inventory_image = "default_torch_on_floor.png", + wield_image = "default_torch_on_floor.png", + paramtype = "light", + paramtype2 = "wallmounted", + sunlight_propagates = true, + is_ground_content = false, + walkable = false, + light_source = LIGHT_MAX-1, + selection_box = { + type = "wallmounted", + wall_top = {-0.1, 0.5-0.6, -0.1, 0.1, 0.5, 0.1}, + wall_bottom = {-0.1, -0.5, -0.1, 0.1, -0.5+0.6, 0.1}, + wall_side = {-0.5, -0.3, -0.1, -0.5+0.3, 0.3, 0.1}, + }, + groups = {choppy=2,dig_immediate=3,flammable=1,attached_node=1,hot=2}, + legacy_wallmounted = true, + sounds = default.node_sound_defaults(), +}) + +minetest.register_node("default:sign_wall", { + description = "Sign", + drawtype = "signlike", + tiles = {"default_sign_wall.png"}, + inventory_image = "default_sign_wall.png", + wield_image = "default_sign_wall.png", + paramtype = "light", + paramtype2 = "wallmounted", + sunlight_propagates = true, + is_ground_content = false, + walkable = false, + selection_box = { + type = "wallmounted", + --wall_top = + --wall_bottom = + --wall_side = + }, + groups = {choppy=2,dig_immediate=2,attached_node=1}, + legacy_wallmounted = true, + sounds = default.node_sound_defaults(), + on_construct = function(pos) + --local n = minetest.get_node(pos) + local meta = minetest.get_meta(pos) + meta:set_string("formspec", "field[text;;${text}]") + meta:set_string("infotext", "\"\"") + end, + on_receive_fields = function(pos, formname, fields, sender) + --print("Sign at "..minetest.pos_to_string(pos).." got "..dump(fields)) + if minetest.is_protected(pos, sender:get_player_name()) then + minetest.record_protection_violation(pos, sender:get_player_name()) + return + end + local meta = minetest.get_meta(pos) + fields.text = fields.text or "" + minetest.log("action", (sender:get_player_name() or "").." wrote \""..fields.text.. + "\" to sign at "..minetest.pos_to_string(pos)) + meta:set_string("text", fields.text) + meta:set_string("infotext", '"'..fields.text..'"') + end, +}) + +default.chest_formspec = + "size[8,9]".. + "list[current_name;main;0,0;8,4;]".. + "list[current_player;main;0,5;8,4;]" + +function default.get_locked_chest_formspec(pos) + local spos = pos.x .. "," .. pos.y .. "," ..pos.z + local formspec = + "size[8,9]".. + "list[nodemeta:".. spos .. ";main;0,0;8,4;]".. + "list[current_player;main;0,5;8,4;]" + return formspec +end + + +minetest.register_node("default:chest", { + description = "Chest", + 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"}, + paramtype2 = "facedir", + groups = {choppy=2,oddly_breakable_by_hand=2}, + legacy_facedir_simple = true, + is_ground_content = false, + sounds = default.node_sound_wood_defaults(), + on_construct = function(pos) + local meta = minetest.get_meta(pos) + meta:set_string("formspec",default.chest_formspec) + meta:set_string("infotext", "Chest") + local inv = meta:get_inventory() + inv:set_size("main", 8*4) + end, + can_dig = function(pos,player) + local meta = minetest.get_meta(pos); + local inv = meta:get_inventory() + return inv:is_empty("main") + end, + on_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player) + minetest.log("action", player:get_player_name().. + " moves stuff in chest at "..minetest.pos_to_string(pos)) + end, + on_metadata_inventory_put = function(pos, listname, index, stack, player) + minetest.log("action", player:get_player_name().. + " moves stuff to chest at "..minetest.pos_to_string(pos)) + end, + on_metadata_inventory_take = function(pos, listname, index, stack, player) + minetest.log("action", player:get_player_name().. + " takes stuff from chest at "..minetest.pos_to_string(pos)) + end, +}) + +local function has_locked_chest_privilege(meta, player) + if player:get_player_name() ~= meta:get_string("owner") then + return false + end + return true +end + +minetest.register_node("default:chest_locked", { + description = "Locked Chest", + tiles = {"default_chest_top.png", "default_chest_top.png", "default_chest_side.png", + "default_chest_side.png", "default_chest_side.png", "default_chest_lock.png"}, + paramtype2 = "facedir", + groups = {choppy=2,oddly_breakable_by_hand=2}, + legacy_facedir_simple = true, + is_ground_content = false, + sounds = default.node_sound_wood_defaults(), + 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", "Locked Chest (owned by ".. + meta:get_string("owner")..")") + end, + on_construct = function(pos) + local meta = minetest.get_meta(pos) + meta:set_string("infotext", "Locked Chest") + meta:set_string("owner", "") + local inv = meta:get_inventory() + inv:set_size("main", 8*4) + end, + can_dig = function(pos,player) + local meta = minetest.get_meta(pos); + local inv = meta:get_inventory() + return inv:is_empty("main") and has_locked_chest_privilege(meta, player) + end, + allow_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player) + local meta = minetest.get_meta(pos) + if not has_locked_chest_privilege(meta, player) then + minetest.log("action", player:get_player_name().. + " tried to access a locked chest belonging to ".. + meta:get_string("owner").." at ".. + minetest.pos_to_string(pos)) + return 0 + end + return count + end, + allow_metadata_inventory_put = function(pos, listname, index, stack, player) + local meta = minetest.get_meta(pos) + if not has_locked_chest_privilege(meta, player) then + minetest.log("action", player:get_player_name().. + " tried to access a locked chest belonging to ".. + meta:get_string("owner").." at ".. + minetest.pos_to_string(pos)) + return 0 + end + return stack:get_count() + end, + allow_metadata_inventory_take = function(pos, listname, index, stack, player) + local meta = minetest.get_meta(pos) + if not has_locked_chest_privilege(meta, player) then + minetest.log("action", player:get_player_name().. + " tried to access a locked chest belonging to ".. + meta:get_string("owner").." at ".. + minetest.pos_to_string(pos)) + return 0 + end + return stack:get_count() + end, + on_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player) + minetest.log("action", player:get_player_name().. + " moves stuff in locked chest at "..minetest.pos_to_string(pos)) + end, + on_metadata_inventory_put = function(pos, listname, index, stack, player) + minetest.log("action", player:get_player_name().. + " moves stuff to locked chest at "..minetest.pos_to_string(pos)) + end, + on_metadata_inventory_take = function(pos, listname, index, stack, player) + minetest.log("action", player:get_player_name().. + " takes stuff from locked chest at "..minetest.pos_to_string(pos)) + end, + on_rightclick = function(pos, node, clicker) + local meta = minetest.get_meta(pos) + if has_locked_chest_privilege(meta, clicker) then + minetest.show_formspec( + clicker:get_player_name(), + "default:chest_locked", + default.get_locked_chest_formspec(pos) + ) + end + end, +}) + +function default.get_furnace_active_formspec(pos, percent) + local formspec = + "size[8,9]".. + "image[2,2;1,1;default_furnace_fire_bg.png^[lowpart:".. + (100-percent)..":default_furnace_fire_fg.png]".. + "list[current_name;fuel;2,3;1,1;]".. + "list[current_name;src;2,1;1,1;]".. + "list[current_name;dst;5,1;2,2;]".. + "list[current_player;main;0,5;8,4;]" + return formspec +end + +default.furnace_inactive_formspec = + "size[8,9]".. + "image[2,2;1,1;default_furnace_fire_bg.png]".. + "list[current_name;fuel;2,3;1,1;]".. + "list[current_name;src;2,1;1,1;]".. + "list[current_name;dst;5,1;2,2;]".. + "list[current_player;main;0,5;8,4;]" + +minetest.register_node("default:furnace", { + description = "Furnace", + tiles = {"default_furnace_top.png", "default_furnace_bottom.png", "default_furnace_side.png", + "default_furnace_side.png", "default_furnace_side.png", "default_furnace_front.png"}, + paramtype2 = "facedir", + groups = {cracky=2}, + legacy_facedir_simple = true, + is_ground_content = false, + sounds = default.node_sound_stone_defaults(), + on_construct = function(pos) + local meta = minetest.get_meta(pos) + meta:set_string("formspec", default.furnace_inactive_formspec) + meta:set_string("infotext", "Furnace") + local inv = meta:get_inventory() + inv:set_size("fuel", 1) + inv:set_size("src", 1) + inv:set_size("dst", 4) + end, + can_dig = function(pos,player) + local meta = minetest.get_meta(pos); + local inv = meta:get_inventory() + if not inv:is_empty("fuel") then + return false + elseif not inv:is_empty("dst") then + return false + elseif not inv:is_empty("src") then + return false + end + return true + end, + allow_metadata_inventory_put = function(pos, listname, index, stack, player) + local meta = minetest.get_meta(pos) + local inv = meta:get_inventory() + if listname == "fuel" then + if minetest.get_craft_result({method="fuel",width=1,items={stack}}).time ~= 0 then + if inv:is_empty("src") then + meta:set_string("infotext","Furnace is empty") + end + return stack:get_count() + else + return 0 + end + elseif listname == "src" then + return stack:get_count() + elseif listname == "dst" then + return 0 + end + end, + allow_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player) + local meta = minetest.get_meta(pos) + local inv = meta:get_inventory() + local stack = inv:get_stack(from_list, from_index) + if to_list == "fuel" then + if minetest.get_craft_result({method="fuel",width=1,items={stack}}).time ~= 0 then + if inv:is_empty("src") then + meta:set_string("infotext","Furnace is empty") + end + return count + else + return 0 + end + elseif to_list == "src" then + return count + elseif to_list == "dst" then + return 0 + end + end, +}) + +minetest.register_node("default:furnace_active", { + description = "Furnace", + tiles = {"default_furnace_top.png", "default_furnace_bottom.png", "default_furnace_side.png", + "default_furnace_side.png", "default_furnace_side.png", "default_furnace_front_active.png"}, + paramtype2 = "facedir", + light_source = 8, + drop = "default:furnace", + groups = {cracky=2, not_in_creative_inventory=1,hot=1}, + legacy_facedir_simple = true, + is_ground_content = false, + sounds = default.node_sound_stone_defaults(), + on_construct = function(pos) + local meta = minetest.get_meta(pos) + meta:set_string("formspec", default.furnace_inactive_formspec) + meta:set_string("infotext", "Furnace"); + local inv = meta:get_inventory() + inv:set_size("fuel", 1) + inv:set_size("src", 1) + inv:set_size("dst", 4) + end, + can_dig = function(pos,player) + local meta = minetest.get_meta(pos); + local inv = meta:get_inventory() + if not inv:is_empty("fuel") then + return false + elseif not inv:is_empty("dst") then + return false + elseif not inv:is_empty("src") then + return false + end + return true + end, + allow_metadata_inventory_put = function(pos, listname, index, stack, player) + local meta = minetest.get_meta(pos) + local inv = meta:get_inventory() + if listname == "fuel" then + if minetest.get_craft_result({method="fuel",width=1,items={stack}}).time ~= 0 then + if inv:is_empty("src") then + meta:set_string("infotext","Furnace is empty") + end + return stack:get_count() + else + return 0 + end + elseif listname == "src" then + return stack:get_count() + elseif listname == "dst" then + return 0 + end + end, + allow_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player) + local meta = minetest.get_meta(pos) + local inv = meta:get_inventory() + local stack = inv:get_stack(from_list, from_index) + if to_list == "fuel" then + if minetest.get_craft_result({method="fuel",width=1,items={stack}}).time ~= 0 then + if inv:is_empty("src") then + meta:set_string("infotext","Furnace is empty") + end + return count + else + return 0 + end + elseif to_list == "src" then + return count + elseif to_list == "dst" then + return 0 + end + end, +}) + +local function swap_node(pos,name) + local node = minetest.get_node(pos) + if node.name == name then + return + end + node.name = name + minetest.swap_node(pos,node) +end + +minetest.register_abm({ + nodenames = {"default:furnace","default:furnace_active"}, + interval = 1.0, + chance = 1, + action = function(pos, node, active_object_count, active_object_count_wider) + local meta = minetest.get_meta(pos) + for i, name in ipairs({ + "fuel_totaltime", + "fuel_time", + "src_totaltime", + "src_time" + }) do + if meta:get_string(name) == "" then + meta:set_float(name, 0.0) + end + end + + local inv = meta:get_inventory() + + local srclist = inv:get_list("src") + local cooked = nil + local aftercooked + + if srclist then + cooked, aftercooked = minetest.get_craft_result({method = "cooking", width = 1, items = srclist}) + end + + local was_active = false + + if meta:get_float("fuel_time") < meta:get_float("fuel_totaltime") then + was_active = true + meta:set_float("fuel_time", meta:get_float("fuel_time") + 1) + meta:set_float("src_time", meta:get_float("src_time") + 1) + if cooked and cooked.item and meta:get_float("src_time") >= cooked.time then + -- check if there's room for output in "dst" list + if inv:room_for_item("dst",cooked.item) then + -- Put result in "dst" list + inv:add_item("dst", cooked.item) + -- take stuff from "src" list + inv:set_stack("src", 1, aftercooked.items[1]) + else + --print("Could not insert '"..cooked.item:to_string().."'") + end + meta:set_string("src_time", 0) + end + end + + if meta:get_float("fuel_time") < meta:get_float("fuel_totaltime") then + local percent = math.floor(meta:get_float("fuel_time") / + meta:get_float("fuel_totaltime") * 100) + meta:set_string("infotext","Furnace active: "..percent.."%") + swap_node(pos,"default:furnace_active") + meta:set_string("formspec",default.get_furnace_active_formspec(pos, percent)) + return + end + + local fuel = nil + local afterfuel + local cooked = nil + local fuellist = inv:get_list("fuel") + local srclist = inv:get_list("src") + + if srclist then + cooked = minetest.get_craft_result({method = "cooking", width = 1, items = srclist}) + end + if fuellist then + fuel, afterfuel = minetest.get_craft_result({method = "fuel", width = 1, items = fuellist}) + end + + if fuel.time <= 0 then + meta:set_string("infotext","Furnace out of fuel") + swap_node(pos,"default:furnace") + meta:set_string("formspec", default.furnace_inactive_formspec) + return + end + + if cooked.item:is_empty() then + if was_active then + meta:set_string("infotext","Furnace is empty") + swap_node(pos,"default:furnace") + meta:set_string("formspec", default.furnace_inactive_formspec) + end + return + end + + meta:set_string("fuel_totaltime", fuel.time) + meta:set_string("fuel_time", 0) + + inv:set_stack("fuel", 1, afterfuel.items[1]) + end, +}) + +minetest.register_node("default:cobble", { + description = "Cobblestone", + tiles = {"default_cobble.png"}, + is_ground_content = true, + groups = {cracky=3, stone=2}, + sounds = default.node_sound_stone_defaults(), +}) + +minetest.register_node("default:mossycobble", { + description = "Mossy Cobblestone", + tiles = {"default_mossycobble.png"}, + is_ground_content = true, + groups = {cracky=3}, + sounds = default.node_sound_stone_defaults(), +}) + +minetest.register_node("default:coalblock", { + description = "Coal Block", + tiles = {"default_coal_block.png"}, + is_ground_content = true, + groups = {cracky=3}, + sounds = default.node_sound_stone_defaults(), +}) + +minetest.register_node("default:steelblock", { + description = "Steel Block", + tiles = {"default_steel_block.png"}, + is_ground_content = true, + groups = {cracky=1,level=2}, + sounds = default.node_sound_stone_defaults(), +}) + +minetest.register_node("default:copperblock", { + description = "Copper Block", + tiles = {"default_copper_block.png"}, + is_ground_content = true, + groups = {cracky=1,level=2}, + sounds = default.node_sound_stone_defaults(), +}) + +minetest.register_node("default:bronzeblock", { + description = "Bronze Block", + tiles = {"default_bronze_block.png"}, + is_ground_content = true, + groups = {cracky=1,level=2}, + sounds = default.node_sound_stone_defaults(), +}) + +minetest.register_node("default:mese", { + description = "Mese Block", + tiles = {"default_mese_block.png"}, + is_ground_content = true, + groups = {cracky=1,level=2}, + sounds = default.node_sound_stone_defaults(), +}) +minetest.register_alias("default:mese_block", "default:mese") + +minetest.register_node("default:goldblock", { + description = "Gold Block", + tiles = {"default_gold_block.png"}, + is_ground_content = true, + groups = {cracky=1}, + sounds = default.node_sound_stone_defaults(), +}) + +minetest.register_node("default:diamondblock", { + description = "Diamond Block", + tiles = {"default_diamond_block.png"}, + is_ground_content = true, + groups = {cracky=1,level=3}, + sounds = default.node_sound_stone_defaults(), +}) + +minetest.register_node("default:obsidian_glass", { + description = "Obsidian Glass", + drawtype = "glasslike", + tiles = {"default_obsidian_glass.png"}, + paramtype = "light", + is_ground_content = false, + sunlight_propagates = true, + sounds = default.node_sound_glass_defaults(), + groups = {cracky=3,oddly_breakable_by_hand=3}, +}) + +minetest.register_node("default:obsidian", { + description = "Obsidian", + tiles = {"default_obsidian.png"}, + is_ground_content = true, + sounds = default.node_sound_stone_defaults(), + groups = {cracky=1,level=2}, +}) + +minetest.register_node("default:nyancat", { + description = "Nyan Cat", + tiles = {"default_nc_side.png", "default_nc_side.png", "default_nc_side.png", + "default_nc_side.png", "default_nc_back.png", "default_nc_front.png"}, + paramtype2 = "facedir", + groups = {cracky=2}, + is_ground_content = false, + legacy_facedir_simple = true, + sounds = default.node_sound_defaults(), +}) + +minetest.register_node("default:nyancat_rainbow", { + description = "Nyan Cat Rainbow", + tiles = {"default_nc_rb.png^[transformR90", "default_nc_rb.png^[transformR90", + "default_nc_rb.png", "default_nc_rb.png"}, + paramtype2 = "facedir", + groups = {cracky=2}, + is_ground_content = false, + sounds = default.node_sound_defaults(), +}) + +minetest.register_node("default:sapling", { + description = "Sapling", + drawtype = "plantlike", + visual_scale = 1.0, + tiles = {"default_sapling.png"}, + inventory_image = "default_sapling.png", + wield_image = "default_sapling.png", + paramtype = "light", + walkable = false, + is_ground_content = true, + selection_box = { + type = "fixed", + fixed = {-0.3, -0.5, -0.3, 0.3, 0.35, 0.3} + }, + groups = {snappy=2,dig_immediate=3,flammable=2,attached_node=1}, + sounds = default.node_sound_leaves_defaults(), +}) + +minetest.register_node("default:apple", { + description = "Apple", + drawtype = "plantlike", + visual_scale = 1.0, + tiles = {"default_apple.png"}, + inventory_image = "default_apple.png", + paramtype = "light", + sunlight_propagates = true, + walkable = false, + is_ground_content = true, + selection_box = { + type = "fixed", + fixed = {-0.2, -0.5, -0.2, 0.2, 0, 0.2} + }, + groups = {fleshy=3,dig_immediate=3,flammable=2,leafdecay=3,leafdecay_drop=1}, + on_use = minetest.item_eat(1), + sounds = default.node_sound_leaves_defaults(), + after_place_node = function(pos, placer, itemstack) + if placer:is_player() then + minetest.set_node(pos, {name="default:apple", param2=1}) + end + end, +}) + +minetest.register_node("default:dry_shrub", { + description = "Dry Shrub", + drawtype = "plantlike", + visual_scale = 1.0, + tiles = {"default_dry_shrub.png"}, + inventory_image = "default_dry_shrub.png", + wield_image = "default_dry_shrub.png", + paramtype = "light", + waving = 1, + walkable = false, + is_ground_content = true, + buildable_to = true, + groups = {snappy=3,flammable=3,attached_node=1}, + sounds = default.node_sound_leaves_defaults(), + selection_box = { + type = "fixed", + fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5}, + }, +}) + +minetest.register_node("default:grass_1", { + description = "Grass", + drawtype = "plantlike", + tiles = {"default_grass_1.png"}, + -- use a bigger inventory image + inventory_image = "default_grass_3.png", + wield_image = "default_grass_3.png", + paramtype = "light", + walkable = false, + is_ground_content = true, + buildable_to = true, + groups = {snappy=3,flammable=3,flora=1,attached_node=1}, + sounds = default.node_sound_leaves_defaults(), + selection_box = { + type = "fixed", + fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5}, + }, + on_place = function(itemstack, placer, pointed_thing) + -- place a random grass node + local stack = ItemStack("default:grass_"..math.random(1,5)) + local ret = minetest.item_place(stack, placer, pointed_thing) + return ItemStack("default:grass_1 "..itemstack:get_count()-(1-ret:get_count())) + end, +}) + +minetest.register_node("default:grass_2", { + description = "Grass", + drawtype = "plantlike", + tiles = {"default_grass_2.png"}, + inventory_image = "default_grass_2.png", + wield_image = "default_grass_2.png", + paramtype = "light", + walkable = false, + buildable_to = true, + is_ground_content = true, + drop = "default:grass_1", + groups = {snappy=3,flammable=3,flora=1,attached_node=1,not_in_creative_inventory=1}, + sounds = default.node_sound_leaves_defaults(), + selection_box = { + type = "fixed", + fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5}, + }, +}) +minetest.register_node("default:grass_3", { + description = "Grass", + drawtype = "plantlike", + tiles = {"default_grass_3.png"}, + inventory_image = "default_grass_3.png", + wield_image = "default_grass_3.png", + paramtype = "light", + walkable = false, + buildable_to = true, + is_ground_content = true, + drop = "default:grass_1", + groups = {snappy=3,flammable=3,flora=1,attached_node=1,not_in_creative_inventory=1}, + sounds = default.node_sound_leaves_defaults(), + selection_box = { + type = "fixed", + fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5}, + }, +}) + +minetest.register_node("default:grass_4", { + description = "Grass", + drawtype = "plantlike", + tiles = {"default_grass_4.png"}, + inventory_image = "default_grass_4.png", + wield_image = "default_grass_4.png", + paramtype = "light", + walkable = false, + buildable_to = true, + is_ground_content = true, + drop = "default:grass_1", + groups = {snappy=3,flammable=3,flora=1,attached_node=1,not_in_creative_inventory=1}, + sounds = default.node_sound_leaves_defaults(), + selection_box = { + type = "fixed", + fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5}, + }, +}) + +minetest.register_node("default:grass_5", { + description = "Grass", + drawtype = "plantlike", + tiles = {"default_grass_5.png"}, + inventory_image = "default_grass_5.png", + wield_image = "default_grass_5.png", + paramtype = "light", + walkable = false, + buildable_to = true, + is_ground_content = true, + drop = "default:grass_1", + groups = {snappy=3,flammable=3,flora=1,attached_node=1,not_in_creative_inventory=1}, + sounds = default.node_sound_leaves_defaults(), + selection_box = { + type = "fixed", + fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5}, + }, +}) + +minetest.register_node("default:ice", { + description = "Ice", + tiles = {"default_ice.png"}, + is_ground_content = true, + paramtype = "light", + freezemelt = "default:water_source", + groups = {cracky=3, melts=1}, + sounds = default.node_sound_glass_defaults(), +}) + +minetest.register_node("default:snow", { + description = "Snow", + tiles = {"default_snow.png"}, + inventory_image = "default_snowball.png", + wield_image = "default_snowball.png", + is_ground_content = true, + paramtype = "light", + buildable_to = true, + leveled = 7, + drawtype = "nodebox", + freezemelt = "default:water_flowing", + node_box = { + type = "leveled", + fixed = { + {-0.5, -0.5, -0.5, 0.5, -0.5+2/16, 0.5}, + }, + }, + groups = {crumbly=3,falling_node=1, melts=1, float=1}, + sounds = default.node_sound_dirt_defaults({ + footstep = {name="default_snow_footstep", gain=0.25}, + dug = {name="default_snow_footstep", gain=0.75}, + }), + on_construct = function(pos) + pos.y = pos.y - 1 + if minetest.get_node(pos).name == "default:dirt_with_grass" then + minetest.set_node(pos, {name="default:dirt_with_snow"}) + end + end, +}) +minetest.register_alias("snow", "default:snow") + +minetest.register_node("default:snowblock", { + description = "Snow Block", + tiles = {"default_snow.png"}, + is_ground_content = true, + freezemelt = "default:water_source", + groups = {crumbly=3, melts=1}, + sounds = default.node_sound_dirt_defaults({ + footstep = {name="default_snow_footstep", gain=0.25}, + dug = {name="default_snow_footstep", gain=0.75}, + }), +}) diff --git a/mods/default/player.lua b/mods/default/player.lua new file mode 100644 index 0000000..d7426d8 --- /dev/null +++ b/mods/default/player.lua @@ -0,0 +1,197 @@ +-- Minetest 0.4 mod: player +-- See README.txt for licensing and other information. + +--[[ + +API +--- + +default.player_register_model(name, def) +^ Register a new model to be used by players. +^ is the model filename such as "character.x", "foo.b3d", etc. +^ See Model Definition below for format of . + +default.registered_player_models[name] +^ See Model Definition below for format. + +default.player_set_model(player, model_name) +^ is a PlayerRef. +^ is a model registered with player_register_model. + +default.player_set_animation(player, anim_name [, speed]) +^ is a PlayerRef. +^ is the name of the animation. +^ is in frames per second. If nil, default from the model is used + +default.player_set_textures(player, textures) +^ is a PlayerRef. +^ is an array of textures +^ If is nil, the default textures from the model def are used + +default.player_get_animation(player) +^ is a PlayerRef. +^ Returns a table containing fields "model", "textures" and "animation". +^ Any of the fields of the returned table may be nil. + +Model Definition +---------------- + +model_def = { + animation_speed = 30, -- Default animation speed, in FPS. + textures = {"character.png", }, -- Default array of textures. + visual_size = {x=1, y=1,}, -- Used to scale the model. + animations = { + -- = { x=, y=, }, + foo = { x= 0, y=19, }, + bar = { x=20, y=39, }, + -- ... + }, +} + +]] + +-- Player animation blending +-- Note: This is currently broken due to a bug in Irrlicht, leave at 0 +local animation_blend = 0 + +default.registered_player_models = { } + +-- Local for speed. +local models = default.registered_player_models + +function default.player_register_model(name, def) + models[name] = def +end + +-- Default player appearance +default.player_register_model("character.x", { + animation_speed = 30, + textures = {"character.png", }, + animations = { + -- Standard animations. + stand = { x= 0, y= 79, }, + lay = { x=162, y=166, }, + walk = { x=168, y=187, }, + mine = { x=189, y=198, }, + walk_mine = { x=200, y=219, }, + -- Extra animations (not currently used by the game). + sit = { x= 81, y=160, }, + }, +}) + +-- Player stats and animations +local player_model = {} +local player_textures = {} +local player_anim = {} +local player_sneak = {} + +function default.player_get_animation(player) + local name = player:get_player_name() + return { + model = player_model[name], + textures = player_textures[name], + animation = player_anim[name], + } +end + +-- Called when a player's appearance needs to be updated +function default.player_set_model(player, model_name) + local name = player:get_player_name() + local model = models[model_name] + if model then + if player_model[name] == model_name then + return + end + player:set_properties({ + mesh = model_name, + textures = player_textures[name] or model.textures, + visual = "mesh", + visual_size = model.visual_size or {x=1, y=1}, + }) + default.player_set_animation(player, "stand") + else + player:set_properties({ + textures = { "player.png", "player_back.png", }, + visual = "upright_sprite", + }) + end + player_model[name] = model_name +end + +function default.player_set_textures(player, textures) + local name = player:get_player_name() + player_textures[name] = textures + player:set_properties({textures = textures,}) +end + +function default.player_set_animation(player, anim_name, speed) + local name = player:get_player_name() + if player_anim[name] == anim_name then + return + end + local model = player_model[name] and models[player_model[name]] + if not (model and model.animations[anim_name]) then + return + end + local anim = model.animations[anim_name] + player_anim[name] = anim_name + player:set_animation(anim, speed or model.animation_speed, animation_blend) +end + +-- Update appearance when the player joins +minetest.register_on_joinplayer(function(player) + default.player_set_model(player, "character.x") +end) + +minetest.register_on_leaveplayer(function(player) + local name = player:get_player_name() + player_model[name] = nil + player_anim[name] = nil + player_textures[name] = nil +end) + +-- Localize for better performance. +local player_set_animation = default.player_set_animation + +-- Check each player and apply animations +minetest.register_globalstep(function(dtime) + for _, player in pairs(minetest.get_connected_players()) do + local name = player:get_player_name() + local model_name = player_model[name] + local model = model_name and models[model_name] + if model then + local controls = player:get_player_control() + local walking = false + local animation_speed_mod = model.animation_speed or 30 + + -- Determine if the player is walking + if controls.up or controls.down or controls.left or controls.right then + walking = true + end + + -- Determine if the player is sneaking, and reduce animation speed if so + if controls.sneak then + animation_speed_mod = animation_speed_mod / 2 + end + + -- Apply animations based on what the player is doing + if player:get_hp() == 0 then + player_set_animation(player, "lay") + elseif walking then + if player_sneak[name] ~= controls.sneak then + player_anim[name] = nil + player_sneak[name] = controls.sneak + end + if controls.LMB then + player_set_animation(player, "walk_mine", animation_speed_mod) + else + player_set_animation(player, "walk", animation_speed_mod) + end + elseif controls.LMB then + player_set_animation(player, "mine") + else + player_set_animation(player, "stand", animation_speed_mod) + end + end + end +end) diff --git a/mods/default/sounds/default_break_glass.1.ogg b/mods/default/sounds/default_break_glass.1.ogg new file mode 100644 index 0000000..b1ccc5f Binary files /dev/null and b/mods/default/sounds/default_break_glass.1.ogg differ diff --git a/mods/default/sounds/default_break_glass.2.ogg b/mods/default/sounds/default_break_glass.2.ogg new file mode 100644 index 0000000..b6cc9e8 Binary files /dev/null and b/mods/default/sounds/default_break_glass.2.ogg differ diff --git a/mods/default/sounds/default_break_glass.3.ogg b/mods/default/sounds/default_break_glass.3.ogg new file mode 100644 index 0000000..ae6a6bf Binary files /dev/null and b/mods/default/sounds/default_break_glass.3.ogg differ diff --git a/mods/default/sounds/default_cool_lava.1.ogg b/mods/default/sounds/default_cool_lava.1.ogg new file mode 100644 index 0000000..42506dd Binary files /dev/null and b/mods/default/sounds/default_cool_lava.1.ogg differ diff --git a/mods/default/sounds/default_cool_lava.2.ogg b/mods/default/sounds/default_cool_lava.2.ogg new file mode 100644 index 0000000..2747ab8 Binary files /dev/null and b/mods/default/sounds/default_cool_lava.2.ogg differ diff --git a/mods/default/sounds/default_cool_lava.3.ogg b/mods/default/sounds/default_cool_lava.3.ogg new file mode 100644 index 0000000..8baeac3 Binary files /dev/null and b/mods/default/sounds/default_cool_lava.3.ogg differ diff --git a/mods/default/sounds/default_dig_choppy.ogg b/mods/default/sounds/default_dig_choppy.ogg new file mode 100644 index 0000000..e2ecd84 Binary files /dev/null and b/mods/default/sounds/default_dig_choppy.ogg differ diff --git a/mods/default/sounds/default_dig_cracky.ogg b/mods/default/sounds/default_dig_cracky.ogg new file mode 100644 index 0000000..da11679 Binary files /dev/null and b/mods/default/sounds/default_dig_cracky.ogg differ diff --git a/mods/default/sounds/default_dig_crumbly.1.ogg b/mods/default/sounds/default_dig_crumbly.1.ogg new file mode 100644 index 0000000..ea5830a Binary files /dev/null and b/mods/default/sounds/default_dig_crumbly.1.ogg differ diff --git a/mods/default/sounds/default_dig_crumbly.2.ogg b/mods/default/sounds/default_dig_crumbly.2.ogg new file mode 100644 index 0000000..f1a9248 Binary files /dev/null and b/mods/default/sounds/default_dig_crumbly.2.ogg differ diff --git a/mods/default/sounds/default_dig_crumbly.ogg b/mods/default/sounds/default_dig_crumbly.ogg new file mode 100644 index 0000000..a0b2a1f Binary files /dev/null and b/mods/default/sounds/default_dig_crumbly.ogg differ diff --git a/mods/default/sounds/default_dig_dig_immediate.ogg b/mods/default/sounds/default_dig_dig_immediate.ogg new file mode 100644 index 0000000..e65d766 Binary files /dev/null and b/mods/default/sounds/default_dig_dig_immediate.ogg differ diff --git a/mods/default/sounds/default_dig_oddly_breakable_by_hand.ogg b/mods/default/sounds/default_dig_oddly_breakable_by_hand.ogg new file mode 100644 index 0000000..ef4d7b1 Binary files /dev/null and b/mods/default/sounds/default_dig_oddly_breakable_by_hand.ogg differ diff --git a/mods/default/sounds/default_dirt_footstep.1.ogg b/mods/default/sounds/default_dirt_footstep.1.ogg new file mode 100644 index 0000000..84a197d Binary files /dev/null and b/mods/default/sounds/default_dirt_footstep.1.ogg differ diff --git a/mods/default/sounds/default_dirt_footstep.2.ogg b/mods/default/sounds/default_dirt_footstep.2.ogg new file mode 100644 index 0000000..2e23b8a Binary files /dev/null and b/mods/default/sounds/default_dirt_footstep.2.ogg differ diff --git a/mods/default/sounds/default_dug_node.1.ogg b/mods/default/sounds/default_dug_node.1.ogg new file mode 100644 index 0000000..c04975d Binary files /dev/null and b/mods/default/sounds/default_dug_node.1.ogg differ diff --git a/mods/default/sounds/default_dug_node.2.ogg b/mods/default/sounds/default_dug_node.2.ogg new file mode 100644 index 0000000..9f20926 Binary files /dev/null and b/mods/default/sounds/default_dug_node.2.ogg differ diff --git a/mods/default/sounds/default_glass_footstep.ogg b/mods/default/sounds/default_glass_footstep.ogg new file mode 100644 index 0000000..191287a Binary files /dev/null and b/mods/default/sounds/default_glass_footstep.ogg differ diff --git a/mods/default/sounds/default_grass_footstep.1.ogg b/mods/default/sounds/default_grass_footstep.1.ogg new file mode 100644 index 0000000..22d1ad6 Binary files /dev/null and b/mods/default/sounds/default_grass_footstep.1.ogg differ diff --git a/mods/default/sounds/default_grass_footstep.2.ogg b/mods/default/sounds/default_grass_footstep.2.ogg new file mode 100644 index 0000000..4ccd8a0 Binary files /dev/null and b/mods/default/sounds/default_grass_footstep.2.ogg differ diff --git a/mods/default/sounds/default_grass_footstep.3.ogg b/mods/default/sounds/default_grass_footstep.3.ogg new file mode 100644 index 0000000..20db84e Binary files /dev/null and b/mods/default/sounds/default_grass_footstep.3.ogg differ diff --git a/mods/default/sounds/default_gravel_footstep.1.ogg b/mods/default/sounds/default_gravel_footstep.1.ogg new file mode 100644 index 0000000..8d260ce Binary files /dev/null and b/mods/default/sounds/default_gravel_footstep.1.ogg differ diff --git a/mods/default/sounds/default_gravel_footstep.2.ogg b/mods/default/sounds/default_gravel_footstep.2.ogg new file mode 100644 index 0000000..2aba2c6 Binary files /dev/null and b/mods/default/sounds/default_gravel_footstep.2.ogg differ diff --git a/mods/default/sounds/default_gravel_footstep.3.ogg b/mods/default/sounds/default_gravel_footstep.3.ogg new file mode 100644 index 0000000..1bcd8a1 Binary files /dev/null and b/mods/default/sounds/default_gravel_footstep.3.ogg differ diff --git a/mods/default/sounds/default_gravel_footstep.4.ogg b/mods/default/sounds/default_gravel_footstep.4.ogg new file mode 100644 index 0000000..696c9ff Binary files /dev/null and b/mods/default/sounds/default_gravel_footstep.4.ogg differ diff --git a/mods/default/sounds/default_hard_footstep.1.ogg b/mods/default/sounds/default_hard_footstep.1.ogg new file mode 100644 index 0000000..1748bc5 Binary files /dev/null and b/mods/default/sounds/default_hard_footstep.1.ogg differ diff --git a/mods/default/sounds/default_hard_footstep.2.ogg b/mods/default/sounds/default_hard_footstep.2.ogg new file mode 100644 index 0000000..fe39fd7 Binary files /dev/null and b/mods/default/sounds/default_hard_footstep.2.ogg differ diff --git a/mods/default/sounds/default_hard_footstep.3.ogg b/mods/default/sounds/default_hard_footstep.3.ogg new file mode 100644 index 0000000..5030e06 Binary files /dev/null and b/mods/default/sounds/default_hard_footstep.3.ogg differ diff --git a/mods/default/sounds/default_place_node.1.ogg b/mods/default/sounds/default_place_node.1.ogg new file mode 100644 index 0000000..46b9756 Binary files /dev/null and b/mods/default/sounds/default_place_node.1.ogg differ diff --git a/mods/default/sounds/default_place_node.2.ogg b/mods/default/sounds/default_place_node.2.ogg new file mode 100644 index 0000000..d34c01a Binary files /dev/null and b/mods/default/sounds/default_place_node.2.ogg differ diff --git a/mods/default/sounds/default_place_node.3.ogg b/mods/default/sounds/default_place_node.3.ogg new file mode 100644 index 0000000..fc29365 Binary files /dev/null and b/mods/default/sounds/default_place_node.3.ogg differ diff --git a/mods/default/sounds/default_place_node_hard.1.ogg b/mods/default/sounds/default_place_node_hard.1.ogg new file mode 100644 index 0000000..76eecf9 Binary files /dev/null and b/mods/default/sounds/default_place_node_hard.1.ogg differ diff --git a/mods/default/sounds/default_place_node_hard.2.ogg b/mods/default/sounds/default_place_node_hard.2.ogg new file mode 100644 index 0000000..1d3b3de Binary files /dev/null and b/mods/default/sounds/default_place_node_hard.2.ogg differ diff --git a/mods/default/sounds/default_sand_footstep.1.ogg b/mods/default/sounds/default_sand_footstep.1.ogg new file mode 100644 index 0000000..65b68c7 Binary files /dev/null and b/mods/default/sounds/default_sand_footstep.1.ogg differ diff --git a/mods/default/sounds/default_sand_footstep.2.ogg b/mods/default/sounds/default_sand_footstep.2.ogg new file mode 100644 index 0000000..57f35f3 Binary files /dev/null and b/mods/default/sounds/default_sand_footstep.2.ogg differ diff --git a/mods/default/sounds/default_snow_footstep.1.ogg b/mods/default/sounds/default_snow_footstep.1.ogg new file mode 100644 index 0000000..3260b91 Binary files /dev/null and b/mods/default/sounds/default_snow_footstep.1.ogg differ diff --git a/mods/default/sounds/default_snow_footstep.2.ogg b/mods/default/sounds/default_snow_footstep.2.ogg new file mode 100644 index 0000000..4aac1e7 Binary files /dev/null and b/mods/default/sounds/default_snow_footstep.2.ogg differ diff --git a/mods/default/sounds/default_snow_footstep.3.ogg b/mods/default/sounds/default_snow_footstep.3.ogg new file mode 100644 index 0000000..cf4235b Binary files /dev/null and b/mods/default/sounds/default_snow_footstep.3.ogg differ diff --git a/mods/default/sounds/default_wood_footstep.1.ogg b/mods/default/sounds/default_wood_footstep.1.ogg new file mode 100644 index 0000000..34f63a1 Binary files /dev/null and b/mods/default/sounds/default_wood_footstep.1.ogg differ diff --git a/mods/default/sounds/default_wood_footstep.2.ogg b/mods/default/sounds/default_wood_footstep.2.ogg new file mode 100644 index 0000000..124fc29 Binary files /dev/null and b/mods/default/sounds/default_wood_footstep.2.ogg differ diff --git a/mods/default/textures/bubble.png b/mods/default/textures/bubble.png new file mode 100644 index 0000000..3bca7e1 Binary files /dev/null and b/mods/default/textures/bubble.png differ diff --git a/mods/default/textures/crack_anylength.png b/mods/default/textures/crack_anylength.png new file mode 100644 index 0000000..a25e26f Binary files /dev/null and b/mods/default/textures/crack_anylength.png differ diff --git a/mods/default/textures/default_apple.png b/mods/default/textures/default_apple.png new file mode 100644 index 0000000..97792e1 Binary files /dev/null and b/mods/default/textures/default_apple.png differ diff --git a/mods/default/textures/default_book.png b/mods/default/textures/default_book.png new file mode 100644 index 0000000..6b3a0c2 Binary files /dev/null and b/mods/default/textures/default_book.png differ diff --git a/mods/default/textures/default_bookshelf.png b/mods/default/textures/default_bookshelf.png new file mode 100644 index 0000000..27d8fe0 Binary files /dev/null and b/mods/default/textures/default_bookshelf.png differ diff --git a/mods/default/textures/default_brick.png b/mods/default/textures/default_brick.png new file mode 100644 index 0000000..bb0c3e4 Binary files /dev/null and b/mods/default/textures/default_brick.png differ diff --git a/mods/default/textures/default_bronze_block.png b/mods/default/textures/default_bronze_block.png new file mode 100644 index 0000000..8fe95b2 Binary files /dev/null and b/mods/default/textures/default_bronze_block.png differ diff --git a/mods/default/textures/default_bronze_ingot.png b/mods/default/textures/default_bronze_ingot.png new file mode 100644 index 0000000..2946b83 Binary files /dev/null and b/mods/default/textures/default_bronze_ingot.png differ diff --git a/mods/default/textures/default_cactus_side.png b/mods/default/textures/default_cactus_side.png new file mode 100644 index 0000000..c325a01 Binary files /dev/null and b/mods/default/textures/default_cactus_side.png differ diff --git a/mods/default/textures/default_cactus_top.png b/mods/default/textures/default_cactus_top.png new file mode 100644 index 0000000..c0e9769 Binary files /dev/null and b/mods/default/textures/default_cactus_top.png differ diff --git a/mods/default/textures/default_chest_front.png b/mods/default/textures/default_chest_front.png new file mode 100644 index 0000000..70f6a5c Binary files /dev/null and b/mods/default/textures/default_chest_front.png differ diff --git a/mods/default/textures/default_chest_side.png b/mods/default/textures/default_chest_side.png new file mode 100644 index 0000000..5999e41 Binary files /dev/null and b/mods/default/textures/default_chest_side.png differ diff --git a/mods/default/textures/default_chest_top.png b/mods/default/textures/default_chest_top.png new file mode 100644 index 0000000..fdd90ef Binary files /dev/null and b/mods/default/textures/default_chest_top.png differ diff --git a/mods/default/textures/default_clay.png b/mods/default/textures/default_clay.png new file mode 100644 index 0000000..6721079 Binary files /dev/null and b/mods/default/textures/default_clay.png differ diff --git a/mods/default/textures/default_clay_brick.png b/mods/default/textures/default_clay_brick.png new file mode 100644 index 0000000..f666369 Binary files /dev/null and b/mods/default/textures/default_clay_brick.png differ diff --git a/mods/default/textures/default_clay_lump.png b/mods/default/textures/default_clay_lump.png new file mode 100644 index 0000000..4b70d7c Binary files /dev/null and b/mods/default/textures/default_clay_lump.png differ diff --git a/mods/default/textures/default_cloud.png b/mods/default/textures/default_cloud.png new file mode 100644 index 0000000..6a1537d Binary files /dev/null and b/mods/default/textures/default_cloud.png differ diff --git a/mods/default/textures/default_coal_block.png b/mods/default/textures/default_coal_block.png new file mode 100644 index 0000000..84e8b54 Binary files /dev/null and b/mods/default/textures/default_coal_block.png differ diff --git a/mods/default/textures/default_coal_lump.png b/mods/default/textures/default_coal_lump.png new file mode 100644 index 0000000..56e6ae7 Binary files /dev/null and b/mods/default/textures/default_coal_lump.png differ diff --git a/mods/default/textures/default_cobble.png b/mods/default/textures/default_cobble.png new file mode 100644 index 0000000..cf8896d Binary files /dev/null and b/mods/default/textures/default_cobble.png differ diff --git a/mods/default/textures/default_copper_block.png b/mods/default/textures/default_copper_block.png new file mode 100644 index 0000000..1224685 Binary files /dev/null and b/mods/default/textures/default_copper_block.png differ diff --git a/mods/default/textures/default_copper_ingot.png b/mods/default/textures/default_copper_ingot.png new file mode 100644 index 0000000..7979608 Binary files /dev/null and b/mods/default/textures/default_copper_ingot.png differ diff --git a/mods/default/textures/default_copper_lump.png b/mods/default/textures/default_copper_lump.png new file mode 100644 index 0000000..b65b77f Binary files /dev/null and b/mods/default/textures/default_copper_lump.png differ diff --git a/mods/default/textures/default_desert_sand.png b/mods/default/textures/default_desert_sand.png new file mode 100644 index 0000000..27750fb Binary files /dev/null and b/mods/default/textures/default_desert_sand.png differ diff --git a/mods/default/textures/default_desert_stone.png b/mods/default/textures/default_desert_stone.png new file mode 100644 index 0000000..b6b4b66 Binary files /dev/null and b/mods/default/textures/default_desert_stone.png differ diff --git a/mods/default/textures/default_desert_stone_brick.png b/mods/default/textures/default_desert_stone_brick.png new file mode 100644 index 0000000..6af1936 Binary files /dev/null and b/mods/default/textures/default_desert_stone_brick.png differ diff --git a/mods/default/textures/default_diamond.png b/mods/default/textures/default_diamond.png new file mode 100644 index 0000000..2902d00 Binary files /dev/null and b/mods/default/textures/default_diamond.png differ diff --git a/mods/default/textures/default_diamond_block.png b/mods/default/textures/default_diamond_block.png new file mode 100644 index 0000000..8481578 Binary files /dev/null and b/mods/default/textures/default_diamond_block.png differ diff --git a/mods/default/textures/default_dirt.png b/mods/default/textures/default_dirt.png new file mode 100644 index 0000000..2ced98e Binary files /dev/null and b/mods/default/textures/default_dirt.png differ diff --git a/mods/default/textures/default_dry_shrub.png b/mods/default/textures/default_dry_shrub.png new file mode 100644 index 0000000..75c67c3 Binary files /dev/null and b/mods/default/textures/default_dry_shrub.png differ diff --git a/mods/default/textures/default_fence.png b/mods/default/textures/default_fence.png new file mode 100644 index 0000000..ca6ed59 Binary files /dev/null and b/mods/default/textures/default_fence.png differ diff --git a/mods/default/textures/default_furnace_bottom.png b/mods/default/textures/default_furnace_bottom.png new file mode 100644 index 0000000..2d19b6b Binary files /dev/null and b/mods/default/textures/default_furnace_bottom.png differ diff --git a/mods/default/textures/default_furnace_fire_bg.png b/mods/default/textures/default_furnace_fire_bg.png new file mode 100644 index 0000000..e98a4f6 Binary files /dev/null and b/mods/default/textures/default_furnace_fire_bg.png differ diff --git a/mods/default/textures/default_furnace_fire_fg.png b/mods/default/textures/default_furnace_fire_fg.png new file mode 100644 index 0000000..66aab65 Binary files /dev/null and b/mods/default/textures/default_furnace_fire_fg.png differ diff --git a/mods/default/textures/default_furnace_front.png b/mods/default/textures/default_furnace_front.png new file mode 100644 index 0000000..88069c7 Binary files /dev/null and b/mods/default/textures/default_furnace_front.png differ diff --git a/mods/default/textures/default_furnace_front_active.png b/mods/default/textures/default_furnace_front_active.png new file mode 100644 index 0000000..10ffd1f Binary files /dev/null and b/mods/default/textures/default_furnace_front_active.png differ diff --git a/mods/default/textures/default_furnace_side.png b/mods/default/textures/default_furnace_side.png new file mode 100644 index 0000000..2d19b6b Binary files /dev/null and b/mods/default/textures/default_furnace_side.png differ diff --git a/mods/default/textures/default_furnace_top.png b/mods/default/textures/default_furnace_top.png new file mode 100644 index 0000000..2d19b6b Binary files /dev/null and b/mods/default/textures/default_furnace_top.png differ diff --git a/mods/default/textures/default_glass.png b/mods/default/textures/default_glass.png new file mode 100644 index 0000000..ade0196 Binary files /dev/null and b/mods/default/textures/default_glass.png differ diff --git a/mods/default/textures/default_gold_block.png b/mods/default/textures/default_gold_block.png new file mode 100644 index 0000000..dee4cdb Binary files /dev/null and b/mods/default/textures/default_gold_block.png differ diff --git a/mods/default/textures/default_gold_ingot.png b/mods/default/textures/default_gold_ingot.png new file mode 100644 index 0000000..48ca66d Binary files /dev/null and b/mods/default/textures/default_gold_ingot.png differ diff --git a/mods/default/textures/default_gold_lump.png b/mods/default/textures/default_gold_lump.png new file mode 100644 index 0000000..776ca80 Binary files /dev/null and b/mods/default/textures/default_gold_lump.png differ diff --git a/mods/default/textures/default_grass.png b/mods/default/textures/default_grass.png new file mode 100644 index 0000000..4e1f0f1 Binary files /dev/null and b/mods/default/textures/default_grass.png differ diff --git a/mods/default/textures/default_grass_1.png b/mods/default/textures/default_grass_1.png new file mode 100644 index 0000000..b03df7c Binary files /dev/null and b/mods/default/textures/default_grass_1.png differ diff --git a/mods/default/textures/default_grass_2.png b/mods/default/textures/default_grass_2.png new file mode 100644 index 0000000..b28172d Binary files /dev/null and b/mods/default/textures/default_grass_2.png differ diff --git a/mods/default/textures/default_grass_3.png b/mods/default/textures/default_grass_3.png new file mode 100644 index 0000000..ba48050 Binary files /dev/null and b/mods/default/textures/default_grass_3.png differ diff --git a/mods/default/textures/default_grass_4.png b/mods/default/textures/default_grass_4.png new file mode 100644 index 0000000..3797fa8 Binary files /dev/null and b/mods/default/textures/default_grass_4.png differ diff --git a/mods/default/textures/default_grass_5.png b/mods/default/textures/default_grass_5.png new file mode 100644 index 0000000..ef19ad9 Binary files /dev/null and b/mods/default/textures/default_grass_5.png differ diff --git a/mods/default/textures/default_grass_footsteps.png b/mods/default/textures/default_grass_footsteps.png new file mode 100644 index 0000000..8349033 Binary files /dev/null and b/mods/default/textures/default_grass_footsteps.png differ diff --git a/mods/default/textures/default_grass_side.png b/mods/default/textures/default_grass_side.png new file mode 100644 index 0000000..06d4d40 Binary files /dev/null and b/mods/default/textures/default_grass_side.png differ diff --git a/mods/default/textures/default_gravel.png b/mods/default/textures/default_gravel.png new file mode 100644 index 0000000..c07aeb9 Binary files /dev/null and b/mods/default/textures/default_gravel.png differ diff --git a/mods/default/textures/default_ice.png b/mods/default/textures/default_ice.png new file mode 100644 index 0000000..4aa583a Binary files /dev/null and b/mods/default/textures/default_ice.png differ diff --git a/mods/default/textures/default_iron_lump.png b/mods/default/textures/default_iron_lump.png new file mode 100644 index 0000000..2cbacc7 Binary files /dev/null and b/mods/default/textures/default_iron_lump.png differ diff --git a/mods/default/textures/default_junglegrass.png b/mods/default/textures/default_junglegrass.png new file mode 100644 index 0000000..d935e57 Binary files /dev/null and b/mods/default/textures/default_junglegrass.png differ diff --git a/mods/default/textures/default_jungleleaves.png b/mods/default/textures/default_jungleleaves.png new file mode 100644 index 0000000..c832327 Binary files /dev/null and b/mods/default/textures/default_jungleleaves.png differ diff --git a/mods/default/textures/default_junglesapling.png b/mods/default/textures/default_junglesapling.png new file mode 100644 index 0000000..aa41099 Binary files /dev/null and b/mods/default/textures/default_junglesapling.png differ diff --git a/mods/default/textures/default_jungletree.png b/mods/default/textures/default_jungletree.png new file mode 100644 index 0000000..b7addc8 Binary files /dev/null and b/mods/default/textures/default_jungletree.png differ diff --git a/mods/default/textures/default_jungletree_top.png b/mods/default/textures/default_jungletree_top.png new file mode 100644 index 0000000..1c3f961 Binary files /dev/null and b/mods/default/textures/default_jungletree_top.png differ diff --git a/mods/default/textures/default_junglewood.png b/mods/default/textures/default_junglewood.png new file mode 100644 index 0000000..2507706 Binary files /dev/null and b/mods/default/textures/default_junglewood.png differ diff --git a/mods/default/textures/default_ladder.png b/mods/default/textures/default_ladder.png new file mode 100644 index 0000000..0d887a9 Binary files /dev/null and b/mods/default/textures/default_ladder.png differ diff --git a/mods/default/textures/default_lava.png b/mods/default/textures/default_lava.png new file mode 100644 index 0000000..559a642 Binary files /dev/null and b/mods/default/textures/default_lava.png differ diff --git a/mods/default/textures/default_lava_flowing_animated.png b/mods/default/textures/default_lava_flowing_animated.png new file mode 100644 index 0000000..2782b4e Binary files /dev/null and b/mods/default/textures/default_lava_flowing_animated.png differ diff --git a/mods/default/textures/default_lava_source_animated.png b/mods/default/textures/default_lava_source_animated.png new file mode 100644 index 0000000..bee60a5 Binary files /dev/null and b/mods/default/textures/default_lava_source_animated.png differ diff --git a/mods/default/textures/default_leaves.png b/mods/default/textures/default_leaves.png new file mode 100644 index 0000000..3d06d2f Binary files /dev/null and b/mods/default/textures/default_leaves.png differ diff --git a/mods/default/textures/default_mese_block.png b/mods/default/textures/default_mese_block.png new file mode 100644 index 0000000..013993b Binary files /dev/null and b/mods/default/textures/default_mese_block.png differ diff --git a/mods/default/textures/default_mese_crystal.png b/mods/default/textures/default_mese_crystal.png new file mode 100644 index 0000000..afc68b7 Binary files /dev/null and b/mods/default/textures/default_mese_crystal.png differ diff --git a/mods/default/textures/default_mese_crystal_fragment.png b/mods/default/textures/default_mese_crystal_fragment.png new file mode 100644 index 0000000..eaf77c4 Binary files /dev/null and b/mods/default/textures/default_mese_crystal_fragment.png differ diff --git a/mods/default/textures/default_mineral_coal.png b/mods/default/textures/default_mineral_coal.png new file mode 100644 index 0000000..559fa36 Binary files /dev/null and b/mods/default/textures/default_mineral_coal.png differ diff --git a/mods/default/textures/default_mineral_copper.png b/mods/default/textures/default_mineral_copper.png new file mode 100644 index 0000000..68344fa Binary files /dev/null and b/mods/default/textures/default_mineral_copper.png differ diff --git a/mods/default/textures/default_mineral_diamond.png b/mods/default/textures/default_mineral_diamond.png new file mode 100644 index 0000000..10f766e Binary files /dev/null and b/mods/default/textures/default_mineral_diamond.png differ diff --git a/mods/default/textures/default_mineral_gold.png b/mods/default/textures/default_mineral_gold.png new file mode 100644 index 0000000..5426de0 Binary files /dev/null and b/mods/default/textures/default_mineral_gold.png differ diff --git a/mods/default/textures/default_mineral_iron.png b/mods/default/textures/default_mineral_iron.png new file mode 100644 index 0000000..48cfee2 Binary files /dev/null and b/mods/default/textures/default_mineral_iron.png differ diff --git a/mods/default/textures/default_mineral_mese.png b/mods/default/textures/default_mineral_mese.png new file mode 100644 index 0000000..98ed97b Binary files /dev/null and b/mods/default/textures/default_mineral_mese.png differ diff --git a/mods/default/textures/default_mossycobble.png b/mods/default/textures/default_mossycobble.png new file mode 100644 index 0000000..91284aa Binary files /dev/null and b/mods/default/textures/default_mossycobble.png differ diff --git a/mods/default/textures/default_nc_back.png b/mods/default/textures/default_nc_back.png new file mode 100644 index 0000000..0c387e1 Binary files /dev/null and b/mods/default/textures/default_nc_back.png differ diff --git a/mods/default/textures/default_nc_front.png b/mods/default/textures/default_nc_front.png new file mode 100644 index 0000000..167f976 Binary files /dev/null and b/mods/default/textures/default_nc_front.png differ diff --git a/mods/default/textures/default_nc_rb.png b/mods/default/textures/default_nc_rb.png new file mode 100644 index 0000000..0fef7d6 Binary files /dev/null and b/mods/default/textures/default_nc_rb.png differ diff --git a/mods/default/textures/default_nc_side.png b/mods/default/textures/default_nc_side.png new file mode 100644 index 0000000..fc8b7bf Binary files /dev/null and b/mods/default/textures/default_nc_side.png differ diff --git a/mods/default/textures/default_obsidian.png b/mods/default/textures/default_obsidian.png new file mode 100644 index 0000000..66b4bb7 Binary files /dev/null and b/mods/default/textures/default_obsidian.png differ diff --git a/mods/default/textures/default_obsidian_glass.png b/mods/default/textures/default_obsidian_glass.png new file mode 100644 index 0000000..42311be Binary files /dev/null and b/mods/default/textures/default_obsidian_glass.png differ diff --git a/mods/default/textures/default_obsidian_shard.png b/mods/default/textures/default_obsidian_shard.png new file mode 100644 index 0000000..b6ef7fa Binary files /dev/null and b/mods/default/textures/default_obsidian_shard.png differ diff --git a/mods/default/textures/default_paper.png b/mods/default/textures/default_paper.png new file mode 100644 index 0000000..d127a93 Binary files /dev/null and b/mods/default/textures/default_paper.png differ diff --git a/mods/default/textures/default_papyrus.png b/mods/default/textures/default_papyrus.png new file mode 100644 index 0000000..8a5361d Binary files /dev/null and b/mods/default/textures/default_papyrus.png differ diff --git a/mods/default/textures/default_rail.png b/mods/default/textures/default_rail.png new file mode 100644 index 0000000..8f1d476 Binary files /dev/null and b/mods/default/textures/default_rail.png differ diff --git a/mods/default/textures/default_rail_crossing.png b/mods/default/textures/default_rail_crossing.png new file mode 100644 index 0000000..cd8b5ad Binary files /dev/null and b/mods/default/textures/default_rail_crossing.png differ diff --git a/mods/default/textures/default_rail_curved.png b/mods/default/textures/default_rail_curved.png new file mode 100644 index 0000000..82e3e7f Binary files /dev/null and b/mods/default/textures/default_rail_curved.png differ diff --git a/mods/default/textures/default_rail_t_junction.png b/mods/default/textures/default_rail_t_junction.png new file mode 100644 index 0000000..1737fb7 Binary files /dev/null and b/mods/default/textures/default_rail_t_junction.png differ diff --git a/mods/default/textures/default_sand.png b/mods/default/textures/default_sand.png new file mode 100644 index 0000000..7477a87 Binary files /dev/null and b/mods/default/textures/default_sand.png differ diff --git a/mods/default/textures/default_sandstone.png b/mods/default/textures/default_sandstone.png new file mode 100644 index 0000000..bd9cb86 Binary files /dev/null and b/mods/default/textures/default_sandstone.png differ diff --git a/mods/default/textures/default_sandstone_brick.png b/mods/default/textures/default_sandstone_brick.png new file mode 100644 index 0000000..eaf0787 Binary files /dev/null and b/mods/default/textures/default_sandstone_brick.png differ diff --git a/mods/default/textures/default_sapling.png b/mods/default/textures/default_sapling.png new file mode 100644 index 0000000..47dabe1 Binary files /dev/null and b/mods/default/textures/default_sapling.png differ diff --git a/mods/default/textures/default_scorched_stuff.png b/mods/default/textures/default_scorched_stuff.png new file mode 100644 index 0000000..f64d177 Binary files /dev/null and b/mods/default/textures/default_scorched_stuff.png differ diff --git a/mods/default/textures/default_sign_wall.png b/mods/default/textures/default_sign_wall.png new file mode 100644 index 0000000..d96985b Binary files /dev/null and b/mods/default/textures/default_sign_wall.png differ diff --git a/mods/default/textures/default_snow.png b/mods/default/textures/default_snow.png new file mode 100644 index 0000000..b4d0cc8 Binary files /dev/null and b/mods/default/textures/default_snow.png differ diff --git a/mods/default/textures/default_snow_side.png b/mods/default/textures/default_snow_side.png new file mode 100644 index 0000000..8336126 Binary files /dev/null and b/mods/default/textures/default_snow_side.png differ diff --git a/mods/default/textures/default_snowball.png b/mods/default/textures/default_snowball.png new file mode 100644 index 0000000..8a4a14a Binary files /dev/null and b/mods/default/textures/default_snowball.png differ diff --git a/mods/default/textures/default_steel_block.png b/mods/default/textures/default_steel_block.png new file mode 100644 index 0000000..fe73730 Binary files /dev/null and b/mods/default/textures/default_steel_block.png differ diff --git a/mods/default/textures/default_steel_ingot.png b/mods/default/textures/default_steel_ingot.png new file mode 100644 index 0000000..fcb4c34 Binary files /dev/null and b/mods/default/textures/default_steel_ingot.png differ diff --git a/mods/default/textures/default_stick.png b/mods/default/textures/default_stick.png new file mode 100644 index 0000000..eac71ad Binary files /dev/null and b/mods/default/textures/default_stick.png differ diff --git a/mods/default/textures/default_stone.png b/mods/default/textures/default_stone.png new file mode 100644 index 0000000..8021035 Binary files /dev/null and b/mods/default/textures/default_stone.png differ diff --git a/mods/default/textures/default_stone_brick.png b/mods/default/textures/default_stone_brick.png new file mode 100644 index 0000000..8032f7d Binary files /dev/null and b/mods/default/textures/default_stone_brick.png differ diff --git a/mods/default/textures/default_tnt_bottom.png b/mods/default/textures/default_tnt_bottom.png new file mode 100644 index 0000000..dd2ae86 Binary files /dev/null and b/mods/default/textures/default_tnt_bottom.png differ diff --git a/mods/default/textures/default_tnt_side.png b/mods/default/textures/default_tnt_side.png new file mode 100644 index 0000000..16fc4b2 Binary files /dev/null and b/mods/default/textures/default_tnt_side.png differ diff --git a/mods/default/textures/default_tnt_top.png b/mods/default/textures/default_tnt_top.png new file mode 100644 index 0000000..7448f13 Binary files /dev/null and b/mods/default/textures/default_tnt_top.png differ diff --git a/mods/default/textures/default_tool_bronzeaxe.png b/mods/default/textures/default_tool_bronzeaxe.png new file mode 100644 index 0000000..9f8e016 Binary files /dev/null and b/mods/default/textures/default_tool_bronzeaxe.png differ diff --git a/mods/default/textures/default_tool_bronzepick.png b/mods/default/textures/default_tool_bronzepick.png new file mode 100644 index 0000000..86e2a75 Binary files /dev/null and b/mods/default/textures/default_tool_bronzepick.png differ diff --git a/mods/default/textures/default_tool_bronzeshovel.png b/mods/default/textures/default_tool_bronzeshovel.png new file mode 100644 index 0000000..44ab7ab Binary files /dev/null and b/mods/default/textures/default_tool_bronzeshovel.png differ diff --git a/mods/default/textures/default_tool_bronzesword.png b/mods/default/textures/default_tool_bronzesword.png new file mode 100644 index 0000000..4d85e9e Binary files /dev/null and b/mods/default/textures/default_tool_bronzesword.png differ diff --git a/mods/default/textures/default_tool_diamondaxe.png b/mods/default/textures/default_tool_diamondaxe.png new file mode 100644 index 0000000..3f1e542 Binary files /dev/null and b/mods/default/textures/default_tool_diamondaxe.png differ diff --git a/mods/default/textures/default_tool_diamondpick.png b/mods/default/textures/default_tool_diamondpick.png new file mode 100644 index 0000000..91859a6 Binary files /dev/null and b/mods/default/textures/default_tool_diamondpick.png differ diff --git a/mods/default/textures/default_tool_diamondshovel.png b/mods/default/textures/default_tool_diamondshovel.png new file mode 100644 index 0000000..19b94fc Binary files /dev/null and b/mods/default/textures/default_tool_diamondshovel.png differ diff --git a/mods/default/textures/default_tool_diamondsword.png b/mods/default/textures/default_tool_diamondsword.png new file mode 100644 index 0000000..ef7d077 Binary files /dev/null and b/mods/default/textures/default_tool_diamondsword.png differ diff --git a/mods/default/textures/default_tool_meseaxe.png b/mods/default/textures/default_tool_meseaxe.png new file mode 100644 index 0000000..630a72d Binary files /dev/null and b/mods/default/textures/default_tool_meseaxe.png differ diff --git a/mods/default/textures/default_tool_mesepick.png b/mods/default/textures/default_tool_mesepick.png new file mode 100644 index 0000000..8d13c0c Binary files /dev/null and b/mods/default/textures/default_tool_mesepick.png differ diff --git a/mods/default/textures/default_tool_meseshovel.png b/mods/default/textures/default_tool_meseshovel.png new file mode 100644 index 0000000..2dbf268 Binary files /dev/null and b/mods/default/textures/default_tool_meseshovel.png differ diff --git a/mods/default/textures/default_tool_mesesword.png b/mods/default/textures/default_tool_mesesword.png new file mode 100644 index 0000000..7ec144f Binary files /dev/null and b/mods/default/textures/default_tool_mesesword.png differ diff --git a/mods/default/textures/default_tool_steelaxe.png b/mods/default/textures/default_tool_steelaxe.png new file mode 100644 index 0000000..1ddf000 Binary files /dev/null and b/mods/default/textures/default_tool_steelaxe.png differ diff --git a/mods/default/textures/default_tool_steelpick.png b/mods/default/textures/default_tool_steelpick.png new file mode 100644 index 0000000..ed62f2e Binary files /dev/null and b/mods/default/textures/default_tool_steelpick.png differ diff --git a/mods/default/textures/default_tool_steelshovel.png b/mods/default/textures/default_tool_steelshovel.png new file mode 100644 index 0000000..32e3fac Binary files /dev/null and b/mods/default/textures/default_tool_steelshovel.png differ diff --git a/mods/default/textures/default_tool_steelsword.png b/mods/default/textures/default_tool_steelsword.png new file mode 100644 index 0000000..ca995ea Binary files /dev/null and b/mods/default/textures/default_tool_steelsword.png differ diff --git a/mods/default/textures/default_tool_stoneaxe.png b/mods/default/textures/default_tool_stoneaxe.png new file mode 100644 index 0000000..1061e10 Binary files /dev/null and b/mods/default/textures/default_tool_stoneaxe.png differ diff --git a/mods/default/textures/default_tool_stonepick.png b/mods/default/textures/default_tool_stonepick.png new file mode 100644 index 0000000..89d9efb Binary files /dev/null and b/mods/default/textures/default_tool_stonepick.png differ diff --git a/mods/default/textures/default_tool_stoneshovel.png b/mods/default/textures/default_tool_stoneshovel.png new file mode 100644 index 0000000..d6f2f93 Binary files /dev/null and b/mods/default/textures/default_tool_stoneshovel.png differ diff --git a/mods/default/textures/default_tool_stonesword.png b/mods/default/textures/default_tool_stonesword.png new file mode 100644 index 0000000..cf02a01 Binary files /dev/null and b/mods/default/textures/default_tool_stonesword.png differ diff --git a/mods/default/textures/default_tool_woodaxe.png b/mods/default/textures/default_tool_woodaxe.png new file mode 100644 index 0000000..4ea505f Binary files /dev/null and b/mods/default/textures/default_tool_woodaxe.png differ diff --git a/mods/default/textures/default_tool_woodpick.png b/mods/default/textures/default_tool_woodpick.png new file mode 100644 index 0000000..2ab00a8 Binary files /dev/null and b/mods/default/textures/default_tool_woodpick.png differ diff --git a/mods/default/textures/default_tool_woodshovel.png b/mods/default/textures/default_tool_woodshovel.png new file mode 100644 index 0000000..18c19a9 Binary files /dev/null and b/mods/default/textures/default_tool_woodshovel.png differ diff --git a/mods/default/textures/default_tool_woodsword.png b/mods/default/textures/default_tool_woodsword.png new file mode 100644 index 0000000..0ca2cf6 Binary files /dev/null and b/mods/default/textures/default_tool_woodsword.png differ diff --git a/mods/default/textures/default_torch.png b/mods/default/textures/default_torch.png new file mode 100644 index 0000000..245022b Binary files /dev/null and b/mods/default/textures/default_torch.png differ diff --git a/mods/default/textures/default_torch_animated.png b/mods/default/textures/default_torch_animated.png new file mode 100644 index 0000000..1622eec Binary files /dev/null and b/mods/default/textures/default_torch_animated.png differ diff --git a/mods/default/textures/default_torch_on_ceiling.png b/mods/default/textures/default_torch_on_ceiling.png new file mode 100644 index 0000000..fc8876e Binary files /dev/null and b/mods/default/textures/default_torch_on_ceiling.png differ diff --git a/mods/default/textures/default_torch_on_ceiling_animated.png b/mods/default/textures/default_torch_on_ceiling_animated.png new file mode 100644 index 0000000..76b25f4 Binary files /dev/null and b/mods/default/textures/default_torch_on_ceiling_animated.png differ diff --git a/mods/default/textures/default_torch_on_floor.png b/mods/default/textures/default_torch_on_floor.png new file mode 100644 index 0000000..5bd5038 Binary files /dev/null and b/mods/default/textures/default_torch_on_floor.png differ diff --git a/mods/default/textures/default_torch_on_floor_animated.png b/mods/default/textures/default_torch_on_floor_animated.png new file mode 100644 index 0000000..1a66bcd Binary files /dev/null and b/mods/default/textures/default_torch_on_floor_animated.png differ diff --git a/mods/default/textures/default_tree.png b/mods/default/textures/default_tree.png new file mode 100644 index 0000000..c875272 Binary files /dev/null and b/mods/default/textures/default_tree.png differ diff --git a/mods/default/textures/default_tree_top.png b/mods/default/textures/default_tree_top.png new file mode 100644 index 0000000..c400fed Binary files /dev/null and b/mods/default/textures/default_tree_top.png differ diff --git a/mods/default/textures/default_water.png b/mods/default/textures/default_water.png new file mode 100644 index 0000000..d2bd0f5 Binary files /dev/null and b/mods/default/textures/default_water.png differ diff --git a/mods/default/textures/default_water_flowing_animated.png b/mods/default/textures/default_water_flowing_animated.png new file mode 100644 index 0000000..3b73505 Binary files /dev/null and b/mods/default/textures/default_water_flowing_animated.png differ diff --git a/mods/default/textures/default_water_source_animated.png b/mods/default/textures/default_water_source_animated.png new file mode 100644 index 0000000..c4a8af4 Binary files /dev/null and b/mods/default/textures/default_water_source_animated.png differ diff --git a/mods/default/textures/default_wood.png b/mods/default/textures/default_wood.png new file mode 100644 index 0000000..f81ff3d Binary files /dev/null and b/mods/default/textures/default_wood.png differ diff --git a/mods/default/textures/heart.png b/mods/default/textures/heart.png new file mode 100644 index 0000000..552d0d8 Binary files /dev/null and b/mods/default/textures/heart.png differ diff --git a/mods/default/textures/player.png b/mods/default/textures/player.png new file mode 100644 index 0000000..f2728e4 Binary files /dev/null and b/mods/default/textures/player.png differ diff --git a/mods/default/textures/player_back.png b/mods/default/textures/player_back.png new file mode 100644 index 0000000..5157d99 Binary files /dev/null and b/mods/default/textures/player_back.png differ diff --git a/mods/default/textures/treeprop.png b/mods/default/textures/treeprop.png new file mode 100644 index 0000000..5e9f333 Binary files /dev/null and b/mods/default/textures/treeprop.png differ diff --git a/mods/default/textures/wieldhand.png b/mods/default/textures/wieldhand.png new file mode 100644 index 0000000..2ea7567 Binary files /dev/null and b/mods/default/textures/wieldhand.png differ diff --git a/mods/default/tools.lua b/mods/default/tools.lua new file mode 100644 index 0000000..25cf81b --- /dev/null +++ b/mods/default/tools.lua @@ -0,0 +1,332 @@ +-- mods/default/tools.lua + +-- The hand +minetest.register_item(":", { + type = "none", + wield_image = "wieldhand.png", + wield_scale = {x=1,y=1,z=2.5}, + tool_capabilities = { + full_punch_interval = 0.9, + max_drop_level = 0, + groupcaps = { + crumbly = {times={[2]=3.00, [3]=0.70}, uses=0, maxlevel=1}, + snappy = {times={[3]=0.40}, uses=0, maxlevel=1}, + oddly_breakable_by_hand = {times={[1]=3.50,[2]=2.00,[3]=0.70}, uses=0} + }, + damage_groups = {fleshy=1}, + } +}) + +-- +-- Picks +-- + +minetest.register_tool("default:pick_wood", { + description = "Wooden Pickaxe", + inventory_image = "default_tool_woodpick.png", + tool_capabilities = { + full_punch_interval = 1.2, + max_drop_level=0, + groupcaps={ + cracky = {times={[3]=1.60}, uses=10, maxlevel=1}, + }, + damage_groups = {fleshy=2}, + }, +}) +minetest.register_tool("default:pick_stone", { + description = "Stone Pickaxe", + inventory_image = "default_tool_stonepick.png", + tool_capabilities = { + full_punch_interval = 1.3, + max_drop_level=0, + groupcaps={ + cracky = {times={[2]=2.0, [3]=1.20}, uses=20, maxlevel=1}, + }, + damage_groups = {fleshy=3}, + }, +}) +minetest.register_tool("default:pick_steel", { + description = "Steel Pickaxe", + inventory_image = "default_tool_steelpick.png", + tool_capabilities = { + full_punch_interval = 1.0, + max_drop_level=1, + groupcaps={ + cracky = {times={[1]=4.00, [2]=1.60, [3]=0.80}, uses=20, maxlevel=2}, + }, + damage_groups = {fleshy=4}, + }, +}) +minetest.register_tool("default:pick_bronze", { + description = "Bronze Pickaxe", + inventory_image = "default_tool_bronzepick.png", + tool_capabilities = { + full_punch_interval = 1.0, + max_drop_level=1, + groupcaps={ + cracky = {times={[1]=4.00, [2]=1.60, [3]=0.80}, uses=30, maxlevel=2}, + }, + damage_groups = {fleshy=4}, + }, +}) +minetest.register_tool("default:pick_mese", { + description = "Mese Pickaxe", + inventory_image = "default_tool_mesepick.png", + tool_capabilities = { + full_punch_interval = 0.9, + max_drop_level=3, + groupcaps={ + cracky = {times={[1]=2.4, [2]=1.2, [3]=0.60}, uses=20, maxlevel=3}, + }, + damage_groups = {fleshy=5}, + }, +}) +minetest.register_tool("default:pick_diamond", { + description = "Diamond Pickaxe", + inventory_image = "default_tool_diamondpick.png", + tool_capabilities = { + full_punch_interval = 0.9, + max_drop_level=3, + groupcaps={ + cracky = {times={[1]=2.0, [2]=1.0, [3]=0.50}, uses=30, maxlevel=3}, + }, + damage_groups = {fleshy=5}, + }, +}) + +-- +-- Shovels +-- + +minetest.register_tool("default:shovel_wood", { + description = "Wooden Shovel", + inventory_image = "default_tool_woodshovel.png", + wield_image = "default_tool_woodshovel.png^[transformR90", + tool_capabilities = { + full_punch_interval = 1.2, + max_drop_level=0, + groupcaps={ + crumbly = {times={[1]=3.00, [2]=1.60, [3]=0.60}, uses=10, maxlevel=1}, + }, + damage_groups = {fleshy=2}, + }, +}) +minetest.register_tool("default:shovel_stone", { + description = "Stone Shovel", + inventory_image = "default_tool_stoneshovel.png", + wield_image = "default_tool_stoneshovel.png^[transformR90", + tool_capabilities = { + full_punch_interval = 1.4, + max_drop_level=0, + groupcaps={ + crumbly = {times={[1]=1.80, [2]=1.20, [3]=0.50}, uses=20, maxlevel=1}, + }, + damage_groups = {fleshy=2}, + }, +}) +minetest.register_tool("default:shovel_steel", { + description = "Steel Shovel", + inventory_image = "default_tool_steelshovel.png", + wield_image = "default_tool_steelshovel.png^[transformR90", + tool_capabilities = { + full_punch_interval = 1.1, + max_drop_level=1, + groupcaps={ + crumbly = {times={[1]=1.50, [2]=0.90, [3]=0.40}, uses=30, maxlevel=2}, + }, + damage_groups = {fleshy=3}, + }, +}) +minetest.register_tool("default:shovel_bronze", { + description = "Bronze Shovel", + inventory_image = "default_tool_bronzeshovel.png", + wield_image = "default_tool_bronzeshovel.png^[transformR90", + tool_capabilities = { + full_punch_interval = 1.1, + max_drop_level=1, + groupcaps={ + crumbly = {times={[1]=1.50, [2]=0.90, [3]=0.40}, uses=40, maxlevel=2}, + }, + damage_groups = {fleshy=3}, + }, +}) +minetest.register_tool("default:shovel_mese", { + description = "Mese Shovel", + inventory_image = "default_tool_meseshovel.png", + wield_image = "default_tool_meseshovel.png^[transformR90", + tool_capabilities = { + full_punch_interval = 1.0, + max_drop_level=3, + groupcaps={ + crumbly = {times={[1]=1.20, [2]=0.60, [3]=0.30}, uses=20, maxlevel=3}, + }, + damage_groups = {fleshy=4}, + }, +}) +minetest.register_tool("default:shovel_diamond", { + description = "Diamond Shovel", + inventory_image = "default_tool_diamondshovel.png", + wield_image = "default_tool_diamondshovel.png^[transformR90", + tool_capabilities = { + full_punch_interval = 1.0, + max_drop_level=1, + groupcaps={ + crumbly = {times={[1]=1.10, [2]=0.50, [3]=0.30}, uses=30, maxlevel=3}, + }, + damage_groups = {fleshy=4}, + }, +}) + +-- +-- Axes +-- + +minetest.register_tool("default:axe_wood", { + description = "Wooden Axe", + inventory_image = "default_tool_woodaxe.png", + tool_capabilities = { + full_punch_interval = 1.0, + max_drop_level=0, + groupcaps={ + choppy = {times={[2]=3.00, [3]=2.00}, uses=10, maxlevel=1}, + }, + damage_groups = {fleshy=2}, + }, +}) +minetest.register_tool("default:axe_stone", { + description = "Stone Axe", + inventory_image = "default_tool_stoneaxe.png", + tool_capabilities = { + full_punch_interval = 1.2, + max_drop_level=0, + groupcaps={ + choppy={times={[1]=3.00, [2]=2.00, [3]=1.50}, uses=20, maxlevel=1}, + }, + damage_groups = {fleshy=3}, + }, +}) +minetest.register_tool("default:axe_steel", { + description = "Steel Axe", + inventory_image = "default_tool_steelaxe.png", + tool_capabilities = { + full_punch_interval = 1.0, + max_drop_level=1, + groupcaps={ + choppy={times={[1]=2.50, [2]=1.40, [3]=1.00}, uses=20, maxlevel=2}, + }, + damage_groups = {fleshy=4}, + }, +}) +minetest.register_tool("default:axe_bronze", { + description = "Bronze Axe", + inventory_image = "default_tool_bronzeaxe.png", + tool_capabilities = { + full_punch_interval = 1.0, + max_drop_level=1, + groupcaps={ + choppy={times={[1]=2.50, [2]=1.40, [3]=1.00}, uses=30, maxlevel=2}, + }, + damage_groups = {fleshy=4}, + }, +}) +minetest.register_tool("default:axe_mese", { + description = "Mese Axe", + inventory_image = "default_tool_meseaxe.png", + tool_capabilities = { + full_punch_interval = 0.9, + max_drop_level=1, + groupcaps={ + choppy={times={[1]=2.20, [2]=1.00, [3]=0.60}, uses=20, maxlevel=3}, + }, + damage_groups = {fleshy=6}, + }, +}) +minetest.register_tool("default:axe_diamond", { + description = "Diamond Axe", + inventory_image = "default_tool_diamondaxe.png", + tool_capabilities = { + full_punch_interval = 0.9, + max_drop_level=1, + groupcaps={ + choppy={times={[1]=2.10, [2]=0.90, [3]=0.50}, uses=30, maxlevel=2}, + }, + damage_groups = {fleshy=7}, + }, +}) + +-- +-- Swords +-- + +minetest.register_tool("default:sword_wood", { + description = "Wooden Sword", + inventory_image = "default_tool_woodsword.png", + tool_capabilities = { + full_punch_interval = 1, + max_drop_level=0, + groupcaps={ + snappy={times={[2]=1.6, [3]=0.40}, uses=10, maxlevel=1}, + }, + damage_groups = {fleshy=2}, + } +}) +minetest.register_tool("default:sword_stone", { + description = "Stone Sword", + inventory_image = "default_tool_stonesword.png", + tool_capabilities = { + full_punch_interval = 1.2, + max_drop_level=0, + groupcaps={ + snappy={times={[2]=1.4, [3]=0.40}, uses=20, maxlevel=1}, + }, + damage_groups = {fleshy=4}, + } +}) +minetest.register_tool("default:sword_steel", { + description = "Steel Sword", + inventory_image = "default_tool_steelsword.png", + tool_capabilities = { + full_punch_interval = 0.8, + max_drop_level=1, + groupcaps={ + snappy={times={[1]=2.5, [2]=1.20, [3]=0.35}, uses=30, maxlevel=2}, + }, + damage_groups = {fleshy=6}, + } +}) +minetest.register_tool("default:sword_bronze", { + description = "Bronze Sword", + inventory_image = "default_tool_bronzesword.png", + tool_capabilities = { + full_punch_interval = 0.8, + max_drop_level=1, + groupcaps={ + snappy={times={[1]=2.5, [2]=1.20, [3]=0.35}, uses=40, maxlevel=2}, + }, + damage_groups = {fleshy=6}, + } +}) +minetest.register_tool("default:sword_mese", { + description = "Mese Sword", + inventory_image = "default_tool_mesesword.png", + tool_capabilities = { + full_punch_interval = 0.7, + max_drop_level=1, + groupcaps={ + snappy={times={[1]=2.0, [2]=1.00, [3]=0.35}, uses=30, maxlevel=3}, + }, + damage_groups = {fleshy=7}, + } +}) +minetest.register_tool("default:sword_diamond", { + description = "Diamond Sword", + inventory_image = "default_tool_diamondsword.png", + tool_capabilities = { + full_punch_interval = 0.7, + max_drop_level=1, + groupcaps={ + snappy={times={[1]=1.90, [2]=0.90, [3]=0.30}, uses=40, maxlevel=3}, + }, + damage_groups = {fleshy=8}, + } +}) diff --git a/mods/default/trees.lua b/mods/default/trees.lua new file mode 100644 index 0000000..e68c055 --- /dev/null +++ b/mods/default/trees.lua @@ -0,0 +1,150 @@ +local c_air = minetest.get_content_id("air") +local c_ignore = minetest.get_content_id("ignore") +local c_tree = minetest.get_content_id("default:tree") +local c_leaves = minetest.get_content_id("default:leaves") +local c_apple = minetest.get_content_id("default:apple") + +function default.grow_tree(data, a, pos, is_apple_tree, seed) + --[[ + NOTE: Tree-placing code is currently duplicated in the engine + and in games that have saplings; both are deprecated but not + replaced yet + ]]-- + local pr = PseudoRandom(seed) + local th = pr:next(4, 5) + local x, y, z = pos.x, pos.y, pos.z + for yy = y, y+th-1 do + local vi = a:index(x, yy, z) + if a:contains(x, yy, z) and (data[vi] == c_air or yy == y) then + data[vi] = c_tree + end + end + y = y+th-1 -- (x, y, z) is now last piece of trunk + local leaves_a = VoxelArea:new{MinEdge={x=-2, y=-1, z=-2}, MaxEdge={x=2, y=2, z=2}} + local leaves_buffer = {} + + -- Force leaves near the trunk + local d = 1 + for xi = -d, d do + for yi = -d, d do + for zi = -d, d do + leaves_buffer[leaves_a:index(xi, yi, zi)] = true + end + end + end + + -- Add leaves randomly + for iii = 1, 8 do + local d = 1 + local xx = pr:next(leaves_a.MinEdge.x, leaves_a.MaxEdge.x - d) + local yy = pr:next(leaves_a.MinEdge.y, leaves_a.MaxEdge.y - d) + local zz = pr:next(leaves_a.MinEdge.z, leaves_a.MaxEdge.z - d) + + for xi = 0, d do + for yi = 0, d do + for zi = 0, d do + leaves_buffer[leaves_a:index(xx+xi, yy+yi, zz+zi)] = true + end + end + end + end + + -- Add the leaves + for xi = leaves_a.MinEdge.x, leaves_a.MaxEdge.x do + for yi = leaves_a.MinEdge.y, leaves_a.MaxEdge.y do + for zi = leaves_a.MinEdge.z, leaves_a.MaxEdge.z do + if a:contains(x+xi, y+yi, z+zi) then + local vi = a:index(x+xi, y+yi, z+zi) + if data[vi] == c_air or data[vi] == c_ignore then + if leaves_buffer[leaves_a:index(xi, yi, zi)] then + if is_apple_tree and pr:next(1, 100) <= 10 then + data[vi] = c_apple + else + data[vi] = c_leaves + end + end + end + end + end + end + end +end + +local c_jungletree = minetest.get_content_id("default:jungletree") +local c_jungleleaves = minetest.get_content_id("default:jungleleaves") + +function default.grow_jungletree(data, a, pos, seed) + --[[ + NOTE: Tree-placing code is currently duplicated in the engine + and in games that have saplings; both are deprecated but not + replaced yet + ]]-- + local pr = PseudoRandom(seed) + local x, y, z = pos.x, pos.y, pos.z + for xi = -1, 1 do + for zi = -1, 1 do + if pr:next(1, 3) >= 2 then + local vi1 = a:index(x+xi, y, z+zi) + local vi2 = a:index(x+xi, y-1, z+zi) + if a:contains(x+xi, y-1, z+zi) and data[vi2] == c_air then + data[vi2] = c_jungletree + elseif a:contains(x+xi, y, z+zi) and data[vi1] == c_air then + data[vi1] = c_jungletree + end + end + end + end + + local th = pr:next(8, 12) + for yy = y, y+th-1 do + local vi = a:index(x, yy, z) + if a:contains(x, yy, z) and (data[vi] == c_air or yy == y) then + data[vi] = c_jungletree + end + end + y = y+th-1 -- (x, y, z) is now last piece of trunk + local leaves_a = VoxelArea:new{MinEdge={x=-3, y=-2, z=-3}, MaxEdge={x=3, y=2, z=3}} + local leaves_buffer = {} + + -- Force leaves near the trunk + local d = 1 + for xi = -d, d do + for yi = -d, d do + for zi = -d, d do + leaves_buffer[leaves_a:index(xi, yi, zi)] = true + end + end + end + + -- Add leaves randomly + for iii = 1, 30 do + local d = 1 + local xx = pr:next(leaves_a.MinEdge.x, leaves_a.MaxEdge.x - d) + local yy = pr:next(leaves_a.MinEdge.y, leaves_a.MaxEdge.y - d) + local zz = pr:next(leaves_a.MinEdge.z, leaves_a.MaxEdge.z - d) + + for xi = 0, d do + for yi = 0, d do + for zi = 0, d do + leaves_buffer[leaves_a:index(xx+xi, yy+yi, zz+zi)] = true + end + end + end + end + + -- Add the leaves + for xi = leaves_a.MinEdge.x, leaves_a.MaxEdge.x do + for yi = leaves_a.MinEdge.y, leaves_a.MaxEdge.y do + for zi = leaves_a.MinEdge.z, leaves_a.MaxEdge.z do + if a:contains(x+xi, y+yi, z+zi) then + local vi = a:index(x+xi, y+yi, z+zi) + if data[vi] == c_air or data[vi] == c_ignore then + if leaves_buffer[leaves_a:index(xi, yi, zi)] then + data[vi] = c_jungleleaves + end + end + end + end + end + end +end diff --git a/mods/doors/README.txt b/mods/doors/README.txt new file mode 100644 index 0000000..f1d6ab2 --- /dev/null +++ b/mods/doors/README.txt @@ -0,0 +1,23 @@ +Minetest 0.4 mod: doors +======================= + +License of source code: +----------------------- +Copyright (C) 2012 PilzAdam + +This program is free software. It comes without any warranty, to +the extent permitted by applicable law. You can redistribute it +and/or modify it under the terms of the Do What The Fuck You Want +To Public License, Version 2, as published by Sam Hocevar. See +http://sam.zoy.org/wtfpl/COPYING for more details. + +License of media (textures and sounds) +-------------------------------------- +Textures created by Fernando Zapata (CC BY-SA 3.0): + door_wood.png + door_wood_a.png + door_wood_a_r.png + door_wood_b.png + door_wood_b_r.png + +All other textures (created by PilzAdam): WTFPL diff --git a/mods/doors/depends.txt b/mods/doors/depends.txt new file mode 100644 index 0000000..4ad96d5 --- /dev/null +++ b/mods/doors/depends.txt @@ -0,0 +1 @@ +default diff --git a/mods/doors/init.lua b/mods/doors/init.lua new file mode 100644 index 0000000..46ab539 --- /dev/null +++ b/mods/doors/init.lua @@ -0,0 +1,291 @@ +doors = {} + +-- Registers a door +-- name: The name of the door +-- def: a table with the folowing fields: +-- description +-- inventory_image +-- groups +-- tiles_bottom: the tiles of the bottom part of the door {front, side} +-- tiles_top: the tiles of the bottom part of the door {front, side} +-- If the following fields are not defined the default values are used +-- node_box_bottom +-- node_box_top +-- selection_box_bottom +-- selection_box_top +-- only_placer_can_open: if true only the player who placed the door can +-- open it +function doors:register_door(name, def) + def.groups.not_in_creative_inventory = 1 + + local box = {{-0.5, -0.5, -0.5, 0.5, 0.5, -0.5+1.5/16}} + + if not def.node_box_bottom then + def.node_box_bottom = box + end + if not def.node_box_top then + def.node_box_top = box + end + if not def.selection_box_bottom then + def.selection_box_bottom= box + end + if not def.selection_box_top then + def.selection_box_top = box + end + + minetest.register_craftitem(name, { + description = def.description, + inventory_image = def.inventory_image, + + on_place = function(itemstack, placer, pointed_thing) + if not pointed_thing.type == "node" then + return itemstack + end + + local ptu = pointed_thing.under + local nu = minetest.get_node(ptu) + if minetest.registered_nodes[nu.name].on_rightclick then + return minetest.registered_nodes[nu.name].on_rightclick(ptu, nu, placer, itemstack) + end + + local pt = pointed_thing.above + local pt2 = {x=pt.x, y=pt.y, z=pt.z} + pt2.y = pt2.y+1 + if + not minetest.registered_nodes[minetest.get_node(pt).name].buildable_to or + not minetest.registered_nodes[minetest.get_node(pt2).name].buildable_to or + not placer or + not placer:is_player() + then + return itemstack + end + + local p2 = minetest.dir_to_facedir(placer:get_look_dir()) + local pt3 = {x=pt.x, y=pt.y, z=pt.z} + if p2 == 0 then + pt3.x = pt3.x-1 + elseif p2 == 1 then + pt3.z = pt3.z+1 + elseif p2 == 2 then + pt3.x = pt3.x+1 + elseif p2 == 3 then + pt3.z = pt3.z-1 + end + if not string.find(minetest.get_node(pt3).name, name.."_b_") then + minetest.set_node(pt, {name=name.."_b_1", param2=p2}) + minetest.set_node(pt2, {name=name.."_t_1", param2=p2}) + else + minetest.set_node(pt, {name=name.."_b_2", param2=p2}) + minetest.set_node(pt2, {name=name.."_t_2", param2=p2}) + end + + if def.only_placer_can_open then + local pn = placer:get_player_name() + local meta = minetest.get_meta(pt) + meta:set_string("doors_owner", pn) + meta:set_string("infotext", "Owned by "..pn) + meta = minetest.get_meta(pt2) + meta:set_string("doors_owner", pn) + meta:set_string("infotext", "Owned by "..pn) + end + + if not minetest.setting_getbool("creative_mode") then + itemstack:take_item() + end + return itemstack + end, + }) + + local tt = def.tiles_top + local tb = def.tiles_bottom + + local function after_dig_node(pos, name) + if minetest.get_node(pos).name == name then + minetest.remove_node(pos) + end + end + + local function on_rightclick(pos, dir, check_name, replace, replace_dir, params) + pos.y = pos.y+dir + if not minetest.get_node(pos).name == check_name then + return + end + local p2 = minetest.get_node(pos).param2 + p2 = params[p2+1] + + minetest.swap_node(pos, {name=replace_dir, param2=p2}) + + pos.y = pos.y-dir + minetest.swap_node(pos, {name=replace, param2=p2}) + end + + local function check_player_priv(pos, player) + if not def.only_placer_can_open then + return true + end + local meta = minetest.get_meta(pos) + local pn = player:get_player_name() + return meta:get_string("doors_owner") == pn + end + + minetest.register_node(name.."_b_1", { + tiles = {tb[2], tb[2], tb[2], tb[2], tb[1], tb[1].."^[transformfx"}, + paramtype = "light", + paramtype2 = "facedir", + drop = name, + drawtype = "nodebox", + node_box = { + type = "fixed", + fixed = def.node_box_bottom + }, + selection_box = { + type = "fixed", + fixed = def.selection_box_bottom + }, + groups = def.groups, + + after_dig_node = function(pos, oldnode, oldmetadata, digger) + pos.y = pos.y+1 + after_dig_node(pos, name.."_t_1") + end, + + on_rightclick = function(pos, node, clicker) + if check_player_priv(pos, clicker) then + on_rightclick(pos, 1, name.."_t_1", name.."_b_2", name.."_t_2", {1,2,3,0}) + end + end, + + can_dig = check_player_priv, + }) + + minetest.register_node(name.."_t_1", { + tiles = {tt[2], tt[2], tt[2], tt[2], tt[1], tt[1].."^[transformfx"}, + paramtype = "light", + paramtype2 = "facedir", + drop = name, + drawtype = "nodebox", + node_box = { + type = "fixed", + fixed = def.node_box_top + }, + selection_box = { + type = "fixed", + fixed = def.selection_box_top + }, + groups = def.groups, + + after_dig_node = function(pos, oldnode, oldmetadata, digger) + pos.y = pos.y-1 + after_dig_node(pos, name.."_b_1") + end, + + on_rightclick = function(pos, node, clicker) + if check_player_priv(pos, clicker) then + on_rightclick(pos, -1, name.."_b_1", name.."_t_2", name.."_b_2", {1,2,3,0}) + end + end, + + can_dig = check_player_priv, + }) + + minetest.register_node(name.."_b_2", { + tiles = {tb[2], tb[2], tb[2], tb[2], tb[1].."^[transformfx", tb[1]}, + paramtype = "light", + paramtype2 = "facedir", + drop = name, + drawtype = "nodebox", + node_box = { + type = "fixed", + fixed = def.node_box_bottom + }, + selection_box = { + type = "fixed", + fixed = def.selection_box_bottom + }, + groups = def.groups, + + after_dig_node = function(pos, oldnode, oldmetadata, digger) + pos.y = pos.y+1 + after_dig_node(pos, name.."_t_2") + end, + + on_rightclick = function(pos, node, clicker) + if check_player_priv(pos, clicker) then + on_rightclick(pos, 1, name.."_t_2", name.."_b_1", name.."_t_1", {3,0,1,2}) + end + end, + + can_dig = check_player_priv, + }) + + minetest.register_node(name.."_t_2", { + tiles = {tt[2], tt[2], tt[2], tt[2], tt[1].."^[transformfx", tt[1]}, + paramtype = "light", + paramtype2 = "facedir", + drop = name, + drawtype = "nodebox", + node_box = { + type = "fixed", + fixed = def.node_box_top + }, + selection_box = { + type = "fixed", + fixed = def.selection_box_top + }, + groups = def.groups, + + after_dig_node = function(pos, oldnode, oldmetadata, digger) + pos.y = pos.y-1 + after_dig_node(pos, name.."_b_2") + end, + + on_rightclick = function(pos, node, clicker) + if check_player_priv(pos, clicker) then + on_rightclick(pos, -1, name.."_b_2", name.."_t_1", name.."_b_1", {3,0,1,2}) + end + end, + + can_dig = check_player_priv, + }) + +end + +doors:register_door("doors:door_wood", { + description = "Wooden Door", + inventory_image = "door_wood.png", + groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=2,door=1}, + tiles_bottom = {"door_wood_b.png", "door_brown.png"}, + tiles_top = {"door_wood_a.png", "door_brown.png"}, +}) + +minetest.register_craft({ + output = "doors:door_wood", + recipe = { + {"group:wood", "group:wood"}, + {"group:wood", "group:wood"}, + {"group:wood", "group:wood"} + } +}) + +doors:register_door("doors:door_steel", { + description = "Steel Door", + inventory_image = "door_steel.png", + groups = {snappy=1,bendy=2,cracky=1,melty=2,level=2,door=1}, + tiles_bottom = {"door_steel_b.png", "door_grey.png"}, + tiles_top = {"door_steel_a.png", "door_grey.png"}, + only_placer_can_open = true, +}) + +minetest.register_craft({ + output = "doors:door_steel", + recipe = { + {"default:steel_ingot", "default:steel_ingot"}, + {"default:steel_ingot", "default:steel_ingot"}, + {"default:steel_ingot", "default:steel_ingot"} + } +}) + +minetest.register_alias("doors:door_wood_a_c", "doors:door_wood_t_1") +minetest.register_alias("doors:door_wood_a_o", "doors:door_wood_t_1") +minetest.register_alias("doors:door_wood_b_c", "doors:door_wood_b_1") +minetest.register_alias("doors:door_wood_b_o", "doors:door_wood_b_1") diff --git a/mods/doors/textures/door_brown.png b/mods/doors/textures/door_brown.png new file mode 100644 index 0000000..5e6f211 Binary files /dev/null and b/mods/doors/textures/door_brown.png differ diff --git a/mods/doors/textures/door_grey.png b/mods/doors/textures/door_grey.png new file mode 100644 index 0000000..7d95c22 Binary files /dev/null and b/mods/doors/textures/door_grey.png differ diff --git a/mods/doors/textures/door_steel.png b/mods/doors/textures/door_steel.png new file mode 100644 index 0000000..fed1794 Binary files /dev/null and b/mods/doors/textures/door_steel.png differ diff --git a/mods/doors/textures/door_steel_a.png b/mods/doors/textures/door_steel_a.png new file mode 100644 index 0000000..77e3bc7 Binary files /dev/null and b/mods/doors/textures/door_steel_a.png differ diff --git a/mods/doors/textures/door_steel_b.png b/mods/doors/textures/door_steel_b.png new file mode 100644 index 0000000..450f35f Binary files /dev/null and b/mods/doors/textures/door_steel_b.png differ diff --git a/mods/dye/README.txt b/mods/dye/README.txt new file mode 100644 index 0000000..d414c2c --- /dev/null +++ b/mods/dye/README.txt @@ -0,0 +1,15 @@ +Minetest 0.4 mod: dye +====================== + +See init.lua for documentation. + +License of source code and media files: +--------------------------------------- +Copyright (C) 2012 Perttu Ahola (celeron55) + +This program is free software. It comes without any warranty, to +the extent permitted by applicable law. You can redistribute it +and/or modify it under the terms of the Do What The Fuck You Want +To Public License, Version 2, as published by Sam Hocevar. See +http://sam.zoy.org/wtfpl/COPYING for more details. + diff --git a/mods/dye/depends.txt b/mods/dye/depends.txt new file mode 100644 index 0000000..e69de29 diff --git a/mods/dye/init.lua b/mods/dye/init.lua new file mode 100644 index 0000000..ebdc938 --- /dev/null +++ b/mods/dye/init.lua @@ -0,0 +1,139 @@ +-- minetest/dye/init.lua + +-- To make recipes that will work with any dye ever made by anybody, define +-- them based on groups. +-- You can select any group of groups, based on your need for amount of colors. +-- basecolor: 9, excolor: 17, unicolor: 89 +-- +-- Example of one shapeless recipe using a color group: +-- Note: As this uses basecolor_*, you'd need 9 of these. +-- minetest.register_craft({ +-- type = "shapeless", +-- output = ':item_yellow', +-- recipe = {':item_no_color', 'group:basecolor_yellow'}, +-- }) + +-- Other mods can use these for looping through available colors +local dye = {} +dye.basecolors = {"white", "grey", "black", "red", "yellow", "green", "cyan", "blue", "magenta"} +dye.excolors = {"white", "lightgrey", "grey", "darkgrey", "black", "red", "orange", "yellow", "lime", "green", "aqua", "cyan", "sky_blue", "blue", "violet", "magenta", "red_violet"} + +-- Base color groups: +-- - basecolor_white +-- - basecolor_grey +-- - basecolor_black +-- - basecolor_red +-- - basecolor_yellow +-- - basecolor_green +-- - basecolor_cyan +-- - basecolor_blue +-- - basecolor_magenta + +-- Extended color groups (* = equal to a base color): +-- * excolor_white +-- - excolor_lightgrey +-- * excolor_grey +-- - excolor_darkgrey +-- * excolor_black +-- * excolor_red +-- - excolor_orange +-- * excolor_yellow +-- - excolor_lime +-- * excolor_green +-- - excolor_aqua +-- * excolor_cyan +-- - excolor_sky_blue +-- * excolor_blue +-- - excolor_violet +-- * excolor_magenta +-- - excolor_red_violet + +-- The whole unifieddyes palette as groups: +-- - unicolor_ +-- For the following, no white/grey/black is allowed: +-- - unicolor_medium_ +-- - unicolor_dark_ +-- - unicolor_light_ +-- - unicolor__s50 +-- - unicolor_medium__s50 +-- - unicolor_dark__s50 + +-- Local stuff +local dyelocal = {} + +-- This collection of colors is partly a historic thing, partly something else. +dyelocal.dyes = { + {"white", "White dye", {dye=1, basecolor_white=1, excolor_white=1, unicolor_white=1}}, + {"grey", "Grey dye", {dye=1, basecolor_grey=1, excolor_grey=1, unicolor_grey=1}}, + {"dark_grey", "Dark grey dye", {dye=1, basecolor_grey=1, excolor_darkgrey=1, unicolor_darkgrey=1}}, + {"black", "Black dye", {dye=1, basecolor_black=1, excolor_black=1, unicolor_black=1}}, + {"violet", "Violet dye", {dye=1, basecolor_magenta=1, excolor_violet=1, unicolor_violet=1}}, + {"blue", "Blue dye", {dye=1, basecolor_blue=1, excolor_blue=1, unicolor_blue=1}}, + {"cyan", "Cyan dye", {dye=1, basecolor_cyan=1, excolor_cyan=1, unicolor_cyan=1}}, + {"dark_green", "Dark green dye",{dye=1, basecolor_green=1, excolor_green=1, unicolor_dark_green=1}}, + {"green", "Green dye", {dye=1, basecolor_green=1, excolor_green=1, unicolor_green=1}}, + {"yellow", "Yellow dye", {dye=1, basecolor_yellow=1, excolor_yellow=1, unicolor_yellow=1}}, + {"brown", "Brown dye", {dye=1, basecolor_yellow=1, excolor_orange=1, unicolor_dark_orange=1}}, + {"orange", "Orange dye", {dye=1, basecolor_orange=1, excolor_orange=1, unicolor_orange=1}}, + {"red", "Red dye", {dye=1, basecolor_red=1, excolor_red=1, unicolor_red=1}}, + {"magenta", "Magenta dye", {dye=1, basecolor_magenta=1, excolor_red_violet=1,unicolor_red_violet=1}}, + {"pink", "Pink dye", {dye=1, basecolor_red=1, excolor_red=1, unicolor_light_red=1}}, +} + +-- Define items +for _, row in ipairs(dyelocal.dyes) do + local name = row[1] + local description = row[2] + local groups = row[3] + local item_name = "dye:"..name + local item_image = "dye_"..name..".png" + minetest.register_craftitem(item_name, { + inventory_image = item_image, + description = description, + groups = groups + }) + minetest.register_craft({ + type = "shapeless", + output = item_name.." 4", + recipe = {"group:flower,color_"..name}, + }) +end + +-- Mix recipes +-- Just mix everything to everything somehow sanely + +dyelocal.mixbases = {"magenta", "red", "orange", "brown", "yellow", "green", "dark_green", "cyan", "blue", "violet", "black", "dark_grey", "grey", "white"} + +dyelocal.mixes = { + -- magenta, red, orange, brown, yellow, green, dark_green, cyan, blue, violet, black, dark_grey, grey, white + white = {"pink", "pink", "orange", "orange", "yellow", "green", "green", "grey", "cyan", "violet", "grey", "grey", "white", "white"}, + grey = {"pink", "pink", "orange", "orange", "yellow", "green", "green", "grey", "cyan", "pink", "dark_grey","grey", "grey"}, + dark_grey={"brown","brown", "brown", "brown", "brown","dark_green","dark_green","blue","blue","violet","black", "black"}, + black = {"black", "black", "black", "black", "black", "black", "black", "black", "black", "black", "black"}, + violet= {"magenta","magenta","red", "brown", "red", "cyan", "brown", "blue", "violet","violet"}, + blue = {"violet", "magenta","brown","brown","dark_green","cyan","cyan", "cyan", "blue"}, + cyan = {"blue","brown","dark_green","dark_grey","green","cyan","dark_green","cyan"}, + dark_green={"brown","brown","brown", "brown", "green", "green", "dark_green"}, + green = {"brown", "yellow","yellow","dark_green","green","green"}, + yellow= {"red", "orange", "yellow","orange", "yellow"}, + brown = {"brown", "brown","orange", "brown"}, + orange= {"red", "orange","orange"}, + red = {"magenta","red"}, + magenta={"magenta"}, +} + +for one,results in pairs(dyelocal.mixes) do + for i,result in ipairs(results) do + local another = dyelocal.mixbases[i] + minetest.register_craft({ + type = "shapeless", + output = 'dye:'..result..' 2', + recipe = {'dye:'..one, 'dye:'..another}, + }) + end +end + +-- Hide dyelocal +dyelocal = nil + +-- EOF diff --git a/mods/dye/textures/dye_black.png b/mods/dye/textures/dye_black.png new file mode 100644 index 0000000..45e1a74 Binary files /dev/null and b/mods/dye/textures/dye_black.png differ diff --git a/mods/dye/textures/dye_blue.png b/mods/dye/textures/dye_blue.png new file mode 100644 index 0000000..858b70d Binary files /dev/null and b/mods/dye/textures/dye_blue.png differ diff --git a/mods/dye/textures/dye_brown.png b/mods/dye/textures/dye_brown.png new file mode 100644 index 0000000..1ea5f12 Binary files /dev/null and b/mods/dye/textures/dye_brown.png differ diff --git a/mods/dye/textures/dye_cyan.png b/mods/dye/textures/dye_cyan.png new file mode 100644 index 0000000..86ec6cc Binary files /dev/null and b/mods/dye/textures/dye_cyan.png differ diff --git a/mods/dye/textures/dye_dark_green.png b/mods/dye/textures/dye_dark_green.png new file mode 100644 index 0000000..2ab3aa7 Binary files /dev/null and b/mods/dye/textures/dye_dark_green.png differ diff --git a/mods/dye/textures/dye_dark_grey.png b/mods/dye/textures/dye_dark_grey.png new file mode 100644 index 0000000..30b25ab Binary files /dev/null and b/mods/dye/textures/dye_dark_grey.png differ diff --git a/mods/dye/textures/dye_green.png b/mods/dye/textures/dye_green.png new file mode 100644 index 0000000..dd325d6 Binary files /dev/null and b/mods/dye/textures/dye_green.png differ diff --git a/mods/dye/textures/dye_grey.png b/mods/dye/textures/dye_grey.png new file mode 100644 index 0000000..ba45570 Binary files /dev/null and b/mods/dye/textures/dye_grey.png differ diff --git a/mods/dye/textures/dye_magenta.png b/mods/dye/textures/dye_magenta.png new file mode 100644 index 0000000..9e6d91c Binary files /dev/null and b/mods/dye/textures/dye_magenta.png differ diff --git a/mods/dye/textures/dye_orange.png b/mods/dye/textures/dye_orange.png new file mode 100644 index 0000000..568b236 Binary files /dev/null and b/mods/dye/textures/dye_orange.png differ diff --git a/mods/dye/textures/dye_pink.png b/mods/dye/textures/dye_pink.png new file mode 100644 index 0000000..bdbf98b Binary files /dev/null and b/mods/dye/textures/dye_pink.png differ diff --git a/mods/dye/textures/dye_red.png b/mods/dye/textures/dye_red.png new file mode 100644 index 0000000..da502cc Binary files /dev/null and b/mods/dye/textures/dye_red.png differ diff --git a/mods/dye/textures/dye_violet.png b/mods/dye/textures/dye_violet.png new file mode 100644 index 0000000..f73d96f Binary files /dev/null and b/mods/dye/textures/dye_violet.png differ diff --git a/mods/dye/textures/dye_white.png b/mods/dye/textures/dye_white.png new file mode 100644 index 0000000..ffc3d07 Binary files /dev/null and b/mods/dye/textures/dye_white.png differ diff --git a/mods/dye/textures/dye_yellow.png b/mods/dye/textures/dye_yellow.png new file mode 100644 index 0000000..54d0db2 Binary files /dev/null and b/mods/dye/textures/dye_yellow.png differ diff --git a/mods/external_legacy/README.txt b/mods/external_legacy/README.txt new file mode 100644 index 0000000..6451fec --- /dev/null +++ b/mods/external_legacy/README.txt @@ -0,0 +1,18 @@ +Minetest 0.4 mod: external_legacy +================================= + +License of source code: +----------------------- +Copyright (C) 2013 celeron55, Perttu Ahola + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU Lesser General Public License as published by +the Free Software Foundation; either version 2.1 of the License, or +(at your option) any later version. + +http://www.gnu.org/licenses/lgpl-2.1.html + +License of media (textures and sounds) +-------------------------------------- +Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0) +http://creativecommons.org/licenses/by-sa/3.0/ diff --git a/mods/external_legacy/init.lua b/mods/external_legacy/init.lua new file mode 100644 index 0000000..c4d8bb0 --- /dev/null +++ b/mods/external_legacy/init.lua @@ -0,0 +1,24 @@ +-- Minetest 0.4 mod: external_legacy +-- See README.txt for licensing and other information. + +-- Aliases to support moreores' ores +minetest.register_alias("moreores:mineral_gold", "default:stone_with_gold") +minetest.register_alias("moreores:gold_block", "default:goldblock") +minetest.register_alias("moreores:gold_lump", "default:gold_lump") +minetest.register_alias("moreores:gold_ingot", "default:gold_ingot") +minetest.register_alias("moreores:mineral_copper", "default:stone_with_copper") +minetest.register_alias("moreores:copper_lump", "default:copper_lump") +minetest.register_alias("moreores:copper_ingot", "default:copper_ingot") +minetest.register_alias("moreores:copper_block", "default:copperblock") +minetest.register_alias("moreores:bronze_ingot", "default:bronze_ingot") +minetest.register_alias("moreores:bronze_block", "default:bronzeblock") + +-- Aliases for the diamonds mod by InfinityProject +minetest.register_alias("diamonds:diamond_in_ground", "default:stone_with_diamond") +minetest.register_alias("diamonds:block", "default:diamondblock") +minetest.register_alias("diamonds:sword", "default:sword_diamond") +minetest.register_alias("diamonds:pick", "default:pick_diamond") +minetest.register_alias("diamonds:shovel", "default:shovel_diamond") +minetest.register_alias("diamonds:axe", "default:axe_diamond") +minetest.register_alias("diamonds:diamond", "default:diamond") +minetest.register_alias("diamonds:ingot", "default:diamond") diff --git a/mods/farming/README.txt b/mods/farming/README.txt new file mode 100644 index 0000000..b92e0be --- /dev/null +++ b/mods/farming/README.txt @@ -0,0 +1,57 @@ +Minetest 0.4 mod: farming +========================= + +License of source code: +----------------------- +Copyright (C) 2012-2013 PilzAdam + + DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + Version 2, December 2004 + + Copyright (C) 2004 Sam Hocevar + + Everyone is permitted to copy and distribute verbatim or modified + copies of this license document, and changing it is allowed as long + as the name is changed. + + DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. You just DO WHAT THE FUCK YOU WANT TO. + +License of media (textures): +---------------------------- +Created by PilzAdam (License: WTFPL): + farming_bread.png + farming_soil.png + farming_soil_wet.png + farming_soil_wet_side.png + farming_string.png + +Created by Calinou (License: CC BY-SA): + farming_tool_bronzehoe.png + farming_tool_steelhoe.png + farming_tool_stonehoe.png + farming_tool_woodhoe.png + +Created by VanessaE (License: WTFPL): + farming_cotton_seed.png + farming_wheat_seed.png + farming_flour.png + farming_wheat.png + farming_wheat_1.png + farming_wheat_2.png + farming_wheat_3.png + farming_wheat_4.png + farming_wheat_5.png + farming_wheat_5.png + farming_wheat_7.png + farming_wheat_8.png + farming_cotton_1.png + farming_cotton_2.png + farming_cotton_3.png + farming_cotton_4.png + farming_cotton_5.png + farming_cotton_6.png + farming_cotton_7.png + farming_cotton_8.png diff --git a/mods/farming/depends.txt b/mods/farming/depends.txt new file mode 100644 index 0000000..470ec30 --- /dev/null +++ b/mods/farming/depends.txt @@ -0,0 +1,2 @@ +default +wool diff --git a/mods/farming/init.lua b/mods/farming/init.lua new file mode 100644 index 0000000..9c3bf5b --- /dev/null +++ b/mods/farming/init.lua @@ -0,0 +1,502 @@ +-- Minetest 0.4 mod: farming +-- See README.txt for licensing and other information. + +farming = {} + +-- +-- Soil +-- +minetest.register_node("farming:soil", { + description = "Soil", + tiles = {"farming_soil.png", "default_dirt.png"}, + drop = "default:dirt", + is_ground_content = true, + groups = {crumbly=3, not_in_creative_inventory=1, soil=2}, + sounds = default.node_sound_dirt_defaults(), +}) + +minetest.register_node("farming:soil_wet", { + description = "Wet Soil", + tiles = {"farming_soil_wet.png", "farming_soil_wet_side.png"}, + drop = "default:dirt", + is_ground_content = true, + groups = {crumbly=3, not_in_creative_inventory=1, soil=3}, + sounds = default.node_sound_dirt_defaults(), +}) + +minetest.register_abm({ + nodenames = {"farming:soil", "farming:soil_wet"}, + interval = 15, + chance = 4, + action = function(pos, node) + pos.y = pos.y+1 + local nn = minetest.get_node(pos).name + pos.y = pos.y-1 + if minetest.registered_nodes[nn] and + minetest.registered_nodes[nn].walkable and + minetest.get_item_group(nn, "plant") == 0 + then + minetest.set_node(pos, {name="default:dirt"}) + end + -- check if there is water nearby + if minetest.find_node_near(pos, 3, {"group:water"}) then + -- if it is dry soil turn it into wet soil + if node.name == "farming:soil" then + minetest.set_node(pos, {name="farming:soil_wet"}) + end + else + -- turn it back into dirt if it is already dry + if node.name == "farming:soil" then + -- only turn it back if there is no plant on top of it + if minetest.get_item_group(nn, "plant") == 0 then + minetest.set_node(pos, {name="default:dirt"}) + end + + -- if its wet turn it back into dry soil + elseif node.name == "farming:soil_wet" then + minetest.set_node(pos, {name="farming:soil"}) + end + end + end, +}) + +-- +-- Hoes +-- +-- turns nodes with group soil=1 into soil +function farming.hoe_on_use(itemstack, user, pointed_thing, uses) + local pt = pointed_thing + -- check if pointing at a node + if not pt then + return + end + if pt.type ~= "node" then + return + end + + local under = minetest.get_node(pt.under) + local p = {x=pt.under.x, y=pt.under.y+1, z=pt.under.z} + local above = minetest.get_node(p) + + -- return if any of the nodes is not registered + if not minetest.registered_nodes[under.name] then + return + end + if not minetest.registered_nodes[above.name] then + return + end + + -- check if the node above the pointed thing is air + if above.name ~= "air" then + return + end + + -- check if pointing at dirt + if minetest.get_item_group(under.name, "soil") ~= 1 then + return + end + + -- turn the node into soil, wear out item and play sound + minetest.set_node(pt.under, {name="farming:soil"}) + minetest.sound_play("default_dig_crumbly", { + pos = pt.under, + gain = 0.5, + }) + itemstack:add_wear(65535/(uses-1)) + return itemstack +end + +minetest.register_tool("farming:hoe_wood", { + description = "Wooden Hoe", + inventory_image = "farming_tool_woodhoe.png", + + on_use = function(itemstack, user, pointed_thing) + return farming.hoe_on_use(itemstack, user, pointed_thing, 30) + end, +}) + +minetest.register_tool("farming:hoe_stone", { + description = "Stone Hoe", + inventory_image = "farming_tool_stonehoe.png", + + on_use = function(itemstack, user, pointed_thing) + return farming.hoe_on_use(itemstack, user, pointed_thing, 90) + end, +}) + +minetest.register_tool("farming:hoe_steel", { + description = "Steel Hoe", + inventory_image = "farming_tool_steelhoe.png", + + on_use = function(itemstack, user, pointed_thing) + return farming.hoe_on_use(itemstack, user, pointed_thing, 200) + end, +}) + +minetest.register_tool("farming:hoe_bronze", { + description = "Bronze Hoe", + inventory_image = "farming_tool_bronzehoe.png", + + on_use = function(itemstack, user, pointed_thing) + return farming.hoe_on_use(itemstack, user, pointed_thing, 220) + end, +}) + +minetest.register_craft({ + output = "farming:hoe_wood", + recipe = { + {"group:wood", "group:wood"}, + {"", "group:stick"}, + {"", "group:stick"}, + } +}) + +minetest.register_craft({ + output = "farming:hoe_stone", + recipe = { + {"group:stone", "group:stone"}, + {"", "group:stick"}, + {"", "group:stick"}, + } +}) + +minetest.register_craft({ + output = "farming:hoe_steel", + recipe = { + {"default:steel_ingot", "default:steel_ingot"}, + {"", "group:stick"}, + {"", "group:stick"}, + } +}) + +minetest.register_craft({ + output = "farming:hoe_bronze", + recipe = { + {"default:bronze_ingot", "default:bronze_ingot"}, + {"", "group:stick"}, + {"", "group:stick"}, + } +}) + +-- +-- Override grass for drops +-- +minetest.register_node(":default:grass_1", { + description = "Grass", + drawtype = "plantlike", + tiles = {"default_grass_1.png"}, + -- use a bigger inventory image + inventory_image = "default_grass_3.png", + wield_image = "default_grass_3.png", + paramtype = "light", + waving = 1, + walkable = false, + buildable_to = true, + drop = { + max_items = 1, + items = { + {items = {'farming:seed_wheat'},rarity = 5}, + {items = {'default:grass_1'}}, + } + }, + groups = {snappy=3,flammable=3,flora=1,attached_node=1}, + sounds = default.node_sound_leaves_defaults(), + selection_box = { + type = "fixed", + fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5}, + }, + on_place = function(itemstack, placer, pointed_thing) + -- place a random grass node + local stack = ItemStack("default:grass_"..math.random(1,5)) + local ret = minetest.item_place(stack, placer, pointed_thing) + return ItemStack("default:grass_1 "..itemstack:get_count()-(1-ret:get_count())) + end, +}) + +for i=2,5 do + minetest.register_node(":default:grass_"..i, { + description = "Grass", + drawtype = "plantlike", + tiles = {"default_grass_"..i..".png"}, + inventory_image = "default_grass_"..i..".png", + wield_image = "default_grass_"..i..".png", + paramtype = "light", + waving = 1, + walkable = false, + buildable_to = true, + is_ground_content = true, + drop = { + max_items = 1, + items = { + {items = {'farming:seed_wheat'},rarity = 5}, + {items = {'default:grass_1'}}, + } + }, + groups = {snappy=3,flammable=3,flora=1,attached_node=1,not_in_creative_inventory=1}, + sounds = default.node_sound_leaves_defaults(), + selection_box = { + type = "fixed", + fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5}, + }, + }) +end + +minetest.register_node(":default:junglegrass", { + description = "Jungle Grass", + drawtype = "plantlike", + visual_scale = 1.3, + tiles = {"default_junglegrass.png"}, + inventory_image = "default_junglegrass.png", + wield_image = "default_junglegrass.png", + paramtype = "light", + waving = 1, + walkable = false, + buildable_to = true, + is_ground_content = true, + drop = { + max_items = 1, + items = { + {items = {'farming:seed_cotton'},rarity = 8}, + {items = {'default:junglegrass'}}, + } + }, + groups = {snappy=3,flammable=2,flora=1,attached_node=1}, + sounds = default.node_sound_leaves_defaults(), + selection_box = { + type = "fixed", + fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5}, + }, +}) + +-- +-- Place seeds +-- +local function place_seed(itemstack, placer, pointed_thing, plantname) + local pt = pointed_thing + -- check if pointing at a node + if not pt then + return + end + if pt.type ~= "node" then + return + end + + local under = minetest.get_node(pt.under) + local above = minetest.get_node(pt.above) + + -- return if any of the nodes is not registered + if not minetest.registered_nodes[under.name] then + return + end + if not minetest.registered_nodes[above.name] then + return + end + + -- check if pointing at the top of the node + if pt.above.y ~= pt.under.y+1 then + return + end + + -- check if you can replace the node above the pointed node + if not minetest.registered_nodes[above.name].buildable_to then + return + end + + -- check if pointing at soil + if minetest.get_item_group(under.name, "soil") <= 1 then + return + end + + -- add the node and remove 1 item from the itemstack + minetest.add_node(pt.above, {name=plantname}) + if not minetest.setting_getbool("creative_mode") then + itemstack:take_item() + end + return itemstack +end + +-- +-- Wheat +-- +minetest.register_craftitem("farming:seed_wheat", { + description = "Wheat Seed", + inventory_image = "farming_wheat_seed.png", + on_place = function(itemstack, placer, pointed_thing) + return place_seed(itemstack, placer, pointed_thing, "farming:wheat_1") + end, +}) + +minetest.register_craftitem("farming:wheat", { + description = "Wheat", + inventory_image = "farming_wheat.png", +}) + +minetest.register_craftitem("farming:flour", { + description = "Flour", + inventory_image = "farming_flour.png", +}) + +minetest.register_craftitem("farming:bread", { + description = "Bread", + inventory_image = "farming_bread.png", + on_use = minetest.item_eat(4), +}) + +minetest.register_craft({ + type = "shapeless", + output = "farming:flour", + recipe = {"farming:wheat", "farming:wheat", "farming:wheat", "farming:wheat"} +}) + +minetest.register_craft({ + type = "cooking", + cooktime = 15, + output = "farming:bread", + recipe = "farming:flour" +}) + +for i=1,8 do + local drop = { + items = { + {items = {'farming:wheat'},rarity=9-i}, + {items = {'farming:wheat'},rarity=18-i*2}, + {items = {'farming:seed_wheat'},rarity=9-i}, + {items = {'farming:seed_wheat'},rarity=18-i*2}, + } + } + minetest.register_node("farming:wheat_"..i, { + drawtype = "plantlike", + tiles = {"farming_wheat_"..i..".png"}, + paramtype = "light", + waving = 1, + walkable = false, + buildable_to = true, + is_ground_content = true, + drop = drop, + selection_box = { + type = "fixed", + fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5}, + }, + groups = {snappy=3,flammable=2,plant=1,wheat=i,not_in_creative_inventory=1,attached_node=1}, + sounds = default.node_sound_leaves_defaults(), + }) +end + +minetest.register_abm({ + nodenames = {"group:wheat"}, + neighbors = {"group:soil"}, + interval = 90, + chance = 2, + action = function(pos, node) + -- return if already full grown + if minetest.get_item_group(node.name, "wheat") == 8 then + return + end + + -- check if on wet soil + pos.y = pos.y-1 + local n = minetest.get_node(pos) + if minetest.get_item_group(n.name, "soil") < 3 then + return + end + pos.y = pos.y+1 + + -- check light + if not minetest.get_node_light(pos) then + return + end + if minetest.get_node_light(pos) < 13 then + return + end + + -- grow + local height = minetest.get_item_group(node.name, "wheat") + 1 + minetest.set_node(pos, {name="farming:wheat_"..height}) + end +}) + +-- +-- Cotton +-- +minetest.register_craftitem("farming:seed_cotton", { + description = "Cotton Seed", + inventory_image = "farming_cotton_seed.png", + on_place = function(itemstack, placer, pointed_thing) + return place_seed(itemstack, placer, pointed_thing, "farming:cotton_1") + end, +}) + +minetest.register_craftitem("farming:string", { + description = "String", + inventory_image = "farming_string.png", +}) + +minetest.register_craft({ + output = "wool:white", + recipe = { + {"farming:string", "farming:string"}, + {"farming:string", "farming:string"}, + } +}) + +for i=1,8 do + local drop = { + items = { + {items = {'farming:string'},rarity=9-i}, + {items = {'farming:string'},rarity=18-i*2}, + {items = {'farming:string'},rarity=27-i*3}, + {items = {'farming:seed_cotton'},rarity=9-i}, + {items = {'farming:seed_cotton'},rarity=18-i*2}, + {items = {'farming:seed_cotton'},rarity=27-i*3}, + } + } + minetest.register_node("farming:cotton_"..i, { + drawtype = "plantlike", + tiles = {"farming_cotton_"..i..".png"}, + paramtype = "light", + waving = 1, + walkable = false, + buildable_to = true, + is_ground_content = true, + drop = drop, + selection_box = { + type = "fixed", + fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5}, + }, + groups = {snappy=3,flammable=2,plant=1,cotton=i,not_in_creative_inventory=1,attached_node=1}, + sounds = default.node_sound_leaves_defaults(), + }) +end + +minetest.register_abm({ + nodenames = {"group:cotton"}, + neighbors = {"group:soil"}, + interval = 80, + chance = 2, + action = function(pos, node) + -- return if already full grown + if minetest.get_item_group(node.name, "cotton") == 8 then + return + end + + -- check if on wet soil + pos.y = pos.y-1 + local n = minetest.get_node(pos) + if minetest.get_item_group(n.name, "soil") < 3 then + return + end + pos.y = pos.y+1 + + -- check light + if not minetest.get_node_light(pos) then + return + end + if minetest.get_node_light(pos) < 13 then + return + end + + -- grow + local height = minetest.get_item_group(node.name, "cotton") + 1 + minetest.set_node(pos, {name="farming:cotton_"..height}) + end +}) diff --git a/mods/farming/textures/farming_bread.png b/mods/farming/textures/farming_bread.png new file mode 100644 index 0000000..bd00e3e Binary files /dev/null and b/mods/farming/textures/farming_bread.png differ diff --git a/mods/farming/textures/farming_cotton_1.png b/mods/farming/textures/farming_cotton_1.png new file mode 100644 index 0000000..8750adf Binary files /dev/null and b/mods/farming/textures/farming_cotton_1.png differ diff --git a/mods/farming/textures/farming_cotton_2.png b/mods/farming/textures/farming_cotton_2.png new file mode 100644 index 0000000..dc1025b Binary files /dev/null and b/mods/farming/textures/farming_cotton_2.png differ diff --git a/mods/farming/textures/farming_cotton_3.png b/mods/farming/textures/farming_cotton_3.png new file mode 100644 index 0000000..a1fe3b6 Binary files /dev/null and b/mods/farming/textures/farming_cotton_3.png differ diff --git a/mods/farming/textures/farming_cotton_4.png b/mods/farming/textures/farming_cotton_4.png new file mode 100644 index 0000000..d0096da Binary files /dev/null and b/mods/farming/textures/farming_cotton_4.png differ diff --git a/mods/farming/textures/farming_cotton_5.png b/mods/farming/textures/farming_cotton_5.png new file mode 100644 index 0000000..11f67fc Binary files /dev/null and b/mods/farming/textures/farming_cotton_5.png differ diff --git a/mods/farming/textures/farming_cotton_6.png b/mods/farming/textures/farming_cotton_6.png new file mode 100644 index 0000000..1334304 Binary files /dev/null and b/mods/farming/textures/farming_cotton_6.png differ diff --git a/mods/farming/textures/farming_cotton_7.png b/mods/farming/textures/farming_cotton_7.png new file mode 100644 index 0000000..fb98f1e Binary files /dev/null and b/mods/farming/textures/farming_cotton_7.png differ diff --git a/mods/farming/textures/farming_cotton_8.png b/mods/farming/textures/farming_cotton_8.png new file mode 100644 index 0000000..ae9ed37 Binary files /dev/null and b/mods/farming/textures/farming_cotton_8.png differ diff --git a/mods/farming/textures/farming_cotton_seed.png b/mods/farming/textures/farming_cotton_seed.png new file mode 100644 index 0000000..70d2ac2 Binary files /dev/null and b/mods/farming/textures/farming_cotton_seed.png differ diff --git a/mods/farming/textures/farming_flour.png b/mods/farming/textures/farming_flour.png new file mode 100644 index 0000000..a526b20 Binary files /dev/null and b/mods/farming/textures/farming_flour.png differ diff --git a/mods/farming/textures/farming_soil.png b/mods/farming/textures/farming_soil.png new file mode 100644 index 0000000..06009de Binary files /dev/null and b/mods/farming/textures/farming_soil.png differ diff --git a/mods/farming/textures/farming_soil_wet.png b/mods/farming/textures/farming_soil_wet.png new file mode 100644 index 0000000..cbbb05c Binary files /dev/null and b/mods/farming/textures/farming_soil_wet.png differ diff --git a/mods/farming/textures/farming_soil_wet_side.png b/mods/farming/textures/farming_soil_wet_side.png new file mode 100644 index 0000000..406b459 Binary files /dev/null and b/mods/farming/textures/farming_soil_wet_side.png differ diff --git a/mods/farming/textures/farming_string.png b/mods/farming/textures/farming_string.png new file mode 100644 index 0000000..ee0c290 Binary files /dev/null and b/mods/farming/textures/farming_string.png differ diff --git a/mods/farming/textures/farming_tool_bronzehoe.png b/mods/farming/textures/farming_tool_bronzehoe.png new file mode 100644 index 0000000..140fb64 Binary files /dev/null and b/mods/farming/textures/farming_tool_bronzehoe.png differ diff --git a/mods/farming/textures/farming_tool_steelhoe.png b/mods/farming/textures/farming_tool_steelhoe.png new file mode 100644 index 0000000..c19afb8 Binary files /dev/null and b/mods/farming/textures/farming_tool_steelhoe.png differ diff --git a/mods/farming/textures/farming_tool_stonehoe.png b/mods/farming/textures/farming_tool_stonehoe.png new file mode 100644 index 0000000..741f190 Binary files /dev/null and b/mods/farming/textures/farming_tool_stonehoe.png differ diff --git a/mods/farming/textures/farming_tool_woodhoe.png b/mods/farming/textures/farming_tool_woodhoe.png new file mode 100644 index 0000000..2448c18 Binary files /dev/null and b/mods/farming/textures/farming_tool_woodhoe.png differ diff --git a/mods/farming/textures/farming_wheat.png b/mods/farming/textures/farming_wheat.png new file mode 100644 index 0000000..8ecd735 Binary files /dev/null and b/mods/farming/textures/farming_wheat.png differ diff --git a/mods/farming/textures/farming_wheat_1.png b/mods/farming/textures/farming_wheat_1.png new file mode 100644 index 0000000..4943000 Binary files /dev/null and b/mods/farming/textures/farming_wheat_1.png differ diff --git a/mods/farming/textures/farming_wheat_2.png b/mods/farming/textures/farming_wheat_2.png new file mode 100644 index 0000000..63550d1 Binary files /dev/null and b/mods/farming/textures/farming_wheat_2.png differ diff --git a/mods/farming/textures/farming_wheat_3.png b/mods/farming/textures/farming_wheat_3.png new file mode 100644 index 0000000..00a8c66 Binary files /dev/null and b/mods/farming/textures/farming_wheat_3.png differ diff --git a/mods/farming/textures/farming_wheat_4.png b/mods/farming/textures/farming_wheat_4.png new file mode 100644 index 0000000..80b98aa Binary files /dev/null and b/mods/farming/textures/farming_wheat_4.png differ diff --git a/mods/farming/textures/farming_wheat_5.png b/mods/farming/textures/farming_wheat_5.png new file mode 100644 index 0000000..1023f0c Binary files /dev/null and b/mods/farming/textures/farming_wheat_5.png differ diff --git a/mods/farming/textures/farming_wheat_6.png b/mods/farming/textures/farming_wheat_6.png new file mode 100644 index 0000000..591c138 Binary files /dev/null and b/mods/farming/textures/farming_wheat_6.png differ diff --git a/mods/farming/textures/farming_wheat_7.png b/mods/farming/textures/farming_wheat_7.png new file mode 100644 index 0000000..98bc60a Binary files /dev/null and b/mods/farming/textures/farming_wheat_7.png differ diff --git a/mods/farming/textures/farming_wheat_8.png b/mods/farming/textures/farming_wheat_8.png new file mode 100644 index 0000000..44bc532 Binary files /dev/null and b/mods/farming/textures/farming_wheat_8.png differ diff --git a/mods/farming/textures/farming_wheat_seed.png b/mods/farming/textures/farming_wheat_seed.png new file mode 100644 index 0000000..9afcd4d Binary files /dev/null and b/mods/farming/textures/farming_wheat_seed.png differ diff --git a/mods/farming_plus/README.txt b/mods/farming_plus/README.txt new file mode 100644 index 0000000..c7c6751 --- /dev/null +++ b/mods/farming_plus/README.txt @@ -0,0 +1,23 @@ +===FARMING_PLUS MOD for MINETEST=== +by PilzAdam + +License: +Sourcecode: WTFPL (see below) +Graphics: WTFPL (see below) + +See also: +http://minetest.net/ + + DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + Version 2, December 2004 + + Copyright (C) 2004 Sam Hocevar + + Everyone is permitted to copy and distribute verbatim or modified + copies of this license document, and changing it is allowed as long + as the name is changed. + + DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. You just DO WHAT THE FUCK YOU WANT TO. diff --git a/mods/farming_plus/bananas.lua b/mods/farming_plus/bananas.lua new file mode 100644 index 0000000..8023b48 --- /dev/null +++ b/mods/farming_plus/bananas.lua @@ -0,0 +1,63 @@ +minetest.register_node("farming_plus:banana_sapling", { + description = "Banana Tree Sapling", + drawtype = "plantlike", + tiles = {"farming_banana_sapling.png"}, + inventory_image = "farming_banana_sapling.png", + wield_image = "farming_banana_sapling.png", + paramtype = "light", + walkable = false, + groups = {dig_immediate=3,flammable=2}, + sounds = default.node_sound_defaults(), +}) + +minetest.register_node("farming_plus:banana_leaves", { + drawtype = "allfaces_optional", + tiles = {"farming_banana_leaves.png"}, + paramtype = "light", + groups = {snappy=3, leafdecay=3, flammable=2, not_in_creative_inventory=1}, + drop = { + max_items = 1, + items = { + { + items = {'farming_plus:banana_sapling'}, + rarity = 20, + }, + } + }, + sounds = default.node_sound_leaves_defaults(), +}) + +minetest.register_abm({ + nodenames = {"farming_plus:banana_sapling"}, + interval = 60, + chance = 20, + action = function(pos, node) + farming:generate_tree(pos, "default:tree", "farming_plus:banana_leaves", {"default:dirt", "default:dirt_with_grass"}, {["farming_plus:banana"]=20}) + end +}) + +minetest.register_on_generated(function(minp, maxp, blockseed) + if math.random(1, 100) > 5 then + return + end + local tmp = {x=(maxp.x-minp.x)/2+minp.x, y=(maxp.y-minp.y)/2+minp.y, z=(maxp.z-minp.z)/2+minp.z} + local pos = minetest.env:find_node_near(tmp, maxp.x-minp.x, {"default:dirt_with_grass"}) + if pos ~= nil then + farming:generate_tree({x=pos.x, y=pos.y+1, z=pos.z}, "default:tree", "farming_plus:banana_leaves", {"default:dirt", "default:dirt_with_grass"}, {["farming_plus:banana"]=10}) + end +end) + +minetest.register_node("farming_plus:banana", { + description = "Banana", + tiles = {"farming_banana.png"}, + inventory_image = "farming_banana.png", + wield_image = "farming_banana.png", + drawtype = "torchlike", + paramtype = "light", + sunlight_propagates = true, + walkable = false, + groups = {fleshy=3,dig_immediate=3,flammable=2}, + sounds = default.node_sound_defaults(), + + on_use = minetest.item_eat(6), +}) diff --git a/mods/farming_plus/carrots.lua b/mods/farming_plus/carrots.lua new file mode 100644 index 0000000..8c0c3ac --- /dev/null +++ b/mods/farming_plus/carrots.lua @@ -0,0 +1,89 @@ +minetest.register_craftitem("farming_plus:carrot_seed", { + description = "Carrot Seeds", + inventory_image = "farming_carrot_seed.png", + on_place = function(itemstack, placer, pointed_thing) + local above = minetest.env:get_node(pointed_thing.above) + if above.name == "air" then + above.name = "farming_plus:carrot_1" + minetest.env:set_node(pointed_thing.above, above) + itemstack:take_item(1) + return itemstack + end + end +}) + +minetest.register_node("farming_plus:carrot_1", { + paramtype = "light", + walkable = false, + drawtype = "plantlike", + drop = "", + tiles = {"farming_carrot_1.png"}, + selection_box = { + type = "fixed", + fixed = { + {-0.5, -0.5, -0.5, 0.5, -0.5+3/16, 0.5} + }, + }, + groups = {snappy=3, flammable=2, not_in_creative_inventory=1,plant=1}, + sounds = default.node_sound_leaves_defaults(), +}) + +minetest.register_node("farming_plus:carrot_2", { + paramtype = "light", + walkable = false, + drawtype = "plantlike", + drop = "", + tiles = {"farming_carrot_2.png"}, + selection_box = { + type = "fixed", + fixed = { + {-0.5, -0.5, -0.5, 0.5, -0.5+5/16, 0.5} + }, + }, + groups = {snappy=3, flammable=2, not_in_creative_inventory=1,plant=1}, + sounds = default.node_sound_leaves_defaults(), +}) + +minetest.register_node("farming_plus:carrot_3", { + paramtype = "light", + walkable = false, + drawtype = "plantlike", + drop = "", + tiles = {"farming_carrot_3.png"}, + selection_box = { + type = "fixed", + fixed = { + {-0.5, -0.5, -0.5, 0.5, -0.5+12/16, 0.5} + }, + }, + groups = {snappy=3, flammable=2, not_in_creative_inventory=1,plant=1}, + sounds = default.node_sound_leaves_defaults(), +}) + +minetest.register_node("farming_plus:carrot", { + paramtype = "light", + walkable = false, + drawtype = "plantlike", + tiles = {"farming_carrot_4.png"}, + drop = { + max_items = 6, + items = { + { items = {'farming_plus:carrot_seed'} }, + { items = {'farming_plus:carrot_seed'}, rarity = 2}, + { items = {'farming_plus:carrot_seed'}, rarity = 5}, + { items = {'farming_plus:carrot_item'} }, + { items = {'farming_plus:carrot_item'}, rarity = 2 }, + { items = {'farming_plus:carrot_item'}, rarity = 5 } + } + }, + groups = {snappy=3, flammable=2, not_in_creative_inventory=1,plant=1}, + sounds = default.node_sound_leaves_defaults(), +}) + +minetest.register_craftitem("farming_plus:carrot_item", { + description = "Carrot", + inventory_image = "farming_carrot.png", + on_use = minetest.item_eat(3), +}) + +farming:add_plant("farming_plus:carrot", {"farming_plus:carrot_1", "farming_plus:carrot_2", "farming_plus:carrot_3"}, 50, 20) diff --git a/mods/farming_plus/cocoa.lua b/mods/farming_plus/cocoa.lua new file mode 100644 index 0000000..a6012d2 --- /dev/null +++ b/mods/farming_plus/cocoa.lua @@ -0,0 +1,73 @@ +minetest.register_node("farming_plus:cocoa_sapling", { + description = "Cocoa Tree Sapling", + drawtype = "plantlike", + tiles = {"farming_cocoa_sapling.png"}, + inventory_image = "farming_cocoa_sapling.png", + wield_image = "farming_cocoa_sapling.png", + paramtype = "light", + walkable = false, + groups = {dig_immediate=3,flammable=2}, + sounds = default.node_sound_defaults(), +}) + +minetest.register_node("farming_plus:cocoa_leaves", { + drawtype = "allfaces_optional", + tiles = {"farming_banana_leaves.png"}, + paramtype = "light", + groups = {snappy=3, leafdecay=3, flammable=2, not_in_creative_inventory=1}, + drop = { + max_items = 1, + items = { + { + items = {'farming_plus:cocoa_sapling'}, + rarity = 20, + }, + } + }, + sounds = default.node_sound_leaves_defaults(), +}) + +minetest.register_abm({ + nodenames = {"farming_plus:cocoa_sapling"}, + interval = 60, + chance = 20, + action = function(pos, node) + farming:generate_tree(pos, "default:tree", "farming_plus:cocoa_leaves", {"default:sand", "default:desert_sand"}, {["farming_plus:cocoa"]=20}) + end +}) + +minetest.register_on_generated(function(minp, maxp, blockseed) + if math.random(1, 100) > 5 then + return + end + local tmp = {x=(maxp.x-minp.x)/2+minp.x, y=(maxp.y-minp.y)/2+minp.y, z=(maxp.z-minp.z)/2+minp.z} + local pos = minetest.env:find_node_near(tmp, maxp.x-minp.x, {"default:desert_sand"}) + if pos ~= nil then + farming:generate_tree({x=pos.x, y=pos.y+1, z=pos.z}, "default:tree", "farming_plus:cocoa_leaves", {"default:sand", "default:desert_sand"}, {["farming_plus:cocoa"]=20}) + end +end) + +minetest.register_node("farming_plus:cocoa", { + description = "Cocoa", + tiles = {"farming_cocoa.png"}, + visual_scale = 0.5, + inventory_image = "farming_cocoa.png", + wield_image = "farming_cocoa.png", + drawtype = "torchlike", + paramtype = "light", + sunlight_propagates = true, + walkable = false, + groups = {fleshy=3,dig_immediate=3,flammable=2}, + sounds = default.node_sound_defaults(), +}) + +minetest.register_craftitem("farming_plus:cocoa_bean", { + description = "Cocoa Bean", + inventory_image = "farming_cocoa_bean.png", +}) + +minetest.register_craft({ + output = "farming_plus:cocoa_bean 10", + type = "shapeless", + recipe = {"farming_plus:cocoa"}, +}) diff --git a/mods/farming_plus/depends.txt b/mods/farming_plus/depends.txt new file mode 100644 index 0000000..d77ba25 --- /dev/null +++ b/mods/farming_plus/depends.txt @@ -0,0 +1,2 @@ +default +farming diff --git a/mods/farming_plus/init.lua b/mods/farming_plus/init.lua new file mode 100644 index 0000000..59d3d1a --- /dev/null +++ b/mods/farming_plus/init.lua @@ -0,0 +1,260 @@ + +farming.registered_plants = {} + +function farming:add_plant(full_grown, names, interval, chance) + minetest.register_abm({ + nodenames = names, + interval = interval, + chance = chance, + action = function(pos, node) + pos.y = pos.y-1 + if minetest.env:get_node(pos).name ~= "farming:soil_wet" then + return + end + pos.y = pos.y+1 + if not minetest.env:get_node_light(pos) then + return + end + if minetest.env:get_node_light(pos) < 8 then + return + end + local step = nil + for i,name in ipairs(names) do + if name == node.name then + step = i + break + end + end + if step == nil then + return + end + local new_node = {name=names[step+1]} + if new_node.name == nil then + new_node.name = full_grown + end + minetest.env:set_node(pos, new_node) + end + }) + + table.insert(farming.registered_plants, { + full_grown = full_grown, + names = names, + interval = interval, + chance = chance, + }) +end + +function farming:generate_tree(pos, trunk, leaves, underground, replacements) + pos.y = pos.y-1 + local nodename = minetest.env:get_node(pos).name + local ret = true + for _,name in ipairs(underground) do + if nodename == name then + ret = false + break + end + end + pos.y = pos.y+1 + if not minetest.env:get_node_light(pos) then + return + end + if ret or minetest.env:get_node_light(pos) < 8 then + return + end + + node = {name = ""} + for dy=1,4 do + pos.y = pos.y+dy + if minetest.env:get_node(pos).name ~= "air" then + return + end + pos.y = pos.y-dy + end + node.name = trunk + for dy=0,4 do + pos.y = pos.y+dy + minetest.env:set_node(pos, node) + pos.y = pos.y-dy + end + + if not replacements then + replacements = {} + end + + node.name = leaves + pos.y = pos.y+3 + for dx=-2,2 do + for dz=-2,2 do + for dy=0,3 do + pos.x = pos.x+dx + pos.y = pos.y+dy + pos.z = pos.z+dz + + if dx == 0 and dz == 0 and dy==3 then + if minetest.env:get_node(pos).name == "air" and math.random(1, 5) <= 4 then + minetest.env:set_node(pos, node) + for name,rarity in pairs(replacements) do + if math.random(1, rarity) == 1 then + minetest.env:set_node(pos, {name=name}) + end + end + end + elseif dx == 0 and dz == 0 and dy==4 then + if minetest.env:get_node(pos).name == "air" and math.random(1, 5) <= 4 then + minetest.env:set_node(pos, node) + for name,rarity in pairs(replacements) do + if math.random(1, rarity) == 1 then + minetest.env:set_node(pos, {name=name}) + end + end + end + elseif math.abs(dx) ~= 2 and math.abs(dz) ~= 2 then + if minetest.env:get_node(pos).name == "air" then + minetest.env:set_node(pos, node) + for name,rarity in pairs(replacements) do + if math.random(1, rarity) == 1 then + minetest.env:set_node(pos, {name=name}) + end + end + end + else + if math.abs(dx) ~= 2 or math.abs(dz) ~= 2 then + if minetest.env:get_node(pos).name == "air" and math.random(1, 5) <= 4 then + minetest.env:set_node(pos, node) + for name,rarity in pairs(replacements) do + if math.random(1, rarity) == 1 then + minetest.env:set_node(pos, {name=name}) + end + end + end + end + end + + pos.x = pos.x-dx + pos.y = pos.y-dy + pos.z = pos.z-dz + end + end + end +end + +farming.seeds = { + ["farming:pumpkin_seed"]=60, + ["farming_plus:strawberry_seed"]=30, + ["farming_plus:rhubarb_seed"]=30, + ["farming_plus:potatoe_seed"]=30, + ["farming_plus:tomato_seed"]=30, + ["farming_plus:orange_seed"]=30, + ["farming_plus:carrot_seed"]=30, +} + +-- ========= GENERATE PLANTS IN THE MAP ========= +minetest.register_on_generated(function(minp, maxp, seed) + if maxp.y >= 2 and minp.y <= 0 then + -- Generate plants (code from flowers) + local perlin1 = minetest.get_perlin(974, 3, 0.6, 100) + -- Assume X and Z lengths are equal + local divlen = 16 + local divs = (maxp.x-minp.x)/divlen+1; + for divx=0,divs-1 do + for divz=0,divs-1 do + local x0 = minp.x + math.floor((divx+0)*divlen) + local z0 = minp.z + math.floor((divz+0)*divlen) + local x1 = minp.x + math.floor((divx+1)*divlen) + local z1 = minp.z + math.floor((divz+1)*divlen) + -- Determine flowers amount from perlin noise + local grass_amount = math.floor(perlin1:get2d({x=x0, y=z0}) ^ 3 * 9) + -- Find random positions for flowers based on this random + local pr = PseudoRandom(seed+456) + for i=0,grass_amount do + local x = pr:next(x0, x1) + local z = pr:next(z0, z1) + -- Find ground level (0...15) + local ground_y = nil + for y=30,0,-1 do + if minetest.get_node({x=x,y=y,z=z}).name ~= "air" then + ground_y = y + break + end + end + + if ground_y then + local p = {x=x,y=ground_y+1,z=z} + local nn = minetest.get_node(p).name + -- Check if the node can be replaced + if minetest.registered_nodes[nn] and + minetest.registered_nodes[nn].buildable_to then + nn = minetest.get_node({x=x,y=ground_y,z=z}).name + if nn == "default:dirt_with_grass" then + --local plant_choice = pr:next(1, #farming.registered_plants) + local plant_choice = math.floor(perlin1:get2d({x=x,y=z})*(#farming.registered_plants)) + local plant = farming.registered_plants[plant_choice] + if plant then + minetest.set_node(p, {name=plant.full_grown}) + end + end + end + end + + end + end + end + end +end) + +-- ========= ALIASES FOR FARMING MOD BY SAPIER ========= +-- potatoe -> potatoe +minetest.register_alias("farming:potatoe_node", "farming_plus:potatoe") +--minetest.register_alias("farming:potatoe", "farming:potatoe_item") cant do this +minetest.register_alias("farming:potatoe_straw", "farming_plus:potatoe") +minetest.register_alias("farming:seed_potatoe", "farming_plus:potatoe_seed") +for lvl = 1, 6, 1 do + minetest.register_entity(":farming:potatoe_lvl"..lvl, { + on_activate = function(self, staticdata) + minetest.env:set_node(self.object:getpos(), {name="farming_plus:potatoe_1"}) + end + }) +end + + +minetest.register_alias("farming:cotton", "farming:cotton_3") +minetest.register_alias("farming:wheat_harvested", "farming:wheat") +minetest.register_alias("farming:dough", "farming:flour") +minetest.register_abm({ + nodenames = {"farming:wheat"}, + interval = 1, + chance = 1, + action = function(pos) + minetest.env:set_node(pos, {name="farming:wheat_8"}) + end, +}) + +-- ========= STRAWBERRIES ========= +dofile(minetest.get_modpath("farming_plus").."/strawberries.lua") + +-- ========= RHUBARB ========= +dofile(minetest.get_modpath("farming_plus").."/rhubarb.lua") + +-- ========= POTATOES ========= +dofile(minetest.get_modpath("farming_plus").."/potatoes.lua") + +-- ========= TOMATOES ========= +dofile(minetest.get_modpath("farming_plus").."/tomatoes.lua") + +-- ========= ORANGES ========= +dofile(minetest.get_modpath("farming_plus").."/oranges.lua") + +-- ========= BANANAS ========= +dofile(minetest.get_modpath("farming_plus").."/bananas.lua") + +-- ========= CARROTS ========= +dofile(minetest.get_modpath("farming_plus").."/carrots.lua") + +-- ========= COCOA ========= +dofile(minetest.get_modpath("farming_plus").."/cocoa.lua") + +-- ========= PUMPKIN ========= +dofile(minetest.get_modpath("farming_plus").."/pumpkin.lua") + +-- ========= WEED ========= +dofile(minetest.get_modpath("farming_plus").."/weed.lua") diff --git a/mods/farming_plus/oranges.lua b/mods/farming_plus/oranges.lua new file mode 100644 index 0000000..13d573d --- /dev/null +++ b/mods/farming_plus/oranges.lua @@ -0,0 +1,89 @@ +minetest.register_craftitem("farming_plus:orange_seed", { + description = "Orange Seeds", + inventory_image = "farming_orange_seed.png", + on_place = function(itemstack, placer, pointed_thing) + local above = minetest.env:get_node(pointed_thing.above) + if above.name == "air" then + above.name = "farming_plus:orange_1" + minetest.env:set_node(pointed_thing.above, above) + itemstack:take_item(1) + return itemstack + end + end +}) + +minetest.register_node("farming_plus:orange_1", { + paramtype = "light", + walkable = false, + drawtype = "plantlike", + drop = "", + tiles = {"farming_orange_1.png"}, + selection_box = { + type = "fixed", + fixed = { + {-0.5, -0.5, -0.5, 0.5, -0.5+3/16, 0.5} + }, + }, + groups = {snappy=3, flammable=2, not_in_creative_inventory=1,plant=1}, + sounds = default.node_sound_leaves_defaults(), +}) + +minetest.register_node("farming_plus:orange_2", { + paramtype = "light", + walkable = false, + drawtype = "plantlike", + drop = "", + tiles = {"farming_orange_2.png"}, + selection_box = { + type = "fixed", + fixed = { + {-0.5, -0.5, -0.5, 0.5, -0.5+8/16, 0.5} + }, + }, + groups = {snappy=3, flammable=2, not_in_creative_inventory=1,plant=1}, + sounds = default.node_sound_leaves_defaults(), +}) + +minetest.register_node("farming_plus:orange_3", { + paramtype = "light", + walkable = false, + drawtype = "plantlike", + drop = "", + tiles = {"farming_orange_3.png"}, + selection_box = { + type = "fixed", + fixed = { + {-0.5, -0.5, -0.5, 0.5, -0.5+14/16, 0.5} + }, + }, + groups = {snappy=3, flammable=2, not_in_creative_inventory=1,plant=1}, + sounds = default.node_sound_leaves_defaults(), +}) + +minetest.register_node("farming_plus:orange", { + paramtype = "light", + walkable = false, + drawtype = "plantlike", + tiles = {"farming_orange_4.png"}, + drop = { + max_items = 6, + items = { + { items = {'farming_plus:orange_seed'} }, + { items = {'farming_plus:orange_seed'}, rarity = 2}, + { items = {'farming_plus:orange_seed'}, rarity = 5}, + { items = {'farming_plus:orange_item'} }, + { items = {'farming_plus:orange_item'}, rarity = 2 }, + { items = {'farming_plus:orange_item'}, rarity = 5 } + } + }, + groups = {snappy=3, flammable=2, not_in_creative_inventory=1,plant=1}, + sounds = default.node_sound_leaves_defaults(), +}) + +minetest.register_craftitem("farming_plus:orange_item", { + description = "Orange", + inventory_image = "farming_orange.png", + on_use = minetest.item_eat(4), +}) + +farming:add_plant("farming_plus:orange", {"farming_plus:orange_1", "farming_plus:orange_2", "farming_plus:orange_3"}, 50, 20) diff --git a/mods/farming_plus/potatoes.lua b/mods/farming_plus/potatoes.lua new file mode 100644 index 0000000..00af60a --- /dev/null +++ b/mods/farming_plus/potatoes.lua @@ -0,0 +1,79 @@ +minetest.register_craftitem("farming_plus:potato_seed", { + description = "Potato Seeds", + inventory_image = "farming_potato_seed.png", + on_place = function(itemstack, placer, pointed_thing) + local above = minetest.env:get_node(pointed_thing.above) + if above.name == "air" then + above.name = "farming_plus:potato_1" + minetest.env:set_node(pointed_thing.above, above) + itemstack:take_item(1) + return itemstack + end + end +}) + +minetest.register_node("farming_plus:potato_1", { + paramtype = "light", + walkable = false, + drawtype = "plantlike", + drop = "", + tiles = {"farming_potato_1.png"}, + selection_box = { + type = "fixed", + fixed = { + {-0.5, -0.5, -0.5, 0.5, -0.5+6/16, 0.5} + }, + }, + groups = {snappy=3, flammable=2, not_in_creative_inventory=1,plant=1}, + sounds = default.node_sound_leaves_defaults(), +}) + +minetest.register_node("farming_plus:potato_2", { + paramtype = "light", + walkable = false, + drawtype = "plantlike", + drop = "", + tiles = {"farming_potato_2.png"}, + selection_box = { + type = "fixed", + fixed = { + {-0.5, -0.5, -0.5, 0.5, -0.5+9/16, 0.5} + }, + }, + groups = {snappy=3, flammable=2, not_in_creative_inventory=1,plant=1}, + sounds = default.node_sound_leaves_defaults(), +}) + +minetest.register_node("farming_plus:potato", { + paramtype = "light", + walkable = false, + drawtype = "plantlike", + tiles = {"farming_potato_3.png"}, + drop = { + max_items = 6, + items = { + { items = {'farming_plus:potato_seed'} }, + { items = {'farming_plus:potato_seed'}, rarity = 2}, + { items = {'farming_plus:potato_seed'}, rarity = 5}, + { items = {'farming_plus:potato_item'} }, + { items = {'farming_plus:potato_item'}, rarity = 2 }, + { items = {'farming_plus:potato_item'}, rarity = 5 } + } + }, + groups = {snappy=3, flammable=2, not_in_creative_inventory=1,plant=1}, + sounds = default.node_sound_leaves_defaults(), +}) + +minetest.register_craftitem("farming_plus:potato_item", { + description = "Potato", + inventory_image = "farming_potato.png", +}) + +farming:add_plant("farming_plus:potato", {"farming_plus:potato_1", "farming_plus:potato_2"}, 50, 20) + +minetest.register_alias("farming_plus:potatoe_item", "farming_plus:potato_item") +minetest.register_alias("farming_plus:potatoe_seed", "farming_plus:potato_seed") +minetest.register_alias("farming_plus:potatoe", "farming_plus:potato") +minetest.register_alias("farming_plus:potatoe_1", "farming_plus:potato_1") +minetest.register_alias("farming_plus:potatoe_2", "farming_plus:potato_2") + diff --git a/mods/farming_plus/pumpkin.lua b/mods/farming_plus/pumpkin.lua new file mode 100644 index 0000000..8385525 --- /dev/null +++ b/mods/farming_plus/pumpkin.lua @@ -0,0 +1,482 @@ +minetest.register_craftitem(":farming:pumpkin_seed", { + description = "Pumpkin Seed", + inventory_image = "farming_pumpkin_seed.png", + on_place = function(itemstack, placer, pointed_thing) + local above = minetest.env:get_node(pointed_thing.above) + if above.name == "air" then + above.name = "farming:pumpkin_1" + minetest.env:set_node(pointed_thing.above, above) + itemstack:take_item(1) + return itemstack + end + end +}) + +minetest.register_node(":farming:pumpkin_1", { + paramtype = "light", + sunlight_propagates = true, + drawtype = "nodebox", + drop = "", + tiles = {"farming_pumpkin_top.png", "farming_pumpkin_top.png", "farming_pumpkin_side.png", "farming_pumpkin_side.png", "farming_pumpkin_side.png", "farming_pumpkin_side.png"}, + node_box = { + type = "fixed", + fixed = { + {-0.2, -0.5, -0.2, 0.2, -0.1, 0.2} + }, + }, + selection_box = { + type = "fixed", + fixed = { + {-0.2, -0.5, -0.2, 0.2, -0.1, 0.2} + }, + }, + groups = {choppy=2, oddly_breakable_by_hand=2, flammable=2, not_in_creative_inventory=1, plant=1}, + sounds = default.node_sound_wood_defaults(), +}) + +minetest.register_node(":farming:pumpkin_2", { + paramtype = "light", + sunlight_propagates = true, + drawtype = "nodebox", + drop = "", + tiles = {"farming_pumpkin_top.png", "farming_pumpkin_top.png", "farming_pumpkin_side.png", "farming_pumpkin_side.png", "farming_pumpkin_side.png", "farming_pumpkin_side.png"}, + node_box = { + type = "fixed", + fixed = { + {-0.35, -0.5, -0.35, 0.35, 0.2, 0.35} + }, + }, + selection_box = { + type = "fixed", + fixed = { + {-0.35, -0.5, -0.35, 0.35, 0.2, 0.35} + }, + }, + groups = {choppy=2, oddly_breakable_by_hand=2, flammable=2, not_in_creative_inventory=1, plant=1}, + sounds = default.node_sound_wood_defaults(), +}) + +minetest.register_node(":farming:pumpkin", { + description = "Pumpkin", + paramtype2 = "facedir", + tiles = {"farming_pumpkin_top.png", "farming_pumpkin_top.png", "farming_pumpkin_side.png", "farming_pumpkin_side.png", "farming_pumpkin_side.png", "farming_pumpkin_side.png"}, + groups = {choppy=2, oddly_breakable_by_hand=2, flammable=2, plant=1}, + sounds = default.node_sound_wood_defaults(), + + on_punch = function(pos, node, puncher) + local tool = puncher:get_wielded_item():get_name() + if tool and tool == "default:sword_wood" or tool == "default:sword_stone" or tool == "default:sword_steel" then + node.name = "farming:pumpkin_face" + minetest.env:set_node(pos, node) + puncher:get_inventory():add_item("main", ItemStack("farming:pumpkin_seed")) + if math.random(1, 5) == 1 then + puncher:get_inventory():add_item("main", ItemStack("farming:pumpkin_seed")) + end + end + end +}) + +farming:add_plant("farming:pumpkin", {"farming:pumpkin_1", "farming:pumpkin_2"}, 80, 20) + +minetest.register_node(":farming:pumpkin_face", { + description = "Pumpkin", + paramtype2 = "facedir", + tiles = {"farming_pumpkin_top.png", "farming_pumpkin_top.png", "farming_pumpkin_side.png", "farming_pumpkin_side.png", "farming_pumpkin_side.png", "farming_pumpkin_face.png"}, + groups = {choppy=2, oddly_breakable_by_hand=2, flammable=2, plant=1}, + sounds = default.node_sound_wood_defaults(), +}) + +minetest.register_node(":farming:pumpkin_face_light", { + description = "Pumpkin", + paramtype2 = "facedir", + light_source = LIGHT_MAX-2, + tiles = {"farming_pumpkin_top.png", "farming_pumpkin_top.png", "farming_pumpkin_side.png", "farming_pumpkin_side.png", "farming_pumpkin_side.png", "farming_pumpkin_face_light.png"}, + groups = {choppy=2, oddly_breakable_by_hand=2, flammable=2}, + sounds = default.node_sound_wood_defaults(), +}) + +minetest.register_craft({ + type = "shapeless", + output = "farming:pumpkin_face_light", + recipe = {"farming:pumpkin_face", "default:torch"} +}) + +-- ========= BIG PUMPKIN ========= +minetest.register_node(":farming:big_pumpkin", { + description = "Big Pumpkin", + paramtype2 = "facedir", + tiles = {"farming_pumpkin_big_side.png"}, + selection_box = { + type = "fixed", + fixed = { + {-1, -0.5, -1, 1, 1.5, 1} + } + }, + groups = {choppy=1, oddly_breakable_by_hand=1, flammable=2}, + sounds = default.node_sound_wood_defaults(), + + after_place_node = function(pos, placer) + for dx=-1,1 do + for dy=0,1 do + for dz=-1,1 do + pos.x = pos.x+dx + pos.y = pos.y+dy + pos.z = pos.z+dz + if dx ~= 0 or dy ~= 0 or dz ~= 0 then + if minetest.env:get_node(pos).name ~= "air" then + pos.x = pos.x-dx + pos.y = pos.y-dy + pos.z = pos.z-dz + minetest.env:remove_node(pos) + minetest.after(0.1, function(placer) + local inv = placer:get_inventory() + local index = placer:get_wield_index() + inv:set_stack("main", index, ItemStack("farming:big_pumpkin")) + end, placer) + return + end + end + pos.x = pos.x-dx + pos.y = pos.y-dy + pos.z = pos.z-dz + end + end + end + for dy=0,1 do + pos.y = pos.y+dy + pos.z = pos.z+1 + minetest.env:set_node(pos, {name="farming:big_pumpkin_side", param2=2}) + pos.x = pos.x-1 + minetest.env:set_node(pos, {name="farming:big_pumpkin_corner", param2=2}) + pos.x = pos.x+1 + pos.z = pos.z-2 + minetest.env:set_node(pos, {name="farming:big_pumpkin_side", param2=4}) + pos.x = pos.x+1 + minetest.env:set_node(pos, {name="farming:big_pumpkin_corner", param2=4}) + pos.z = pos.z+1 + minetest.env:set_node(pos, {name="farming:big_pumpkin_side", param2=3}) + pos.z = pos.z+1 + minetest.env:set_node(pos, {name="farming:big_pumpkin_corner", param2=3}) + pos.z = pos.z-1 + pos.x = pos.x-2 + minetest.env:set_node(pos, {name="farming:big_pumpkin_side", param2=1}) + pos.z = pos.z-1 + minetest.env:set_node(pos, {name="farming:big_pumpkin_corner", param2=1}) + pos.z = pos.z+1 + pos.x = pos.x+1 + pos.y = pos.y-dy + end + pos.y = pos.y+1 + minetest.env:set_node(pos, {name="farming:big_pumpkin_top"}) + end, + + after_destruct = function(pos, oldnode) + for dx=-1,1 do + for dy=0,1 do + for dz=-1,1 do + pos.x = pos.x+dx + pos.y = pos.y+dy + pos.z = pos.z+dz + local name = minetest.env:get_node(pos).name + if string.find(name, "farming:big_pumpkin") then + minetest.env:remove_node(pos) + end + pos.x = pos.x-dx + pos.y = pos.y-dy + pos.z = pos.z-dz + end + end + end + end +}) + +minetest.register_node(":farming:big_pumpkin_side", { + paramtype = "light", + sunlight_propagates = true, + paramtype2 = "facedir", + tiles = {"farming_pumpkin_big_top_side.png", "farming_pumpkin_big_side.png"}, + drawtype = "nodebox", + node_box = { + type = "fixed", + fixed = { + {-0.5, -0.5, 0, 0.5, 0.5, 0.5} + } + }, + selection_box = { + type = "fixed", + fixed = { + {0, 0, 0, 0, 0, 0} + } + }, + groups = {not_in_creative_inventory=1}, +}) +minetest.register_node(":farming:big_pumpkin_corner", { + paramtype = "light", + sunlight_propagates = true, + paramtype2 = "facedir", + tiles = {"farming_pumpkin_big_top_corner.png", "farming_pumpkin_big_side.png"}, + drawtype = "nodebox", + node_box = { + type = "fixed", + fixed = { + {-0.5, -0.5, 0, 0, 0.5, 0.5} + } + }, + selection_box = { + type = "fixed", + fixed = { + {0, 0, 0, 0, 0, 0} + } + }, + groups = {not_in_creative_inventory=1}, +}) + +minetest.register_node(":farming:big_pumpkin_top", { + paramtype = "light", + sunlight_propagates = true, + tiles = {"farming_pumpkin_big_top.png"}, + selection_box = { + type = "fixed", + fixed = { + {0, 0, 0, 0, 0, 0} + } + }, + groups = {not_in_creative_inventory=1}, +}) + +minetest.register_craft({ + type = "shapeless", + output = "farming:big_pumpkin", + recipe = {"bucket:bucket_water", "farming:pumpkin"}, + replacements = { + {"bucket:bucket_water", "bucket:bucket_empty"} + } +}) + +-- ========= SCARECROW ========= +local box1 = { + {-1, -8, -1, 1, 8, 1}, +} + +local box2 = { + {-1, -8, -1, 1, 8, 1}, + {-12, -8, -1, 12, -7, 1}, + {-5, -2, -5, 5, 8, 5} +} + +for j,list in ipairs(box1) do + for i,int in ipairs(list) do + list[i] = int/16 + end + box1[j] = list +end + +for j,list in ipairs(box2) do + for i,int in ipairs(list) do + list[i] = int/16 + end + box2[j] = list +end + +minetest.register_node(":farming:scarecrow", { + description = "Scarecrow", + paramtype = "light", + sunlight_propagates = true, + paramtype2 = "facedir", + tiles = {"farming_scarecrow_top.png", "farming_scarecrow_top.png", "farming_scarecrow_side.png", "farming_scarecrow_side.png", "farming_scarecrow_side.png", "farming_scarecrow_front.png"}, + drawtype = "nodebox", + node_box = { + type = "fixed", + fixed = box2 + }, + selection_box = { + type = "fixed", + fixed = { + {-12/16, -1.5, -0.5, 12/16, 0.5, 0.5} + } + }, + groups = {choppy=2, oddly_breakable_by_hand=2, flammable=2}, + + after_place_node = function(pos, placer) + local node = minetest.env:get_node(pos) + local param2 = node.param2 + pos.y = pos.y+1 + if minetest.env:get_node(pos).name ~= "air" then + pos.y = pos.y-1 + minetest.env:remove_node(pos) + minetest.after(0.1, function(placer) + local inv = placer:get_inventory() + local index = placer:get_wield_index() + inv:set_stack("main", index, ItemStack("farming:scarecrow")) + end, placer) + return + end + minetest.env:set_node(pos, node) + pos.y = pos.y-1 + node.name = "farming:scarecrow_bottom" + minetest.env:set_node(pos, node) + end, + + after_destruct = function(pos, oldnode) + pos.y = pos.y-1 + if minetest.env:get_node(pos).name == "farming:scarecrow_bottom" then + minetest.env:remove_node(pos) + end + end +}) + +minetest.register_node(":farming:scarecrow_bottom", { + paramtype = "light", + sunlight_propagates = true, + paramtype2 = "facedir", + tiles = {"default_wood.png"}, + drawtype = "nodebox", + node_box = { + type = "fixed", + fixed = box1 + }, + groups = {not_in_creative_inventory=1}, + selection_box = { + type = "fixed", + fixed = { + {0, 0, 0, 0, 0, 0} + } + } +}) + +minetest.register_craft({ + output = "farming:scarecrow", + recipe = { + {"", "farming:pumpkin_face", "",}, + {"default:stick", "default:stick", "default:stick",}, + {"", "default:stick", "",} + } +}) + +minetest.register_node(":farming:scarecrow_light", { + description = "Scarecrow", + paramtype = "light", + sunlight_propagates = true, + paramtype2 = "facedir", + light_source = LIGHT_MAX-2, + tiles = {"farming_scarecrow_top.png", "farming_scarecrow_top.png", "farming_scarecrow_side.png", "farming_scarecrow_side.png", "farming_scarecrow_side.png", "farming_scarecrow_front_light.png"}, + drawtype = "nodebox", + node_box = { + type = "fixed", + fixed = box2 + }, + selection_box = { + type = "fixed", + fixed = { + {-12/16, -1.5, -0.5, 12/16, 0.5, 0.5} + } + }, + groups = {choppy=2, oddly_breakable_by_hand=2, flammable=2}, + + after_place_node = function(pos, placer) + local node = minetest.env:get_node(pos) + local param2 = node.param2 + pos.y = pos.y+1 + if minetest.env:get_node(pos).name ~= "air" then + pos.y = pos.y-1 + minetest.env:remove_node(pos) + minetest.after(0.1, function(placer) + local inv = placer:get_inventory() + local index = placer:get_wield_index() + inv:set_stack("main", index, ItemStack("farming:scarecrow_light")) + end, placer) + return + end + minetest.env:set_node(pos, node) + pos.y = pos.y-1 + node.name = "farming:scarecrow_bottom" + minetest.env:set_node(pos, node) + end, + + after_destruct = function(pos, oldnode) + pos.y = pos.y-1 + if minetest.env:get_node(pos).name == "farming:scarecrow_bottom" then + minetest.env:remove_node(pos) + end + end +}) + +minetest.register_craft({ + output = "farming:scarecrow_light", + recipe = { + {"", "farming:pumpkin_face_light", "",}, + {"default:stick", "default:stick", "default:stick",}, + {"", "default:stick", "",} + } +}) + +--=============== +minetest.register_craftitem(":farming:pumpkin_bread", { + description = "Pumpkin Bread", + inventory_image = "farming_bread_pumpkin.png", + stack_max = 1, + on_use = minetest.item_eat(8) +}) + +minetest.register_craftitem(":farming:pumpkin_flour", { + description = "Pumpkin Flour", + inventory_image = "farming_cake_mix_pumpkin.png", +}) +minetest.register_alias("farming:pumpkin_cake_mix", "farming:pumpkin_flour") + +minetest.register_craft({ + output = "farming:pumpkin_flour", + type = "shapeless", + recipe = {"farming:flour", "farming:pumpkin"} +}) + +minetest.register_craft({ + type = "cooking", + output = "farming:pumpkin_bread", + recipe = "farming:pumpkin_flour", + cooktime = 10 +}) + + +-- ========= FUEL ========= +minetest.register_craft({ + type = "fuel", + recipe = "farming:pumpkin_seed", + burntime = 1 +}) + +minetest.register_craft({ + type = "fuel", + recipe = "farming:pumpkin", + burntime = 5 +}) + +minetest.register_craft({ + type = "fuel", + recipe = "farming:pumpkin_face", + burntime = 5 +}) + +minetest.register_craft({ + type = "fuel", + recipe = "farming:pumpkin_face_light", + burntime = 7 +}) + +minetest.register_craft({ + type = "fuel", + recipe = "farming:big_pumpkin", + burntime = 10 +}) + +minetest.register_craft({ + type = "fuel", + recipe = "farming:scarecrow", + burntime = 5 +}) + +minetest.register_craft({ + type = "fuel", + recipe = "farming:scarecrow_light", + burntime = 5 +}) diff --git a/mods/farming_plus/rhubarb.lua b/mods/farming_plus/rhubarb.lua new file mode 100644 index 0000000..d31467d --- /dev/null +++ b/mods/farming_plus/rhubarb.lua @@ -0,0 +1,72 @@ +minetest.register_craftitem("farming_plus:rhubarb_seed", { + description = "Rhubarb Seeds", + inventory_image = "farming_rhubarb_seed.png", + on_place = function(itemstack, placer, pointed_thing) + local above = minetest.env:get_node(pointed_thing.above) + if above.name == "air" then + above.name = "farming_plus:rhubarb_1" + minetest.env:set_node(pointed_thing.above, above) + itemstack:take_item(1) + return itemstack + end + end +}) + +minetest.register_node("farming_plus:rhubarb_1", { + paramtype = "light", + walkable = false, + drawtype = "plantlike", + drop = "", + tiles = {"farming_rhubarb_1.png"}, + selection_box = { + type = "fixed", + fixed = { + {-0.5, -0.5, -0.5, 0.5, -0.5+5/16, 0.5} + }, + }, + groups = {snappy=3, flammable=2, not_in_creative_inventory=1,plant=1}, + sounds = default.node_sound_leaves_defaults(), +}) + +minetest.register_node("farming_plus:rhubarb_2", { + paramtype = "light", + walkable = false, + drawtype = "plantlike", + drop = "", + tiles = {"farming_rhubarb_2.png"}, + selection_box = { + type = "fixed", + fixed = { + {-0.5, -0.5, -0.5, 0.5, -0.5+11/16, 0.5} + }, + }, + groups = {snappy=3, flammable=2, not_in_creative_inventory=1,plant=1}, + sounds = default.node_sound_leaves_defaults(), +}) + +minetest.register_node("farming_plus:rhubarb", { + paramtype = "light", + walkable = false, + drawtype = "plantlike", + tiles = {"farming_rhubarb_3.png"}, + drop = { + max_items = 6, + items = { + { items = {'farming_plus:rhubarb_seed'} }, + { items = {'farming_plus:rhubarb_seed'}, rarity = 2}, + { items = {'farming_plus:rhubarb_seed'}, rarity = 5}, + { items = {'farming_plus:rhubarb_item'} }, + { items = {'farming_plus:rhubarb_item'}, rarity = 2 }, + { items = {'farming_plus:rhubarb_item'}, rarity = 5 } + } + }, + groups = {snappy=3, flammable=2, not_in_creative_inventory=1,plant=1}, + sounds = default.node_sound_leaves_defaults(), +}) + +minetest.register_craftitem("farming_plus:rhubarb_item", { + description = "Rhubarb", + inventory_image = "farming_rhubarb.png", +}) + +farming:add_plant("farming_plus:rhubarb", {"farming_plus:rhubarb_1", "farming_plus:rhubarb_2"}, 50, 20) diff --git a/mods/farming_plus/strawberries.lua b/mods/farming_plus/strawberries.lua new file mode 100644 index 0000000..433a354 --- /dev/null +++ b/mods/farming_plus/strawberries.lua @@ -0,0 +1,89 @@ +minetest.register_craftitem("farming_plus:strawberry_seed", { + description = "Strawberry Seeds", + inventory_image = "farming_strawberry_seed.png", + on_place = function(itemstack, placer, pointed_thing) + local above = minetest.env:get_node(pointed_thing.above) + if above.name == "air" then + above.name = "farming_plus:strawberry_1" + minetest.env:set_node(pointed_thing.above, above) + itemstack:take_item(1) + return itemstack + end + end +}) + +minetest.register_node("farming_plus:strawberry_1", { + paramtype = "light", + walkable = false, + drawtype = "plantlike", + drop = "", + tiles = {"farming_strawberry_1.png"}, + selection_box = { + type = "fixed", + fixed = { + {-0.5, -0.5, -0.5, 0.5, -0.5+9/16, 0.5} + }, + }, + groups = {snappy=3, flammable=2, not_in_creative_inventory=1,plant=1}, + sounds = default.node_sound_leaves_defaults(), +}) + +minetest.register_node("farming_plus:strawberry_2", { + paramtype = "light", + walkable = false, + drawtype = "plantlike", + drop = "", + tiles = {"farming_strawberry_2.png"}, + selection_box = { + type = "fixed", + fixed = { + {-0.5, -0.5, -0.5, 0.5, -0.5+12/16, 0.5} + }, + }, + groups = {snappy=3, flammable=2, not_in_creative_inventory=1,plant=1}, + sounds = default.node_sound_leaves_defaults(), +}) + +minetest.register_node("farming_plus:strawberry_3", { + paramtype = "light", + walkable = false, + drawtype = "plantlike", + drop = "", + tiles = {"farming_strawberry_3.png"}, + selection_box = { + type = "fixed", + fixed = { + {-0.5, -0.5, -0.5, 0.5, -0.5+14/16, 0.5} + }, + }, + groups = {snappy=3, flammable=2, not_in_creative_inventory=1,plant=1}, + sounds = default.node_sound_leaves_defaults(), +}) + +minetest.register_node("farming_plus:strawberry", { + paramtype = "light", + walkable = false, + drawtype = "plantlike", + tiles = {"farming_strawberry_4.png"}, + drop = { + max_items = 6, + items = { + { items = {'farming_plus:strawberry_seed'} }, + { items = {'farming_plus:strawberry_seed'}, rarity = 2}, + { items = {'farming_plus:strawberry_seed'}, rarity = 5}, + { items = {'farming_plus:strawberry_item'} }, + { items = {'farming_plus:strawberry_item'}, rarity = 2 }, + { items = {'farming_plus:strawberry_item'}, rarity = 5 } + } + }, + groups = {snappy=3, flammable=2, not_in_creative_inventory=1,plant=1}, + sounds = default.node_sound_leaves_defaults(), +}) + +minetest.register_craftitem("farming_plus:strawberry_item", { + description = "Strawberry", + inventory_image = "farming_strawberry.png", + on_use = minetest.item_eat(2), +}) + +farming:add_plant("farming_plus:strawberry", {"farming_plus:strawberry_1", "farming_plus:strawberry_2", "farming_plus:strawberry_3"}, 50, 20) diff --git a/mods/farming_plus/textures/farming_banana.png b/mods/farming_plus/textures/farming_banana.png new file mode 100644 index 0000000..f775e14 Binary files /dev/null and b/mods/farming_plus/textures/farming_banana.png differ diff --git a/mods/farming_plus/textures/farming_banana_leaves.png b/mods/farming_plus/textures/farming_banana_leaves.png new file mode 100644 index 0000000..cf8eecb Binary files /dev/null and b/mods/farming_plus/textures/farming_banana_leaves.png differ diff --git a/mods/farming_plus/textures/farming_banana_sapling.png b/mods/farming_plus/textures/farming_banana_sapling.png new file mode 100644 index 0000000..821c64f Binary files /dev/null and b/mods/farming_plus/textures/farming_banana_sapling.png differ diff --git a/mods/farming_plus/textures/farming_bread_pumpkin.png b/mods/farming_plus/textures/farming_bread_pumpkin.png new file mode 100644 index 0000000..44db02e Binary files /dev/null and b/mods/farming_plus/textures/farming_bread_pumpkin.png differ diff --git a/mods/farming_plus/textures/farming_cake_mix_pumpkin.png b/mods/farming_plus/textures/farming_cake_mix_pumpkin.png new file mode 100644 index 0000000..171e486 Binary files /dev/null and b/mods/farming_plus/textures/farming_cake_mix_pumpkin.png differ diff --git a/mods/farming_plus/textures/farming_carrot.png b/mods/farming_plus/textures/farming_carrot.png new file mode 100644 index 0000000..5ed61ac Binary files /dev/null and b/mods/farming_plus/textures/farming_carrot.png differ diff --git a/mods/farming_plus/textures/farming_carrot_1.png b/mods/farming_plus/textures/farming_carrot_1.png new file mode 100644 index 0000000..09cfe73 Binary files /dev/null and b/mods/farming_plus/textures/farming_carrot_1.png differ diff --git a/mods/farming_plus/textures/farming_carrot_2.png b/mods/farming_plus/textures/farming_carrot_2.png new file mode 100644 index 0000000..cbb76ea Binary files /dev/null and b/mods/farming_plus/textures/farming_carrot_2.png differ diff --git a/mods/farming_plus/textures/farming_carrot_3.png b/mods/farming_plus/textures/farming_carrot_3.png new file mode 100644 index 0000000..74e3dc8 Binary files /dev/null and b/mods/farming_plus/textures/farming_carrot_3.png differ diff --git a/mods/farming_plus/textures/farming_carrot_4.png b/mods/farming_plus/textures/farming_carrot_4.png new file mode 100644 index 0000000..1c6445f Binary files /dev/null and b/mods/farming_plus/textures/farming_carrot_4.png differ diff --git a/mods/farming_plus/textures/farming_carrot_seed.png b/mods/farming_plus/textures/farming_carrot_seed.png new file mode 100644 index 0000000..69bc450 Binary files /dev/null and b/mods/farming_plus/textures/farming_carrot_seed.png differ diff --git a/mods/farming_plus/textures/farming_cocoa.png b/mods/farming_plus/textures/farming_cocoa.png new file mode 100644 index 0000000..bce3db6 Binary files /dev/null and b/mods/farming_plus/textures/farming_cocoa.png differ diff --git a/mods/farming_plus/textures/farming_cocoa_bean.png b/mods/farming_plus/textures/farming_cocoa_bean.png new file mode 100644 index 0000000..4ad6b35 Binary files /dev/null and b/mods/farming_plus/textures/farming_cocoa_bean.png differ diff --git a/mods/farming_plus/textures/farming_cocoa_sapling.png b/mods/farming_plus/textures/farming_cocoa_sapling.png new file mode 100644 index 0000000..73c588f Binary files /dev/null and b/mods/farming_plus/textures/farming_cocoa_sapling.png differ diff --git a/mods/farming_plus/textures/farming_orange.png b/mods/farming_plus/textures/farming_orange.png new file mode 100644 index 0000000..d9ae9e9 Binary files /dev/null and b/mods/farming_plus/textures/farming_orange.png differ diff --git a/mods/farming_plus/textures/farming_orange_1.png b/mods/farming_plus/textures/farming_orange_1.png new file mode 100644 index 0000000..ab553c8 Binary files /dev/null and b/mods/farming_plus/textures/farming_orange_1.png differ diff --git a/mods/farming_plus/textures/farming_orange_2.png b/mods/farming_plus/textures/farming_orange_2.png new file mode 100644 index 0000000..fb991fd Binary files /dev/null and b/mods/farming_plus/textures/farming_orange_2.png differ diff --git a/mods/farming_plus/textures/farming_orange_3.png b/mods/farming_plus/textures/farming_orange_3.png new file mode 100644 index 0000000..af60f38 Binary files /dev/null and b/mods/farming_plus/textures/farming_orange_3.png differ diff --git a/mods/farming_plus/textures/farming_orange_4.png b/mods/farming_plus/textures/farming_orange_4.png new file mode 100644 index 0000000..73e8715 Binary files /dev/null and b/mods/farming_plus/textures/farming_orange_4.png differ diff --git a/mods/farming_plus/textures/farming_orange_seed.png b/mods/farming_plus/textures/farming_orange_seed.png new file mode 100644 index 0000000..3873bad Binary files /dev/null and b/mods/farming_plus/textures/farming_orange_seed.png differ diff --git a/mods/farming_plus/textures/farming_potato.png b/mods/farming_plus/textures/farming_potato.png new file mode 100644 index 0000000..50411f8 Binary files /dev/null and b/mods/farming_plus/textures/farming_potato.png differ diff --git a/mods/farming_plus/textures/farming_potato_1.png b/mods/farming_plus/textures/farming_potato_1.png new file mode 100644 index 0000000..75a36d9 Binary files /dev/null and b/mods/farming_plus/textures/farming_potato_1.png differ diff --git a/mods/farming_plus/textures/farming_potato_2.png b/mods/farming_plus/textures/farming_potato_2.png new file mode 100644 index 0000000..6491d34 Binary files /dev/null and b/mods/farming_plus/textures/farming_potato_2.png differ diff --git a/mods/farming_plus/textures/farming_potato_3.png b/mods/farming_plus/textures/farming_potato_3.png new file mode 100644 index 0000000..37a2c97 Binary files /dev/null and b/mods/farming_plus/textures/farming_potato_3.png differ diff --git a/mods/farming_plus/textures/farming_potato_seed.png b/mods/farming_plus/textures/farming_potato_seed.png new file mode 100644 index 0000000..74e440d Binary files /dev/null and b/mods/farming_plus/textures/farming_potato_seed.png differ diff --git a/mods/farming_plus/textures/farming_pumpkin_big_side.png b/mods/farming_plus/textures/farming_pumpkin_big_side.png new file mode 100644 index 0000000..2651380 Binary files /dev/null and b/mods/farming_plus/textures/farming_pumpkin_big_side.png differ diff --git a/mods/farming_plus/textures/farming_pumpkin_big_top.png b/mods/farming_plus/textures/farming_pumpkin_big_top.png new file mode 100644 index 0000000..581accc Binary files /dev/null and b/mods/farming_plus/textures/farming_pumpkin_big_top.png differ diff --git a/mods/farming_plus/textures/farming_pumpkin_big_top_corner.png b/mods/farming_plus/textures/farming_pumpkin_big_top_corner.png new file mode 100644 index 0000000..ab1de28 Binary files /dev/null and b/mods/farming_plus/textures/farming_pumpkin_big_top_corner.png differ diff --git a/mods/farming_plus/textures/farming_pumpkin_big_top_side.png b/mods/farming_plus/textures/farming_pumpkin_big_top_side.png new file mode 100644 index 0000000..e2eb1a7 Binary files /dev/null and b/mods/farming_plus/textures/farming_pumpkin_big_top_side.png differ diff --git a/mods/farming_plus/textures/farming_pumpkin_face.png b/mods/farming_plus/textures/farming_pumpkin_face.png new file mode 100644 index 0000000..90c0f8a Binary files /dev/null and b/mods/farming_plus/textures/farming_pumpkin_face.png differ diff --git a/mods/farming_plus/textures/farming_pumpkin_face_light.png b/mods/farming_plus/textures/farming_pumpkin_face_light.png new file mode 100644 index 0000000..cef4866 Binary files /dev/null and b/mods/farming_plus/textures/farming_pumpkin_face_light.png differ diff --git a/mods/farming_plus/textures/farming_pumpkin_seed.png b/mods/farming_plus/textures/farming_pumpkin_seed.png new file mode 100644 index 0000000..6933bc3 Binary files /dev/null and b/mods/farming_plus/textures/farming_pumpkin_seed.png differ diff --git a/mods/farming_plus/textures/farming_pumpkin_side.png b/mods/farming_plus/textures/farming_pumpkin_side.png new file mode 100644 index 0000000..3a3f9da Binary files /dev/null and b/mods/farming_plus/textures/farming_pumpkin_side.png differ diff --git a/mods/farming_plus/textures/farming_pumpkin_top.png b/mods/farming_plus/textures/farming_pumpkin_top.png new file mode 100644 index 0000000..edef2d9 Binary files /dev/null and b/mods/farming_plus/textures/farming_pumpkin_top.png differ diff --git a/mods/farming_plus/textures/farming_rhubarb.png b/mods/farming_plus/textures/farming_rhubarb.png new file mode 100644 index 0000000..849f61b Binary files /dev/null and b/mods/farming_plus/textures/farming_rhubarb.png differ diff --git a/mods/farming_plus/textures/farming_rhubarb_1.png b/mods/farming_plus/textures/farming_rhubarb_1.png new file mode 100644 index 0000000..706d8cf Binary files /dev/null and b/mods/farming_plus/textures/farming_rhubarb_1.png differ diff --git a/mods/farming_plus/textures/farming_rhubarb_2.png b/mods/farming_plus/textures/farming_rhubarb_2.png new file mode 100644 index 0000000..2aadf5f Binary files /dev/null and b/mods/farming_plus/textures/farming_rhubarb_2.png differ diff --git a/mods/farming_plus/textures/farming_rhubarb_3.png b/mods/farming_plus/textures/farming_rhubarb_3.png new file mode 100644 index 0000000..833f65b Binary files /dev/null and b/mods/farming_plus/textures/farming_rhubarb_3.png differ diff --git a/mods/farming_plus/textures/farming_rhubarb_seed.png b/mods/farming_plus/textures/farming_rhubarb_seed.png new file mode 100644 index 0000000..c16527d Binary files /dev/null and b/mods/farming_plus/textures/farming_rhubarb_seed.png differ diff --git a/mods/farming_plus/textures/farming_scarecrow_front.png b/mods/farming_plus/textures/farming_scarecrow_front.png new file mode 100644 index 0000000..364738f Binary files /dev/null and b/mods/farming_plus/textures/farming_scarecrow_front.png differ diff --git a/mods/farming_plus/textures/farming_scarecrow_front_light.png b/mods/farming_plus/textures/farming_scarecrow_front_light.png new file mode 100644 index 0000000..b4b3cf2 Binary files /dev/null and b/mods/farming_plus/textures/farming_scarecrow_front_light.png differ diff --git a/mods/farming_plus/textures/farming_scarecrow_side.png b/mods/farming_plus/textures/farming_scarecrow_side.png new file mode 100644 index 0000000..e22e84b Binary files /dev/null and b/mods/farming_plus/textures/farming_scarecrow_side.png differ diff --git a/mods/farming_plus/textures/farming_scarecrow_top.png b/mods/farming_plus/textures/farming_scarecrow_top.png new file mode 100644 index 0000000..3a4addc Binary files /dev/null and b/mods/farming_plus/textures/farming_scarecrow_top.png differ diff --git a/mods/farming_plus/textures/farming_strawberry.png b/mods/farming_plus/textures/farming_strawberry.png new file mode 100644 index 0000000..0a80f45 Binary files /dev/null and b/mods/farming_plus/textures/farming_strawberry.png differ diff --git a/mods/farming_plus/textures/farming_strawberry_1.png b/mods/farming_plus/textures/farming_strawberry_1.png new file mode 100644 index 0000000..ff238f6 Binary files /dev/null and b/mods/farming_plus/textures/farming_strawberry_1.png differ diff --git a/mods/farming_plus/textures/farming_strawberry_2.png b/mods/farming_plus/textures/farming_strawberry_2.png new file mode 100644 index 0000000..2912eb5 Binary files /dev/null and b/mods/farming_plus/textures/farming_strawberry_2.png differ diff --git a/mods/farming_plus/textures/farming_strawberry_3.png b/mods/farming_plus/textures/farming_strawberry_3.png new file mode 100644 index 0000000..ca77389 Binary files /dev/null and b/mods/farming_plus/textures/farming_strawberry_3.png differ diff --git a/mods/farming_plus/textures/farming_strawberry_4.png b/mods/farming_plus/textures/farming_strawberry_4.png new file mode 100644 index 0000000..12c6a49 Binary files /dev/null and b/mods/farming_plus/textures/farming_strawberry_4.png differ diff --git a/mods/farming_plus/textures/farming_strawberry_seed.png b/mods/farming_plus/textures/farming_strawberry_seed.png new file mode 100644 index 0000000..08c958d Binary files /dev/null and b/mods/farming_plus/textures/farming_strawberry_seed.png differ diff --git a/mods/farming_plus/textures/farming_tomato.png b/mods/farming_plus/textures/farming_tomato.png new file mode 100644 index 0000000..b112d48 Binary files /dev/null and b/mods/farming_plus/textures/farming_tomato.png differ diff --git a/mods/farming_plus/textures/farming_tomato_1.png b/mods/farming_plus/textures/farming_tomato_1.png new file mode 100644 index 0000000..2e7c425 Binary files /dev/null and b/mods/farming_plus/textures/farming_tomato_1.png differ diff --git a/mods/farming_plus/textures/farming_tomato_2.png b/mods/farming_plus/textures/farming_tomato_2.png new file mode 100644 index 0000000..6f6a451 Binary files /dev/null and b/mods/farming_plus/textures/farming_tomato_2.png differ diff --git a/mods/farming_plus/textures/farming_tomato_3.png b/mods/farming_plus/textures/farming_tomato_3.png new file mode 100644 index 0000000..e01b60b Binary files /dev/null and b/mods/farming_plus/textures/farming_tomato_3.png differ diff --git a/mods/farming_plus/textures/farming_tomato_4.png b/mods/farming_plus/textures/farming_tomato_4.png new file mode 100644 index 0000000..e2f5db4 Binary files /dev/null and b/mods/farming_plus/textures/farming_tomato_4.png differ diff --git a/mods/farming_plus/textures/farming_tomato_seed.png b/mods/farming_plus/textures/farming_tomato_seed.png new file mode 100644 index 0000000..dbef76e Binary files /dev/null and b/mods/farming_plus/textures/farming_tomato_seed.png differ diff --git a/mods/farming_plus/textures/farming_weed.png b/mods/farming_plus/textures/farming_weed.png new file mode 100644 index 0000000..4667287 Binary files /dev/null and b/mods/farming_plus/textures/farming_weed.png differ diff --git a/mods/farming_plus/tomatoes.lua b/mods/farming_plus/tomatoes.lua new file mode 100644 index 0000000..552ca63 --- /dev/null +++ b/mods/farming_plus/tomatoes.lua @@ -0,0 +1,89 @@ +minetest.register_craftitem("farming_plus:tomato_seed", { + description = "Tomato Seeds", + inventory_image = "farming_tomato_seed.png", + on_place = function(itemstack, placer, pointed_thing) + local above = minetest.env:get_node(pointed_thing.above) + if above.name == "air" then + above.name = "farming_plus:tomato_1" + minetest.env:set_node(pointed_thing.above, above) + itemstack:take_item(1) + return itemstack + end + end +}) + +minetest.register_node("farming_plus:tomato_1", { + paramtype = "light", + walkable = false, + drawtype = "plantlike", + drop = "", + tiles = {"farming_tomato_1.png"}, + selection_box = { + type = "fixed", + fixed = { + {-0.5, -0.5, -0.5, 0.5, -0.5+5/16, 0.5} + }, + }, + groups = {snappy=3, flammable=2, not_in_creative_inventory=1,plant=1}, + sounds = default.node_sound_leaves_defaults(), +}) + +minetest.register_node("farming_plus:tomato_2", { + paramtype = "light", + walkable = false, + drawtype = "plantlike", + drop = "", + tiles = {"farming_tomato_2.png"}, + selection_box = { + type = "fixed", + fixed = { + {-0.5, -0.5, -0.5, 0.5, -0.5+8/16, 0.5} + }, + }, + groups = {snappy=3, flammable=2, not_in_creative_inventory=1,plant=1}, + sounds = default.node_sound_leaves_defaults(), +}) + +minetest.register_node("farming_plus:tomato_3", { + paramtype = "light", + walkable = false, + drawtype = "plantlike", + drop = "", + tiles = {"farming_tomato_3.png"}, + selection_box = { + type = "fixed", + fixed = { + {-0.5, -0.5, -0.5, 0.5, -0.5+13/16, 0.5} + }, + }, + groups = {snappy=3, flammable=2, not_in_creative_inventory=1,plant=1}, + sounds = default.node_sound_leaves_defaults(), +}) + +minetest.register_node("farming_plus:tomato", { + paramtype = "light", + walkable = false, + drawtype = "plantlike", + tiles = {"farming_tomato_4.png"}, + drop = { + max_items = 6, + items = { + { items = {'farming_plus:tomato_seed'} }, + { items = {'farming_plus:tomato_seed'}, rarity = 2}, + { items = {'farming_plus:tomato_seed'}, rarity = 5}, + { items = {'farming_plus:tomato_item'} }, + { items = {'farming_plus:tomato_item'}, rarity = 2 }, + { items = {'farming_plus:tomato_item'}, rarity = 5 } + } + }, + groups = {snappy=3, flammable=2, not_in_creative_inventory=1,plant=1}, + sounds = default.node_sound_leaves_defaults(), +}) + +minetest.register_craftitem("farming_plus:tomato_item", { + description = "Tomato", + inventory_image = "farming_tomato.png", + on_use = minetest.item_eat(4), +}) + +farming:add_plant("farming_plus:tomato", {"farming_plus:tomato_1", "farming_plus:tomato_2", "farming_plus:tomato_3"}, 50, 20) diff --git a/mods/farming_plus/weed.lua b/mods/farming_plus/weed.lua new file mode 100644 index 0000000..3e2dfa9 --- /dev/null +++ b/mods/farming_plus/weed.lua @@ -0,0 +1,40 @@ +minetest.register_node(":farming:weed", { + description = "Weed", + paramtype = "light", + sunlight_propagates = true, + walkable = false, + drawtype = "plantlike", + tiles = {"farming_weed.png"}, + inventory_image = "farming_weed.png", + selection_box = { + type = "fixed", + fixed = { + {-0.5, -0.5, -0.5, 0.5, -0.5+4/16, 0.5} + }, + }, + groups = {snappy=3, flammable=2,plant=1}, + sounds = default.node_sound_leaves_defaults() +}) + +minetest.register_abm({ + nodenames = {"farming:soil_wet", "farming:soil"}, + interval = 50, + chance = 10, + action = function(pos, node) + if minetest.env:find_node_near(pos, 4, {"farming:scarecrow", "farming:scarecrow_light"}) ~= nil then + return + end + pos.y = pos.y+1 + if minetest.env:get_node(pos).name == "air" then + node.name = "farming:weed" + minetest.env:set_node(pos, node) + end + end +}) + +-- ========= FUEL ========= +minetest.register_craft({ + type = "fuel", + recipe = "farming:weed", + burntime = 1 +}) \ No newline at end of file diff --git a/mods/fire/README.txt b/mods/fire/README.txt new file mode 100644 index 0000000..fdbce15 --- /dev/null +++ b/mods/fire/README.txt @@ -0,0 +1,32 @@ +Minetest 0.4 mod: fire +====================== + +License of source code: +----------------------- +Copyright (C) 2012 Perttu Ahola (celeron55) + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU Lesser General Public License as published by +the Free Software Foundation; either version 2.1 of the License, or +(at your option) any later version. + +http://www.gnu.org/licenses/lgpl-2.1.html + +License of media (textures and sounds) +-------------------------------------- +Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0) +http://creativecommons.org/licenses/by-sa/3.0/ + +Authors of media files +----------------------- +Everything not listed in here: +Copyright (C) 2012 Perttu Ahola (celeron55) + +fire_small.ogg sampled from: + http://www.freesound.org/people/dobroide/sounds/4211/ + +fire_large.ogg sampled from: + http://www.freesound.org/people/Dynamicell/sounds/17548/ + +fire_basic_flame_animated.png: + Muadtralk diff --git a/mods/fire/init.lua b/mods/fire/init.lua new file mode 100644 index 0000000..9acda87 --- /dev/null +++ b/mods/fire/init.lua @@ -0,0 +1,192 @@ +-- minetest/fire/init.lua + +minetest.register_node("fire:basic_flame", { + description = "Fire", + drawtype = "plantlike", + tiles = {{ + name="fire_basic_flame_animated.png", + animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=1}, + }}, + inventory_image = "fire_basic_flame.png", + light_source = 14, + groups = {igniter=2,dig_immediate=3,hot=3}, + drop = '', + walkable = false, + buildable_to = true, + damage_per_second = 4, + + after_place_node = function(pos, placer) + fire.on_flame_add_at(pos) + end, + + after_dig_node = function(pos, oldnode, oldmetadata, digger) + fire.on_flame_remove_at(pos) + end, +}) + +fire = {} +fire.D = 6 +-- key: position hash of low corner of area +-- value: {handle=sound handle, name=sound name} +fire.sounds = {} + +function fire.get_area_p0p1(pos) + local p0 = { + x=math.floor(pos.x/fire.D)*fire.D, + y=math.floor(pos.y/fire.D)*fire.D, + z=math.floor(pos.z/fire.D)*fire.D, + } + local p1 = { + x=p0.x+fire.D-1, + y=p0.y+fire.D-1, + z=p0.z+fire.D-1 + } + return p0, p1 +end + +function fire.update_sounds_around(pos) + local p0, p1 = fire.get_area_p0p1(pos) + local cp = {x=(p0.x+p1.x)/2, y=(p0.y+p1.y)/2, z=(p0.z+p1.z)/2} + local flames_p = minetest.find_nodes_in_area(p0, p1, {"fire:basic_flame"}) + --print("number of flames at "..minetest.pos_to_string(p0).."/" + -- ..minetest.pos_to_string(p1)..": "..#flames_p) + local should_have_sound = (#flames_p > 0) + local wanted_sound = nil + if #flames_p >= 9 then + wanted_sound = {name="fire_large", gain=1.5} + elseif #flames_p > 0 then + wanted_sound = {name="fire_small", gain=1.5} + end + local p0_hash = minetest.hash_node_position(p0) + local sound = fire.sounds[p0_hash] + if not sound then + if should_have_sound then + fire.sounds[p0_hash] = { + handle = minetest.sound_play(wanted_sound, {pos=cp, loop=true}), + name = wanted_sound.name, + } + end + else + if not wanted_sound then + minetest.sound_stop(sound.handle) + fire.sounds[p0_hash] = nil + elseif sound.name ~= wanted_sound.name then + minetest.sound_stop(sound.handle) + fire.sounds[p0_hash] = { + handle = minetest.sound_play(wanted_sound, {pos=cp, loop=true}), + name = wanted_sound.name, + } + end + end +end + +function fire.on_flame_add_at(pos) + --print("flame added at "..minetest.pos_to_string(pos)) + fire.update_sounds_around(pos) +end + +function fire.on_flame_remove_at(pos) + --print("flame removed at "..minetest.pos_to_string(pos)) + fire.update_sounds_around(pos) +end + +function fire.find_pos_for_flame_around(pos) + return minetest.find_node_near(pos, 1, {"air"}) +end + +function fire.flame_should_extinguish(pos) + if minetest.setting_getbool("disable_fire") then return true end + --return minetest.find_node_near(pos, 1, {"group:puts_out_fire"}) + local p0 = {x=pos.x-2, y=pos.y, z=pos.z-2} + local p1 = {x=pos.x+2, y=pos.y, z=pos.z+2} + local ps = minetest.find_nodes_in_area(p0, p1, {"group:puts_out_fire"}) + return (#ps ~= 0) +end + +-- Ignite neighboring nodes +minetest.register_abm({ + nodenames = {"group:flammable"}, + neighbors = {"group:igniter"}, + interval = 1, + chance = 2, + action = function(p0, node, _, _) + -- If there is water or stuff like that around flame, don't ignite + if fire.flame_should_extinguish(p0) then + return + end + local p = fire.find_pos_for_flame_around(p0) + if p then + minetest.set_node(p, {name="fire:basic_flame"}) + fire.on_flame_add_at(p) + end + end, +}) + +-- Rarely ignite things from far +minetest.register_abm({ + nodenames = {"group:igniter"}, + neighbors = {"air"}, + interval = 2, + chance = 10, + action = function(p0, node, _, _) + local reg = minetest.registered_nodes[node.name] + if not reg or not reg.groups.igniter or reg.groups.igniter < 2 then + return + end + local d = reg.groups.igniter + local p = minetest.find_node_near(p0, d, {"group:flammable"}) + if p then + -- If there is water or stuff like that around flame, don't ignite + if fire.flame_should_extinguish(p) then + return + end + local p2 = fire.find_pos_for_flame_around(p) + if p2 then + minetest.set_node(p2, {name="fire:basic_flame"}) + fire.on_flame_add_at(p2) + end + end + end, +}) + +-- Remove flammable nodes and flame +minetest.register_abm({ + nodenames = {"fire:basic_flame"}, + interval = 1, + chance = 2, + action = function(p0, node, _, _) + -- If there is water or stuff like that around flame, remove flame + if fire.flame_should_extinguish(p0) then + minetest.remove_node(p0) + fire.on_flame_remove_at(p0) + return + end + -- Make the following things rarer + if math.random(1,3) == 1 then + return + end + -- If there are no flammable nodes around flame, remove flame + if not minetest.find_node_near(p0, 1, {"group:flammable"}) then + minetest.remove_node(p0) + fire.on_flame_remove_at(p0) + return + end + if math.random(1,4) == 1 then + -- remove a flammable node around flame + local p = minetest.find_node_near(p0, 1, {"group:flammable"}) + if p then + -- If there is water or stuff like that around flame, don't remove + if fire.flame_should_extinguish(p0) then + return + end + minetest.remove_node(p) + nodeupdate(p) + end + else + -- remove flame + minetest.remove_node(p0) + fire.on_flame_remove_at(p0) + end + end, +}) + diff --git a/mods/fire/sounds/fire_large.ogg b/mods/fire/sounds/fire_large.ogg new file mode 100644 index 0000000..fe78e62 Binary files /dev/null and b/mods/fire/sounds/fire_large.ogg differ diff --git a/mods/fire/sounds/fire_small.ogg b/mods/fire/sounds/fire_small.ogg new file mode 100644 index 0000000..5aac595 Binary files /dev/null and b/mods/fire/sounds/fire_small.ogg differ diff --git a/mods/fire/textures/fire_basic_flame.png b/mods/fire/textures/fire_basic_flame.png new file mode 100644 index 0000000..91ae8af Binary files /dev/null and b/mods/fire/textures/fire_basic_flame.png differ diff --git a/mods/fire/textures/fire_basic_flame_animated.png b/mods/fire/textures/fire_basic_flame_animated.png new file mode 100644 index 0000000..151a74a Binary files /dev/null and b/mods/fire/textures/fire_basic_flame_animated.png differ diff --git a/mods/flowers/README.txt b/mods/flowers/README.txt new file mode 100644 index 0000000..04f96d9 --- /dev/null +++ b/mods/flowers/README.txt @@ -0,0 +1,16 @@ +Minetest 0.4 mod: flowers +========================= + +License of source code: +----------------------- +Copyright (C) 2012-2013 Ironzorg, VanessaE + +This program is free software. It comes without any warranty, to +the extent permitted by applicable law. You can redistribute it +and/or modify it under the terms of the Do What The Fuck You Want +To Public License, Version 2, as published by Sam Hocevar. See +http://sam.zoy.org/wtfpl/COPYING for more details. + +License of media (textures and sounds) +-------------------------------------- +WTFPL diff --git a/mods/flowers/depends.txt b/mods/flowers/depends.txt new file mode 100644 index 0000000..4ad96d5 --- /dev/null +++ b/mods/flowers/depends.txt @@ -0,0 +1 @@ +default diff --git a/mods/flowers/init.lua b/mods/flowers/init.lua new file mode 100644 index 0000000..b409647 --- /dev/null +++ b/mods/flowers/init.lua @@ -0,0 +1,167 @@ +-- Minetest 0.4 mod: default +-- See README.txt for licensing and other information. + +-- Map Generation +dofile(minetest.get_modpath("flowers").."/mapgen.lua") + +-- Aliases for original flowers mod +minetest.register_alias("flowers:flower_dandelion_white", "flowers:dandelion_white") +minetest.register_alias("flowers:flower_dandelion_yellow", "flowers:dandelion_yellow") +minetest.register_alias("flowers:flower_geranium", "flowers:geranium") +minetest.register_alias("flowers:flower_rose", "flowers:rose") +minetest.register_alias("flowers:flower_tulip", "flowers:tulip") +minetest.register_alias("flowers:flower_viola", "flowers:viola") + +minetest.register_node("flowers:dandelion_white", { + description = "White Dandelion", + drawtype = "plantlike", + tiles = { "flowers_dandelion_white.png" }, + inventory_image = "flowers_dandelion_white.png", + wield_image = "flowers_dandelion_white.png", + sunlight_propagates = true, + paramtype = "light", + walkable = false, + buildable_to = true, + groups = {snappy=3,flammable=2,flower=1,flora=1,attached_node=1,color_white=1}, + sounds = default.node_sound_leaves_defaults(), + selection_box = { + type = "fixed", + fixed = { -0.15, -0.5, -0.15, 0.15, 0.2, 0.15 }, + }, +}) + +minetest.register_node("flowers:dandelion_yellow", { + description = "Yellow Dandelion", + drawtype = "plantlike", + tiles = { "flowers_dandelion_yellow.png" }, + inventory_image = "flowers_dandelion_yellow.png", + wield_image = "flowers_dandelion_yellow.png", + sunlight_propagates = true, + paramtype = "light", + walkable = false, + buildable_to = true, + groups = {snappy=3,flammable=2,flower=1,flora=1,attached_node=1,color_yellow=1}, + sounds = default.node_sound_leaves_defaults(), + selection_box = { + type = "fixed", + fixed = { -0.15, -0.5, -0.15, 0.15, 0.2, 0.15 }, + }, +}) + +minetest.register_node("flowers:geranium", { + description = "Blue Geranium", + drawtype = "plantlike", + tiles = { "flowers_geranium.png" }, + inventory_image = "flowers_geranium.png", + wield_image = "flowers_geranium.png", + sunlight_propagates = true, + paramtype = "light", + walkable = false, + buildable_to = true, + groups = {snappy=3,flammable=2,flower=1,flora=1,attached_node=1,color_blue=1}, + sounds = default.node_sound_leaves_defaults(), + selection_box = { + type = "fixed", + fixed = { -0.15, -0.5, -0.15, 0.15, 0.2, 0.15 }, + }, +}) + +minetest.register_node("flowers:rose", { + description = "Rose", + drawtype = "plantlike", + tiles = { "flowers_rose.png" }, + inventory_image = "flowers_rose.png", + wield_image = "flowers_rose.png", + sunlight_propagates = true, + paramtype = "light", + walkable = false, + buildable_to = true, + groups = {snappy=3,flammable=2,flower=1,flora=1,attached_node=1,color_red=1}, + sounds = default.node_sound_leaves_defaults(), + selection_box = { + type = "fixed", + fixed = { -0.15, -0.5, -0.15, 0.15, 0.2, 0.15 }, + }, +}) + +minetest.register_node("flowers:tulip", { + description = "Tulip", + drawtype = "plantlike", + tiles = { "flowers_tulip.png" }, + inventory_image = "flowers_tulip.png", + wield_image = "flowers_tulip.png", + sunlight_propagates = true, + paramtype = "light", + walkable = false, + buildable_to = true, + groups = {snappy=3,flammable=2,flower=1,flora=1,attached_node=1,color_orange=1}, + sounds = default.node_sound_leaves_defaults(), + selection_box = { + type = "fixed", + fixed = { -0.15, -0.5, -0.15, 0.15, 0.2, 0.15 }, + }, +}) + +minetest.register_node("flowers:viola", { + description = "Viola", + drawtype = "plantlike", + tiles = { "flowers_viola.png" }, + inventory_image = "flowers_viola.png", + wield_image = "flowers_viola.png", + sunlight_propagates = true, + paramtype = "light", + walkable = false, + buildable_to = true, + groups = {snappy=3,flammable=2,flower=1,flora=1,attached_node=1,color_violet=1}, + sounds = default.node_sound_leaves_defaults(), + selection_box = { + type = "fixed", + fixed = { -0.15, -0.5, -0.15, 0.15, 0.2, 0.15 }, + }, +}) + +minetest.register_abm({ + nodenames = {"group:flora"}, + neighbors = {"default:dirt_with_grass", "default:desert_sand"}, + interval = 50, + chance = 25, + action = function(pos, node) + pos.y = pos.y - 1 + local under = minetest.get_node(pos) + pos.y = pos.y + 1 + if under.name == "default:desert_sand" then + minetest.set_node(pos, {name="default:dry_shrub"}) + elseif under.name ~= "default:dirt_with_grass" then + return + end + + local light = minetest.get_node_light(pos) + if not light or light < 13 then + return + end + + local pos0 = {x=pos.x-4,y=pos.y-4,z=pos.z-4} + local pos1 = {x=pos.x+4,y=pos.y+4,z=pos.z+4} + if #minetest.find_nodes_in_area(pos0, pos1, "group:flora_block") > 0 then + return + end + + local flowers = minetest.find_nodes_in_area(pos0, pos1, "group:flora") + if #flowers > 3 then + return + end + + local seedling = minetest.find_nodes_in_area(pos0, pos1, "default:dirt_with_grass") + if #seedling > 0 then + seedling = seedling[math.random(#seedling)] + seedling.y = seedling.y + 1 + light = minetest.get_node_light(seedling) + if not light or light < 13 then + return + end + if minetest.get_node(seedling).name == "air" then + minetest.set_node(seedling, {name=node.name}) + end + end + end, +}) diff --git a/mods/flowers/mapgen.lua b/mods/flowers/mapgen.lua new file mode 100644 index 0000000..7148f6e --- /dev/null +++ b/mods/flowers/mapgen.lua @@ -0,0 +1,62 @@ +minetest.register_on_generated(function(minp, maxp, seed) + if maxp.y >= 2 and minp.y <= 0 then + -- Generate flowers + local perlin1 = minetest.get_perlin(436, 3, 0.6, 100) + -- Assume X and Z lengths are equal + local divlen = 16 + local divs = (maxp.x-minp.x)/divlen+1; + for divx=0,divs-1 do + for divz=0,divs-1 do + local x0 = minp.x + math.floor((divx+0)*divlen) + local z0 = minp.z + math.floor((divz+0)*divlen) + local x1 = minp.x + math.floor((divx+1)*divlen) + local z1 = minp.z + math.floor((divz+1)*divlen) + -- Determine flowers amount from perlin noise + local grass_amount = math.floor(perlin1:get2d({x=x0, y=z0}) ^ 3 * 9) + -- Find random positions for flowers based on this random + local pr = PseudoRandom(seed+456) + for i=0,grass_amount do + local x = pr:next(x0, x1) + local z = pr:next(z0, z1) + -- Find ground level (0...15) + local ground_y = nil + for y=30,0,-1 do + if minetest.get_node({x=x,y=y,z=z}).name ~= "air" then + ground_y = y + break + end + end + + if ground_y then + local p = {x=x,y=ground_y+1,z=z} + local nn = minetest.get_node(p).name + -- Check if the node can be replaced + if minetest.registered_nodes[nn] and + minetest.registered_nodes[nn].buildable_to then + nn = minetest.get_node({x=x,y=ground_y,z=z}).name + if nn == "default:dirt_with_grass" then + local flower_choice = pr:next(1, 6) + local flower + if flower_choice == 1 then + flower = "flowers:tulip" + elseif flower_choice == 2 then + flower = "flowers:rose" + elseif flower_choice == 3 then + flower = "flowers:dandelion_yellow" + elseif flower_choice == 4 then + flower = "flowers:dandelion_white" + elseif flower_choice == 5 then + flower = "flowers:geranium" + elseif flower_choice == 6 then + flower = "flowers:viola" + end + minetest.set_node(p, {name=flower}) + end + end + end + + end + end + end + end +end) diff --git a/mods/flowers/textures/flowers_dandelion_white.png b/mods/flowers/textures/flowers_dandelion_white.png new file mode 100644 index 0000000..f9d998f Binary files /dev/null and b/mods/flowers/textures/flowers_dandelion_white.png differ diff --git a/mods/flowers/textures/flowers_dandelion_yellow.png b/mods/flowers/textures/flowers_dandelion_yellow.png new file mode 100644 index 0000000..d1646fe Binary files /dev/null and b/mods/flowers/textures/flowers_dandelion_yellow.png differ diff --git a/mods/flowers/textures/flowers_geranium.png b/mods/flowers/textures/flowers_geranium.png new file mode 100644 index 0000000..0c05faf Binary files /dev/null and b/mods/flowers/textures/flowers_geranium.png differ diff --git a/mods/flowers/textures/flowers_rose.png b/mods/flowers/textures/flowers_rose.png new file mode 100644 index 0000000..450bb31 Binary files /dev/null and b/mods/flowers/textures/flowers_rose.png differ diff --git a/mods/flowers/textures/flowers_tulip.png b/mods/flowers/textures/flowers_tulip.png new file mode 100644 index 0000000..d7a63d3 Binary files /dev/null and b/mods/flowers/textures/flowers_tulip.png differ diff --git a/mods/flowers/textures/flowers_viola.png b/mods/flowers/textures/flowers_viola.png new file mode 100644 index 0000000..37525cf Binary files /dev/null and b/mods/flowers/textures/flowers_viola.png differ diff --git a/mods/flyingmachine/README.txt b/mods/flyingmachine/README.txt new file mode 100644 index 0000000..08da659 --- /dev/null +++ b/mods/flyingmachine/README.txt @@ -0,0 +1,16 @@ +Minetest 0.4,6 mod: Simple helicopter +======================= +by Pavel_S + +License of source code: +----------------------- +WTFPL + +License of media (textures and sounds): +--------------------------------------- +WTFPL + +Authors of media files: +----------------------- +textures: Pavel_S +model: Pavel_S diff --git a/mods/flyingmachine/depends.txt b/mods/flyingmachine/depends.txt new file mode 100644 index 0000000..4ad96d5 --- /dev/null +++ b/mods/flyingmachine/depends.txt @@ -0,0 +1 @@ +default diff --git a/mods/flyingmachine/init.lua b/mods/flyingmachine/init.lua new file mode 100644 index 0000000..84ebb2a --- /dev/null +++ b/mods/flyingmachine/init.lua @@ -0,0 +1,281 @@ +local function get_sign(i) + if i == 0 then + return 0 + else + return i/math.abs(i) + end +end + +local function get_velocity(vx, vy, vz, yaw) + local x = math.cos(yaw)*vx+math.cos(math.pi/2+yaw)*vz + local z = math.sin(yaw)*vx+math.sin(math.pi/2+yaw)*vz + return {x=x, y=vy, z=z} +end + +local function get_v(v) + return math.sqrt(v.x^2+v.z^2) +end + + + +local box = { + physical = true, + collisionbox = {-0.5,-0.5,-0.5, 0.5,0.5,0.5}, + visual = "mesh", + mesh="controller.x", + textures = {"default_wood.png","default_wood.png"}, + --textures = {"default_wood.png","default_wood.png","default_wood.png","default_wood.png","default_wood.png","default_wood.png"}, + visual_size = {x=1, y=1}, +} +local wool = { + physical = true, + collisionbox = {-0.5,-0.5,-0.5, 0.5,0.5,0.5}, + visual = "mesh", + mesh="controller.x", + textures = {"wool_white.png"}, + --textures = {"default_wood.png","default_wood.png","default_wood.png","default_wood.png","default_wood.png","default_wood.png"}, + visual_size = {x=1, y=1}, +} +local fence = { + physical = true, + collisionbox = {-1/7, -1/2, -1/7, 1/7, 1/2, 1/7}, + visual = "mesh", + mesh="fence.x", + textures = {"default_wood.png"}, + --textures = {"default_wood.png","default_wood.png","default_wood.png","default_wood.png","default_wood.png","default_wood.png"}, + visual_size = {x=1, y=1}, +} +local controller = { + physical = true, + collisionbox = {-0.5,-0.5,-0.5, 0.5,0.5,0.5}, + visual = "mesh", + mesh="controller.x", + textures = {"flyingmachine_controller.png"}, + --textures = {"flyingmachine_controller.png","flyingmachine_controller.png","flyingmachine_controller.png","flyingmachine_controller.png","flyingmachine_controller.png","flyingmachine_controller.png"}, + --visual_size = {x=1, y=1}, + vx = 0,--Velo. for/back-ward + vy = 0,--Velo. up/down + vz = 0,--Velo. side + driver = nil, +} +function controller:on_rightclick(clicker) + if not clicker or not clicker:is_player() then + return + end + if self.driver and clicker == self.driver then + self.driver = nil + clicker:set_detach() + elseif not self.driver then + self.driver = clicker + clicker:set_attach(self.object, "", {x=0,y=0,z=0}, {x=0,y=0,z=0}) + end +end +function controller:on_punch(puncher, time_from_last_punch, tool_capabilities, direction) + self.object:remove() + if puncher and puncher:is_player() then + puncher:get_inventory():add_item("main", "flyingmachine:controller") + end +end +function box:on_punch(puncher, time_from_last_punch, tool_capabilities, direction) + self.object:remove() + if puncher and puncher:is_player() then + puncher:get_inventory():add_item("main", "default:wood") + end +end +function wool:on_punch(puncher, time_from_last_punch, tool_capabilities, direction) + self.object:remove() + if puncher and puncher:is_player() then + puncher:get_inventory():add_item("main", "wool:white") + end +end +function fence:on_punch(puncher, time_from_last_punch, tool_capabilities, direction) + self.object:remove() + if puncher and puncher:is_player() then + puncher:get_inventory():add_item("main", "default:fence_wood") + end +end + +function controller:on_step(dtime) + --self.v = get_v(self.object:getvelocity())*get_sign(self.v) + if self.driver then + local ctrl = self.driver:get_player_control() + --Forward/backward + if ctrl.up then + self.vx = self.vx+0.1 + end + if ctrl.down then + self.vx = self.vx-0.08 + end + --Left/right + if ctrl.left then + --self.vz = self.vz+0.1 + self.object:setyaw(self.object:getyaw()+math.pi/120+dtime*math.pi/120) + + end + if ctrl.right then + --self.vz = self.vz-0.1 + self.object:setyaw(self.object:getyaw()-math.pi/120-dtime*math.pi/120) + end + --up/down + if ctrl.jump then + if self.vy<1.5 then + self.vy = self.vy+0.2 + end + end + if ctrl.sneak then + if self.vy>-1.5 then + self.vy = self.vy-0.2 + end + end + -- + --self.object:setyaw(self.driver:get_look_yaw()) + end + --Decelerating + local sx=get_sign(self.vx) + self.vx = self.vx - 0.02*sx + + local sz=get_sign(self.vz) + self.vz = self.vz - 0.02*sz + + local sy=get_sign(self.vy) + self.vy = self.vy-0.01*sy + + --Stop + if sx ~= get_sign(self.vx) then + self.vx = 0 + end + + if sz ~= get_sign(self.vz) then + self.vz = 0 + end + + if sy ~= get_sign(self.vy) then + self.vy = 0 + end + + --Speed limit + if math.abs(self.vx) > 4.5 then + self.vx = 4.5*get_sign(self.vx) + end + if math.abs(self.vz) > 4.5 then + self.vz = 4.5*get_sign(self.vz) + end + --Set speed to entity + self.object:setvelocity(get_velocity(self.vx, self.vy, self.vz, self.object:getyaw())) +end + +minetest.register_entity("flyingmachine:box", box) +minetest.register_entity("flyingmachine:controller", controller) +minetest.register_entity("flyingmachine:wool", wool) +minetest.register_entity("flyingmachine:fence", fence) + +minetest.register_craftitem("flyingmachine:controller", { + description = "controller", + inventory_image = "flyingmachine_controller.png", + wield_image = "flyingmachine_controller.png", + wield_scale = {x=1, y=1, z=1}, + liquids_pointable = false, + on_place = function(itemstack, placer, pointed_thing) + if pointed_thing.type ~= "node" then + return + end + local pos = pointed_thing.under + local height =0 + local lx = 0 + local lz = 0 + local node = minetest.env:get_node(pos) + for i=1,10 do + node = minetest.env:get_node(pos) + if node.name=="default:steelblock" then + height = i + pos.y=pos.y+i + minetest.chat_send_all("OK. height : "..height) + break + end + pos.y = pos.y-1 + if i==9 then + return + end + end + local object = minetest.env:add_entity(pos, "flyingmachine:controller") + --Find a corner of steel plane + pos.y=pos.y-height + for i=1,50 do + node = minetest.env:get_node(pos) + if node.name~="default:steelblock" then + pos.x = pos.x+1 + lx=i-2 + minetest.chat_send_all("OK. lx : "..lx) + break + end + pos.x = pos.x-1 + if i==50 then + return + end + end + for i=1,50 do + node = minetest.env:get_node(pos) + if node.name~="default:steelblock" then + pos.z=pos.z+1 + lz=i-2 + minetest.chat_send_all("OK. lz : "..lz) + break + end + pos.z = pos.z-1 + if i==50 then + return + end + end + --Replacing by entities + local h=0 + for i=0,50 do + for j=0,50 do + node = minetest.env:get_node(pos) + if node.name~="default:steelblock" then + pos.x = pos.x-j + break + end + for v=0,50 do + pos.y=pos.y+1 + h=v+1 + node = minetest.env:get_node(pos) + if node.name=="wool:white" then + minetest.env:remove_node(pos) + local object2=minetest.env:add_entity(pos, "flyingmachine:wool") + object2:set_attach(object,"Armature", {x=(j-lx)*10,y=(v-height+1)*10,z=(i-lz)*10}, {x=0,y=0,z=0}) + end + if node.name=="default:wood" then + minetest.env:remove_node(pos) + local object2=minetest.env:add_entity(pos, "flyingmachine:box") + object2:set_attach(object,"Armature", {x=(j-lx)*10,y=(v-height+1)*10,z=(i-lz)*10}, {x=0,y=0,z=0}) + end + if node.name=="default:fence_wood" then + minetest.env:remove_node(pos) + local object2=minetest.env:add_entity(pos, "flyingmachine:fence") + object2:set_attach(object,"Armature", {x=(j-lx)*10,y=(v-height+1)*10,z=(i-lz)*10}, {x=0,y=0,z=0}) + end + + end + pos.y=pos.y-h + pos.x = pos.x+1 + end + pos.z = pos.z+1 + node = minetest.env:get_node(pos) + if node.name~="default:steelblock" then + minetest.chat_send_all("OK. x : "..pos.x.." z : "..pos.z-1) + pos.x = pos.x+lx + pos.z = pos.z-i+lz-1 + pos.y = pos.y+height+1 + --minetest.env:add_entity(pos, "flyingmachine:box") + break + end + end + itemstack:take_item() + return itemstack + end, +}) +minetest.register_craft("flyingmachine:controller", { + {"default:wood","default:wood","default:wood"} + {"default:mese_crystal","default:diamond","default:mese_crystal"} + {"default:steel:ingot","default:steel:ingot","default:steel:ingot"} +}) \ No newline at end of file diff --git a/mods/flyingmachine/models/controller.x b/mods/flyingmachine/models/controller.x new file mode 100644 index 0000000..4f737c9 --- /dev/null +++ b/mods/flyingmachine/models/controller.x @@ -0,0 +1,129 @@ +xof 0303txt 0032 + +template XSkinMeshHeader { + <3cf169ce-ff7c-44ab-93c0-f78f62d172e2> + WORD nMaxSkinWeightsPerVertex; + WORD nMaxSkinWeightsPerFace; + WORD nBones; +} + +template SkinWeights { + <6f0d123b-bad2-4167-a0d0-80224f25fabb> + STRING transformNodeName; + DWORD nWeights; + array DWORD vertexIndices[nWeights]; + array float weights[nWeights]; + Matrix4x4 matrixOffset; +} + +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 Armature { + 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 Armature_Bone { + 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;; + } + } //End of Armature_Bone + } //End of Armature + Frame Cube { + FrameTransformMatrix { + 5.000000, 0.000000, 0.000000, 0.000000, + 0.000000, 5.000000, 0.000000, 0.000000, + 0.000000, 0.000000, 5.000000, 0.000000, + 0.000000, 0.000000, 0.000000, 1.000000;; + } + Mesh { //Cube_001 Mesh + 24; + -1.000000;-1.000000;-1.000000;, + -1.000000; 1.000000;-1.000000;, + -1.000000; 1.000000; 1.000000;, + -1.000000;-1.000000; 1.000000;, + -1.000000; 1.000000;-1.000000;, + 1.000000; 1.000000;-1.000000;, + 1.000000; 1.000000; 1.000000;, + -1.000000; 1.000000; 1.000000;, + 1.000000; 1.000000;-1.000000;, + 1.000000;-1.000000;-1.000000;, + 1.000000;-1.000000; 1.000000;, + 1.000000; 1.000000; 1.000000;, + 1.000000;-1.000000;-1.000000;, + -1.000000;-1.000000;-1.000000;, + -1.000000;-1.000000; 1.000000;, + 1.000000;-1.000000; 1.000000;, + 1.000000;-1.000000;-1.000000;, + 1.000000; 1.000000;-1.000000;, + -1.000000; 1.000000;-1.000000;, + -1.000000;-1.000000;-1.000000;, + -1.000000;-1.000000; 1.000000;, + -1.000000; 1.000000; 1.000000;, + 1.000000; 1.000000; 1.000000;, + 1.000000;-1.000000; 1.000000;; + 6; + 4;0;1;2;3;, + 4;4;5;6;7;, + 4;8;9;10;11;, + 4;12;13;14;15;, + 4;16;17;18;19;, + 4;20;21;22;23;; + MeshNormals { //Cube_001 Normals + 24; + -1.000000; 0.000000; 0.000000;, + -1.000000; 0.000000; 0.000000;, + -1.000000; 0.000000; 0.000000;, + -1.000000; 0.000000; 0.000000;, + 0.000000; 1.000000;-0.000000;, + 0.000000; 1.000000;-0.000000;, + 0.000000; 1.000000;-0.000000;, + 0.000000; 1.000000;-0.000000;, + 1.000000; 0.000000;-0.000000;, + 1.000000; 0.000000;-0.000000;, + 1.000000; 0.000000;-0.000000;, + 1.000000; 0.000000;-0.000000;, + 0.000000;-1.000000; 0.000000;, + 0.000000;-1.000000; 0.000000;, + 0.000000;-1.000000; 0.000000;, + 0.000000;-1.000000; 0.000000;, + -0.000000; 0.000000;-1.000000;, + -0.000000; 0.000000;-1.000000;, + -0.000000; 0.000000;-1.000000;, + -0.000000; 0.000000;-1.000000;, + -0.000000; 0.000000; 1.000000;, + -0.000000; 0.000000; 1.000000;, + -0.000000; 0.000000; 1.000000;, + -0.000000; 0.000000; 1.000000;; + 6; + 4;0;1;2;3;, + 4;4;5;6;7;, + 4;8;9;10;11;, + 4;12;13;14;15;, + 4;16;17;18;19;, + 4;20;21;22;23;; + } //End of Cube_001 Normals + MeshMaterialList { //Cube_001 Material List + 1; + 1; + 0;; + Material Default_Material { + 0.800000; 0.800000; 0.800000; 0.800000;; + 96.078431; + 0.500000; 0.500000; 0.500000;; + 0.000000; 0.000000; 0.000000;; + } + } //End of Cube_001 Material List + } //End of Cube_001 Mesh + } //End of Cube +} //End of Root Frame diff --git a/mods/flyingmachine/models/fence.x b/mods/flyingmachine/models/fence.x new file mode 100644 index 0000000..8f60bde --- /dev/null +++ b/mods/flyingmachine/models/fence.x @@ -0,0 +1,156 @@ +xof 0303txt 0032 + +template XSkinMeshHeader { + <3cf169ce-ff7c-44ab-93c0-f78f62d172e2> + WORD nMaxSkinWeightsPerVertex; + WORD nMaxSkinWeightsPerFace; + WORD nBones; +} + +template SkinWeights { + <6f0d123b-bad2-4167-a0d0-80224f25fabb> + STRING transformNodeName; + DWORD nWeights; + array DWORD vertexIndices[nWeights]; + array float weights[nWeights]; + Matrix4x4 matrixOffset; +} + +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 Armature { + 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 Armature_Bone { + 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;; + } + } //End of Armature_Bone + } //End of Armature + Frame Cube { + FrameTransformMatrix { + 1.400000, 0.000000, 0.000000, 0.000000, + 0.000000, 1.400000, 0.000000, 0.000000, + 0.000000, 0.000000, 5.000000, 0.000000, + 0.000000, 0.000000, 0.000000, 1.000000;; + } + Mesh { //Cube_001 Mesh + 24; + -1.000000;-1.000000;-1.000000;, + -1.000000; 1.000000;-1.000000;, + -1.000000; 1.000000; 1.000000;, + -1.000000;-1.000000; 1.000000;, + -1.000000; 1.000000;-1.000000;, + 1.000000; 1.000000;-1.000000;, + 1.000000; 1.000000; 1.000000;, + -1.000000; 1.000000; 1.000000;, + 1.000000; 1.000000;-1.000000;, + 1.000000;-1.000000;-1.000000;, + 1.000000;-1.000000; 1.000000;, + 1.000000; 1.000000; 1.000000;, + 1.000000;-1.000000;-1.000000;, + -1.000000;-1.000000;-1.000000;, + -1.000000;-1.000000; 1.000000;, + 1.000000;-1.000000; 1.000000;, + 1.000000;-1.000000;-1.000000;, + 1.000000; 1.000000;-1.000000;, + -1.000000; 1.000000;-1.000000;, + -1.000000;-1.000000;-1.000000;, + -1.000000;-1.000000; 1.000000;, + -1.000000; 1.000000; 1.000000;, + 1.000000; 1.000000; 1.000000;, + 1.000000;-1.000000; 1.000000;; + 6; + 4;0;1;2;3;, + 4;4;5;6;7;, + 4;8;9;10;11;, + 4;12;13;14;15;, + 4;16;17;18;19;, + 4;20;21;22;23;; + MeshNormals { //Cube_001 Normals + 24; + -1.000000; 0.000000; 0.000000;, + -1.000000; 0.000000; 0.000000;, + -1.000000; 0.000000; 0.000000;, + -1.000000; 0.000000; 0.000000;, + 0.000000; 1.000000;-0.000000;, + 0.000000; 1.000000;-0.000000;, + 0.000000; 1.000000;-0.000000;, + 0.000000; 1.000000;-0.000000;, + 1.000000; 0.000000;-0.000000;, + 1.000000; 0.000000;-0.000000;, + 1.000000; 0.000000;-0.000000;, + 1.000000; 0.000000;-0.000000;, + 0.000000;-1.000000; 0.000000;, + 0.000000;-1.000000; 0.000000;, + 0.000000;-1.000000; 0.000000;, + 0.000000;-1.000000; 0.000000;, + -0.000000; 0.000000;-1.000000;, + -0.000000; 0.000000;-1.000000;, + -0.000000; 0.000000;-1.000000;, + -0.000000; 0.000000;-1.000000;, + -0.000000; 0.000000; 1.000000;, + -0.000000; 0.000000; 1.000000;, + -0.000000; 0.000000; 1.000000;, + -0.000000; 0.000000; 1.000000;; + 6; + 4;0;1;2;3;, + 4;4;5;6;7;, + 4;8;9;10;11;, + 4;12;13;14;15;, + 4;16;17;18;19;, + 4;20;21;22;23;; + } //End of Cube_001 Normals + MeshMaterialList { //Cube_001 Material List + 1; + 1; + 0;; + Material Default_Material { + 0.800000; 0.800000; 0.800000; 0.800000;; + 96.078431; + 0.500000; 0.500000; 0.500000;; + 0.000000; 0.000000; 0.000000;; + } + } //End of Cube_001 Material List + MeshTextureCoords { //Cube_001 UV Coordinates + 24; + 0.000000; 0.000000;, + 1.000000; 0.000000;, + 1.000000; 1.000000;, + 0.000000; 1.000000;, + 0.000000; 0.000000;, + 1.000000; 0.000000;, + 1.000000; 1.000000;, + 0.000000; 1.000000;, + 0.000000; 0.000000;, + 1.000000; 0.000000;, + 1.000000; 1.000000;, + 0.000000; 1.000000;, + 0.000000; 0.000000;, + 1.000000; 0.000000;, + 1.000000; 1.000000;, + 0.000000; 1.000000;, + 0.000000; 0.000000;, + 1.000000; 0.000000;, + 1.000000; 1.000000;, + 0.000000; 1.000000;, + 0.000000; 0.000000;, + 1.000000; 0.000000;, + 1.000000; 1.000000;, + 0.000000; 1.000000;; + } //End of Cube_001 UV Coordinates + } //End of Cube_001 Mesh + } //End of Cube +} //End of Root Frame diff --git a/mods/flyingmachine/textures/flyingmachine_controller.png b/mods/flyingmachine/textures/flyingmachine_controller.png new file mode 100644 index 0000000..51b0584 Binary files /dev/null and b/mods/flyingmachine/textures/flyingmachine_controller.png differ diff --git a/mods/give_initial_stuff/depends.txt b/mods/give_initial_stuff/depends.txt new file mode 100644 index 0000000..3a7daa1 --- /dev/null +++ b/mods/give_initial_stuff/depends.txt @@ -0,0 +1,2 @@ +default + diff --git a/mods/give_initial_stuff/init.lua b/mods/give_initial_stuff/init.lua new file mode 100644 index 0000000..57b5558 --- /dev/null +++ b/mods/give_initial_stuff/init.lua @@ -0,0 +1,9 @@ +minetest.register_on_newplayer(function(player) + --print("on_newplayer") + if minetest.setting_getbool("give_initial_stuff") then + minetest.log("action", "Giving initial stuff to player "..player:get_player_name()) + player:get_inventory():add_item('main', 'default:torch 99') + player:get_inventory():add_item('main', 'helicopter:heli') + end +end) + diff --git a/mods/helicopter/README.txt b/mods/helicopter/README.txt new file mode 100644 index 0000000..243df85 --- /dev/null +++ b/mods/helicopter/README.txt @@ -0,0 +1,13 @@ +Minetest 0.4.7+ mod: Simple helicopter +======================= +by Pavel_S + +License of source code: +----------------------- +GPL_v2 + +License of media (textures and sounds): +--------------------------------------- + +helicopter_motor.ogg by Robinhood76 | License: Attribution Noncommercial + diff --git a/mods/helicopter/depends.txt b/mods/helicopter/depends.txt new file mode 100644 index 0000000..4ad96d5 --- /dev/null +++ b/mods/helicopter/depends.txt @@ -0,0 +1 @@ +default diff --git a/mods/helicopter/init.lua b/mods/helicopter/init.lua new file mode 100644 index 0000000..11b975c --- /dev/null +++ b/mods/helicopter/init.lua @@ -0,0 +1,269 @@ +-- +-- Helper functions +-- +local function get_sign(i) + if i == 0 then + return 0 + else + return i/math.abs(i) + end +end + +-- +-- Heli entity +-- + +local heli = { + physical = true, + collisionbox = {-1,-0.6,-1, 1,0.3,1}, + makes_footstep_sound = false, + collide_with_objects = true, + + visual = "mesh", + mesh = "root.x", + --Player + driver = nil, + + --Heli mesh + model = nil, + --Rotation + yaw=0, + --Speeds + vx=0, + vy=0, + vz=0, + soundHandle=nil + + +} +local heliModel = { + visual = "mesh", + mesh = "heli.x", + textures = {"blades.png","blades.png","heli.png","Glass.png"}, +} + +function heli:on_rightclick(clicker) + if not clicker or not clicker:is_player() then + return + end + if self.driver and clicker == self.driver then + clicker:set_detach() + self.driver = nil + self.model:set_animation({x=0,y=1},0, 0) + minetest.sound_stop(self.soundHandle) + elseif not self.driver then + self.soundHandle=minetest.sound_play({name="helicopter_motor"},{object = self.object, gain = 2.0, max_hear_distance = 32, loop = true,}) + self.model:set_animation({x=0,y=11},30, 0) + self.driver = clicker + clicker:set_attach(self.model, "", {x=0,y=14,z=0}, {x=0,y=0,z=0}) + end +end + +function heliModel:on_activate(staticdata, dtime_s) + self.object:set_armor_groups({immortal=1}) + local is_attached = false + for _,object in ipairs(minetest.env:get_objects_inside_radius(self.object:getpos(), 2)) do + if object and object:get_luaentity() and object:get_luaentity().name=="helicopter:heli" then + if object:get_luaentity().model == nil then + object:get_luaentity().model = self + end + if object:get_luaentity().model == self then + is_attached = true + end + end + end + if is_attached == false then + self.object:remove() + end + +end + +function heli:on_activate(staticdata, dtime_s) + self.object:set_armor_groups({cracky=80,choppy=80,fleshy=80}) + self.object:set_hp(30) + self.prev_y=self.object:getpos() + if self.model == nil then + self.model = minetest.env:add_entity(self.object:getpos(), "helicopter:heliModel") + self.model:set_attach(self.object, "", {x=0,y=-5,z=0}, {x=0,y=0,z=0}) + end +end + +function heli:on_punch(puncher, time_from_last_punch, tool_capabilities, direction) + if self.object:get_hp() == 0 then + if self.model ~= nil then + self.model:remove() + end + if self.soundHandle then + minetest.sound_stop(self.soundHandle) + end + self.object:remove() + + if puncher and puncher:is_player() then + puncher:get_inventory():add_item("main", "default:steel_ingot 5") + puncher:get_inventory():add_item("main", "default:mese_crystal") + end + end +end +function heliModel:on_punch(puncher, time_from_last_punch, tool_capabilities, direction) + self.object:remove() +end +function heli:on_step(dtime) + --Prevent multi heli control bug + if self.driver and ( math.abs(self.driver:getpos().x-self.object:getpos().x)>10*dtime or math.abs(self.driver:getpos().y-self.object:getpos().y)>10*dtime or math.abs(self.driver:getpos().z-self.object:getpos().z)>10*dtime) then + self.driver = nil + self.model:set_animation({x=0,y=1},0, 0) + minetest.sound_stop(self.soundHandle) + end + + if self.driver then + --self.driver:set_animation({ x= 81, y=160, },10,0) + self.yaw = self.driver:get_look_yaw() + v = self.object:getvelocity() + local ctrl = self.driver:get_player_control() + --Forward/backward + if ctrl.up then + self.vx = self.vx + math.cos(self.driver:get_look_yaw())*0.1 + self.vz = self.vz + math.sin(self.driver:get_look_yaw())*0.1 + end + if ctrl.down then + self.vx = self.vx-math.cos(self.driver:get_look_yaw())*0.1 + self.vz = self.vz-math.sin(self.driver:get_look_yaw())*0.1 + end + --Left/right + if ctrl.left then + self.vz = self.vz+math.cos(self.driver:get_look_yaw())*0.1 + self.vx = self.vx+math.sin(math.pi+self.driver:get_look_yaw())*0.1 + end + if ctrl.right then + self.vz = self.vz-math.cos(self.driver:get_look_yaw())*0.1 + self.vx = self.vx-math.sin(math.pi+self.driver:get_look_yaw())*0.1 + end + --up/down + if ctrl.jump then + if self.vy<1.5 then + self.vy = self.vy+0.2 + end + end + if ctrl.sneak then + if self.vy>-1.5 then + self.vy = self.vy-0.2 + end + end + -- + end + if self.vx==0 and self.vz==0 and self.vy==0 then + return + end + --Decelerating + local sx=get_sign(self.vx) + self.vx = self.vx - 0.02*sx + local sz=get_sign(self.vz) + self.vz = self.vz - 0.02*sz + local sy=get_sign(self.vy) + self.vy = self.vy-0.01*sy + + --Stop + if sx ~= get_sign(self.vx) then + self.vx = 0 + end + if sz ~= get_sign(self.vz) then + self.vz = 0 + end + if sy ~= get_sign(self.vy) then + self.vy = 0 + end + + --Speed limit + if math.abs(self.vx) > 4.5 then + self.vx = 4.5*get_sign(self.vx) + end + if math.abs(self.vz) > 4.5 then + self.vz = 4.5*get_sign(self.vz) + end + if math.abs(self.vy) > 4.5 then + self.vz = 4.5*get_sign(self.vy) + end + + --Set speed to entity + + self.object:setvelocity({x=self.vx, y=self.vy,z=self.vz}) + if self.model then + self.model:set_attach(self.object,"Root", {x=0,y=0,z=5}, { + x=-90+self.vx*3*math.cos(self.yaw)+self.vz*3*math.sin(self.yaw), + y=0-self.vx*3*math.sin(self.yaw)+self.vz*3*math.cos(self.yaw), + z=(self.yaw-math.pi/2)*57}) + end +end + +-- +--Registration +-- + +minetest.register_entity("helicopter:heli", heli) +minetest.register_entity("helicopter:heliModel", heliModel) + +-- +--Craft items +-- + +--Blades +minetest.register_craftitem("helicopter:blades",{ + description = "Blades", + inventory_image = "blades_inv.png", + wield_image = "blades_inv.png", +}) +--Cabin +minetest.register_craftitem("helicopter:cabin",{ + description = "Cabin for heli", + inventory_image = "cabin_inv.png", + wield_image = "cabin_inv.png", +}) +--Heli +minetest.register_craftitem("helicopter:heli", { + description = "Helicopter", + inventory_image = "heli_inv.png", + wield_image = "heli_inv.png", + wield_scale = {x=1, y=1, z=1}, + liquids_pointable = false, + + on_place = function(itemstack, placer, pointed_thing) + if pointed_thing.type ~= "node" then + return + end + if minetest.get_node(pointed_thing.above).name ~= "air" then + return + end + minetest.env:add_entity(pointed_thing.above, "helicopter:heli") + itemstack:take_item() + return itemstack + end, +}) + +-- +--Craft +-- + +minetest.register_craft({ + output = 'helicopter:blades', + recipe = { + {'', 'default:steel_ingot', ''}, + {'default:steel_ingot', 'group:stick', 'default:steel_ingot'}, + {'', 'default:steel_ingot', ''}, + } +}) +minetest.register_craft({ + output = 'helicopter:cabin', + recipe = { + {'', 'group:wood', ''}, + {'group:wood', 'default:mese_crystal','default:glass'}, + {'group:wood','group:wood','group:wood'}, + } +}) +minetest.register_craft({ + output = 'helicopter:heli', + recipe = { + {'', 'helicopter:blades', ''}, + {'helicopter:blades', 'helicopter:cabin',''}, + } +}) + diff --git a/mods/helicopter/models/heli.x b/mods/helicopter/models/heli.x new file mode 100644 index 0000000..ef57e82 --- /dev/null +++ b/mods/helicopter/models/heli.x @@ -0,0 +1,3390 @@ +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 blade { + FrameTransformMatrix { + -0.891006, 0.453991, 0.000000, 0.000000, + -0.453991,-0.891006, 0.000000, 0.000000, + 0.000000, 0.000000, 1.000000, 0.000000, + 0.066270, 0.155000,23.948601, 1.000000;; + } + Mesh { // blade mesh + 48; + -12.418771;-10.241999; 0.184581;, + -12.418771;-10.241999;-0.534882;, + -10.241998;-12.418774;-0.534882;, + -10.241998;-12.418774; 0.184581;, + 12.418774;10.241999; 0.184579;, + 12.418774;10.241999;-0.534886;, + 10.241996;12.418772;-0.534886;, + 10.241996;12.418772; 0.184579;, + -12.418771;-10.241999; 0.184581;, + -10.241998;-12.418774; 0.184581;, + 12.418774;10.241999; 0.184579;, + 10.241996;12.418772; 0.184579;, + -12.418771;-10.241999;-0.534882;, + -12.418771;-10.241999; 0.184581;, + 10.241996;12.418772; 0.184579;, + 10.241996;12.418772;-0.534886;, + -10.241998;-12.418774;-0.534882;, + -12.418771;-10.241999;-0.534882;, + 10.241996;12.418772;-0.534886;, + 12.418774;10.241999;-0.534886;, + -10.241998;-12.418774; 0.184581;, + -10.241998;-12.418774;-0.534882;, + 12.418774;10.241999;-0.534886;, + 12.418774;10.241999; 0.184579;, + 12.418770;-10.241998; 0.580299;, + 12.418770;-10.241998;-0.139164;, + -10.241998;12.418770;-0.139168;, + -10.241998;12.418770; 0.580295;, + 12.418770;-10.241998;-0.139164;, + 10.241994;-12.418773;-0.139164;, + -12.418775;10.241997;-0.139168;, + -10.241998;12.418770;-0.139168;, + 10.241994;-12.418773;-0.139164;, + 10.241994;-12.418773; 0.580299;, + -12.418775;10.241997; 0.580295;, + -12.418775;10.241997;-0.139168;, + 10.241994;-12.418773; 0.580299;, + 12.418770;-10.241998; 0.580299;, + -10.241998;12.418770; 0.580295;, + -12.418775;10.241997; 0.580295;, + -10.241998;12.418770; 0.580295;, + -10.241998;12.418770;-0.139168;, + -12.418775;10.241997;-0.139168;, + -12.418775;10.241997; 0.580295;, + 10.241994;-12.418773; 0.580299;, + 10.241994;-12.418773;-0.139164;, + 12.418770;-10.241998;-0.139164;, + 12.418770;-10.241998; 0.580299;; + 12; + 4;3,2,1,0;, + 4;7,6,5,4;, + 4;11,10,9,8;, + 4;15,14,13,12;, + 4;19,18,17,16;, + 4;23,22,21,20;, + 4;27,26,25,24;, + 4;31,30,29,28;, + 4;35,34,33,32;, + 4;39,38,37,36;, + 4;43,42,41,40;, + 4;47,46,45,44;; + MeshTextureCoords { // blade UV coordinates + 48; + 0.562500; 1.000000;, + 0.562500; 0.968750;, + 0.437500; 0.968750;, + 0.437500; 1.000000;, + 0.437500; 0.000000;, + 0.437500; 0.031250;, + 0.562500; 0.031250;, + 0.562500; 0.000000;, + -0.156250; 0.437500;, + -0.156250; 0.562500;, + 1.156250; 0.562500;, + 1.156250; 0.437500;, + 0.531250; 1.000000;, + 0.562500; 1.000000;, + 0.562500; 0.000000;, + 0.531250; 0.000000;, + 0.437500; 1.156250;, + 0.562500; 1.156250;, + 0.562500;-0.156250;, + 0.437500;-0.156250;, + 0.437500; 1.000000;, + 0.468750; 1.000000;, + 0.468750; 0.000000;, + 0.437500; 0.000000;, + 1.000000; 0.562500;, + 1.000000; 0.531250;, + 0.000000; 0.531250;, + 0.000000; 0.562500;, + 1.156250; 0.562500;, + 1.156250; 0.437500;, + -0.156250; 0.437500;, + -0.156250; 0.562500;, + 1.000000; 0.468750;, + 1.000000; 0.437500;, + 0.000000; 0.437500;, + 0.000000; 0.468750;, + 0.437500; 1.156250;, + 0.562500; 1.156250;, + 0.562500;-0.156250;, + 0.437500;-0.156250;, + 0.000000; 0.562500;, + 0.031250; 0.562500;, + 0.031250; 0.437500;, + 0.000000; 0.437500;, + 1.000000; 0.437500;, + 0.968750; 0.437500;, + 0.968750; 0.562500;, + 1.000000; 0.562500;; + } // End of blade UV coordinates + } // End of blade mesh + } // End of blade + Frame blade_back { + FrameTransformMatrix { + 0.364074, 0.000000, 0.000000, 0.000000, + 0.000000,-0.346255, 0.112505, 0.000000, + 0.000000,-0.112505,-0.346255, 0.000000, + 1.522937,-17.349216,17.075975, 1.000000;; + } + Mesh { // blade_back mesh + 48; + 0.184582;-1.539212;-16.023582;, + -0.534881;-1.539212;-16.023582;, + -0.534881; 1.539211;-16.023584;, + 0.184582; 1.539211;-16.023584;, + 0.184578; 1.539214;16.023584;, + -0.534887; 1.539214;16.023584;, + -0.534887;-1.539212;16.023582;, + 0.184579;-1.539212;16.023582;, + 0.184582;-1.539212;-16.023582;, + 0.184582; 1.539211;-16.023584;, + 0.184578; 1.539214;16.023584;, + 0.184579;-1.539212;16.023582;, + -0.534881;-1.539212;-16.023582;, + 0.184582;-1.539212;-16.023582;, + 0.184579;-1.539212;16.023582;, + -0.534887;-1.539212;16.023582;, + -0.534881; 1.539211;-16.023584;, + -0.534881;-1.539212;-16.023582;, + -0.534887;-1.539212;16.023582;, + -0.534887; 1.539214;16.023584;, + 0.184582; 1.539211;-16.023584;, + -0.534881; 1.539211;-16.023584;, + -0.534887; 1.539214;16.023584;, + 0.184578; 1.539214;16.023584;, + 0.580298;16.023582; 1.539209;, + -0.139166;16.023582; 1.539209;, + -0.139167;-16.023582; 1.539212;, + 0.580297;-16.023582; 1.539212;, + -0.139166;16.023582; 1.539209;, + -0.139166;16.023582;-1.539216;, + -0.139166;-16.023586;-1.539213;, + -0.139167;-16.023582; 1.539212;, + -0.139166;16.023582;-1.539216;, + 0.580298;16.023582;-1.539216;, + 0.580297;-16.023586;-1.539213;, + -0.139166;-16.023586;-1.539213;, + 0.580298;16.023582;-1.539216;, + 0.580298;16.023582; 1.539209;, + 0.580297;-16.023582; 1.539212;, + 0.580297;-16.023586;-1.539213;, + 0.580297;-16.023582; 1.539212;, + -0.139167;-16.023582; 1.539212;, + -0.139166;-16.023586;-1.539213;, + 0.580297;-16.023586;-1.539213;, + 0.580298;16.023582;-1.539216;, + -0.139166;16.023582;-1.539216;, + -0.139166;16.023582; 1.539209;, + 0.580298;16.023582; 1.539209;; + 12; + 4;3,2,1,0;, + 4;7,6,5,4;, + 4;11,10,9,8;, + 4;15,14,13,12;, + 4;19,18,17,16;, + 4;23,22,21,20;, + 4;27,26,25,24;, + 4;31,30,29,28;, + 4;35,34,33,32;, + 4;39,38,37,36;, + 4;43,42,41,40;, + 4;47,46,45,44;; + MeshTextureCoords { // blade_back UV coordinates + 48; + 0.562500; 1.000000;, + 0.562500; 0.968750;, + 0.437500; 0.968750;, + 0.437500; 1.000000;, + 0.437500; 0.000000;, + 0.437500; 0.031250;, + 0.562500; 0.031250;, + 0.562500; 0.000000;, + -0.156250; 0.437500;, + -0.156250; 0.562500;, + 1.156250; 0.562500;, + 1.156250; 0.437500;, + 0.531250; 1.000000;, + 0.562500; 1.000000;, + 0.562500; 0.000000;, + 0.531250; 0.000000;, + 0.437500; 1.156250;, + 0.562500; 1.156250;, + 0.562500;-0.156250;, + 0.437500;-0.156250;, + 0.437500; 1.000000;, + 0.468750; 1.000000;, + 0.468750; 0.000000;, + 0.437500; 0.000000;, + 1.000000; 0.562500;, + 1.000000; 0.531250;, + 0.000000; 0.531250;, + 0.000000; 0.562500;, + 1.156250; 0.562500;, + 1.156250; 0.437500;, + -0.156250; 0.437500;, + -0.156250; 0.562500;, + 1.000000; 0.468750;, + 1.000000; 0.437500;, + 0.000000; 0.437500;, + 0.000000; 0.468750;, + 0.437500; 1.156250;, + 0.562500; 1.156250;, + 0.562500;-0.156250;, + 0.437500;-0.156250;, + 0.000000; 0.562500;, + 0.031250; 0.562500;, + 0.031250; 0.437500;, + 0.000000; 0.437500;, + 1.000000; 0.437500;, + 0.968750; 0.437500;, + 0.968750; 0.562500;, + 1.000000; 0.562500;; + } // End of blade_back UV coordinates + } // End of blade_back mesh + } // End of blade_back + Frame cabin { + FrameTransformMatrix { + -0.000000, 0.849807, 0.000000, 0.000000, + -0.849807,-0.000000, 0.000000, 0.000000, + 0.000000, 0.000000, 0.849807, 0.000000, + 0.103012, 0.077333, 5.824100, 1.000000;; + } + Mesh { // cabin mesh + 1192; + -8.335882; 0.000000;20.299566;, + -8.335882;-1.044112;20.299566;, + -8.335882;-1.044112;-2.071621;, + -8.335882; 0.000000;-2.071621;, + -8.335882;-1.044112;20.299566;, + -10.257066;-1.044112;20.299566;, + -10.257066;-1.044112;-2.071621;, + -8.335882;-1.044112;-2.071621;, + -10.257066; 0.000000;-2.071621;, + -8.335882; 0.000000;-2.071621;, + -8.335882;-1.044112;-2.071621;, + -10.257066;-1.044112;-2.071621;, + -8.839310; 0.000000;12.197909;, + -8.839310;-0.760468;12.197909;, + -21.979908;-0.760469;12.197909;, + -21.979908; 0.000000;12.197909;, + -8.839310;-0.760468;12.197909;, + -8.839310;-0.760468;14.119094;, + -21.979908;-0.760469;14.119090;, + -21.979908;-0.760469;12.197909;, + -21.979908; 0.000000;14.119090;, + -21.979908; 0.000000;12.197909;, + -21.979908;-0.760469;12.197909;, + -21.979908;-0.760469;14.119090;, + 4.611715; 0.000000;20.497721;, + 4.611715;-3.062278;20.497721;, + 4.611715;-3.062278;19.527578;, + 4.611715; 0.000000;19.527578;, + 4.611715;-3.062278;20.497721;, + -10.163321;-3.062281;20.497721;, + -10.163321;-3.062281;19.527578;, + 4.611715;-3.062278;19.527578;, + -10.163322; 0.000000;19.527578;, + 4.611715; 0.000000;19.527578;, + 4.611715;-3.062278;19.527578;, + -10.163321;-3.062281;19.527578;, + -10.163321;-3.062281;20.497721;, + -10.163322; 0.000000;20.497721;, + -10.163322; 0.000000;19.527578;, + -10.163321;-3.062281;19.527578;, + -10.163321;-3.062281;20.497721;, + 4.611715;-3.062278;20.497721;, + 4.611715; 0.000000;20.497721;, + -10.163322; 0.000000;20.497721;, + -8.839310;-0.760468;14.119094;, + -8.839310; 0.000000;14.119094;, + -21.979908; 0.000000;14.119090;, + -21.979908;-0.760469;14.119090;, + -8.839310;-0.760468;14.119094;, + -8.839310;-0.760468;12.197909;, + -8.839310; 0.000000;12.197909;, + -8.839310; 0.000000;14.119094;, + -10.257066;-1.044112;20.299566;, + -10.257066; 0.000000;20.299566;, + -10.257066; 0.000000;-2.071621;, + -10.257066;-1.044112;-2.071621;, + -10.257066;-1.044112;20.299566;, + -8.335882;-1.044112;20.299566;, + -8.335882; 0.000000;20.299566;, + -10.257066; 0.000000;20.299566;, + -8.335882; 0.000000;20.299566;, + -8.335882; 0.000000;-2.071621;, + -8.335882; 1.044112;-2.071621;, + -8.335882; 1.044112;20.299566;, + -8.335882; 1.044112;20.299566;, + -8.335882; 1.044112;-2.071621;, + -10.257066; 1.044112;-2.071621;, + -10.257066; 1.044112;20.299566;, + -10.257066; 0.000000;-2.071621;, + -10.257066; 1.044112;-2.071621;, + -8.335882; 1.044112;-2.071621;, + -8.335882; 0.000000;-2.071621;, + -8.839310; 0.000000;12.197909;, + -21.979908; 0.000000;12.197909;, + -21.979908; 0.760469;12.197909;, + -8.839310; 0.760468;12.197909;, + -8.839310; 0.760468;12.197909;, + -21.979908; 0.760469;12.197909;, + -21.979908; 0.760469;14.119090;, + -8.839310; 0.760468;14.119094;, + -21.979908; 0.000000;14.119090;, + -21.979908; 0.760469;14.119090;, + -21.979908; 0.760469;12.197909;, + -21.979908; 0.000000;12.197909;, + 4.611715; 0.000000;20.497721;, + 4.611715; 0.000000;19.527578;, + 4.611715; 3.062278;19.527578;, + 4.611715; 3.062278;20.497721;, + 4.611715; 3.062278;20.497721;, + 4.611715; 3.062278;19.527578;, + -10.163321; 3.062281;19.527578;, + -10.163321; 3.062281;20.497721;, + -10.163322; 0.000000;19.527578;, + -10.163321; 3.062281;19.527578;, + 4.611715; 3.062278;19.527578;, + 4.611715; 0.000000;19.527578;, + -10.163321; 3.062281;20.497721;, + -10.163321; 3.062281;19.527578;, + -10.163322; 0.000000;19.527578;, + -10.163322; 0.000000;20.497721;, + -10.163321; 3.062281;20.497721;, + -10.163322; 0.000000;20.497721;, + 4.611715; 0.000000;20.497721;, + 4.611715; 3.062278;20.497721;, + -8.839310; 0.760468;14.119094;, + -21.979908; 0.760469;14.119090;, + -21.979908; 0.000000;14.119090;, + -8.839310; 0.000000;14.119094;, + -8.839310; 0.760468;14.119094;, + -8.839310; 0.000000;14.119094;, + -8.839310; 0.000000;12.197909;, + -8.839310; 0.760468;12.197909;, + -10.257066; 1.044112;20.299566;, + -10.257066; 1.044112;-2.071621;, + -10.257066; 0.000000;-2.071621;, + -10.257066; 0.000000;20.299566;, + -10.257066; 1.044112;20.299566;, + -10.257066; 0.000000;20.299566;, + -8.335882; 0.000000;20.299566;, + -8.335882; 1.044112;20.299566;, + 2.958205;-6.266014;-1.085394;, + 2.958205;-3.457446;-1.085394;, + 1.341950;-3.457446;-1.085394;, + 1.341949;-6.266014;-1.085394;, + 2.958205;-6.266014;-1.085394;, + 1.341949;-6.266014;-1.085394;, + 1.341949;-6.266014; 3.272140;, + 2.958205;-6.266014; 4.259186;, + 1.341949;-6.266014;-1.085394;, + -7.821624;-6.266014;-1.085394;, + -7.821624;-6.266014; 3.272140;, + 1.341949;-6.266014; 3.272140;, + 1.341949;-6.266014;-1.085394;, + 1.341950;-3.457446;-1.085394;, + -7.821624;-3.457446;-1.085394;, + -7.821624;-6.266014;-1.085394;, + -7.821624;-6.266014;-1.085394;, + -7.821624;-3.457446;-1.085394;, + -7.821624;-3.457446; 3.272140;, + -7.821624;-6.266014; 3.272140;, + -7.821624;-6.266014; 3.272140;, + -7.821624;-3.457446; 3.272140;, + -7.821624;-3.457446; 7.532129;, + -7.821624;-6.266014; 7.532129;, + -7.821624;-7.682857; 3.272140;, + -7.821624;-6.266014; 3.272140;, + -7.821624;-6.266014; 7.532129;, + -7.821624;-7.682857; 7.532129;, + -7.821624;-3.457446; 7.532129;, + -7.821624;-3.457446; 3.272140;, + -6.626290;-3.457446; 4.051414;, + -6.626290;-3.457446; 7.510913;, + -7.821624;-3.457446; 3.272140;, + -7.821624;-3.457446;-1.085394;, + -6.626290;-3.457446; 0.512702;, + -6.626290;-3.457446; 4.051414;, + -7.821624;-1.728723; 7.532129;, + -7.821624;-3.457446; 7.532129;, + -6.626290;-3.457446; 7.510913;, + -6.626290;-1.728723; 7.510913;, + -7.821624;-0.000000; 7.532129;, + -7.821624;-1.728723; 7.532129;, + -6.626290;-1.728723; 7.510913;, + -6.626290;-0.000000; 7.510913;, + -7.821624;-3.457446;-1.085394;, + 1.341950;-3.457446;-1.085394;, + 1.361950;-3.457446; 0.512702;, + -6.626290;-3.457446; 0.512702;, + 1.361950;-1.728723; 0.512702;, + 1.361950; 0.000000; 0.512702;, + -6.626290;-0.000000; 0.512702;, + -6.626290;-1.728723; 0.512702;, + -6.626290;-1.728723; 0.512702;, + -6.626290;-0.000000; 0.512702;, + -6.626290;-0.000000; 4.051414;, + -6.626290;-1.728723; 4.051414;, + -6.626290;-1.728723; 4.051414;, + -6.626290;-0.000000; 4.051414;, + -6.626290;-0.000000; 7.510913;, + -6.626290;-1.728723; 7.510913;, + 1.361950;-3.457446; 0.512702;, + 1.361950;-1.728723; 0.512702;, + -6.626290;-1.728723; 0.512702;, + -6.626290;-3.457446; 0.512702;, + -6.626290;-3.457446; 0.512702;, + -6.626290;-1.728723; 0.512702;, + -6.626290;-1.728723; 4.051414;, + -6.626290;-3.457446; 4.051414;, + -6.626290;-3.457446; 4.051414;, + -6.626290;-1.728723; 4.051414;, + -6.626290;-1.728723; 7.510913;, + -6.626290;-3.457446; 7.510913;, + 1.341950;-3.457446;-1.085394;, + 1.341950;-1.728723;-1.085394;, + 1.361950;-1.728723; 0.512702;, + 1.361950;-3.457446; 0.512702;, + 4.578670;-8.545100;-2.759586;, + 4.578670;-9.900055;-2.759586;, + 4.578670;-9.900055;-4.730428;, + 4.578670;-8.545100;-4.730428;, + -7.821622;-9.900054;-2.759586;, + -9.477706;-9.900054;-2.759586;, + -9.477706;-9.900054;-4.730428;, + -7.821622;-9.900054;-4.730428;, + 2.964239;-9.900055;-2.759586;, + 2.964239;-8.545100;-2.759586;, + 2.964239;-8.545100;-4.730428;, + 2.964239;-9.900055;-4.730428;, + -14.610346;-7.824526;-4.097442;, + 8.922906;-7.824527;-4.097442;, + 8.922906;-7.824527;-6.750484;, + -14.610346;-7.824526;-6.750484;, + 8.922906;-7.824527;-4.097442;, + 8.922906;-10.477569;-4.097442;, + 8.922906;-10.477569;-6.750484;, + 8.922906;-7.824527;-6.750484;, + 8.922906;-10.477569;-4.097442;, + -14.610346;-10.477567;-4.097442;, + -14.610346;-10.477567;-6.750484;, + 8.922906;-10.477569;-6.750484;, + -14.610346;-10.477567;-4.097442;, + -14.610346;-7.824526;-4.097442;, + -14.610346;-7.824526;-6.750484;, + -14.610346;-10.477567;-6.750484;, + -14.610346;-7.824526;-6.750484;, + 8.922906;-7.824527;-6.750484;, + 8.922906;-10.477569;-6.750484;, + -14.610346;-10.477567;-6.750484;, + -14.610346;-10.477567;-4.097442;, + 8.922906;-10.477569;-4.097442;, + 8.922906;-7.824527;-4.097442;, + -14.610346;-7.824526;-4.097442;, + 2.964239;-8.545100;-2.759586;, + 4.578670;-8.545100;-2.759586;, + 4.578670;-8.545100;-4.730428;, + 2.964239;-8.545100;-4.730428;, + 2.965864;-8.545100;-1.086077;, + 2.964239;-8.545100;-2.759586;, + 2.964239;-9.900055;-2.759586;, + 2.965864;-9.900055;-1.086077;, + -7.821624;-9.900054;-1.085394;, + -9.476039;-9.900054;-1.086077;, + -9.477706;-9.900054;-2.759586;, + -7.821622;-9.900054;-2.759586;, + 4.578668;-8.545100;-1.085394;, + 2.965864;-8.545100;-1.086077;, + 2.965864;-9.900055;-1.086077;, + 4.578668;-9.900055;-1.085394;, + 4.578670;-8.545100;-2.759586;, + 4.578668;-8.545100;-1.085394;, + 4.578668;-9.900055;-1.085394;, + 4.578670;-9.900055;-2.759586;, + -7.821622;-8.545099;-2.759586;, + -7.821624;-8.545099;-1.085394;, + -7.821624;-9.900054;-1.085394;, + -7.821622;-9.900054;-2.759586;, + 4.578668;-9.900055;-1.085394;, + 2.965864;-9.900055;-1.086077;, + 2.964239;-9.900055;-2.759586;, + 4.578670;-9.900055;-2.759586;, + -7.821624;-8.545099;-1.085394;, + -9.476039;-8.545099;-1.086077;, + -9.476039;-9.900054;-1.086077;, + -7.821624;-9.900054;-1.085394;, + -9.476039;-8.545099;-1.086077;, + -9.477706;-8.545099;-2.759586;, + -9.477706;-9.900054;-2.759586;, + -9.476039;-9.900054;-1.086077;, + -9.477706;-8.545099;-2.759586;, + -7.821622;-8.545099;-2.759586;, + -7.821622;-8.545099;-4.730428;, + -9.477706;-8.545099;-4.730428;, + -9.477706;-9.900054;-2.759586;, + -9.477706;-8.545099;-2.759586;, + -9.477706;-8.545099;-4.730428;, + -9.477706;-9.900054;-4.730428;, + 4.578670;-9.900055;-2.759586;, + 2.964239;-9.900055;-2.759586;, + 2.964239;-9.900055;-4.730428;, + 4.578670;-9.900055;-4.730428;, + -7.821622;-8.545099;-2.759586;, + -7.821622;-9.900054;-2.759586;, + -7.821622;-9.900054;-4.730428;, + -7.821622;-8.545099;-4.730428;, + 2.958205;-7.682857;-1.085394;, + 2.964239;-7.682857;-2.759586;, + 2.964239;-8.545100;-2.759586;, + 2.965864;-8.545100;-1.086077;, + 2.958205; 6.266014; 4.259186;, + 2.958205; 6.266014; 7.532129;, + 1.341949; 6.266014; 7.532129;, + 1.341949; 6.266014; 3.272140;, + 2.958205; 6.266014;-1.085394;, + 2.958205; 6.266014; 4.259186;, + 1.341949; 6.266014; 3.272140;, + 1.341949; 6.266014;-1.085394;, + 1.341949; 6.266014;-1.085394;, + 1.341949; 6.266014; 3.272140;, + -7.821624; 6.266014; 3.272140;, + -7.821624; 6.266014;-1.085394;, + 1.341949; 6.266014;-1.085394;, + -7.821624; 6.266014;-1.085394;, + -7.821624; 3.457446;-1.085394;, + 1.341950; 3.457446;-1.085394;, + -7.821624; 6.266014;-1.085394;, + -7.821624; 6.266014; 3.272140;, + -7.821624; 3.457446; 3.272140;, + -7.821624; 3.457446;-1.085394;, + -7.821624; 6.266014; 3.272140;, + -7.821624; 6.266014; 7.532129;, + -7.821624; 3.457446; 7.532129;, + -7.821624; 3.457446; 3.272140;, + -7.821624; 3.457446; 7.532129;, + -6.626290; 3.457446; 7.510913;, + -6.626290; 3.457446; 4.051414;, + -7.821624; 3.457446; 3.272140;, + -7.821624; 3.457446; 3.272140;, + -6.626290; 3.457446; 4.051414;, + -6.626290; 3.457446; 0.512702;, + -7.821624; 3.457446;-1.085394;, + -7.821624; 3.457446;-1.085394;, + -6.626290; 3.457446; 0.512702;, + 1.361950; 3.457446; 0.512702;, + 1.341950; 3.457446;-1.085394;, + 4.574461; 6.266014; 5.246232;, + 4.574461; 6.266014; 7.532129;, + 2.958205; 6.266014; 7.532129;, + 2.958205; 6.266014; 4.259186;, + 4.574461; 6.266014;-1.085394;, + 4.574461; 6.266014; 5.246232;, + 2.958205; 6.266014; 4.259186;, + 2.958205; 6.266014;-1.085394;, + 1.361950; 1.728723; 0.512702;, + -6.626290; 1.728723; 0.512702;, + -6.626290;-0.000000; 0.512702;, + 1.361950; 0.000000; 0.512702;, + -6.626290; 1.728723; 0.512702;, + -6.626290; 1.728723; 4.051414;, + -6.626290;-0.000000; 4.051414;, + -6.626290;-0.000000; 0.512702;, + -6.626290; 1.728723; 4.051414;, + -6.626290; 1.728723; 7.510913;, + -6.626290;-0.000000; 7.510913;, + -6.626290;-0.000000; 4.051414;, + 1.361950; 3.457446; 0.512702;, + -6.626290; 3.457446; 0.512702;, + -6.626290; 1.728723; 0.512702;, + 1.361950; 1.728723; 0.512702;, + -6.626290; 3.457446; 0.512702;, + -6.626290; 3.457446; 4.051414;, + -6.626290; 1.728723; 4.051414;, + -6.626290; 1.728723; 0.512702;, + -6.626290; 3.457446; 4.051414;, + -6.626290; 3.457446; 7.510913;, + -6.626290; 1.728723; 7.510913;, + -6.626290; 1.728723; 4.051414;, + 1.341950; 3.457446;-1.085394;, + 1.361950; 3.457446; 0.512702;, + 1.361950; 1.728723; 0.512702;, + 1.341950; 1.728723;-1.085394;, + 4.578670; 8.545100;-2.759586;, + 4.578670; 8.545100;-4.730428;, + 4.578670; 9.900055;-4.730428;, + 4.578670; 9.900055;-2.759586;, + 2.964239; 9.900055;-2.759586;, + 2.964239; 9.900055;-4.730428;, + 2.964239; 8.545100;-4.730428;, + 2.964239; 8.545100;-2.759586;, + -14.610346; 7.824526;-4.097442;, + -14.610346; 7.824526;-6.750484;, + 8.922906; 7.824527;-6.750484;, + 8.922906; 7.824527;-4.097442;, + 8.922906; 7.824527;-4.097442;, + 8.922906; 7.824527;-6.750484;, + 8.922906;10.477569;-6.750484;, + 8.922906;10.477569;-4.097442;, + 8.922906;10.477569;-4.097442;, + 8.922906;10.477569;-6.750484;, + -14.610346;10.477567;-6.750484;, + -14.610346;10.477567;-4.097442;, + -14.610346;10.477567;-4.097442;, + -14.610346;10.477567;-6.750484;, + -14.610346; 7.824526;-6.750484;, + -14.610346; 7.824526;-4.097442;, + -14.610346; 7.824526;-6.750484;, + -14.610346;10.477567;-6.750484;, + 8.922906;10.477569;-6.750484;, + 8.922906; 7.824527;-6.750484;, + -14.610346;10.477567;-4.097442;, + -14.610346; 7.824526;-4.097442;, + 8.922906; 7.824527;-4.097442;, + 8.922906;10.477569;-4.097442;, + 2.964239; 8.545100;-2.759586;, + 2.964239; 8.545100;-4.730428;, + 4.578670; 8.545100;-4.730428;, + 4.578670; 8.545100;-2.759586;, + 2.965864; 8.545100;-1.086077;, + 2.965864; 9.900055;-1.086077;, + 2.964239; 9.900055;-2.759586;, + 2.964239; 8.545100;-2.759586;, + 4.578668; 8.545100;-1.085394;, + 4.578668; 9.900055;-1.085394;, + 2.965864; 9.900055;-1.086077;, + 2.965864; 8.545100;-1.086077;, + 4.578670; 8.545100;-2.759586;, + 4.578670; 9.900055;-2.759586;, + 4.578668; 9.900055;-1.085394;, + 4.578668; 8.545100;-1.085394;, + 4.578668; 9.900055;-1.085394;, + 4.578670; 9.900055;-2.759586;, + 2.964239; 9.900055;-2.759586;, + 2.965864; 9.900055;-1.086077;, + 4.578670; 9.900055;-2.759586;, + 4.578670; 9.900055;-4.730428;, + 2.964239; 9.900055;-4.730428;, + 2.964239; 9.900055;-2.759586;, + 4.574460; 7.682857;-1.085394;, + 4.578668; 8.545100;-1.085394;, + 2.965864; 8.545100;-1.086077;, + 2.958205; 7.682857;-1.085394;, + -9.477706;-3.457446;-1.085394;, + -9.476039;-6.266012;-1.086077;, + -9.477706;-6.266012; 3.272140;, + -9.477706;-3.457446; 3.272140;, + 9.915538;-6.266014; 5.246232;, + 9.915538;-3.457446; 5.246232;, + 9.915538;-3.457446; 7.532129;, + 9.915538;-6.266014; 7.532129;, + 8.259454;-7.682857; 5.246232;, + 9.915538;-7.682857; 5.246232;, + 9.915538;-7.682857; 7.532129;, + 8.259454;-7.682857; 7.532129;, + 4.574460;-7.682857; 5.246232;, + 8.259454;-7.682857; 5.246232;, + 8.259454;-7.682857; 7.532129;, + 4.574460;-7.682857; 7.532129;, + 8.259455;-6.266014; 5.246232;, + 9.915538;-6.266014; 5.246232;, + 9.915538;-7.682857; 5.246232;, + 8.259454;-7.682857; 5.246232;, + 4.574460;-7.682857; 5.246232;, + 4.574461;-6.266014; 5.246232;, + 8.259455;-6.266014; 5.246232;, + 8.259454;-7.682857; 5.246232;, + -9.476039;-6.266012;-1.086077;, + -9.476039;-7.682857;-1.086077;, + -9.477706;-7.682857; 3.272140;, + -9.477706;-6.266012; 3.272140;, + -9.477706;-1.728723;-1.085394;, + -9.477706;-3.457446;-1.085394;, + -9.477706;-3.457446; 3.272140;, + -9.477706;-1.728723; 3.272140;, + 9.915538;-7.682857; 5.246232;, + 9.915538;-6.266014; 5.246232;, + 9.915538;-6.266014; 7.532129;, + 9.915538;-7.682857; 7.532129;, + -9.477706;-1.728723; 3.272140;, + -9.477706;-3.457446; 3.272140;, + -9.477706;-3.457446; 7.532129;, + -9.477706;-1.728723; 7.532129;, + -9.477706;-3.457446; 3.272140;, + -9.477706;-6.266012; 3.272140;, + -9.477706;-6.266012; 7.532129;, + -9.477706;-3.457446; 7.532129;, + -9.477706;-6.266012; 3.272140;, + -9.477706;-7.682857; 3.272140;, + -9.477706;-7.682857; 7.532129;, + -9.477706;-6.266012; 7.532129;, + -9.477706;-1.728723;-2.746734;, + -9.477706;-0.000000;-2.746734;, + -7.821624;-0.000000;-2.746734;, + -7.821623;-1.728723;-2.746734;, + -9.477706;-1.728723;-1.085394;, + -9.477706;-0.000000;-1.085394;, + -9.477706;-0.000000;-2.746734;, + -9.477706;-1.728723;-2.746734;, + -7.821623;-1.728723;-2.746734;, + -7.821624;-0.000000;-2.746734;, + 1.341950; 0.000000;-2.746734;, + 1.341951;-1.728723;-2.746734;, + 4.574460;-7.682857; 5.246232;, + 4.574460;-7.682857;-1.085394;, + 4.574461;-6.266014;-1.085394;, + 4.574461;-6.266014; 5.246232;, + 2.958206;-6.266014;-2.746734;, + 2.958206;-3.457446;-2.746734;, + 4.574461;-3.457446;-2.746734;, + 4.574461;-6.266014;-2.746734;, + 2.958205;-7.682857; 4.259186;, + 4.574460;-7.682857; 5.246232;, + 4.574460;-7.682857; 7.532129;, + 2.958205;-7.682857; 7.532129;, + -9.477706;-0.000000;-1.085394;, + -9.477706;-1.728723;-1.085394;, + -9.477706;-1.728723; 3.272140;, + -9.477706;-0.000000; 3.272140;, + -9.477706;-0.000000; 3.272140;, + -9.477706;-1.728723; 3.272140;, + -9.477706;-1.728723; 7.532129;, + -9.477706;-0.000000; 7.532129;, + -9.477706;-3.457446;-2.746734;, + -9.477706;-1.728723;-2.746734;, + -7.821623;-1.728723;-2.746734;, + -7.821623;-3.457446;-2.746734;, + -9.477706;-3.457446;-1.085394;, + -9.477706;-1.728723;-1.085394;, + -9.477706;-1.728723;-2.746734;, + -9.477706;-3.457446;-2.746734;, + -7.821623;-3.457446;-2.746734;, + -7.821623;-1.728723;-2.746734;, + 1.341951;-1.728723;-2.746734;, + 1.341951;-3.457446;-2.746734;, + 1.341951;-6.266014;-2.746734;, + 1.341951;-3.457446;-2.746734;, + 2.958206;-3.457446;-2.746734;, + 2.958206;-6.266014;-2.746734;, + 1.341949;-7.682857; 3.272140;, + 2.958205;-7.682857; 4.259186;, + 2.958205;-7.682857; 7.532129;, + 1.341949;-7.682857; 7.532129;, + -9.477706;-7.682857;-2.759586;, + -9.477706;-6.266014;-2.759586;, + -7.821623;-6.266014;-2.759586;, + -7.821622;-7.682857;-2.759586;, + 9.915538;-6.266014;18.525673;, + 8.259455;-6.266014;18.525673;, + 8.259455;-6.266014;20.059654;, + 9.915538;-6.266014;20.059654;, + 9.915538;-7.682857; 7.532129;, + 9.915538;-6.266014; 7.532129;, + 9.915538;-6.266014;18.525673;, + 9.915538;-7.682857;18.525673;, + 8.259454;-7.682857; 7.532129;, + 9.915538;-7.682857; 7.532129;, + 9.915538;-7.682857;18.525673;, + 8.259454;-7.682857;18.525673;, + 9.915538;-7.682857;20.059654;, + 9.915538;-6.266014;20.059654;, + 8.259455;-6.266014;20.059654;, + 8.259454;-7.682857;20.059654;, + 8.259454;-7.682857;18.525673;, + 9.915538;-7.682857;18.525673;, + 9.915538;-7.682857;20.059654;, + 8.259454;-7.682857;20.059654;, + 8.259455;-6.266014;18.525673;, + 8.259454;-7.682857;18.525673;, + 4.424043;-7.682854;18.525673;, + 4.424044;-6.266011;18.525673;, + 9.915538;-7.682857;18.525673;, + 9.915538;-6.266014;18.525673;, + 9.915538;-6.266014;20.059654;, + 9.915538;-7.682857;20.059654;, + 4.424044;-6.266011;18.525673;, + 4.424043;-7.682854;18.525673;, + 3.230945;-7.682853;18.525673;, + 3.230946;-6.266011;18.525673;, + 8.259454;-7.682857;18.525673;, + 8.259454;-7.682857;20.059654;, + 4.424043;-7.682854;20.059654;, + 4.424043;-7.682854;18.525673;, + 8.259454;-7.682857;20.059654;, + 8.259455;-6.266014;20.059654;, + 4.424044;-6.266011;20.059654;, + 4.424043;-7.682854;20.059654;, + 8.259455;-6.266014;20.059654;, + 8.259455;-6.266014;18.525673;, + 4.424044;-6.266011;18.525673;, + 4.424044;-6.266011;20.059654;, + 3.230946;-6.266011;18.525673;, + 3.230945;-7.682853;18.525673;, + 3.230945;-7.682853;20.059654;, + 3.230946;-6.266011;20.059654;, + 4.424043;-7.682854;20.059654;, + 4.424044;-6.266011;20.059654;, + 3.230946;-6.266011;20.059654;, + 3.230945;-7.682853;20.059654;, + 4.424044;-6.266011;20.059654;, + 4.424044;-6.266011;18.525673;, + 4.424048; 0.000000;18.525673;, + 4.424048; 0.000000;20.059654;, + 4.424043;-7.682854;18.525673;, + 4.424043;-7.682854;20.059654;, + 3.230945;-7.682853;20.059654;, + 3.230945;-7.682853;18.525673;, + 4.424044;-6.266011;18.525673;, + 3.230946;-6.266011;18.525673;, + 3.230950; 0.000000;18.525673;, + 4.424048; 0.000000;18.525673;, + 3.230946;-6.266011;18.525673;, + 3.230946;-6.266011;20.059654;, + 3.230950; 0.000000;20.059654;, + 3.230950; 0.000000;18.525673;, + 3.230946;-6.266011;20.059654;, + 4.424044;-6.266011;20.059654;, + 4.424048; 0.000000;20.059654;, + 3.230950; 0.000000;20.059654;, + -9.476039;-7.682857;-1.086077;, + -9.476039;-6.266012;-1.086077;, + -9.477706;-6.266014;-2.759586;, + -9.477706;-7.682857;-2.759586;, + -7.821622;-7.682857;-2.759586;, + -7.821623;-6.266014;-2.759586;, + 1.341951;-6.266014;-2.746734;, + 1.341951;-7.682857;-2.746734;, + -9.476039;-6.266012;-1.086077;, + -9.477706;-3.457446;-1.085394;, + -9.477706;-3.457446;-2.746734;, + -9.477706;-6.266014;-2.759586;, + -9.477706;-6.266014;-2.759586;, + -9.477706;-3.457446;-2.746734;, + -7.821623;-3.457446;-2.746734;, + -7.821623;-6.266014;-2.759586;, + -7.821623;-6.266014;-2.759586;, + -7.821623;-3.457446;-2.746734;, + 1.341951;-3.457446;-2.746734;, + 1.341951;-6.266014;-2.746734;, + 4.578670;-7.682857;-2.759586;, + 4.574461;-6.266014;-2.746734;, + 4.574461;-6.266014;-1.085394;, + 4.574460;-7.682857;-1.085394;, + -9.477706; 3.457446;-1.085394;, + -9.477706; 3.457446; 3.272140;, + -9.477706; 6.266012; 3.272140;, + -9.476039; 6.266012;-1.086077;, + 9.915538; 6.266014; 5.246232;, + 9.915538; 6.266014; 7.532129;, + 9.915538; 3.457446; 7.532129;, + 9.915538; 3.457446; 5.246232;, + 8.259454; 7.682857; 5.246232;, + 8.259454; 7.682857; 7.532129;, + 9.915538; 7.682857; 7.532129;, + 9.915538; 7.682857; 5.246232;, + 4.574460; 7.682857; 5.246232;, + 4.574460; 7.682857; 7.532129;, + 8.259454; 7.682857; 7.532129;, + 8.259454; 7.682857; 5.246232;, + 9.915538; 3.457446; 5.246232;, + 8.259455; 3.457446; 5.246232;, + 8.259455; 6.266014; 5.246232;, + 9.915538; 6.266014; 5.246232;, + 8.259455; 6.266014; 5.246232;, + 8.259454; 7.682857; 5.246232;, + 9.915538; 7.682857; 5.246232;, + 9.915538; 6.266014; 5.246232;, + -9.476039; 6.266012;-1.086077;, + -9.477706; 6.266012; 3.272140;, + -9.477706; 7.682857; 3.272140;, + -9.476039; 7.682857;-1.086077;, + -9.477706; 1.728723;-1.085394;, + -9.477706; 1.728723; 3.272140;, + -9.477706; 3.457446; 3.272140;, + -9.477706; 3.457446;-1.085394;, + 8.259455; 6.266014; 7.532129;, + 8.259455; 6.266014;18.525673;, + 8.259454; 7.682857;18.525673;, + 8.259454; 7.682857; 7.532129;, + 9.915538; 7.682857; 5.246232;, + 9.915538; 7.682857; 7.532129;, + 9.915538; 6.266014; 7.532129;, + 9.915538; 6.266014; 5.246232;, + -9.477706; 1.728723; 3.272140;, + -9.477706; 1.728723; 7.532129;, + -9.477706; 3.457446; 7.532129;, + -9.477706; 3.457446; 3.272140;, + -9.477706; 3.457446; 3.272140;, + -9.477706; 3.457446; 7.532129;, + -9.477706; 6.266012; 7.532129;, + -9.477706; 6.266012; 3.272140;, + -9.477706; 6.266012; 3.272140;, + -9.477706; 6.266012; 7.532129;, + -9.477706; 7.682857; 7.532129;, + -9.477706; 7.682857; 3.272140;, + -9.477706; 1.728723;-2.746734;, + -7.821623; 1.728723;-2.746734;, + -7.821624;-0.000000;-2.746734;, + -9.477706;-0.000000;-2.746734;, + -9.477706; 1.728723;-1.085394;, + -9.477706; 1.728723;-2.746734;, + -9.477706;-0.000000;-2.746734;, + -9.477706;-0.000000;-1.085394;, + -7.821623; 1.728723;-2.746734;, + 1.341951; 1.728723;-2.746734;, + 1.341950; 0.000000;-2.746734;, + -7.821624;-0.000000;-2.746734;, + 2.958206; 6.266014;-2.746734;, + 4.574461; 6.266014;-2.746734;, + 4.574461; 3.457446;-2.746734;, + 2.958206; 3.457446;-2.746734;, + 2.958205; 3.457446;-1.085394;, + 2.958206; 3.457446;-2.746734;, + 4.574461; 3.457446;-2.746734;, + 4.574461; 3.457446;-1.085394;, + 2.958205; 7.682857; 4.259186;, + 2.958205; 7.682857; 7.532129;, + 4.574460; 7.682857; 7.532129;, + 4.574460; 7.682857; 5.246232;, + -9.477706;-0.000000;-1.085394;, + -9.477706;-0.000000; 3.272140;, + -9.477706; 1.728723; 3.272140;, + -9.477706; 1.728723;-1.085394;, + -9.477706;-0.000000; 3.272140;, + -9.477706;-0.000000; 7.532129;, + -9.477706; 1.728723; 7.532129;, + -9.477706; 1.728723; 3.272140;, + -9.477706; 3.457446;-2.746734;, + -7.821623; 3.457446;-2.746734;, + -7.821623; 1.728723;-2.746734;, + -9.477706; 1.728723;-2.746734;, + -9.477706; 3.457446;-1.085394;, + -9.477706; 3.457446;-2.746734;, + -9.477706; 1.728723;-2.746734;, + -9.477706; 1.728723;-1.085394;, + -7.821623; 3.457446;-2.746734;, + 1.341951; 3.457446;-2.746734;, + 1.341951; 1.728723;-2.746734;, + -7.821623; 1.728723;-2.746734;, + 1.341951; 6.266014;-2.746734;, + 2.958206; 6.266014;-2.746734;, + 2.958206; 3.457446;-2.746734;, + 1.341951; 3.457446;-2.746734;, + 1.341949; 7.682857; 3.272140;, + 1.341949; 7.682857; 7.532129;, + 2.958205; 7.682857; 7.532129;, + 2.958205; 7.682857; 4.259186;, + -9.477706; 7.682857;-2.759586;, + -7.821622; 7.682857;-2.759586;, + -7.821623; 6.266014;-2.759586;, + -9.477706; 6.266014;-2.759586;, + 9.915538; 6.266014;18.525673;, + 9.915538; 6.266014;20.059654;, + 8.259455; 6.266014;20.059654;, + 8.259455; 6.266014;18.525673;, + 9.915538; 6.266014; 7.532129;, + 9.915538; 6.266014;18.525673;, + 8.259455; 6.266014;18.525673;, + 8.259455; 6.266014; 7.532129;, + 9.915538; 7.682857; 7.532129;, + 9.915538; 7.682857;18.525673;, + 9.915538; 6.266014;18.525673;, + 9.915538; 6.266014; 7.532129;, + 8.259454; 7.682857; 7.532129;, + 8.259454; 7.682857;18.525673;, + 9.915538; 7.682857;18.525673;, + 9.915538; 7.682857; 7.532129;, + 9.915538; 7.682857;20.059654;, + 8.259454; 7.682857;20.059654;, + 8.259455; 6.266014;20.059654;, + 9.915538; 6.266014;20.059654;, + 8.259454; 7.682857;18.525673;, + 8.259454; 7.682857;20.059654;, + 9.915538; 7.682857;20.059654;, + 9.915538; 7.682857;18.525673;, + 8.259455; 6.266014;18.525673;, + 4.424044; 6.266011;18.525673;, + 4.424043; 7.682854;18.525673;, + 8.259454; 7.682857;18.525673;, + 9.915538; 7.682857;18.525673;, + 9.915538; 7.682857;20.059654;, + 9.915538; 6.266014;20.059654;, + 9.915538; 6.266014;18.525673;, + 4.424044; 6.266011;18.525673;, + 3.230946; 6.266011;18.525673;, + 3.230945; 7.682853;18.525673;, + 4.424043; 7.682854;18.525673;, + 8.259454; 7.682857;18.525673;, + 4.424043; 7.682854;18.525673;, + 4.424043; 7.682854;20.059654;, + 8.259454; 7.682857;20.059654;, + 8.259454; 7.682857;20.059654;, + 4.424043; 7.682854;20.059654;, + 4.424044; 6.266011;20.059654;, + 8.259455; 6.266014;20.059654;, + 8.259455; 6.266014;20.059654;, + 4.424044; 6.266011;20.059654;, + 4.424044; 6.266011;18.525673;, + 8.259455; 6.266014;18.525673;, + 3.230946; 6.266011;18.525673;, + 3.230946; 6.266011;20.059654;, + 3.230945; 7.682853;20.059654;, + 3.230945; 7.682853;18.525673;, + 4.424043; 7.682854;20.059654;, + 3.230945; 7.682853;20.059654;, + 3.230946; 6.266011;20.059654;, + 4.424044; 6.266011;20.059654;, + 4.424044; 6.266011;20.059654;, + 4.424048; 0.000000;20.059654;, + 4.424048; 0.000000;18.525673;, + 4.424044; 6.266011;18.525673;, + 4.424043; 7.682854;18.525673;, + 3.230945; 7.682853;18.525673;, + 3.230945; 7.682853;20.059654;, + 4.424043; 7.682854;20.059654;, + 4.424044; 6.266011;18.525673;, + 4.424048; 0.000000;18.525673;, + 3.230950; 0.000000;18.525673;, + 3.230946; 6.266011;18.525673;, + 3.230946; 6.266011;18.525673;, + 3.230950; 0.000000;18.525673;, + 3.230950; 0.000000;20.059654;, + 3.230946; 6.266011;20.059654;, + 3.230946; 6.266011;20.059654;, + 3.230950; 0.000000;20.059654;, + 4.424048; 0.000000;20.059654;, + 4.424044; 6.266011;20.059654;, + -9.476039; 7.682857;-1.086077;, + -9.477706; 7.682857;-2.759586;, + -9.477706; 6.266014;-2.759586;, + -9.476039; 6.266012;-1.086077;, + 1.341949; 7.682857;-1.085394;, + 1.341951; 7.682857;-2.746734;, + -7.821622; 7.682857;-2.759586;, + -7.821624; 7.682857;-1.085394;, + -7.821622; 7.682857;-2.759586;, + 1.341951; 7.682857;-2.746734;, + 1.341951; 6.266014;-2.746734;, + -7.821623; 6.266014;-2.759586;, + -9.476039; 6.266012;-1.086077;, + -9.477706; 6.266014;-2.759586;, + -9.477706; 3.457446;-2.746734;, + -9.477706; 3.457446;-1.085394;, + -9.477706; 6.266014;-2.759586;, + -7.821623; 6.266014;-2.759586;, + -7.821623; 3.457446;-2.746734;, + -9.477706; 3.457446;-2.746734;, + -7.821623; 6.266014;-2.759586;, + 1.341951; 6.266014;-2.746734;, + 1.341951; 3.457446;-2.746734;, + -7.821623; 3.457446;-2.746734;, + 2.964239; 7.682857;-2.759586;, + 4.578670; 7.682857;-2.759586;, + 4.574461; 6.266014;-2.746734;, + 2.958206; 6.266014;-2.746734;, + 1.341951; 7.682857;-2.746734;, + 2.964239; 7.682857;-2.759586;, + 2.958206; 6.266014;-2.746734;, + 1.341951; 6.266014;-2.746734;, + 2.958205;-6.266014; 4.259186;, + 1.341949;-6.266014; 3.272140;, + 1.341949;-6.266014; 7.532129;, + 2.958205;-6.266014; 7.532129;, + 8.259455;-3.457446; 5.246232;, + 8.259455;-6.266014; 5.246232;, + 8.259455;-6.266014; 7.532129;, + 8.259455;-3.457446; 7.532129;, + 1.341950;-1.728723;-1.085394;, + 1.341950; 0.000000;-1.085394;, + 1.361950; 0.000000; 0.512702;, + 1.361950;-1.728723; 0.512702;, + 8.259455;-6.266014; 5.246232;, + 4.574461;-6.266014; 5.246232;, + 4.574461;-6.266014; 7.532129;, + 8.259455;-6.266014; 7.532129;, + -9.476039;-7.682857;-1.086077;, + -9.477706;-7.682857;-2.759586;, + -9.477706;-8.545099;-2.759586;, + -9.476039;-8.545099;-1.086077;, + 4.574461;-6.266014;-1.085394;, + 4.574461;-3.457446;-1.085394;, + 2.958205;-3.457446;-1.085394;, + 2.958205;-6.266014;-1.085394;, + 4.574461;-6.266014; 5.246232;, + 2.958205;-6.266014; 4.259186;, + 2.958205;-6.266014; 7.532129;, + 4.574461;-6.266014; 7.532129;, + 4.574461;-6.266014;-1.085394;, + 2.958205;-6.266014;-1.085394;, + 2.958205;-6.266014; 4.259186;, + 4.574461;-6.266014; 5.246232;, + -9.477706;-7.682857;-2.759586;, + -7.821622;-7.682857;-2.759586;, + -7.821622;-8.545099;-2.759586;, + -9.477706;-8.545099;-2.759586;, + -7.821624;-7.682857;-1.085394;, + -9.476039;-7.682857;-1.086077;, + -9.476039;-8.545099;-1.086077;, + -7.821624;-8.545099;-1.085394;, + -7.821622;-7.682857;-2.759586;, + -7.821624;-7.682857;-1.085394;, + -7.821624;-8.545099;-1.085394;, + -7.821622;-8.545099;-2.759586;, + 2.964239;-7.682857;-2.759586;, + 4.578670;-7.682857;-2.759586;, + 4.578670;-8.545100;-2.759586;, + 2.964239;-8.545100;-2.759586;, + 4.578670;-7.682857;-2.759586;, + 4.574460;-7.682857;-1.085394;, + 4.578668;-8.545100;-1.085394;, + 4.578670;-8.545100;-2.759586;, + 4.574460;-7.682857;-1.085394;, + 2.958205;-7.682857;-1.085394;, + 2.965864;-8.545100;-1.086077;, + 4.578668;-8.545100;-1.085394;, + 2.958205; 6.266014;-1.085394;, + 1.341949; 6.266014;-1.085394;, + 1.341950; 3.457446;-1.085394;, + 2.958205; 3.457446;-1.085394;, + 8.259455; 3.457446; 5.246232;, + 8.259455; 3.457446; 7.532129;, + 8.259455; 6.266014; 7.532129;, + 8.259455; 6.266014; 5.246232;, + 1.341950; 1.728723;-1.085394;, + 1.361950; 1.728723; 0.512702;, + 1.361950; 0.000000; 0.512702;, + 1.341950; 0.000000;-1.085394;, + 8.259455; 6.266014; 5.246232;, + 8.259455; 6.266014; 7.532129;, + 4.574461; 6.266014; 7.532129;, + 4.574461; 6.266014; 5.246232;, + -7.821624; 7.682857; 3.272140;, + -7.821624; 7.682857; 7.532129;, + -7.821624; 6.266014; 7.532129;, + -7.821624; 6.266014; 3.272140;, + -7.821624; 1.728723; 7.532129;, + -6.626290; 1.728723; 7.510913;, + -6.626290; 3.457446; 7.510913;, + -7.821624; 3.457446; 7.532129;, + -7.821624;-0.000000; 7.532129;, + -6.626290;-0.000000; 7.510913;, + -6.626290; 1.728723; 7.510913;, + -7.821624; 1.728723; 7.532129;, + 4.574461; 6.266014;-1.085394;, + 2.958205; 6.266014;-1.085394;, + 2.958205; 3.457446;-1.085394;, + 4.574461; 3.457446;-1.085394;, + 2.964239; 7.682857;-2.759586;, + 2.964239; 8.545100;-2.759586;, + 4.578670; 8.545100;-2.759586;, + 4.578670; 7.682857;-2.759586;, + 4.578670; 7.682857;-2.759586;, + 4.578670; 8.545100;-2.759586;, + 4.578668; 8.545100;-1.085394;, + 4.574460; 7.682857;-1.085394;, + 2.958205; 7.682857;-1.085394;, + 2.965864; 8.545100;-1.086077;, + 2.964239; 8.545100;-2.759586;, + 2.964239; 7.682857;-2.759586;, + 1.341950;-1.728723;-1.085394;, + 1.341950;-3.457446;-1.085394;, + 1.341951;-3.457446;-2.746734;, + 1.341951;-1.728723;-2.746734;, + 1.341949;-6.266014; 3.272140;, + 1.341949;-7.682857; 3.272140;, + 1.341949;-7.682857; 7.532129;, + 1.341949;-6.266014; 7.532129;, + 9.915538;-3.457446; 5.246232;, + 9.915538;-6.266014; 5.246232;, + 8.259455;-6.266014; 5.246232;, + 8.259455;-3.457446; 5.246232;, + 8.259455;-6.266014; 7.532129;, + 8.259454;-7.682857; 7.532129;, + 8.259454;-7.682857;18.525673;, + 8.259455;-6.266014;18.525673;, + 2.958205;-7.682857; 7.532129;, + 2.958205;-6.266014; 7.532129;, + 1.341949;-6.266014; 7.532129;, + 1.341949;-7.682857; 7.532129;, + 9.915538;-6.266014; 7.532129;, + 9.915538;-3.457446; 7.532129;, + 8.259455;-3.457446; 7.532129;, + 8.259455;-6.266014; 7.532129;, + 9.915538;-3.457446; 5.246232;, + 8.259455;-3.457446; 5.246232;, + 8.259455;-3.457446; 7.532129;, + 9.915538;-3.457446; 7.532129;, + -7.821624;-1.728723; 7.532129;, + -7.821624;-0.000000; 7.532129;, + -9.477706;-0.000000; 7.532129;, + -9.477706;-1.728723; 7.532129;, + 2.958205;-3.457446;-1.085394;, + 4.574461;-3.457446;-1.085394;, + 4.574461;-3.457446;-2.746734;, + 2.958206;-3.457446;-2.746734;, + 2.958205;-7.682857;-1.085394;, + 4.574460;-7.682857;-1.085394;, + 4.574460;-7.682857; 5.246232;, + 2.958205;-7.682857; 4.259186;, + 4.574461;-6.266014;-2.746734;, + 4.574461;-3.457446;-2.746734;, + 4.574461;-3.457446;-1.085394;, + 4.574461;-6.266014;-1.085394;, + 8.259454;-7.682857; 7.532129;, + 8.259455;-6.266014; 7.532129;, + 4.574461;-6.266014; 7.532129;, + 4.574460;-7.682857; 7.532129;, + 1.341950; 0.000000;-1.085394;, + 1.341950;-1.728723;-1.085394;, + 1.341951;-1.728723;-2.746734;, + 1.341950; 0.000000;-2.746734;, + -7.821624;-7.682857;-1.085394;, + 1.341949;-7.682857;-1.085394;, + 1.341949;-7.682857; 3.272140;, + -7.821624;-7.682857; 3.272140;, + 1.341949;-7.682857; 3.272140;, + 1.341949;-6.266014; 3.272140;, + -7.821624;-6.266014; 3.272140;, + -7.821624;-7.682857; 3.272140;, + -9.477706;-7.682857; 3.272140;, + -7.821624;-7.682857; 3.272140;, + -7.821624;-7.682857; 7.532129;, + -9.477706;-7.682857; 7.532129;, + -9.476039;-7.682857;-1.086077;, + -7.821624;-7.682857;-1.085394;, + -7.821624;-7.682857; 3.272140;, + -9.477706;-7.682857; 3.272140;, + -7.821624;-7.682857; 7.532129;, + -7.821624;-6.266014; 7.532129;, + -9.477706;-6.266012; 7.532129;, + -9.477706;-7.682857; 7.532129;, + -7.821624;-6.266014; 7.532129;, + -7.821624;-3.457446; 7.532129;, + -9.477706;-3.457446; 7.532129;, + -9.477706;-6.266012; 7.532129;, + -7.821624;-3.457446; 7.532129;, + -7.821624;-1.728723; 7.532129;, + -9.477706;-1.728723; 7.532129;, + -9.477706;-3.457446; 7.532129;, + 4.574460;-7.682857; 7.532129;, + 4.574461;-6.266014; 7.532129;, + 2.958205;-6.266014; 7.532129;, + 2.958205;-7.682857; 7.532129;, + 1.341950;-3.457446;-1.085394;, + 2.958205;-3.457446;-1.085394;, + 2.958206;-3.457446;-2.746734;, + 1.341951;-3.457446;-2.746734;, + 1.341949;-7.682857;-1.085394;, + 2.958205;-7.682857;-1.085394;, + 2.958205;-7.682857; 4.259186;, + 1.341949;-7.682857; 3.272140;, + 9.915538;-6.266014; 7.532129;, + 8.259455;-6.266014; 7.532129;, + 8.259455;-6.266014;18.525673;, + 9.915538;-6.266014;18.525673;, + 1.341949;-7.682857;-1.085394;, + -7.821624;-7.682857;-1.085394;, + -7.821622;-7.682857;-2.759586;, + 1.341951;-7.682857;-2.746734;, + 2.958205;-7.682857;-1.085394;, + 1.341949;-7.682857;-1.085394;, + 1.341951;-7.682857;-2.746734;, + 2.964239;-7.682857;-2.759586;, + 2.964239;-7.682857;-2.759586;, + 2.958206;-6.266014;-2.746734;, + 4.574461;-6.266014;-2.746734;, + 4.578670;-7.682857;-2.759586;, + 1.341951;-7.682857;-2.746734;, + 1.341951;-6.266014;-2.746734;, + 2.958206;-6.266014;-2.746734;, + 2.964239;-7.682857;-2.759586;, + 1.341950; 1.728723;-1.085394;, + 1.341951; 1.728723;-2.746734;, + 1.341951; 3.457446;-2.746734;, + 1.341950; 3.457446;-1.085394;, + 1.341949; 6.266014; 3.272140;, + 1.341949; 6.266014; 7.532129;, + 1.341949; 7.682857; 7.532129;, + 1.341949; 7.682857; 3.272140;, + 4.574460; 7.682857; 5.246232;, + 8.259454; 7.682857; 5.246232;, + 8.259455; 6.266014; 5.246232;, + 4.574461; 6.266014; 5.246232;, + 2.958205; 7.682857; 7.532129;, + 1.341949; 7.682857; 7.532129;, + 1.341949; 6.266014; 7.532129;, + 2.958205; 6.266014; 7.532129;, + 9.915538; 6.266014; 7.532129;, + 8.259455; 6.266014; 7.532129;, + 8.259455; 3.457446; 7.532129;, + 9.915538; 3.457446; 7.532129;, + 9.915538; 3.457446; 5.246232;, + 9.915538; 3.457446; 7.532129;, + 8.259455; 3.457446; 7.532129;, + 8.259455; 3.457446; 5.246232;, + -7.821624; 1.728723; 7.532129;, + -9.477706; 1.728723; 7.532129;, + -9.477706;-0.000000; 7.532129;, + -7.821624;-0.000000; 7.532129;, + 4.574460; 7.682857; 5.246232;, + 4.574461; 6.266014; 5.246232;, + 4.574461; 6.266014;-1.085394;, + 4.574460; 7.682857;-1.085394;, + 2.958205; 7.682857;-1.085394;, + 2.958205; 7.682857; 4.259186;, + 4.574460; 7.682857; 5.246232;, + 4.574460; 7.682857;-1.085394;, + 4.574461; 6.266014;-2.746734;, + 4.574461; 6.266014;-1.085394;, + 4.574461; 3.457446;-1.085394;, + 4.574461; 3.457446;-2.746734;, + 8.259454; 7.682857; 7.532129;, + 4.574460; 7.682857; 7.532129;, + 4.574461; 6.266014; 7.532129;, + 8.259455; 6.266014; 7.532129;, + 1.341950; 0.000000;-1.085394;, + 1.341950; 0.000000;-2.746734;, + 1.341951; 1.728723;-2.746734;, + 1.341950; 1.728723;-1.085394;, + -7.821624; 7.682857;-1.085394;, + -7.821624; 7.682857; 3.272140;, + 1.341949; 7.682857; 3.272140;, + 1.341949; 7.682857;-1.085394;, + 1.341949; 7.682857; 3.272140;, + -7.821624; 7.682857; 3.272140;, + -7.821624; 6.266014; 3.272140;, + 1.341949; 6.266014; 3.272140;, + -9.477706; 7.682857; 3.272140;, + -9.477706; 7.682857; 7.532129;, + -7.821624; 7.682857; 7.532129;, + -7.821624; 7.682857; 3.272140;, + -9.476039; 7.682857;-1.086077;, + -9.477706; 7.682857; 3.272140;, + -7.821624; 7.682857; 3.272140;, + -7.821624; 7.682857;-1.085394;, + -7.821624; 7.682857; 7.532129;, + -9.477706; 7.682857; 7.532129;, + -9.477706; 6.266012; 7.532129;, + -7.821624; 6.266014; 7.532129;, + -7.821624; 6.266014; 7.532129;, + -9.477706; 6.266012; 7.532129;, + -9.477706; 3.457446; 7.532129;, + -7.821624; 3.457446; 7.532129;, + -7.821624; 3.457446; 7.532129;, + -9.477706; 3.457446; 7.532129;, + -9.477706; 1.728723; 7.532129;, + -7.821624; 1.728723; 7.532129;, + 4.574460; 7.682857; 7.532129;, + 2.958205; 7.682857; 7.532129;, + 2.958205; 6.266014; 7.532129;, + 4.574461; 6.266014; 7.532129;, + 1.341950; 3.457446;-1.085394;, + 1.341951; 3.457446;-2.746734;, + 2.958206; 3.457446;-2.746734;, + 2.958205; 3.457446;-1.085394;, + 1.341949; 7.682857;-1.085394;, + 1.341949; 7.682857; 3.272140;, + 2.958205; 7.682857; 4.259186;, + 2.958205; 7.682857;-1.085394;, + 2.958205; 7.682857;-1.085394;, + 2.964239; 7.682857;-2.759586;, + 1.341951; 7.682857;-2.746734;, + 1.341949; 7.682857;-1.085394;, + 4.578670; 7.682857;-2.759586;, + 4.574460; 7.682857;-1.085394;, + 4.574461; 6.266014;-1.085394;, + 4.574461; 6.266014;-2.746734;, + -7.780403; 8.545101;-2.759586;, + -7.780403; 8.545101;-4.730428;, + -7.780403; 9.900056;-4.730428;, + -7.780403; 9.900056;-2.759586;, + -9.394835; 9.900056;-2.759586;, + -9.394835; 9.900056;-4.730428;, + -9.394835; 8.545101;-4.730428;, + -9.394835; 8.545101;-2.759586;, + -9.394835; 8.545101;-2.759586;, + -9.394835; 8.545101;-4.730428;, + -7.780403; 8.545101;-4.730428;, + -7.780403; 8.545101;-2.759586;, + -9.393209; 8.545101;-1.086077;, + -9.393209; 9.900056;-1.086077;, + -9.394835; 9.900056;-2.759586;, + -9.394835; 8.545101;-2.759586;, + -7.780405; 8.545101;-1.085394;, + -7.780405; 9.900056;-1.085394;, + -9.393209; 9.900056;-1.086077;, + -9.393209; 8.545101;-1.086077;, + -7.780403; 8.545101;-2.759586;, + -7.780403; 9.900056;-2.759586;, + -7.780405; 9.900056;-1.085394;, + -7.780405; 8.545101;-1.085394;, + -7.780405; 9.900056;-1.085394;, + -7.780403; 9.900056;-2.759586;, + -9.394835; 9.900056;-2.759586;, + -9.393209; 9.900056;-1.086077;, + -7.780403; 9.900056;-2.759586;, + -7.780403; 9.900056;-4.730428;, + -9.394835; 9.900056;-4.730428;, + -9.394835; 9.900056;-2.759586;, + -7.784613; 7.682857;-1.085394;, + -7.780405; 8.545101;-1.085394;, + -9.393209; 8.545101;-1.086077;, + -9.400867; 7.682857;-1.085394;, + -9.394835; 7.682858;-2.759586;, + -9.394835; 8.545101;-2.759586;, + -7.780403; 8.545101;-2.759586;, + -7.780403; 7.682858;-2.759586;, + -7.780403; 7.682858;-2.759586;, + -7.780403; 8.545101;-2.759586;, + -7.780405; 8.545101;-1.085394;, + -7.784613; 7.682857;-1.085394;, + -9.400867; 7.682857;-1.085394;, + -9.393209; 8.545101;-1.086077;, + -9.394835; 8.545101;-2.759586;, + -9.394835; 7.682858;-2.759586;; + 298; + 4;3,2,1,0;, + 4;7,6,5,4;, + 4;11,10,9,8;, + 4;15,14,13,12;, + 4;19,18,17,16;, + 4;23,22,21,20;, + 4;27,26,25,24;, + 4;31,30,29,28;, + 4;35,34,33,32;, + 4;39,38,37,36;, + 4;43,42,41,40;, + 4;47,46,45,44;, + 4;51,50,49,48;, + 4;55,54,53,52;, + 4;59,58,57,56;, + 4;63,62,61,60;, + 4;67,66,65,64;, + 4;71,70,69,68;, + 4;75,74,73,72;, + 4;79,78,77,76;, + 4;83,82,81,80;, + 4;87,86,85,84;, + 4;91,90,89,88;, + 4;95,94,93,92;, + 4;99,98,97,96;, + 4;103,102,101,100;, + 4;107,106,105,104;, + 4;111,110,109,108;, + 4;115,114,113,112;, + 4;119,118,117,116;, + 4;123,122,121,120;, + 4;127,126,125,124;, + 4;131,130,129,128;, + 4;135,134,133,132;, + 4;139,138,137,136;, + 4;143,142,141,140;, + 4;147,146,145,144;, + 4;151,150,149,148;, + 4;155,154,153,152;, + 4;159,158,157,156;, + 4;163,162,161,160;, + 4;167,166,165,164;, + 4;171,170,169,168;, + 4;175,174,173,172;, + 4;179,178,177,176;, + 4;183,182,181,180;, + 4;187,186,185,184;, + 4;191,190,189,188;, + 4;195,194,193,192;, + 4;199,198,197,196;, + 4;203,202,201,200;, + 4;207,206,205,204;, + 4;211,210,209,208;, + 4;215,214,213,212;, + 4;219,218,217,216;, + 4;223,222,221,220;, + 4;227,226,225,224;, + 4;231,230,229,228;, + 4;235,234,233,232;, + 4;239,238,237,236;, + 4;243,242,241,240;, + 4;247,246,245,244;, + 4;251,250,249,248;, + 4;255,254,253,252;, + 4;259,258,257,256;, + 4;263,262,261,260;, + 4;267,266,265,264;, + 4;271,270,269,268;, + 4;275,274,273,272;, + 4;279,278,277,276;, + 4;283,282,281,280;, + 4;287,286,285,284;, + 4;291,290,289,288;, + 4;295,294,293,292;, + 4;299,298,297,296;, + 4;303,302,301,300;, + 4;307,306,305,304;, + 4;311,310,309,308;, + 4;315,314,313,312;, + 4;319,318,317,316;, + 4;323,322,321,320;, + 4;327,326,325,324;, + 4;331,330,329,328;, + 4;335,334,333,332;, + 4;339,338,337,336;, + 4;343,342,341,340;, + 4;347,346,345,344;, + 4;351,350,349,348;, + 4;355,354,353,352;, + 4;359,358,357,356;, + 4;363,362,361,360;, + 4;367,366,365,364;, + 4;371,370,369,368;, + 4;375,374,373,372;, + 4;379,378,377,376;, + 4;383,382,381,380;, + 4;387,386,385,384;, + 4;391,390,389,388;, + 4;395,394,393,392;, + 4;399,398,397,396;, + 4;403,402,401,400;, + 4;407,406,405,404;, + 4;411,410,409,408;, + 4;415,414,413,412;, + 4;419,418,417,416;, + 4;423,422,421,420;, + 4;427,426,425,424;, + 4;431,430,429,428;, + 4;435,434,433,432;, + 4;439,438,437,436;, + 4;443,442,441,440;, + 4;447,446,445,444;, + 4;451,450,449,448;, + 4;455,454,453,452;, + 4;459,458,457,456;, + 4;463,462,461,460;, + 4;467,466,465,464;, + 4;471,470,469,468;, + 4;475,474,473,472;, + 4;479,478,477,476;, + 4;483,482,481,480;, + 4;487,486,485,484;, + 4;491,490,489,488;, + 4;495,494,493,492;, + 4;499,498,497,496;, + 4;503,502,501,500;, + 4;507,506,505,504;, + 4;511,510,509,508;, + 4;515,514,513,512;, + 4;519,518,517,516;, + 4;523,522,521,520;, + 4;527,526,525,524;, + 4;531,530,529,528;, + 4;535,534,533,532;, + 4;539,538,537,536;, + 4;543,542,541,540;, + 4;547,546,545,544;, + 4;551,550,549,548;, + 4;555,554,553,552;, + 4;559,558,557,556;, + 4;563,562,561,560;, + 4;567,566,565,564;, + 4;571,570,569,568;, + 4;575,574,573,572;, + 4;579,578,577,576;, + 4;583,582,581,580;, + 4;587,586,585,584;, + 4;591,590,589,588;, + 4;595,594,593,592;, + 4;599,598,597,596;, + 4;603,602,601,600;, + 4;607,606,605,604;, + 4;611,610,609,608;, + 4;615,614,613,612;, + 4;619,618,617,616;, + 4;623,622,621,620;, + 4;627,626,625,624;, + 4;631,630,629,628;, + 4;635,634,633,632;, + 4;639,638,637,636;, + 4;643,642,641,640;, + 4;647,646,645,644;, + 4;651,650,649,648;, + 4;655,654,653,652;, + 4;659,658,657,656;, + 4;663,662,661,660;, + 4;667,666,665,664;, + 4;671,670,669,668;, + 4;675,674,673,672;, + 4;679,678,677,676;, + 4;683,682,681,680;, + 4;687,686,685,684;, + 4;691,690,689,688;, + 4;695,694,693,692;, + 4;699,698,697,696;, + 4;703,702,701,700;, + 4;707,706,705,704;, + 4;711,710,709,708;, + 4;715,714,713,712;, + 4;719,718,717,716;, + 4;723,722,721,720;, + 4;727,726,725,724;, + 4;731,730,729,728;, + 4;735,734,733,732;, + 4;739,738,737,736;, + 4;743,742,741,740;, + 4;747,746,745,744;, + 4;751,750,749,748;, + 4;755,754,753,752;, + 4;759,758,757,756;, + 4;763,762,761,760;, + 4;767,766,765,764;, + 4;771,770,769,768;, + 4;775,774,773,772;, + 4;779,778,777,776;, + 4;783,782,781,780;, + 4;787,786,785,784;, + 4;791,790,789,788;, + 4;795,794,793,792;, + 4;799,798,797,796;, + 4;803,802,801,800;, + 4;807,806,805,804;, + 4;811,810,809,808;, + 4;815,814,813,812;, + 4;819,818,817,816;, + 4;823,822,821,820;, + 4;827,826,825,824;, + 4;831,830,829,828;, + 4;835,834,833,832;, + 4;839,838,837,836;, + 4;843,842,841,840;, + 4;847,846,845,844;, + 4;851,850,849,848;, + 4;855,854,853,852;, + 4;859,858,857,856;, + 4;863,862,861,860;, + 4;867,866,865,864;, + 4;871,870,869,868;, + 4;875,874,873,872;, + 4;879,878,877,876;, + 4;883,882,881,880;, + 4;887,886,885,884;, + 4;891,890,889,888;, + 4;895,894,893,892;, + 4;899,898,897,896;, + 4;903,902,901,900;, + 4;907,906,905,904;, + 4;911,910,909,908;, + 4;915,914,913,912;, + 4;919,918,917,916;, + 4;923,922,921,920;, + 4;927,926,925,924;, + 4;931,930,929,928;, + 4;935,934,933,932;, + 4;939,938,937,936;, + 4;943,942,941,940;, + 4;947,946,945,944;, + 4;951,950,949,948;, + 4;955,954,953,952;, + 4;959,958,957,956;, + 4;963,962,961,960;, + 4;967,966,965,964;, + 4;971,970,969,968;, + 4;975,974,973,972;, + 4;979,978,977,976;, + 4;983,982,981,980;, + 4;987,986,985,984;, + 4;991,990,989,988;, + 4;995,994,993,992;, + 4;999,998,997,996;, + 4;1003,1002,1001,1000;, + 4;1007,1006,1005,1004;, + 4;1011,1010,1009,1008;, + 4;1015,1014,1013,1012;, + 4;1019,1018,1017,1016;, + 4;1023,1022,1021,1020;, + 4;1027,1026,1025,1024;, + 4;1031,1030,1029,1028;, + 4;1035,1034,1033,1032;, + 4;1039,1038,1037,1036;, + 4;1043,1042,1041,1040;, + 4;1047,1046,1045,1044;, + 4;1051,1050,1049,1048;, + 4;1055,1054,1053,1052;, + 4;1059,1058,1057,1056;, + 4;1063,1062,1061,1060;, + 4;1067,1066,1065,1064;, + 4;1071,1070,1069,1068;, + 4;1075,1074,1073,1072;, + 4;1079,1078,1077,1076;, + 4;1083,1082,1081,1080;, + 4;1087,1086,1085,1084;, + 4;1091,1090,1089,1088;, + 4;1095,1094,1093,1092;, + 4;1099,1098,1097,1096;, + 4;1103,1102,1101,1100;, + 4;1107,1106,1105,1104;, + 4;1111,1110,1109,1108;, + 4;1115,1114,1113,1112;, + 4;1119,1118,1117,1116;, + 4;1123,1122,1121,1120;, + 4;1127,1126,1125,1124;, + 4;1131,1130,1129,1128;, + 4;1135,1134,1133,1132;, + 4;1139,1138,1137,1136;, + 4;1143,1142,1141,1140;, + 4;1147,1146,1145,1144;, + 4;1151,1150,1149,1148;, + 4;1155,1154,1153,1152;, + 4;1159,1158,1157,1156;, + 4;1163,1162,1161,1160;, + 4;1167,1166,1165,1164;, + 4;1171,1170,1169,1168;, + 4;1175,1174,1173,1172;, + 4;1179,1178,1177,1176;, + 4;1183,1182,1181,1180;, + 4;1187,1186,1185,1184;, + 4;1191,1190,1189,1188;; + MeshTextureCoords { // cabin UV coordinates + 1192; + 0.156250; 0.484375;, + 0.148438; 0.484375;, + 0.148438; 0.734375;, + 0.156250; 0.734375;, + 0.148438; 0.484375;, + 0.132812; 0.484375;, + 0.132812; 0.734375;, + 0.148438; 0.734375;, + 0.156250; 0.750000;, + 0.156250; 0.734375;, + 0.148438; 0.734375;, + 0.148438; 0.750000;, + 0.117188; 0.625000;, + 0.125000; 0.625000;, + 0.125000; 0.390625;, + 0.117188; 0.390625;, + 0.125000; 0.625000;, + 0.140625; 0.625000;, + 0.140625; 0.390625;, + 0.125000; 0.390625;, + 0.117188; 0.359375;, + 0.117188; 0.390625;, + 0.125000; 0.390625;, + 0.125000; 0.359375;, + 0.174154; 0.660826;, + 0.145918; 0.660825;, + 0.145918; 0.678716;, + 0.174154; 0.678717;, + 0.145918; 0.660825;, + 0.145920; 0.388356;, + 0.136974; 0.388356;, + 0.136973; 0.660825;, + 0.108738; 0.388356;, + 0.108737; 0.660824;, + 0.136973; 0.660825;, + 0.136974; 0.388356;, + 0.145920; 0.388356;, + 0.174156; 0.388356;, + 0.174156; 0.370465;, + 0.145920; 0.370465;, + 0.145920; 0.388356;, + 0.145918; 0.660825;, + 0.174154; 0.660826;, + 0.174156; 0.388356;, + 0.140625; 0.625000;, + 0.148438; 0.625000;, + 0.148438; 0.390625;, + 0.140625; 0.390625;, + 0.125000; 0.656250;, + 0.125000; 0.625000;, + 0.117188; 0.625000;, + 0.117188; 0.656250;, + 0.132812; 0.484375;, + 0.125000; 0.484375;, + 0.125000; 0.734375;, + 0.132812; 0.734375;, + 0.148438; 0.468750;, + 0.148438; 0.484375;, + 0.156250; 0.484375;, + 0.156250; 0.468750;, + 0.156250; 0.484375;, + 0.156250; 0.734375;, + 0.164062; 0.734375;, + 0.164062; 0.484375;, + 0.164062; 0.484375;, + 0.164062; 0.734375;, + 0.179688; 0.734375;, + 0.179688; 0.484375;, + 0.156250; 0.750000;, + 0.164062; 0.750000;, + 0.164062; 0.734375;, + 0.156250; 0.734375;, + 0.117188; 0.625000;, + 0.117188; 0.390625;, + 0.125000; 0.390625;, + 0.125000; 0.625000;, + 0.125000; 0.625000;, + 0.125000; 0.390625;, + 0.140625; 0.390625;, + 0.140625; 0.625000;, + 0.117188; 0.359375;, + 0.125000; 0.359375;, + 0.125000; 0.390625;, + 0.117188; 0.390625;, + 0.174154; 0.660826;, + 0.174154; 0.678717;, + 0.145918; 0.678716;, + 0.145918; 0.660825;, + 0.145918; 0.660825;, + 0.136973; 0.660825;, + 0.136974; 0.388356;, + 0.145920; 0.388356;, + 0.108738; 0.388356;, + 0.136974; 0.388356;, + 0.136973; 0.660825;, + 0.108737; 0.660824;, + 0.145920; 0.388356;, + 0.145920; 0.370465;, + 0.174156; 0.370465;, + 0.174156; 0.388356;, + 0.145920; 0.388356;, + 0.174156; 0.388356;, + 0.174154; 0.660826;, + 0.145918; 0.660825;, + 0.140625; 0.625000;, + 0.140625; 0.390625;, + 0.148438; 0.390625;, + 0.148438; 0.625000;, + 0.125000; 0.656250;, + 0.117188; 0.656250;, + 0.117188; 0.625000;, + 0.125000; 0.625000;, + 0.179688; 0.484375;, + 0.179688; 0.734375;, + 0.187500; 0.734375;, + 0.187500; 0.484375;, + 0.164062; 0.468750;, + 0.156250; 0.468750;, + 0.156250; 0.484375;, + 0.164062; 0.484375;, + 0.555691; 0.155872;, + 0.530500; 0.155866;, + 0.530499; 0.184860;, + 0.555689; 0.184864;, + 0.555691; 0.155872;, + 0.555689; 0.184864;, + 0.594771; 0.184873;, + 0.603625; 0.155884;, + 0.555689; 0.184864;, + 0.555681; 0.349238;, + 0.594763; 0.349245;, + 0.594771; 0.184873;, + 0.555689; 0.184864;, + 0.530499; 0.184860;, + 0.530492; 0.349238;, + 0.555681; 0.349238;, + 0.555681; 0.349238;, + 0.530492; 0.349238;, + 0.530497; 0.427401;, + 0.555684; 0.427394;, + 0.555684; 0.427394;, + 0.530497; 0.427401;, + 0.530506; 0.503804;, + 0.555691; 0.503794;, + 0.568389; 0.427389;, + 0.555684; 0.427394;, + 0.555691; 0.503794;, + 0.568397; 0.503789;, + 0.530506; 0.503804;, + 0.530497; 0.427401;, + 0.519779; 0.441383;, + 0.519789; 0.503428;, + 0.530497; 0.427401;, + 0.530492; 0.349238;, + 0.519772; 0.377908;, + 0.519779; 0.441383;, + 0.504291; 0.524886;, + 0.519797; 0.524867;, + 0.519789; 0.503428;, + 0.504286; 0.503443;, + 0.488786; 0.524903;, + 0.504291; 0.524886;, + 0.504286; 0.503443;, + 0.488782; 0.503456;, + 0.534109; 0.399342;, + 0.534085; 0.234961;, + 0.519751; 0.234610;, + 0.519772; 0.377908;, + 0.504246; 0.234619;, + 0.488740; 0.234628;, + 0.488762; 0.377925;, + 0.504267; 0.377916;, + 0.504267; 0.377916;, + 0.488762; 0.377925;, + 0.488771; 0.441402;, + 0.504275; 0.441392;, + 0.504275; 0.441392;, + 0.488771; 0.441402;, + 0.488782; 0.503456;, + 0.504286; 0.503443;, + 0.519751; 0.234610;, + 0.504246; 0.234619;, + 0.504267; 0.377916;, + 0.519772; 0.377908;, + 0.519772; 0.377908;, + 0.504267; 0.377916;, + 0.504275; 0.441392;, + 0.519779; 0.441383;, + 0.519779; 0.441383;, + 0.504275; 0.441392;, + 0.504286; 0.503443;, + 0.519789; 0.503428;, + 0.519747; 0.205940;, + 0.504242; 0.205949;, + 0.504246; 0.234619;, + 0.519751; 0.234610;, + 0.959280; 0.318270;, + 0.935544; 0.318246;, + 0.935526; 0.387297;, + 0.959263; 0.387322;, + 0.900004; 0.145106;, + 0.899992; 0.203138;, + 0.934523; 0.203166;, + 0.934535; 0.145134;, + 0.935564; 0.144441;, + 0.959312; 0.144389;, + 0.959274; 0.075302;, + 0.935525; 0.075354;, + 0.976562; 1.000000;, + 0.976562; 0.609375;, + 0.953125; 0.609375;, + 0.953125; 1.000000;, + 0.953125; 0.562500;, + 0.929688; 0.562500;, + 0.929688; 0.609375;, + 0.953125; 0.609375;, + 0.906250; 0.609375;, + 0.906250; 1.000000;, + 0.929688; 1.000000;, + 0.929688; 0.609375;, + 0.953125; 0.562500;, + 0.953125; 0.609375;, + 0.976562; 0.609375;, + 0.976562; 0.562500;, + 0.953125; 1.000000;, + 0.953125; 0.609375;, + 0.929688; 0.609375;, + 0.929688; 1.000000;, + 1.000000; 1.000000;, + 1.000000; 0.609375;, + 0.976562; 0.609375;, + 0.976562; 1.000000;, + 0.959312; 0.144389;, + 0.987609; 0.144326;, + 0.987570; 0.075239;, + 0.959274; 0.075302;, + 0.959361; 0.203096;, + 0.959312; 0.144389;, + 0.935564; 0.144441;, + 0.935595; 0.203106;, + 0.870671; 0.145082;, + 0.870671; 0.203056;, + 0.899992; 0.203138;, + 0.900004; 0.145106;, + 0.959283; 0.259655;, + 0.959361; 0.203096;, + 0.935595; 0.203106;, + 0.935565; 0.259595;, + 0.959280; 0.318270;, + 0.959283; 0.259655;, + 0.935565; 0.259595;, + 0.935544; 0.318246;, + 0.846930; 0.086417;, + 0.846931; 0.145084;, + 0.870671; 0.145082;, + 0.870670; 0.086416;, + 0.935565; 0.259595;, + 0.935595; 0.203106;, + 0.906288; 0.202962;, + 0.906246; 0.259508;, + 0.846931; 0.145084;, + 0.846931; 0.203056;, + 0.870671; 0.203056;, + 0.870671; 0.145082;, + 0.846931; 0.203056;, + 0.846932; 0.261697;, + 0.870671; 0.261697;, + 0.870671; 0.203056;, + 0.846932; 0.261697;, + 0.817917; 0.261697;, + 0.817917; 0.330757;, + 0.846932; 0.330757;, + 0.870671; 0.261697;, + 0.846932; 0.261697;, + 0.846932; 0.330757;, + 0.870671; 0.330757;, + 0.906246; 0.259508;, + 0.906288; 0.202962;, + 0.871773; 0.202859;, + 0.871731; 0.259405;, + 0.846930; 0.086417;, + 0.870670; 0.086416;, + 0.870668; 0.017354;, + 0.846928; 0.017356;, + 0.974486; 0.202992;, + 0.974409; 0.144323;, + 0.959312; 0.144389;, + 0.959361; 0.203096;, + 0.373858; 0.155991;, + 0.344504; 0.156019;, + 0.344511; 0.185010;, + 0.382717; 0.184973;, + 0.421792; 0.155946;, + 0.373858; 0.155991;, + 0.382717; 0.184973;, + 0.421799; 0.184938;, + 0.421799; 0.184938;, + 0.382717; 0.184973;, + 0.382754; 0.349342;, + 0.421835; 0.349307;, + 0.421799; 0.184938;, + 0.421835; 0.349307;, + 0.447024; 0.349286;, + 0.446988; 0.184915;, + 0.421835; 0.349307;, + 0.421850; 0.427470;, + 0.447039; 0.427451;, + 0.447024; 0.349286;, + 0.421850; 0.427470;, + 0.421864; 0.503882;, + 0.447053; 0.503864;, + 0.447039; 0.427451;, + 0.447053; 0.503864;, + 0.457773; 0.503476;, + 0.457762; 0.441422;, + 0.447039; 0.427451;, + 0.447039; 0.427451;, + 0.457762; 0.441422;, + 0.457751; 0.377944;, + 0.447024; 0.349286;, + 0.443421; 0.399396;, + 0.457751; 0.377944;, + 0.457729; 0.234647;, + 0.443396; 0.235014;, + 0.364998; 0.127008;, + 0.344497; 0.127029;, + 0.344504; 0.156019;, + 0.373858; 0.155991;, + 0.421786; 0.126955;, + 0.364998; 0.127008;, + 0.373858; 0.155991;, + 0.421792; 0.155946;, + 0.473235; 0.234637;, + 0.473257; 0.377935;, + 0.488762; 0.377925;, + 0.488740; 0.234628;, + 0.473257; 0.377935;, + 0.473267; 0.441412;, + 0.488771; 0.441402;, + 0.488762; 0.377925;, + 0.473267; 0.441412;, + 0.473278; 0.503467;, + 0.488782; 0.503456;, + 0.488771; 0.441402;, + 0.457729; 0.234647;, + 0.457751; 0.377944;, + 0.473257; 0.377935;, + 0.473235; 0.234637;, + 0.457751; 0.377944;, + 0.457762; 0.441422;, + 0.473267; 0.441412;, + 0.473257; 0.377935;, + 0.457762; 0.441422;, + 0.457773; 0.503476;, + 0.473278; 0.503467;, + 0.473267; 0.441412;, + 0.457725; 0.205977;, + 0.457729; 0.234647;, + 0.473235; 0.234637;, + 0.473231; 0.205967;, + 0.029129; 0.309194;, + 0.029107; 0.378245;, + 0.052843; 0.378276;, + 0.052866; 0.309225;, + 0.052948; 0.135422;, + 0.053027; 0.066333;, + 0.029278; 0.066225;, + 0.029199; 0.135314;, + 0.023438; 1.000000;, + 0.046875; 1.000000;, + 0.046875; 0.593750;, + 0.023438; 0.593750;, + 0.046875; 0.546875;, + 0.046875; 0.593750;, + 0.070312; 0.593750;, + 0.070312; 0.546875;, + 0.093750; 0.593750;, + 0.070312; 0.593750;, + 0.070312; 1.000000;, + 0.093750; 1.000000;, + 0.023438; 0.546875;, + 0.023438; 0.593750;, + 0.046875; 0.593750;, + 0.046875; 0.546875;, + 0.046875; 1.000000;, + 0.070312; 1.000000;, + 0.070312; 0.593750;, + 0.046875; 0.593750;, + 0.000000; 1.000000;, + 0.023438; 1.000000;, + 0.023438; 0.593750;, + 0.000000; 0.593750;, + 0.029199; 0.135314;, + 0.029278; 0.066225;, + 0.000981; 0.066096;, + 0.000902; 0.135185;, + 0.029117; 0.194021;, + 0.052882; 0.194087;, + 0.052948; 0.135422;, + 0.029199; 0.135314;, + 0.029161; 0.250580;, + 0.052878; 0.250576;, + 0.052882; 0.194087;, + 0.029117; 0.194021;, + 0.029129; 0.309194;, + 0.052866; 0.309225;, + 0.052878; 0.250576;, + 0.029161; 0.250580;, + 0.052878; 0.250576;, + 0.082198; 0.250558;, + 0.082189; 0.194013;, + 0.052882; 0.194087;, + 0.082198; 0.250558;, + 0.116712; 0.250537;, + 0.116704; 0.193992;, + 0.082189; 0.194013;, + 0.014067; 0.250515;, + 0.029161; 0.250580;, + 0.029117; 0.194021;, + 0.013991; 0.193882;, + 0.519865; 0.709230;, + 0.545071; 0.709156;, + 0.545029; 0.630968;, + 0.519832; 0.631012;, + 0.744396; 0.595299;, + 0.769590; 0.595291;, + 0.769586; 0.554278;, + 0.744390; 0.554289;, + 0.716833; 0.595323;, + 0.731689; 0.595309;, + 0.731679; 0.554297;, + 0.716822; 0.554310;, + 0.683776; 0.595358;, + 0.716833; 0.595323;, + 0.716822; 0.554310;, + 0.683764; 0.554345;, + 0.744396; 0.625011;, + 0.744396; 0.595299;, + 0.731688; 0.595296;, + 0.731686; 0.625004;, + 0.731671; 0.691116;, + 0.744381; 0.691128;, + 0.744396; 0.625011;, + 0.731686; 0.625004;, + 0.545071; 0.709156;, + 0.557779; 0.709127;, + 0.557738; 0.630944;, + 0.545029; 0.630968;, + 0.504346; 0.709255;, + 0.519865; 0.709230;, + 0.519832; 0.631012;, + 0.504321; 0.631033;, + 0.731689; 0.595309;, + 0.744396; 0.595299;, + 0.744390; 0.554289;, + 0.731679; 0.554297;, + 0.504321; 0.631033;, + 0.519832; 0.631012;, + 0.519807; 0.554576;, + 0.504300; 0.554596;, + 0.519832; 0.631012;, + 0.545029; 0.630968;, + 0.544999; 0.554540;, + 0.519807; 0.554576;, + 0.545029; 0.630968;, + 0.557738; 0.630944;, + 0.557709; 0.554520;, + 0.544999; 0.554540;, + 0.504355; 0.739088;, + 0.488832; 0.739102;, + 0.488838; 0.768843;, + 0.504359; 0.768832;, + 0.504346; 0.709255;, + 0.488825; 0.709271;, + 0.488832; 0.739102;, + 0.504355; 0.739088;, + 0.504359; 0.768832;, + 0.488838; 0.768843;, + 0.488875; 0.933349;, + 0.504388; 0.933336;, + 0.731671; 0.691116;, + 0.731638; 0.804708;, + 0.744347; 0.804722;, + 0.744381; 0.691128;, + 0.545106; 0.962319;, + 0.519905; 0.962329;, + 0.519908; 0.991334;, + 0.545109; 0.991323;, + 0.669283; 0.613084;, + 0.683776; 0.595358;, + 0.683764; 0.554345;, + 0.669265; 0.554363;, + 0.488825; 0.709271;, + 0.504346; 0.709255;, + 0.504321; 0.631033;, + 0.488809; 0.631049;, + 0.488809; 0.631049;, + 0.504321; 0.631033;, + 0.504300; 0.554596;, + 0.488793; 0.554612;, + 0.519884; 0.739078;, + 0.504355; 0.739088;, + 0.504359; 0.768832;, + 0.519881; 0.768828;, + 0.519865; 0.709230;, + 0.504346; 0.709255;, + 0.504355; 0.739088;, + 0.519884; 0.739078;, + 0.519881; 0.768828;, + 0.504359; 0.768832;, + 0.504388; 0.933336;, + 0.519902; 0.933325;, + 0.545103; 0.933313;, + 0.519902; 0.933325;, + 0.519905; 0.962329;, + 0.545106; 0.962319;, + 0.654790; 0.630811;, + 0.669283; 0.613084;, + 0.669265; 0.554363;, + 0.654766; 0.554381;, + 0.557798; 0.739144;, + 0.545095; 0.739166;, + 0.545088; 0.768863;, + 0.557801; 0.768861;, + 0.744355; 0.357044;, + 0.759211; 0.357033;, + 0.759206; 0.329511;, + 0.744350; 0.329522;, + 0.731679; 0.554297;, + 0.744390; 0.554289;, + 0.744355; 0.357044;, + 0.731645; 0.357052;, + 0.716822; 0.554310;, + 0.731679; 0.554297;, + 0.731645; 0.357052;, + 0.716788; 0.357062;, + 0.731640; 0.329531;, + 0.731636; 0.304113;, + 0.716781; 0.304122;, + 0.716784; 0.329541;, + 0.716788; 0.357062;, + 0.731645; 0.357052;, + 0.731640; 0.329531;, + 0.716784; 0.329541;, + 0.716791; 0.382480;, + 0.716788; 0.357062;, + 0.682384; 0.357078;, + 0.682387; 0.382497;, + 0.731645; 0.357052;, + 0.744355; 0.357044;, + 0.744350; 0.329522;, + 0.731640; 0.329531;, + 0.682387; 0.382497;, + 0.682384; 0.357078;, + 0.671682; 0.357083;, + 0.671685; 0.382502;, + 0.716788; 0.357062;, + 0.716784; 0.329541;, + 0.682381; 0.329559;, + 0.682384; 0.357078;, + 0.716784; 0.329541;, + 0.716781; 0.304122;, + 0.682378; 0.304140;, + 0.682381; 0.329559;, + 0.716781; 0.304122;, + 0.716778; 0.276603;, + 0.682374; 0.276621;, + 0.682378; 0.304140;, + 0.658973; 0.357089;, + 0.671682; 0.357083;, + 0.671679; 0.329563;, + 0.658970; 0.329570;, + 0.682381; 0.329559;, + 0.682378; 0.304140;, + 0.671676; 0.304146;, + 0.671679; 0.329563;, + 0.658967; 0.308167;, + 0.658963; 0.280649;, + 0.602760; 0.280678;, + 0.602764; 0.308196;, + 0.682384; 0.357078;, + 0.682381; 0.329559;, + 0.671679; 0.329563;, + 0.671682; 0.357083;, + 0.658976; 0.378492;, + 0.658973; 0.357089;, + 0.602770; 0.357117;, + 0.602773; 0.378521;, + 0.658973; 0.357089;, + 0.658970; 0.329570;, + 0.602766; 0.329599;, + 0.602770; 0.357117;, + 0.658970; 0.329570;, + 0.658967; 0.308167;, + 0.602764; 0.308196;, + 0.602766; 0.329599;, + 0.557779; 0.709127;, + 0.545071; 0.709156;, + 0.545095; 0.739166;, + 0.557798; 0.739144;, + 0.557801; 0.768861;, + 0.545088; 0.768863;, + 0.545103; 0.933313;, + 0.557816; 0.933308;, + 0.545071; 0.709156;, + 0.519865; 0.709230;, + 0.519884; 0.739078;, + 0.545095; 0.739166;, + 0.545095; 0.739166;, + 0.519884; 0.739078;, + 0.519881; 0.768828;, + 0.545088; 0.768863;, + 0.545088; 0.768863;, + 0.519881; 0.768828;, + 0.519902; 0.933325;, + 0.545103; 0.933313;, + 0.731630; 0.834742;, + 0.744339; 0.834525;, + 0.744347; 0.804722;, + 0.731638; 0.804708;, + 0.457785; 0.709283;, + 0.457785; 0.631064;, + 0.432589; 0.631063;, + 0.432578; 0.709252;, + 0.233217; 0.595668;, + 0.233218; 0.554661;, + 0.208027; 0.554659;, + 0.208026; 0.595665;, + 0.260780; 0.595669;, + 0.260780; 0.554662;, + 0.245926; 0.554662;, + 0.245926; 0.595669;, + 0.293834; 0.595667;, + 0.293833; 0.554659;, + 0.260780; 0.554662;, + 0.260780; 0.595669;, + 0.208026; 0.595665;, + 0.208025; 0.625374;, + 0.233216; 0.625377;, + 0.233217; 0.595668;, + 0.233216; 0.625377;, + 0.245925; 0.625379;, + 0.245926; 0.595669;, + 0.233217; 0.595668;, + 0.432578; 0.709252;, + 0.432589; 0.631063;, + 0.419880; 0.631060;, + 0.419870; 0.709243;, + 0.473305; 0.709282;, + 0.473297; 0.631059;, + 0.457785; 0.631064;, + 0.457785; 0.709283;, + 0.273487; 0.554662;, + 0.273489; 0.357459;, + 0.260781; 0.357459;, + 0.260780; 0.554662;, + 0.245926; 0.595669;, + 0.245926; 0.554662;, + 0.233218; 0.554661;, + 0.233217; 0.595668;, + 0.473297; 0.631059;, + 0.473286; 0.554622;, + 0.457779; 0.554629;, + 0.457785; 0.631064;, + 0.457785; 0.631064;, + 0.457779; 0.554629;, + 0.432586; 0.554635;, + 0.432589; 0.631063;, + 0.432589; 0.631063;, + 0.432586; 0.554635;, + 0.419877; 0.554637;, + 0.419880; 0.631060;, + 0.473309; 0.739115;, + 0.473317; 0.768859;, + 0.488838; 0.768843;, + 0.488832; 0.739102;, + 0.473305; 0.709282;, + 0.473309; 0.739115;, + 0.488832; 0.739102;, + 0.488825; 0.709271;, + 0.473317; 0.768859;, + 0.473361; 0.933363;, + 0.488875; 0.933349;, + 0.488838; 0.768843;, + 0.432656; 0.962419;, + 0.432667; 0.991424;, + 0.457867; 0.991389;, + 0.457857; 0.962384;, + 0.193509; 0.805081;, + 0.193508; 0.834889;, + 0.208007; 0.834892;, + 0.208009; 0.805083;, + 0.308332; 0.613372;, + 0.308330; 0.554657;, + 0.293833; 0.554659;, + 0.293834; 0.595667;, + 0.488825; 0.709271;, + 0.488809; 0.631049;, + 0.473297; 0.631059;, + 0.473305; 0.709282;, + 0.488809; 0.631049;, + 0.488793; 0.554612;, + 0.473286; 0.554622;, + 0.473297; 0.631059;, + 0.457779; 0.739132;, + 0.457795; 0.768882;, + 0.473317; 0.768859;, + 0.473309; 0.739115;, + 0.457785; 0.709283;, + 0.457779; 0.739132;, + 0.473309; 0.739115;, + 0.473305; 0.709282;, + 0.457795; 0.768882;, + 0.457847; 0.933380;, + 0.473361; 0.933363;, + 0.473317; 0.768859;, + 0.432646; 0.933414;, + 0.432656; 0.962419;, + 0.457857; 0.962384;, + 0.457847; 0.933380;, + 0.322830; 0.631077;, + 0.322827; 0.554655;, + 0.308330; 0.554657;, + 0.308332; 0.613372;, + 0.419864; 0.739263;, + 0.419874; 0.768982;, + 0.432588; 0.768961;, + 0.432568; 0.739263;, + 0.233220; 0.357458;, + 0.233220; 0.329941;, + 0.218366; 0.329940;, + 0.218366; 0.357457;, + 0.233218; 0.554661;, + 0.233220; 0.357458;, + 0.218366; 0.357457;, + 0.218364; 0.554661;, + 0.245926; 0.554662;, + 0.245927; 0.357458;, + 0.233220; 0.357458;, + 0.233218; 0.554661;, + 0.260780; 0.554662;, + 0.260781; 0.357459;, + 0.245927; 0.357458;, + 0.245926; 0.554662;, + 0.245928; 0.329941;, + 0.260781; 0.329942;, + 0.260782; 0.304526;, + 0.245928; 0.304525;, + 0.260781; 0.357459;, + 0.260781; 0.329942;, + 0.245928; 0.329941;, + 0.245927; 0.357458;, + 0.260780; 0.382875;, + 0.295181; 0.382877;, + 0.295181; 0.357462;, + 0.260781; 0.357459;, + 0.245927; 0.357458;, + 0.245928; 0.329941;, + 0.233220; 0.329941;, + 0.233220; 0.357458;, + 0.295181; 0.382877;, + 0.305882; 0.382878;, + 0.305882; 0.357463;, + 0.295181; 0.357462;, + 0.260781; 0.357459;, + 0.295181; 0.357462;, + 0.295182; 0.329945;, + 0.260781; 0.329942;, + 0.260781; 0.329942;, + 0.295182; 0.329945;, + 0.295182; 0.304529;, + 0.260782; 0.304526;, + 0.260782; 0.304526;, + 0.295182; 0.304529;, + 0.295183; 0.277012;, + 0.260782; 0.277009;, + 0.318591; 0.357466;, + 0.318592; 0.329946;, + 0.305883; 0.329946;, + 0.305882; 0.357463;, + 0.295182; 0.329945;, + 0.305883; 0.329946;, + 0.305883; 0.304530;, + 0.295182; 0.304529;, + 0.318593; 0.308541;, + 0.374801; 0.308549;, + 0.374802; 0.281028;, + 0.318594; 0.281020;, + 0.295181; 0.357462;, + 0.305882; 0.357463;, + 0.305883; 0.329946;, + 0.295182; 0.329945;, + 0.318590; 0.378871;, + 0.374798; 0.378880;, + 0.374799; 0.357475;, + 0.318591; 0.357466;, + 0.318591; 0.357466;, + 0.374799; 0.357475;, + 0.374800; 0.329955;, + 0.318592; 0.329946;, + 0.318592; 0.329946;, + 0.374800; 0.329955;, + 0.374801; 0.308549;, + 0.318593; 0.308541;, + 0.419870; 0.709243;, + 0.419864; 0.739263;, + 0.432568; 0.739263;, + 0.432578; 0.709252;, + 0.322833; 0.709249;, + 0.322834; 0.739053;, + 0.405030; 0.739269;, + 0.405029; 0.709234;, + 0.419874; 0.768982;, + 0.419933; 0.933432;, + 0.432646; 0.933414;, + 0.432588; 0.768961;, + 0.432578; 0.709252;, + 0.432568; 0.739263;, + 0.457779; 0.739132;, + 0.457785; 0.709283;, + 0.432568; 0.739263;, + 0.432588; 0.768961;, + 0.457795; 0.768882;, + 0.457779; 0.739132;, + 0.432588; 0.768961;, + 0.432646; 0.933414;, + 0.457847; 0.933380;, + 0.457795; 0.768882;, + 0.419943; 0.962546;, + 0.419954; 0.991518;, + 0.432667; 0.991424;, + 0.432656; 0.962419;, + 0.419933; 0.933432;, + 0.419943; 0.962546;, + 0.432656; 0.962419;, + 0.432646; 0.933414;, + 0.603625; 0.155884;, + 0.594771; 0.184873;, + 0.632977; 0.184884;, + 0.632979; 0.155893;, + 0.612494; 0.010420;, + 0.612488; 0.060797;, + 0.632989; 0.060806;, + 0.632994; 0.010430;, + 0.504242; 0.205949;, + 0.488736; 0.205958;, + 0.488740; 0.234628;, + 0.504246; 0.234619;, + 0.612488; 0.060797;, + 0.612480; 0.126895;, + 0.632981; 0.126903;, + 0.632989; 0.060806;, + 0.831825; 0.203057;, + 0.831825; 0.261698;, + 0.846932; 0.261697;, + 0.846931; 0.203056;, + 0.555693; 0.126879;, + 0.530502; 0.126873;, + 0.530500; 0.155866;, + 0.555691; 0.155872;, + 0.612480; 0.126895;, + 0.603625; 0.155884;, + 0.632979; 0.155893;, + 0.632981; 0.126903;, + 0.555693; 0.126879;, + 0.555691; 0.155872;, + 0.603625; 0.155884;, + 0.612480; 0.126895;, + 0.831821; 0.028387;, + 0.831823; 0.086419;, + 0.846930; 0.086417;, + 0.846929; 0.028386;, + 0.831824; 0.145085;, + 0.831825; 0.203057;, + 0.846931; 0.203056;, + 0.846931; 0.145084;, + 0.831823; 0.086419;, + 0.831824; 0.145085;, + 0.846931; 0.145084;, + 0.846930; 0.086417;, + 0.974390; 0.374833;, + 0.974386; 0.318265;, + 0.959280; 0.318270;, + 0.959284; 0.374837;, + 0.974386; 0.318265;, + 0.974377; 0.259625;, + 0.959283; 0.259655;, + 0.959280; 0.318270;, + 0.974377; 0.259625;, + 0.974486; 0.202992;, + 0.959361; 0.203096;, + 0.959283; 0.259655;, + 0.421792; 0.155946;, + 0.421799; 0.184938;, + 0.446988; 0.184915;, + 0.446981; 0.155924;, + 0.364968; 0.010532;, + 0.344467; 0.010554;, + 0.344480; 0.060931;, + 0.364981; 0.060910;, + 0.473231; 0.205967;, + 0.473235; 0.234637;, + 0.488740; 0.234628;, + 0.488736; 0.205958;, + 0.364981; 0.060910;, + 0.344480; 0.060931;, + 0.344497; 0.127029;, + 0.364998; 0.127008;, + 0.409143; 0.427479;, + 0.409157; 0.503891;, + 0.421864; 0.503882;, + 0.421850; 0.427470;, + 0.473281; 0.524913;, + 0.473278; 0.503467;, + 0.457773; 0.503476;, + 0.457776; 0.524920;, + 0.488786; 0.524903;, + 0.488782; 0.503456;, + 0.473278; 0.503467;, + 0.473281; 0.524913;, + 0.421786; 0.126955;, + 0.421792; 0.155946;, + 0.446981; 0.155924;, + 0.446975; 0.126932;, + 0.013986; 0.365721;, + 0.029092; 0.365761;, + 0.029129; 0.309194;, + 0.014024; 0.309154;, + 0.014024; 0.309154;, + 0.029129; 0.309194;, + 0.029161; 0.250580;, + 0.014067; 0.250515;, + 0.013991; 0.193882;, + 0.029117; 0.194021;, + 0.029199; 0.135314;, + 0.014102; 0.135212;, + 0.814037; 0.804804;, + 0.798532; 0.804785;, + 0.798523; 0.834587;, + 0.814028; 0.834606;, + 0.642080; 0.630827;, + 0.654790; 0.630811;, + 0.654766; 0.554381;, + 0.642056; 0.554397;, + 0.769590; 0.595291;, + 0.744396; 0.595299;, + 0.744396; 0.625011;, + 0.769592; 0.625005;, + 0.704112; 0.554318;, + 0.716822; 0.554310;, + 0.716788; 0.357062;, + 0.704078; 0.357071;, + 0.669265; 0.554363;, + 0.669257; 0.528942;, + 0.654758; 0.528960;, + 0.654766; 0.554381;, + 0.769580; 0.503887;, + 0.769586; 0.554278;, + 0.784442; 0.554271;, + 0.784436; 0.503881;, + 0.769590; 0.595291;, + 0.784447; 0.595285;, + 0.784442; 0.554271;, + 0.769586; 0.554278;, + 0.504291; 0.524886;, + 0.488786; 0.524903;, + 0.488793; 0.554612;, + 0.504300; 0.554596;, + 0.784035; 0.804768;, + 0.769539; 0.804751;, + 0.769530; 0.834553;, + 0.784027; 0.834570;, + 0.669313; 0.708966;, + 0.683811; 0.708948;, + 0.683776; 0.595358;, + 0.669283; 0.613084;, + 0.744339; 0.834525;, + 0.769530; 0.834553;, + 0.769539; 0.804751;, + 0.744347; 0.804722;, + 0.716822; 0.554310;, + 0.716816; 0.528888;, + 0.683757; 0.528924;, + 0.683764; 0.554345;, + 0.829542; 0.804823;, + 0.814037; 0.804804;, + 0.814028; 0.834606;, + 0.829533; 0.834625;, + 0.572619; 0.709095;, + 0.654816; 0.708985;, + 0.654790; 0.630811;, + 0.572593; 0.630922;, + 0.654790; 0.630811;, + 0.654781; 0.605393;, + 0.572584; 0.605504;, + 0.572593; 0.630922;, + 0.557738; 0.630944;, + 0.572593; 0.630922;, + 0.572564; 0.554498;, + 0.557709; 0.554520;, + 0.557779; 0.709127;, + 0.572619; 0.709095;, + 0.572593; 0.630922;, + 0.557738; 0.630944;, + 0.557698; 0.524810;, + 0.544988; 0.524830;, + 0.544999; 0.554540;, + 0.557709; 0.554520;, + 0.544988; 0.524830;, + 0.519797; 0.524867;, + 0.519807; 0.554576;, + 0.544999; 0.554540;, + 0.519797; 0.524867;, + 0.504291; 0.524886;, + 0.504300; 0.554596;, + 0.519807; 0.554576;, + 0.683764; 0.554345;, + 0.683757; 0.528924;, + 0.669257; 0.528942;, + 0.669265; 0.554363;, + 0.798532; 0.804785;, + 0.784035; 0.804768;, + 0.784027; 0.834570;, + 0.798523; 0.834587;, + 0.654816; 0.708985;, + 0.669313; 0.708966;, + 0.669283; 0.613084;, + 0.654790; 0.630811;, + 0.744390; 0.554289;, + 0.759247; 0.554278;, + 0.759211; 0.357033;, + 0.744355; 0.357044;, + 0.654816; 0.708985;, + 0.572619; 0.709095;, + 0.572630; 0.739130;, + 0.654826; 0.738789;, + 0.669313; 0.708966;, + 0.654816; 0.708985;, + 0.654826; 0.738789;, + 0.669377; 0.739001;, + 0.557820; 0.962422;, + 0.545106; 0.962319;, + 0.545109; 0.991323;, + 0.557822; 0.991394;, + 0.557816; 0.933308;, + 0.545103; 0.933313;, + 0.545106; 0.962319;, + 0.557820; 0.962422;, + 0.163501; 0.805075;, + 0.163499; 0.834883;, + 0.179008; 0.834886;, + 0.179009; 0.805078;, + 0.335538; 0.631075;, + 0.335536; 0.554653;, + 0.322827; 0.554655;, + 0.322830; 0.631077;, + 0.245922; 0.691491;, + 0.245925; 0.625379;, + 0.233216; 0.625377;, + 0.233212; 0.691488;, + 0.308330; 0.554657;, + 0.322827; 0.554655;, + 0.322826; 0.529238;, + 0.308329; 0.529240;, + 0.208028; 0.504275;, + 0.193174; 0.504274;, + 0.193172; 0.554657;, + 0.208027; 0.554659;, + 0.208026; 0.595665;, + 0.208027; 0.554659;, + 0.193172; 0.554657;, + 0.193171; 0.595664;, + 0.473281; 0.524913;, + 0.473286; 0.554622;, + 0.488793; 0.554612;, + 0.488786; 0.524903;, + 0.245922; 0.691491;, + 0.233212; 0.691488;, + 0.233205; 0.805088;, + 0.245915; 0.805091;, + 0.308336; 0.709252;, + 0.308332; 0.613372;, + 0.293834; 0.595667;, + 0.293838; 0.709254;, + 0.233203; 0.834896;, + 0.233205; 0.805088;, + 0.208009; 0.805083;, + 0.208007; 0.834892;, + 0.260780; 0.554662;, + 0.293833; 0.554659;, + 0.293832; 0.529242;, + 0.260779; 0.529245;, + 0.147992; 0.805071;, + 0.147991; 0.834880;, + 0.163499; 0.834883;, + 0.163501; 0.805075;, + 0.405029; 0.709234;, + 0.405025; 0.631062;, + 0.322830; 0.631077;, + 0.322833; 0.709249;, + 0.322830; 0.631077;, + 0.405025; 0.631062;, + 0.405024; 0.605644;, + 0.322829; 0.605659;, + 0.419880; 0.631060;, + 0.419877; 0.554637;, + 0.405022; 0.554639;, + 0.405025; 0.631062;, + 0.419870; 0.709243;, + 0.419880; 0.631060;, + 0.405025; 0.631062;, + 0.405029; 0.709234;, + 0.419876; 0.524927;, + 0.419877; 0.554637;, + 0.432586; 0.554635;, + 0.432585; 0.524925;, + 0.432585; 0.524925;, + 0.432586; 0.554635;, + 0.457779; 0.554629;, + 0.457776; 0.524920;, + 0.457776; 0.524920;, + 0.457779; 0.554629;, + 0.473286; 0.554622;, + 0.473281; 0.524913;, + 0.293833; 0.554659;, + 0.308330; 0.554657;, + 0.308329; 0.529240;, + 0.293832; 0.529242;, + 0.179009; 0.805078;, + 0.179008; 0.834886;, + 0.193508; 0.834889;, + 0.193509; 0.805081;, + 0.322833; 0.709249;, + 0.322830; 0.631077;, + 0.308332; 0.613372;, + 0.308336; 0.709252;, + 0.308336; 0.709252;, + 0.308283; 0.739286;, + 0.322834; 0.739053;, + 0.322833; 0.709249;, + 0.245914; 0.835129;, + 0.245915; 0.805091;, + 0.233205; 0.805088;, + 0.233203; 0.834896;, + 0.139737; 0.075521;, + 0.139683; 0.006471;, + 0.115947; 0.006546;, + 0.116001; 0.075596;, + 0.116114; 0.249400;, + 0.116114; 0.318489;, + 0.139864; 0.318489;, + 0.139864; 0.249400;, + 0.139864; 0.249400;, + 0.139864; 0.318489;, + 0.168161; 0.318489;, + 0.168161; 0.249400;, + 0.139880; 0.190693;, + 0.116115; 0.190734;, + 0.116114; 0.249400;, + 0.139864; 0.249400;, + 0.139772; 0.134135;, + 0.116055; 0.134246;, + 0.116115; 0.190734;, + 0.139880; 0.190693;, + 0.139737; 0.075521;, + 0.116001; 0.075596;, + 0.116055; 0.134246;, + 0.139772; 0.134135;, + 0.116055; 0.134246;, + 0.086735; 0.134395;, + 0.086807; 0.190941;, + 0.116115; 0.190734;, + 0.086735; 0.134395;, + 0.052221; 0.134571;, + 0.052293; 0.191117;, + 0.086807; 0.190941;, + 0.154865; 0.134132;, + 0.139772; 0.134135;, + 0.139880; 0.190693;, + 0.155006; 0.190764;, + 0.154817; 0.018926;, + 0.139711; 0.018955;, + 0.139737; 0.075521;, + 0.154843; 0.075493;, + 0.154843; 0.075493;, + 0.139737; 0.075521;, + 0.139772; 0.134135;, + 0.154865; 0.134132;, + 0.155006; 0.190764;, + 0.139880; 0.190693;, + 0.139864; 0.249400;, + 0.154960; 0.249433;; + } // End of cabin UV coordinates + } // End of cabin mesh + } // End of cabin + Frame glass { + FrameTransformMatrix { + -0.000000, 0.849807, 0.000000, 0.000000, + -0.849807,-0.000000, 0.000000, 0.000000, + 0.000000, 0.000000, 0.849807, 0.000000, + 0.060377, 0.077333, 6.492611, 1.000000;; + } + Mesh { // glass mesh + 96; + 9.084269;-3.457446;-2.752584;, + 9.084269;-6.983336;-2.752584;, + 3.889889;-6.983335;-2.752584;, + 3.889889;-3.457446;-2.752584;, + 3.889889; 3.457446;-2.752584;, + 3.889889;-3.457446;-2.752584;, + 1.341951;-3.457446;-2.752584;, + 1.341951; 3.457446;-2.752584;, + 9.084269;-6.983336;-2.752584;, + 9.084269;-6.983336;18.375072;, + 3.889889;-6.983335;18.375072;, + 3.889889;-6.983335;-2.752584;, + 9.084269;-3.457446;-2.752584;, + 9.084269;-3.457446;18.375072;, + 9.084269;-6.983336;18.375072;, + 9.084269;-6.983336;-2.752584;, + 9.084269;-3.457446;-2.752584;, + 3.889889;-3.457446;-2.752584;, + 3.889889; 3.457446;-2.752584;, + 9.084269; 3.457446;-2.752584;, + 9.084269;-3.457446;18.375072;, + 9.084269;-3.457446;-2.752584;, + 9.084269; 3.457446;-2.752584;, + 9.084269; 3.457446;18.375072;, + 9.084269; 3.457446;-2.752584;, + 3.889889; 3.457446;-2.752584;, + 3.889889; 6.983335;-2.752584;, + 9.084269; 6.983336;-2.752584;, + 3.892992;-3.457446;18.375072;, + 9.084269;-3.457446;18.375072;, + 9.084269; 3.457446;18.375072;, + 3.892992; 3.457446;18.375072;, + 9.084269; 6.983336;-2.752584;, + 3.889889; 6.983335;-2.752584;, + 3.889889; 6.983335;18.375072;, + 9.084269; 6.983336;18.375072;, + 9.084269; 3.457446;-2.752584;, + 9.084269; 6.983336;-2.752584;, + 9.084269; 6.983336;18.375072;, + 9.084269; 3.457446;18.375072;, + 9.084269;-3.457446;18.375072;, + 3.892992;-3.457446;18.375072;, + 3.889889;-6.983335;18.375072;, + 9.084269;-6.983336;18.375072;, + 9.084269; 3.457446;18.375072;, + 9.084269; 6.983336;18.375072;, + 3.889889; 6.983335;18.375072;, + 3.892992; 3.457446;18.375072;, + 9.084269;-3.457446;-2.752584;, + 3.889889;-3.457446;-2.752584;, + 3.889889;-6.983335;-2.752584;, + 9.084269;-6.983336;-2.752584;, + 3.889889; 3.457446;-2.752584;, + 1.341951; 3.457446;-2.752584;, + 1.341951;-3.457446;-2.752584;, + 3.889889;-3.457446;-2.752584;, + 9.084269;-6.983336;-2.752584;, + 3.889889;-6.983335;-2.752584;, + 3.889889;-6.983335;18.375072;, + 9.084269;-6.983336;18.375072;, + 9.084269;-3.457446;-2.752584;, + 9.084269;-6.983336;-2.752584;, + 9.084269;-6.983336;18.375072;, + 9.084269;-3.457446;18.375072;, + 9.084269;-3.457446;-2.752584;, + 9.084269; 3.457446;-2.752584;, + 3.889889; 3.457446;-2.752584;, + 3.889889;-3.457446;-2.752584;, + 9.084269;-3.457446;18.375072;, + 9.084269; 3.457446;18.375072;, + 9.084269; 3.457446;-2.752584;, + 9.084269;-3.457446;-2.752584;, + 9.084269; 3.457446;-2.752584;, + 9.084269; 6.983336;-2.752584;, + 3.889889; 6.983335;-2.752584;, + 3.889889; 3.457446;-2.752584;, + 3.892992;-3.457446;18.375072;, + 3.892992; 3.457446;18.375072;, + 9.084269; 3.457446;18.375072;, + 9.084269;-3.457446;18.375072;, + 9.084269; 6.983336;-2.752584;, + 9.084269; 6.983336;18.375072;, + 3.889889; 6.983335;18.375072;, + 3.889889; 6.983335;-2.752584;, + 9.084269; 3.457446;-2.752584;, + 9.084269; 3.457446;18.375072;, + 9.084269; 6.983336;18.375072;, + 9.084269; 6.983336;-2.752584;, + 9.084269;-3.457446;18.375072;, + 9.084269;-6.983336;18.375072;, + 3.889889;-6.983335;18.375072;, + 3.892992;-3.457446;18.375072;, + 9.084269; 3.457446;18.375072;, + 3.892992; 3.457446;18.375072;, + 3.889889; 6.983335;18.375072;, + 9.084269; 6.983336;18.375072;; + 24; + 4;3,2,1,0;, + 4;7,6,5,4;, + 4;11,10,9,8;, + 4;15,14,13,12;, + 4;19,18,17,16;, + 4;23,22,21,20;, + 4;27,26,25,24;, + 4;31,30,29,28;, + 4;35,34,33,32;, + 4;39,38,37,36;, + 4;43,42,41,40;, + 4;47,46,45,44;, + 4;51,50,49,48;, + 4;55,54,53,52;, + 4;59,58,57,56;, + 4;63,62,61,60;, + 4;67,66,65,64;, + 4;71,70,69,68;, + 4;75,74,73,72;, + 4;79,78,77,76;, + 4;83,82,81,80;, + 4;87,86,85,84;, + 4;91,90,89,88;, + 4;95,94,93,92;; + MeshTextureCoords { // glass UV coordinates + 96; + 0.250000; 0.765625;, + 0.156250; 0.765625;, + 0.156250; 0.921875;, + 0.250000; 0.921875;, + 0.453125; 0.921875;, + 0.250000; 0.921875;, + 0.250000; 1.000000;, + 0.453125; 1.000000;, + 0.156250; 0.765625;, + 0.156250; 0.156250;, + 0.000000; 0.156250;, + 0.000000; 0.765625;, + 0.250000; 0.765625;, + 0.250000; 0.156250;, + 0.156250; 0.156250;, + 0.156250; 0.765625;, + 0.250000; 0.765625;, + 0.250000; 0.921875;, + 0.453125; 0.921875;, + 0.453125; 0.765625;, + 0.250000; 0.156250;, + 0.250000; 0.765625;, + 0.453125; 0.765625;, + 0.453125; 0.156250;, + 0.453125; 0.765625;, + 0.453125; 0.921875;, + 0.562500; 0.921875;, + 0.562500; 0.765625;, + 0.250000; 0.000000;, + 0.250000; 0.156250;, + 0.453125; 0.156250;, + 0.453125; 0.000000;, + 0.562500; 0.765625;, + 0.718750; 0.765625;, + 0.718750; 0.156250;, + 0.562500; 0.156250;, + 0.453125; 0.765625;, + 0.562500; 0.765625;, + 0.562500; 0.156250;, + 0.453125; 0.156250;, + 0.250000; 0.156250;, + 0.250000; 0.000000;, + 0.156250; 0.000000;, + 0.156250; 0.156250;, + 0.453125; 0.156250;, + 0.562500; 0.156250;, + 0.562500; 0.000000;, + 0.453125; 0.000000;, + 0.250000; 0.765625;, + 0.250000; 0.921875;, + 0.156250; 0.921875;, + 0.156250; 0.765625;, + 0.453125; 0.921875;, + 0.453125; 1.000000;, + 0.250000; 1.000000;, + 0.250000; 0.921875;, + 0.156250; 0.765625;, + 0.000000; 0.765625;, + 0.000000; 0.156250;, + 0.156250; 0.156250;, + 0.250000; 0.765625;, + 0.156250; 0.765625;, + 0.156250; 0.156250;, + 0.250000; 0.156250;, + 0.250000; 0.765625;, + 0.453125; 0.765625;, + 0.453125; 0.921875;, + 0.250000; 0.921875;, + 0.250000; 0.156250;, + 0.453125; 0.156250;, + 0.453125; 0.765625;, + 0.250000; 0.765625;, + 0.453125; 0.765625;, + 0.562500; 0.765625;, + 0.562500; 0.921875;, + 0.453125; 0.921875;, + 0.250000; 0.000000;, + 0.453125; 0.000000;, + 0.453125; 0.156250;, + 0.250000; 0.156250;, + 0.562500; 0.765625;, + 0.562500; 0.156250;, + 0.718750; 0.156250;, + 0.718750; 0.765625;, + 0.453125; 0.765625;, + 0.453125; 0.156250;, + 0.562500; 0.156250;, + 0.562500; 0.765625;, + 0.250000; 0.156250;, + 0.156250; 0.156250;, + 0.156250; 0.000000;, + 0.250000; 0.000000;, + 0.453125; 0.156250;, + 0.453125; 0.000000;, + 0.562500; 0.000000;, + 0.562500; 0.156250;; + } // End of glass UV coordinates + } // End of glass mesh + } // End of glass +} // End of Root +AnimationSet Global { + Animation { + {blade} + AnimationKey { // Rotation + 0; + 12; + 0;4;-0.923880, 0.000000, 0.000000,-0.382683;;, + 1;4;-0.972370, 0.000000, 0.000000,-0.233445;;, + 2;4;-0.996917, 0.000000, 0.000000,-0.078459;;, + 3;4;-0.996917, 0.000000, 0.000000, 0.078459;;, + 4;4;-0.972370, 0.000000, 0.000000, 0.233445;;, + 5;4;-0.923880, 0.000000, 0.000000, 0.382683;;, + 6;4;-0.852640, 0.000000, 0.000000, 0.522498;;, + 7;4;-0.760406, 0.000000, 0.000000, 0.649448;;, + 8;4;-0.649448, 0.000000, 0.000000, 0.760406;;, + 9;4;-0.522499, 0.000000, 0.000000, 0.852640;;, + 10;4;-0.382684, 0.000000, 0.000000, 0.923880;;, + 11;4;-0.233446, 0.000000, 0.000000, 0.972370;;; + } + AnimationKey { // Scale + 1; + 12; + 0;3; 1.000000, 1.000000, 1.000000;;, + 1;3; 1.000000, 1.000000, 1.000000;;, + 2;3; 1.000000, 1.000000, 1.000000;;, + 3;3; 1.000000, 1.000000, 1.000000;;, + 4;3; 1.000000, 1.000000, 1.000000;;, + 5;3; 1.000000, 1.000000, 1.000000;;, + 6;3; 1.000000, 1.000000, 1.000000;;, + 7;3; 1.000000, 1.000000, 1.000000;;, + 8;3; 1.000000, 1.000000, 1.000000;;, + 9;3; 1.000000, 1.000000, 1.000000;;, + 10;3; 1.000000, 1.000000, 1.000000;;, + 11;3; 1.000000, 1.000000, 1.000000;;; + } + AnimationKey { // Position + 2; + 12; + 0;3; 0.066270, 0.155000,23.948601;;, + 1;3; 0.066270, 0.155000,23.948601;;, + 2;3; 0.066270, 0.155000,23.948601;;, + 3;3; 0.066270, 0.155000,23.948601;;, + 4;3; 0.066270, 0.155000,23.948601;;, + 5;3; 0.066270, 0.155000,23.948601;;, + 6;3; 0.066270, 0.155000,23.948601;;, + 7;3; 0.066270, 0.155000,23.948601;;, + 8;3; 0.066270, 0.155000,23.948601;;, + 9;3; 0.066270, 0.155000,23.948601;;, + 10;3; 0.066270, 0.155000,23.948601;;, + 11;3; 0.066270, 0.155000,23.948601;;; + } + } + Animation { + {blade_back} + AnimationKey { // Rotation + 0; + 12; + 0;4;-1.000000, 0.000000, 0.000000, 0.000000;;, + 1;4;-0.987688,-0.156434,-0.000000, 0.000000;;, + 2;4;-0.951057,-0.309017,-0.000000, 0.000000;;, + 3;4;-0.891007,-0.453991,-0.000000, 0.000000;;, + 4;4;-0.809017,-0.587785,-0.000000, 0.000000;;, + 5;4;-0.707107,-0.707107,-0.000000, 0.000000;;, + 6;4;-0.587785,-0.809017,-0.000000, 0.000000;;, + 7;4;-0.453990,-0.891007,-0.000000, 0.000000;;, + 8;4;-0.309017,-0.951057,-0.000000, 0.000000;;, + 9;4;-0.156434,-0.987688,-0.000000, 0.000000;;, + 10;4; 0.000000,-1.000000,-0.000000,-0.000000;;, + 11;4; 0.156435,-0.987688,-0.000000,-0.000000;;; + } + AnimationKey { // Scale + 1; + 12; + 0;3; 0.364074, 0.364074, 0.364074;;, + 1;3; 0.364074, 0.364074, 0.364074;;, + 2;3; 0.364074, 0.364074, 0.364074;;, + 3;3; 0.364074, 0.364074, 0.364074;;, + 4;3; 0.364074, 0.364074, 0.364074;;, + 5;3; 0.364074, 0.364074, 0.364074;;, + 6;3; 0.364074, 0.364074, 0.364074;;, + 7;3; 0.364074, 0.364074, 0.364074;;, + 8;3; 0.364074, 0.364074, 0.364074;;, + 9;3; 0.364074, 0.364074, 0.364074;;, + 10;3; 0.364074, 0.364074, 0.364074;;, + 11;3; 0.364074, 0.364074, 0.364074;;; + } + AnimationKey { // Position + 2; + 12; + 0;3; 1.522937,-17.349216,17.075975;;, + 1;3; 1.522937,-17.349216,17.075975;;, + 2;3; 1.522937,-17.349216,17.075975;;, + 3;3; 1.522937,-17.349216,17.075975;;, + 4;3; 1.522937,-17.349216,17.075975;;, + 5;3; 1.522937,-17.349216,17.075975;;, + 6;3; 1.522937,-17.349216,17.075975;;, + 7;3; 1.522937,-17.349216,17.075975;;, + 8;3; 1.522937,-17.349216,17.075975;;, + 9;3; 1.522937,-17.349216,17.075975;;, + 10;3; 1.522937,-17.349216,17.075975;;, + 11;3; 1.522937,-17.349216,17.075975;;; + } + } + Animation { + {cabin} + AnimationKey { // Rotation + 0; + 12; + 0;4;-0.707107, 0.000000, 0.000000, 0.707107;;, + 1;4;-0.707107, 0.000000, 0.000000, 0.707107;;, + 2;4;-0.707107, 0.000000, 0.000000, 0.707107;;, + 3;4;-0.707107, 0.000000, 0.000000, 0.707107;;, + 4;4;-0.707107, 0.000000, 0.000000, 0.707107;;, + 5;4;-0.707107, 0.000000, 0.000000, 0.707107;;, + 6;4;-0.707107, 0.000000, 0.000000, 0.707107;;, + 7;4;-0.707107, 0.000000, 0.000000, 0.707107;;, + 8;4;-0.707107, 0.000000, 0.000000, 0.707107;;, + 9;4;-0.707107, 0.000000, 0.000000, 0.707107;;, + 10;4;-0.707107, 0.000000, 0.000000, 0.707107;;, + 11;4;-0.707107, 0.000000, 0.000000, 0.707107;;; + } + AnimationKey { // Scale + 1; + 12; + 0;3; 0.849808, 0.849808, 0.849808;;, + 1;3; 0.849808, 0.849808, 0.849808;;, + 2;3; 0.849808, 0.849808, 0.849808;;, + 3;3; 0.849808, 0.849808, 0.849808;;, + 4;3; 0.849808, 0.849808, 0.849808;;, + 5;3; 0.849808, 0.849808, 0.849808;;, + 6;3; 0.849808, 0.849808, 0.849808;;, + 7;3; 0.849808, 0.849808, 0.849808;;, + 8;3; 0.849808, 0.849808, 0.849808;;, + 9;3; 0.849808, 0.849808, 0.849808;;, + 10;3; 0.849808, 0.849808, 0.849808;;, + 11;3; 0.849808, 0.849808, 0.849808;;; + } + AnimationKey { // Position + 2; + 12; + 0;3; 0.103012, 0.077333, 5.824100;;, + 1;3; 0.103012, 0.077333, 5.824100;;, + 2;3; 0.103012, 0.077333, 5.824100;;, + 3;3; 0.103012, 0.077333, 5.824100;;, + 4;3; 0.103012, 0.077333, 5.824100;;, + 5;3; 0.103012, 0.077333, 5.824100;;, + 6;3; 0.103012, 0.077333, 5.824100;;, + 7;3; 0.103012, 0.077333, 5.824100;;, + 8;3; 0.103012, 0.077333, 5.824100;;, + 9;3; 0.103012, 0.077333, 5.824100;;, + 10;3; 0.103012, 0.077333, 5.824100;;, + 11;3; 0.103012, 0.077333, 5.824100;;; + } + } + Animation { + {glass} + AnimationKey { // Rotation + 0; + 12; + 0;4;-0.707107, 0.000000, 0.000000, 0.707107;;, + 1;4;-0.707107, 0.000000, 0.000000, 0.707107;;, + 2;4;-0.707107, 0.000000, 0.000000, 0.707107;;, + 3;4;-0.707107, 0.000000, 0.000000, 0.707107;;, + 4;4;-0.707107, 0.000000, 0.000000, 0.707107;;, + 5;4;-0.707107, 0.000000, 0.000000, 0.707107;;, + 6;4;-0.707107, 0.000000, 0.000000, 0.707107;;, + 7;4;-0.707107, 0.000000, 0.000000, 0.707107;;, + 8;4;-0.707107, 0.000000, 0.000000, 0.707107;;, + 9;4;-0.707107, 0.000000, 0.000000, 0.707107;;, + 10;4;-0.707107, 0.000000, 0.000000, 0.707107;;, + 11;4;-0.707107, 0.000000, 0.000000, 0.707107;;; + } + AnimationKey { // Scale + 1; + 12; + 0;3; 0.849808, 0.849808, 0.849808;;, + 1;3; 0.849808, 0.849808, 0.849808;;, + 2;3; 0.849808, 0.849808, 0.849808;;, + 3;3; 0.849808, 0.849808, 0.849808;;, + 4;3; 0.849808, 0.849808, 0.849808;;, + 5;3; 0.849808, 0.849808, 0.849808;;, + 6;3; 0.849808, 0.849808, 0.849808;;, + 7;3; 0.849808, 0.849808, 0.849808;;, + 8;3; 0.849808, 0.849808, 0.849808;;, + 9;3; 0.849808, 0.849808, 0.849808;;, + 10;3; 0.849808, 0.849808, 0.849808;;, + 11;3; 0.849808, 0.849808, 0.849808;;; + } + AnimationKey { // Position + 2; + 12; + 0;3; 0.060377, 0.077333, 6.492611;;, + 1;3; 0.060377, 0.077333, 6.492611;;, + 2;3; 0.060377, 0.077333, 6.492611;;, + 3;3; 0.060377, 0.077333, 6.492611;;, + 4;3; 0.060377, 0.077333, 6.492611;;, + 5;3; 0.060377, 0.077333, 6.492611;;, + 6;3; 0.060377, 0.077333, 6.492611;;, + 7;3; 0.060377, 0.077333, 6.492611;;, + 8;3; 0.060377, 0.077333, 6.492611;;, + 9;3; 0.060377, 0.077333, 6.492611;;, + 10;3; 0.060377, 0.077333, 6.492611;;, + 11;3; 0.060377, 0.077333, 6.492611;;; + } + } +} // End of AnimationSet Global diff --git a/mods/helicopter/models/root.x b/mods/helicopter/models/root.x new file mode 100644 index 0000000..f8f3fb6 --- /dev/null +++ b/mods/helicopter/models/root.x @@ -0,0 +1,10 @@ +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;; + } +} // End of Root diff --git a/mods/helicopter/sounds/helicopter_motor.ogg b/mods/helicopter/sounds/helicopter_motor.ogg new file mode 100644 index 0000000..298a397 Binary files /dev/null and b/mods/helicopter/sounds/helicopter_motor.ogg differ diff --git a/mods/helicopter/textures/Glass.png b/mods/helicopter/textures/Glass.png new file mode 100644 index 0000000..82a389c Binary files /dev/null and b/mods/helicopter/textures/Glass.png differ diff --git a/mods/helicopter/textures/blades.png b/mods/helicopter/textures/blades.png new file mode 100644 index 0000000..6d3a6a2 Binary files /dev/null and b/mods/helicopter/textures/blades.png differ diff --git a/mods/helicopter/textures/blades_inv.png b/mods/helicopter/textures/blades_inv.png new file mode 100644 index 0000000..6d3a6a2 Binary files /dev/null and b/mods/helicopter/textures/blades_inv.png differ diff --git a/mods/helicopter/textures/cabin_inv.png b/mods/helicopter/textures/cabin_inv.png new file mode 100644 index 0000000..b454245 Binary files /dev/null and b/mods/helicopter/textures/cabin_inv.png differ diff --git a/mods/helicopter/textures/heli.png b/mods/helicopter/textures/heli.png new file mode 100644 index 0000000..eccc5ae Binary files /dev/null and b/mods/helicopter/textures/heli.png differ diff --git a/mods/helicopter/textures/heli_inv.png b/mods/helicopter/textures/heli_inv.png new file mode 100644 index 0000000..50d4e10 Binary files /dev/null and b/mods/helicopter/textures/heli_inv.png differ diff --git a/mods/inventory_plus/LICENSE b/mods/inventory_plus/LICENSE new file mode 100644 index 0000000..ef9ddd5 --- /dev/null +++ b/mods/inventory_plus/LICENSE @@ -0,0 +1,32 @@ +Copyright (c) 2013, Brett O'Donnell http://cornernote.github.io +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. + +* Neither the name of the organization nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + +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/inventory_plus/README.md b/mods/inventory_plus/README.md new file mode 100644 index 0000000..53c6734 --- /dev/null +++ b/mods/inventory_plus/README.md @@ -0,0 +1,33 @@ +# Inventory Plus for Minetest + +Allows additional formspec buttons to be added to the player inventory. + + +## Features + +- Allows additional formspec buttons to be added to the player inventory screen. +- These are processed by your own mod, they can show other formspec screens, or perform in game functionality. +- Adds support for refill/trash to Creative Inventory. + + +## Resources + +- **[Documentation](http://cornernote.github.io/minetest-inventory_plus)** +- **[GitHub Project](https://github.com/cornernote/minetest-inventory_plus)** +- **[Minetest Forum](http://minetest.net/forum/viewtopic.php?id=3100)** + + +## Support + +- Does this README need improvement? Go ahead and [suggest a change](https://github.com/cornernote/minetest-inventory_plus/edit/master/README.md). +- Found a bug, or need help using this project? Check the [open issues](https://github.com/cornernote/minetest-inventory_plus/issues) or [create an issue](https://github.com/cornernote/minetest-inventory_plus/issues/new). + + +## About + +This module is open source, so it's distributed freely. If you find it useful then I ask not for your wealth, but simply to spare your time to consider the world we share by watching [Earthlings](http://earthlings.com/), a multi-award winning film available to watch online for free. A must-see for anyone who wishes to make the world a better place. + + +## License + +[BSD-3-Clause](https://raw.github.com/cornernote/minetest-inventory_plus/master/LICENSE), Copyright © 2013-2014 [Brett O'Donnell](http://cornernote.github.io/) diff --git a/mods/inventory_plus/inventory_plus/init.lua b/mods/inventory_plus/inventory_plus/init.lua new file mode 100644 index 0000000..8361077 --- /dev/null +++ b/mods/inventory_plus/inventory_plus/init.lua @@ -0,0 +1,125 @@ +--[[ + +Inventory Plus for Minetest + +Copyright (c) 2012 cornernote, Brett O'Donnell +Source Code: https://github.com/cornernote/minetest-inventory_plus +License: BSD-3-Clause https://raw.github.com/cornernote/minetest-inventory_plus/master/LICENSE + +]]-- + + +-- expose api +inventory_plus = {} + +-- define buttons +inventory_plus.buttons = {} + +-- default inventory page +inventory_plus.default = minetest.setting_get("inventory_default") or "craft" + +-- register_button +inventory_plus.register_button = function(player,name,label) + local player_name = player:get_player_name() + if inventory_plus.buttons[player_name] == nil then + inventory_plus.buttons[player_name] = {} + end + inventory_plus.buttons[player_name][name] = label +end + +-- set_inventory_formspec +inventory_plus.set_inventory_formspec = function(player,formspec) + if minetest.setting_getbool("creative_mode") then + -- if creative mode is on then wait a bit + minetest.after(0.01,function() + player:set_inventory_formspec(formspec) + end) + else + player:set_inventory_formspec(formspec) + end +end + +-- get_formspec +inventory_plus.get_formspec = function(player,page) + local formspec = "size[8,7.5]" + + -- player inventory + formspec = formspec .. "list[current_player;main;0,3.5;8,4;]" + + -- craft page + if page=="craft" then + formspec = formspec + .."button[0,0;2,0.5;main;Back]" + .."list[current_player;craftpreview;7,1;1,1;]" + if minetest.setting_getbool("inventory_craft_small") then + formspec = formspec.."list[current_player;craft;3,0;2,2;]" + player:get_inventory():set_width("craft", 2) + player:get_inventory():set_size("craft", 2*2) + else + formspec = formspec.."list[current_player;craft;3,0;3,3;]" + player:get_inventory():set_width("craft", 3) + player:get_inventory():set_size("craft", 3*3) + end + end + + -- creative page + if page=="creative" then + return player:get_inventory_formspec() + .."button[5,0;2,0.5;main;Back]" + end + + -- main page + if page=="main" then + -- buttons + local x,y=0,0 + for k,v in pairs(inventory_plus.buttons[player:get_player_name()]) do + formspec = formspec .. "button["..x..","..y..";2,0.5;"..k..";"..v.."]" + x=x+2 + if x == 8 then + x=0 + y=y+1 + end + end + end + + return formspec +end + +-- register_on_joinplayer +minetest.register_on_joinplayer(function(player) + if minetest.setting_getbool("inventory_craft_small") then + player:get_inventory():set_width("craft", 2) + player:get_inventory():set_size("craft", 2*2) + else + player:get_inventory():set_width("craft", 3) + player:get_inventory():set_size("craft", 3*3) + end + inventory_plus.register_button(player,"craft","Craft") + if minetest.setting_getbool("creative_mode") then + inventory_plus.register_button(player,"creative_prev","Creative") + end + minetest.after(1,function() + inventory_plus.set_inventory_formspec(player,inventory_plus.get_formspec(player, inventory_plus.default)) + end) +end) + +-- register_on_player_receive_fields +minetest.register_on_player_receive_fields(function(player, formname, fields) + -- main + if fields.main then + inventory_plus.set_inventory_formspec(player, inventory_plus.get_formspec(player,"main")) + return + end + -- craft + if fields.craft then + inventory_plus.set_inventory_formspec(player, inventory_plus.get_formspec(player,"craft")) + return + end + -- creative + if fields.creative_prev or fields.creative_next then + minetest.after(0.01,function() + inventory_plus.set_inventory_formspec(player, inventory_plus.get_formspec(player,"creative")) + end) + return + end +end) diff --git a/mods/inventory_plus/modpack.txt b/mods/inventory_plus/modpack.txt new file mode 100644 index 0000000..e69de29 diff --git a/mods/legacy/depends.txt b/mods/legacy/depends.txt new file mode 100644 index 0000000..3a7daa1 --- /dev/null +++ b/mods/legacy/depends.txt @@ -0,0 +1,2 @@ +default + diff --git a/mods/legacy/init.lua b/mods/legacy/init.lua new file mode 100644 index 0000000..1cb99ef --- /dev/null +++ b/mods/legacy/init.lua @@ -0,0 +1,107 @@ +-- legacy (Minetest 0.4 mod) +-- Provides as much backwards-compatibility as feasible + +-- +-- Aliases to support loading 0.3 and old 0.4 worlds and inventories +-- + +minetest.register_alias("stone", "default:stone") +minetest.register_alias("stone_with_coal", "default:stone_with_coal") +minetest.register_alias("stone_with_iron", "default:stone_with_iron") +minetest.register_alias("dirt_with_grass", "default:dirt_with_grass") +minetest.register_alias("dirt_with_grass_footsteps", "default:dirt_with_grass_footsteps") +minetest.register_alias("dirt", "default:dirt") +minetest.register_alias("sand", "default:sand") +minetest.register_alias("gravel", "default:gravel") +minetest.register_alias("sandstone", "default:sandstone") +minetest.register_alias("clay", "default:clay") +minetest.register_alias("brick", "default:brick") +minetest.register_alias("tree", "default:tree") +minetest.register_alias("jungletree", "default:jungletree") +minetest.register_alias("junglegrass", "default:junglegrass") +minetest.register_alias("leaves", "default:leaves") +minetest.register_alias("cactus", "default:cactus") +minetest.register_alias("papyrus", "default:papyrus") +minetest.register_alias("bookshelf", "default:bookshelf") +minetest.register_alias("glass", "default:glass") +minetest.register_alias("wooden_fence", "default:fence_wood") +minetest.register_alias("rail", "default:rail") +minetest.register_alias("ladder", "default:ladder") +minetest.register_alias("wood", "default:wood") +minetest.register_alias("mese", "default:mese") +minetest.register_alias("cloud", "default:cloud") +minetest.register_alias("water_flowing", "default:water_flowing") +minetest.register_alias("water_source", "default:water_source") +minetest.register_alias("lava_flowing", "default:lava_flowing") +minetest.register_alias("lava_source", "default:lava_source") +minetest.register_alias("torch", "default:torch") +minetest.register_alias("sign_wall", "default:sign_wall") +minetest.register_alias("furnace", "default:furnace") +minetest.register_alias("chest", "default:chest") +minetest.register_alias("locked_chest", "default:chest_locked") +minetest.register_alias("cobble", "default:cobble") +minetest.register_alias("mossycobble", "default:mossycobble") +minetest.register_alias("steelblock", "default:steelblock") +minetest.register_alias("nyancat", "default:nyancat") +minetest.register_alias("nyancat_rainbow", "default:nyancat_rainbow") +minetest.register_alias("sapling", "default:sapling") +minetest.register_alias("apple", "default:apple") + +minetest.register_alias("WPick", "default:pick_wood") +minetest.register_alias("STPick", "default:pick_stone") +minetest.register_alias("SteelPick", "default:pick_steel") +minetest.register_alias("MesePick", "default:pick_mese") +minetest.register_alias("WShovel", "default:shovel_wood") +minetest.register_alias("STShovel", "default:shovel_stone") +minetest.register_alias("SteelShovel", "default:shovel_steel") +minetest.register_alias("WAxe", "default:axe_wood") +minetest.register_alias("STAxe", "default:axe_stone") +minetest.register_alias("SteelAxe", "default:axe_steel") +minetest.register_alias("WSword", "default:sword_wood") +minetest.register_alias("STSword", "default:sword_stone") +minetest.register_alias("SteelSword", "default:sword_steel") + +minetest.register_alias("Stick", "default:stick") +minetest.register_alias("paper", "default:paper") +minetest.register_alias("book", "default:book") +minetest.register_alias("lump_of_coal", "default:coal_lump") +minetest.register_alias("lump_of_iron", "default:iron_lump") +minetest.register_alias("lump_of_clay", "default:clay_lump") +minetest.register_alias("steel_ingot", "default:steel_ingot") +minetest.register_alias("clay_brick", "default:clay_brick") +minetest.register_alias("scorched_stuff", "default:scorched_stuff") + +-- +-- Old items +-- + +minetest.register_craftitem(":rat", { + description = "Rat", + inventory_image = "rat.png", +}) + +minetest.register_craftitem(":cooked_rat", { + description = "Cooked rat", + inventory_image = "cooked_rat.png", + on_use = minetest.item_eat(6), +}) + +minetest.register_craftitem(":firefly", { + description = "Firefly", + inventory_image = "firefly.png", + groups = {not_in_creative_inventory=1}, +}) + +minetest.register_craft({ + type = "cooking", + output = "cooked_rat", + recipe = "rat", +}) + +minetest.register_craft({ + type = "cooking", + output = "scorched_stuff", + recipe = "cooked_rat", +}) + +-- END diff --git a/mods/legacy/textures/apple_iron.png b/mods/legacy/textures/apple_iron.png new file mode 100644 index 0000000..b1d1804 Binary files /dev/null and b/mods/legacy/textures/apple_iron.png differ diff --git a/mods/legacy/textures/cooked_rat.png b/mods/legacy/textures/cooked_rat.png new file mode 100644 index 0000000..db80298 Binary files /dev/null and b/mods/legacy/textures/cooked_rat.png differ diff --git a/mods/legacy/textures/dungeon_master.png b/mods/legacy/textures/dungeon_master.png new file mode 100644 index 0000000..56caa50 Binary files /dev/null and b/mods/legacy/textures/dungeon_master.png differ diff --git a/mods/legacy/textures/fireball.png b/mods/legacy/textures/fireball.png new file mode 100644 index 0000000..ed21a5b Binary files /dev/null and b/mods/legacy/textures/fireball.png differ diff --git a/mods/legacy/textures/firefly.png b/mods/legacy/textures/firefly.png new file mode 100644 index 0000000..41bb25d Binary files /dev/null and b/mods/legacy/textures/firefly.png differ diff --git a/mods/legacy/textures/oerkki1.png b/mods/legacy/textures/oerkki1.png new file mode 100644 index 0000000..7321d3d Binary files /dev/null and b/mods/legacy/textures/oerkki1.png differ diff --git a/mods/legacy/textures/oerkki1_damaged.png b/mods/legacy/textures/oerkki1_damaged.png new file mode 100644 index 0000000..0ab50c8 Binary files /dev/null and b/mods/legacy/textures/oerkki1_damaged.png differ diff --git a/mods/legacy/textures/rat.png b/mods/legacy/textures/rat.png new file mode 100644 index 0000000..e62e603 Binary files /dev/null and b/mods/legacy/textures/rat.png differ diff --git a/mods/mesecons/.gitignore b/mods/mesecons/.gitignore new file mode 100644 index 0000000..b25c15b --- /dev/null +++ b/mods/mesecons/.gitignore @@ -0,0 +1 @@ +*~ diff --git a/mods/mesecons/LICENSE.txt b/mods/mesecons/LICENSE.txt new file mode 100644 index 0000000..0d2fd18 --- /dev/null +++ b/mods/mesecons/LICENSE.txt @@ -0,0 +1,532 @@ +The LGPLv3 applies to all code in this project. +The CC-BY-SA-3.0 license applies to textures and any other content in this project which is not source code. + +================================================================= + +GNU LESSER GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + + This version of the GNU Lesser General Public License incorporates +the terms and conditions of version 3 of the GNU General Public +License, supplemented by the additional permissions listed below. + + 0. Additional Definitions. + + As used herein, "this License" refers to version 3 of the GNU Lesser +General Public License, and the "GNU GPL" refers to version 3 of the GNU +General Public License. + + "The Library" refers to a covered work governed by this License, +other than an Application or a Combined Work as defined below. + + An "Application" is any work that makes use of an interface provided +by the Library, but which is not otherwise based on the Library. +Defining a subclass of a class defined by the Library is deemed a mode +of using an interface provided by the Library. + + A "Combined Work" is a work produced by combining or linking an +Application with the Library. The particular version of the Library +with which the Combined Work was made is also called the "Linked +Version". + + The "Minimal Corresponding Source" for a Combined Work means the +Corresponding Source for the Combined Work, excluding any source code +for portions of the Combined Work that, considered in isolation, are +based on the Application, and not on the Linked Version. + + The "Corresponding Application Code" for a Combined Work means the +object code and/or source code for the Application, including any data +and utility programs needed for reproducing the Combined Work from the +Application, but excluding the System Libraries of the Combined Work. + + 1. Exception to Section 3 of the GNU GPL. + + You may convey a covered work under sections 3 and 4 of this License +without being bound by section 3 of the GNU GPL. + + 2. Conveying Modified Versions. + + If you modify a copy of the Library, and, in your modifications, a +facility refers to a function or data to be supplied by an Application +that uses the facility (other than as an argument passed when the +facility is invoked), then you may convey a copy of the modified +version: + + a) under this License, provided that you make a good faith effort to + ensure that, in the event an Application does not supply the + function or data, the facility still operates, and performs + whatever part of its purpose remains meaningful, or + + b) under the GNU GPL, with none of the additional permissions of + this License applicable to that copy. + + 3. Object Code Incorporating Material from Library Header Files. + + The object code form of an Application may incorporate material from +a header file that is part of the Library. You may convey such object +code under terms of your choice, provided that, if the incorporated +material is not limited to numerical parameters, data structure +layouts and accessors, or small macros, inline functions and templates +(ten or fewer lines in length), you do both of the following: + + a) Give prominent notice with each copy of the object code that the + Library is used in it and that the Library and its use are + covered by this License. + + b) Accompany the object code with a copy of the GNU GPL and this license + document. + + 4. Combined Works. + + You may convey a Combined Work under terms of your choice that, +taken together, effectively do not restrict modification of the +portions of the Library contained in the Combined Work and reverse +engineering for debugging such modifications, if you also do each of +the following: + + a) Give prominent notice with each copy of the Combined Work that + the Library is used in it and that the Library and its use are + covered by this License. + + b) Accompany the Combined Work with a copy of the GNU GPL and this license + document. + + c) For a Combined Work that displays copyright notices during + execution, include the copyright notice for the Library among + these notices, as well as a reference directing the user to the + copies of the GNU GPL and this license document. + + d) Do one of the following: + + 0) Convey the Minimal Corresponding Source under the terms of this + License, and the Corresponding Application Code in a form + suitable for, and under terms that permit, the user to + recombine or relink the Application with a modified version of + the Linked Version to produce a modified Combined Work, in the + manner specified by section 6 of the GNU GPL for conveying + Corresponding Source. + + 1) Use a suitable shared library mechanism for linking with the + Library. A suitable mechanism is one that (a) uses at run time + a copy of the Library already present on the user's computer + system, and (b) will operate properly with a modified version + of the Library that is interface-compatible with the Linked + Version. + + e) Provide Installation Information, but only if you would otherwise + be required to provide such information under section 6 of the + GNU GPL, and only to the extent that such information is + necessary to install and execute a modified version of the + Combined Work produced by recombining or relinking the + Application with a modified version of the Linked Version. (If + you use option 4d0, the Installation Information must accompany + the Minimal Corresponding Source and Corresponding Application + Code. If you use option 4d1, you must provide the Installation + Information in the manner specified by section 6 of the GNU GPL + for conveying Corresponding Source.) + + 5. Combined Libraries. + + You may place library facilities that are a work based on the +Library side by side in a single library together with other library +facilities that are not Applications and are not covered by this +License, and convey such a combined library under terms of your +choice, if you do both of the following: + + a) Accompany the combined library with a copy of the same work based + on the Library, uncombined with any other library facilities, + conveyed under the terms of this License. + + b) Give prominent notice with the combined library that part of it + is a work based on the Library, and explaining where to find the + accompanying uncombined form of the same work. + + 6. Revised Versions of the GNU Lesser General Public License. + + The Free Software Foundation may publish revised and/or new versions +of the GNU Lesser 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 +Library as you received it specifies that a certain numbered version +of the GNU Lesser General Public License "or any later version" +applies to it, you have the option of following the terms and +conditions either of that published version or of any later version +published by the Free Software Foundation. If the Library as you +received it does not specify a version number of the GNU Lesser +General Public License, you may choose any version of the GNU Lesser +General Public License ever published by the Free Software Foundation. + + If the Library as you received it specifies that a proxy can decide +whether future versions of the GNU Lesser General Public License shall +apply, that proxy's public statement of acceptance of any version is +permanent authorization for you to choose that version for the +Library. + +================================================================= + +Creative Commons Legal Code + +Attribution-ShareAlike 3.0 Unported + + CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE + LEGAL SERVICES. DISTRIBUTION OF THIS LICENSE DOES NOT CREATE AN + ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS + INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES + REGARDING THE INFORMATION PROVIDED, AND DISCLAIMS LIABILITY FOR + DAMAGES RESULTING FROM ITS USE. + +License + +THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS CREATIVE +COMMONS PUBLIC LICENSE ("CCPL" OR "LICENSE"). THE WORK IS PROTECTED BY +COPYRIGHT AND/OR OTHER APPLICABLE LAW. ANY USE OF THE WORK OTHER THAN AS +AUTHORIZED UNDER THIS LICENSE OR COPYRIGHT LAW IS PROHIBITED. + +BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HERE, YOU ACCEPT AND AGREE +TO BE BOUND BY THE TERMS OF THIS LICENSE. TO THE EXTENT THIS LICENSE MAY +BE CONSIDERED TO BE A CONTRACT, THE LICENSOR GRANTS YOU THE RIGHTS +CONTAINED HERE IN CONSIDERATION OF YOUR ACCEPTANCE OF SUCH TERMS AND +CONDITIONS. + +1. Definitions + + a. "Adaptation" means a work based upon the Work, or upon the Work and + other pre-existing works, such as a translation, adaptation, + derivative work, arrangement of music or other alterations of a + literary or artistic work, or phonogram or performance and includes + cinematographic adaptations or any other form in which the Work may be + recast, transformed, or adapted including in any form recognizably + derived from the original, except that a work that constitutes a + Collection will not be considered an Adaptation for the purpose of + this License. For the avoidance of doubt, where the Work is a musical + work, performance or phonogram, the synchronization of the Work in + timed-relation with a moving image ("synching") will be considered an + Adaptation for the purpose of this License. + b. "Collection" means a collection of literary or artistic works, such as + encyclopedias and anthologies, or performances, phonograms or + broadcasts, or other works or subject matter other than works listed + in Section 1(f) below, which, by reason of the selection and + arrangement of their contents, constitute intellectual creations, in + which the Work is included in its entirety in unmodified form along + with one or more other contributions, each constituting separate and + independent works in themselves, which together are assembled into a + collective whole. A work that constitutes a Collection will not be + considered an Adaptation (as defined below) for the purposes of this + License. + c. "Creative Commons Compatible License" means a license that is listed + at http://creativecommons.org/compatiblelicenses that has been + approved by Creative Commons as being essentially equivalent to this + License, including, at a minimum, because that license: (i) contains + terms that have the same purpose, meaning and effect as the License + Elements of this License; and, (ii) explicitly permits the relicensing + of adaptations of works made available under that license under this + License or a Creative Commons jurisdiction license with the same + License Elements as this License. + d. "Distribute" means to make available to the public the original and + copies of the Work or Adaptation, as appropriate, through sale or + other transfer of ownership. + e. "License Elements" means the following high-level license attributes + as selected by Licensor and indicated in the title of this License: + Attribution, ShareAlike. + f. "Licensor" means the individual, individuals, entity or entities that + offer(s) the Work under the terms of this License. + g. "Original Author" means, in the case of a literary or artistic work, + the individual, individuals, entity or entities who created the Work + or if no individual or entity can be identified, the publisher; and in + addition (i) in the case of a performance the actors, singers, + musicians, dancers, and other persons who act, sing, deliver, declaim, + play in, interpret or otherwise perform literary or artistic works or + expressions of folklore; (ii) in the case of a phonogram the producer + being the person or legal entity who first fixes the sounds of a + performance or other sounds; and, (iii) in the case of broadcasts, the + organization that transmits the broadcast. + h. "Work" means the literary and/or artistic work offered under the terms + of this License including without limitation any production in the + literary, scientific and artistic domain, whatever may be the mode or + form of its expression including digital form, such as a book, + pamphlet and other writing; a lecture, address, sermon or other work + of the same nature; a dramatic or dramatico-musical work; a + choreographic work or entertainment in dumb show; a musical + composition with or without words; a cinematographic work to which are + assimilated works expressed by a process analogous to cinematography; + a work of drawing, painting, architecture, sculpture, engraving or + lithography; a photographic work to which are assimilated works + expressed by a process analogous to photography; a work of applied + art; an illustration, map, plan, sketch or three-dimensional work + relative to geography, topography, architecture or science; a + performance; a broadcast; a phonogram; a compilation of data to the + extent it is protected as a copyrightable work; or a work performed by + a variety or circus performer to the extent it is not otherwise + considered a literary or artistic work. + i. "You" means an individual or entity exercising rights under this + License who has not previously violated the terms of this License with + respect to the Work, or who has received express permission from the + Licensor to exercise rights under this License despite a previous + violation. + j. "Publicly Perform" means to perform public recitations of the Work and + to communicate to the public those public recitations, by any means or + process, including by wire or wireless means or public digital + performances; to make available to the public Works in such a way that + members of the public may access these Works from a place and at a + place individually chosen by them; to perform the Work to the public + by any means or process and the communication to the public of the + performances of the Work, including by public digital performance; to + broadcast and rebroadcast the Work by any means including signs, + sounds or images. + k. "Reproduce" means to make copies of the Work by any means including + without limitation by sound or visual recordings and the right of + fixation and reproducing fixations of the Work, including storage of a + protected performance or phonogram in digital form or other electronic + medium. + +2. Fair Dealing Rights. Nothing in this License is intended to reduce, +limit, or restrict any uses free from copyright or rights arising from +limitations or exceptions that are provided for in connection with the +copyright protection under copyright law or other applicable laws. + +3. License Grant. Subject to the terms and conditions of this License, +Licensor hereby grants You a worldwide, royalty-free, non-exclusive, +perpetual (for the duration of the applicable copyright) license to +exercise the rights in the Work as stated below: + + a. to Reproduce the Work, to incorporate the Work into one or more + Collections, and to Reproduce the Work as incorporated in the + Collections; + b. to create and Reproduce Adaptations provided that any such Adaptation, + including any translation in any medium, takes reasonable steps to + clearly label, demarcate or otherwise identify that changes were made + to the original Work. For example, a translation could be marked "The + original work was translated from English to Spanish," or a + modification could indicate "The original work has been modified."; + c. to Distribute and Publicly Perform the Work including as incorporated + in Collections; and, + d. to Distribute and Publicly Perform Adaptations. + e. For the avoidance of doubt: + + i. Non-waivable Compulsory License Schemes. In those jurisdictions in + which the right to collect royalties through any statutory or + compulsory licensing scheme cannot be waived, the Licensor + reserves the exclusive right to collect such royalties for any + exercise by You of the rights granted under this License; + ii. Waivable Compulsory License Schemes. In those jurisdictions in + which the right to collect royalties through any statutory or + compulsory licensing scheme can be waived, the Licensor waives the + exclusive right to collect such royalties for any exercise by You + of the rights granted under this License; and, + iii. Voluntary License Schemes. The Licensor waives the right to + collect royalties, whether individually or, in the event that the + Licensor is a member of a collecting society that administers + voluntary licensing schemes, via that society, from any exercise + by You of the rights granted under this License. + +The above rights may be exercised in all media and formats whether now +known or hereafter devised. The above rights include the right to make +such modifications as are technically necessary to exercise the rights in +other media and formats. Subject to Section 8(f), all rights not expressly +granted by Licensor are hereby reserved. + +4. Restrictions. The license granted in Section 3 above is expressly made +subject to and limited by the following restrictions: + + a. You may Distribute or Publicly Perform the Work only under the terms + of this License. You must include a copy of, or the Uniform Resource + Identifier (URI) for, this License with every copy of the Work You + Distribute or Publicly Perform. You may not offer or impose any terms + on the Work that restrict the terms of this License or the ability of + the recipient of the Work to exercise the rights granted to that + recipient under the terms of the License. You may not sublicense the + Work. You must keep intact all notices that refer to this License and + to the disclaimer of warranties with every copy of the Work You + Distribute or Publicly Perform. When You Distribute or Publicly + Perform the Work, You may not impose any effective technological + measures on the Work that restrict the ability of a recipient of the + Work from You to exercise the rights granted to that recipient under + the terms of the License. This Section 4(a) applies to the Work as + incorporated in a Collection, but this does not require the Collection + apart from the Work itself to be made subject to the terms of this + License. If You create a Collection, upon notice from any Licensor You + must, to the extent practicable, remove from the Collection any credit + as required by Section 4(c), as requested. If You create an + Adaptation, upon notice from any Licensor You must, to the extent + practicable, remove from the Adaptation any credit as required by + Section 4(c), as requested. + b. You may Distribute or Publicly Perform an Adaptation only under the + terms of: (i) this License; (ii) a later version of this License with + the same License Elements as this License; (iii) a Creative Commons + jurisdiction license (either this or a later license version) that + contains the same License Elements as this License (e.g., + Attribution-ShareAlike 3.0 US)); (iv) a Creative Commons Compatible + License. If you license the Adaptation under one of the licenses + mentioned in (iv), you must comply with the terms of that license. If + you license the Adaptation under the terms of any of the licenses + mentioned in (i), (ii) or (iii) (the "Applicable License"), you must + comply with the terms of the Applicable License generally and the + following provisions: (I) You must include a copy of, or the URI for, + the Applicable License with every copy of each Adaptation You + Distribute or Publicly Perform; (II) You may not offer or impose any + terms on the Adaptation that restrict the terms of the Applicable + License or the ability of the recipient of the Adaptation to exercise + the rights granted to that recipient under the terms of the Applicable + License; (III) You must keep intact all notices that refer to the + Applicable License and to the disclaimer of warranties with every copy + of the Work as included in the Adaptation You Distribute or Publicly + Perform; (IV) when You Distribute or Publicly Perform the Adaptation, + You may not impose any effective technological measures on the + Adaptation that restrict the ability of a recipient of the Adaptation + from You to exercise the rights granted to that recipient under the + terms of the Applicable License. This Section 4(b) applies to the + Adaptation as incorporated in a Collection, but this does not require + the Collection apart from the Adaptation itself to be made subject to + the terms of the Applicable License. + c. If You Distribute, or Publicly Perform the Work or any Adaptations or + Collections, You must, unless a request has been made pursuant to + Section 4(a), keep intact all copyright notices for the Work and + provide, reasonable to the medium or means You are utilizing: (i) the + name of the Original Author (or pseudonym, if applicable) if supplied, + and/or if the Original Author and/or Licensor designate another party + or parties (e.g., a sponsor institute, publishing entity, journal) for + attribution ("Attribution Parties") in Licensor's copyright notice, + terms of service or by other reasonable means, the name of such party + or parties; (ii) the title of the Work if supplied; (iii) to the + extent reasonably practicable, the URI, if any, that Licensor + specifies to be associated with the Work, unless such URI does not + refer to the copyright notice or licensing information for the Work; + and (iv) , consistent with Ssection 3(b), in the case of an + Adaptation, a credit identifying the use of the Work in the Adaptation + (e.g., "French translation of the Work by Original Author," or + "Screenplay based on original Work by Original Author"). The credit + required by this Section 4(c) may be implemented in any reasonable + manner; provided, however, that in the case of a Adaptation or + Collection, at a minimum such credit will appear, if a credit for all + contributing authors of the Adaptation or Collection appears, then as + part of these credits and in a manner at least as prominent as the + credits for the other contributing authors. For the avoidance of + doubt, You may only use the credit required by this Section for the + purpose of attribution in the manner set out above and, by exercising + Your rights under this License, You may not implicitly or explicitly + assert or imply any connection with, sponsorship or endorsement by the + Original Author, Licensor and/or Attribution Parties, as appropriate, + of You or Your use of the Work, without the separate, express prior + written permission of the Original Author, Licensor and/or Attribution + Parties. + d. Except as otherwise agreed in writing by the Licensor or as may be + otherwise permitted by applicable law, if You Reproduce, Distribute or + Publicly Perform the Work either by itself or as part of any + Adaptations or Collections, You must not distort, mutilate, modify or + take other derogatory action in relation to the Work which would be + prejudicial to the Original Author's honor or reputation. Licensor + agrees that in those jurisdictions (e.g. Japan), in which any exercise + of the right granted in Section 3(b) of this License (the right to + make Adaptations) would be deemed to be a distortion, mutilation, + modification or other derogatory action prejudicial to the Original + Author's honor and reputation, the Licensor will waive or not assert, + as appropriate, this Section, to the fullest extent permitted by the + applicable national law, to enable You to reasonably exercise Your + right under Section 3(b) of this License (right to make Adaptations) + but not otherwise. + +5. Representations, Warranties and Disclaimer + +UNLESS OTHERWISE MUTUALLY AGREED TO BY THE PARTIES IN WRITING, LICENSOR +OFFERS THE WORK AS-IS AND MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY +KIND CONCERNING THE WORK, EXPRESS, IMPLIED, STATUTORY OR OTHERWISE, +INCLUDING, WITHOUT LIMITATION, WARRANTIES OF TITLE, MERCHANTIBILITY, +FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR THE ABSENCE OF +LATENT OR OTHER DEFECTS, ACCURACY, OR THE PRESENCE OF ABSENCE OF ERRORS, +WHETHER OR NOT DISCOVERABLE. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION +OF IMPLIED WARRANTIES, SO SUCH EXCLUSION MAY NOT APPLY TO YOU. + +6. Limitation on Liability. EXCEPT TO THE EXTENT REQUIRED BY APPLICABLE +LAW, IN NO EVENT WILL LICENSOR BE LIABLE TO YOU ON ANY LEGAL THEORY FOR +ANY SPECIAL, INCIDENTAL, CONSEQUENTIAL, PUNITIVE OR EXEMPLARY DAMAGES +ARISING OUT OF THIS LICENSE OR THE USE OF THE WORK, EVEN IF LICENSOR HAS +BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. + +7. Termination + + a. This License and the rights granted hereunder will terminate + automatically upon any breach by You of the terms of this License. + Individuals or entities who have received Adaptations or Collections + from You under this License, however, will not have their licenses + terminated provided such individuals or entities remain in full + compliance with those licenses. Sections 1, 2, 5, 6, 7, and 8 will + survive any termination of this License. + b. Subject to the above terms and conditions, the license granted here is + perpetual (for the duration of the applicable copyright in the Work). + Notwithstanding the above, Licensor reserves the right to release the + Work under different license terms or to stop distributing the Work at + any time; provided, however that any such election will not serve to + withdraw this License (or any other license that has been, or is + required to be, granted under the terms of this License), and this + License will continue in full force and effect unless terminated as + stated above. + +8. Miscellaneous + + a. Each time You Distribute or Publicly Perform the Work or a Collection, + the Licensor offers to the recipient a license to the Work on the same + terms and conditions as the license granted to You under this License. + b. Each time You Distribute or Publicly Perform an Adaptation, Licensor + offers to the recipient a license to the original Work on the same + terms and conditions as the license granted to You under this License. + c. If any provision of this License is invalid or unenforceable under + applicable law, it shall not affect the validity or enforceability of + the remainder of the terms of this License, and without further action + by the parties to this agreement, such provision shall be reformed to + the minimum extent necessary to make such provision valid and + enforceable. + d. No term or provision of this License shall be deemed waived and no + breach consented to unless such waiver or consent shall be in writing + and signed by the party to be charged with such waiver or consent. + e. This License constitutes the entire agreement between the parties with + respect to the Work licensed here. There are no understandings, + agreements or representations with respect to the Work not specified + here. Licensor shall not be bound by any additional provisions that + may appear in any communication from You. This License may not be + modified without the mutual written agreement of the Licensor and You. + f. The rights granted under, and the subject matter referenced, in this + License were drafted utilizing the terminology of the Berne Convention + for the Protection of Literary and Artistic Works (as amended on + September 28, 1979), the Rome Convention of 1961, the WIPO Copyright + Treaty of 1996, the WIPO Performances and Phonograms Treaty of 1996 + and the Universal Copyright Convention (as revised on July 24, 1971). + These rights and subject matter take effect in the relevant + jurisdiction in which the License terms are sought to be enforced + according to the corresponding provisions of the implementation of + those treaty provisions in the applicable national law. If the + standard suite of rights granted under applicable copyright law + includes additional rights not granted under this License, such + additional rights are deemed to be included in the License; this + License is not intended to restrict the license of any rights under + applicable law. + + +Creative Commons Notice + + Creative Commons is not a party to this License, and makes no warranty + whatsoever in connection with the Work. Creative Commons will not be + liable to You or any party on any legal theory for any damages + whatsoever, including without limitation any general, special, + incidental or consequential damages arising in connection to this + license. Notwithstanding the foregoing two (2) sentences, if Creative + Commons has expressly identified itself as the Licensor hereunder, it + shall have all rights and obligations of Licensor. + + Except for the limited purpose of indicating to the public that the + Work is licensed under the CCPL, Creative Commons does not authorize + the use by either party of the trademark "Creative Commons" or any + related trademark or logo of Creative Commons without the prior + written consent of Creative Commons. Any permitted use will be in + compliance with Creative Commons' then-current trademark usage + guidelines, as may be published on its website or otherwise made + available upon request from time to time. For the avoidance of doubt, + this trademark restriction does not form part of the License. + + Creative Commons may be contacted at http://creativecommons.org/. diff --git a/mods/mesecons/README.md b/mods/mesecons/README.md new file mode 100644 index 0000000..5de72c7 --- /dev/null +++ b/mods/mesecons/README.md @@ -0,0 +1,78 @@ + ######################################################################## + ## __ __ _____ _____ _____ _____ _____ _ _ _____ ## + ## | \ / | | ___| | ___| | ___| | ___| | _ | | \ | | | ___| ## + ## | \/ | | |___ | |___ | |___ | | | | | | | \| | | |___ ## + ## | |\__/| | | ___| |___ | | ___| | | | | | | | | |___ | ## + ## | | | | | |___ ___| | | |___ | |___ | |_| | | |\ | ___| | ## + ## |_| |_| |_____| |_____| |_____| |_____| |_____| |_| \_| |_____| ## + ## ## + ######################################################################## + +MESECONS by Jeija and contributors + +Mezzee-what? +------------ +[Mesecons](http://mesecons.net/)! They're yellow, they're conductive, and they'll add a whole new dimension to Minetest's gameplay. + +Mesecons is a mod for [Minetest](http://minetest.net/) that implements a ton of items related to digital circuitry, such as wires, buttons, lights, and even programmable controllers. Among other things, there are also pistons, solar panels, pressure plates, and note blocks. + +Mesecons has a similar goal to Redstone in Minecraft, but works in its own way, with different rules and mechanics. + +OK, I want in. +-------------- +Go get it! + +[DOWNLOADS PAGE](http://mesecons.net/downloads.php) + +Now go ahead and install it like any other Minetest mod. Don't know how? Check out [the wonderful page about it](http://wiki.minetest.com/wiki/Mods) over at the Minetest Wiki. For your convenience, here's a quick summary: + +1. If Mesecons is still in a ZIP file, extract the folder inside to somewhere on the computer. +2. Make sure that when you open the folder, you can directly find `README.md` in the listing. If you just see another folder, move that folder up one level and delete the old one. +3. Open up the Minetest mods folder - usually `/mods/`. If you see the `minetest` or folder inside of that, that is your mod folder instead. +4. Copy the Mesecons folder into the mods folder. + +Don't like some parts of Mesecons? Open up the Mesecons folder and delete the subfolder containing the mod you don't want. If you didn't want movestones, for example, all you have to do is delete the `mesecons_movestones` folder and they will no longer be available. + +There are no dependencies - it will work right after installing! + +How do I use this thing? +------------------------ +How about a [quick overview video](https://www.youtube.com/watch?v=6kmeQj6iW5k)? + +Or maybe a [comprehensive reference](http://mesecons.net/items.php) is your style? + +An overview for the very newest of new beginners? How does [this one](http://uberi.mesecons.net/projects/MeseconsBasics/index.html) look? + +Want to get more into building? Why not check out the [Mesecons Laboratory](http://uberi.mesecons.net/), a website dedicated to advanced Mesecons builders? + +Want to contribute to Mesecons itself? Check out the [source code](https://github.com/Jeija/minetest-mod-mesecons)! + +Who wrote it anyways? +--------------------- +These awesome people made Mesecons possible! + +| Contributor | Contribution | +| --------------- | -------------------------------- | +| Jat15 | Various tweaks. | +| Jeija | **Main developer! Everything.** | +| Jordach | Noteblock sounds. | +| khonkhortistan | Code, recipes, textures. | +| Kotolegokot | Nodeboxes for items. | +| minerd247 | Textures. | +| Nore/Novatux | Code. | +| RealBadAngel | Fixes, improvements. | +| sfan5 | Code, recipes, textures. | +| suzenako | Piston sounds. | +| Uberi/Temperest | Code, textures, documentation. | +| VanessaE | Code, recipes, textures, design. | +| Whiskers75 | Logic gates implementation. | + +There are also a whole bunch of other people helping with everything from code to testing and feedback. Mesecons would also not be possible without their help! + +Alright, how can I use it? +-------------------------- +All textures in this project are licensed under the CC-BY-SA 3.0 (Creative Commons Attribution-ShareAlike 3.0 Generic). That means you can distribute and remix them as much as you want to, under the condition that you give credit to the authors and the project, and that if you remix and release them, they must be under the same or similar license to this one. + +All code in this project is licensed under the LGPL version 3 or later. That means you have unlimited freedom to distribute and modify the work however you see fit, provided that if you decide to distribute it or any modified versions of it, you must also use the same license. The LGPL also grants the additional freedom to write extensions for the software and distribute them without the extensions being subject to the terms of the LGPL, although the software itself retains its license. + +No warranty is provided, express or implied, for any part of the project. diff --git a/mods/mesecons/mesecons/VERSION b/mods/mesecons/mesecons/VERSION new file mode 100644 index 0000000..75b9e03 --- /dev/null +++ b/mods/mesecons/mesecons/VERSION @@ -0,0 +1 @@ +0.41 DEV diff --git a/mods/mesecons/mesecons/actionqueue.lua b/mods/mesecons/mesecons/actionqueue.lua new file mode 100644 index 0000000..cf74d47 --- /dev/null +++ b/mods/mesecons/mesecons/actionqueue.lua @@ -0,0 +1,119 @@ +mesecon.queue.actions={} -- contains all ActionQueue actions + +function mesecon.queue:add_function(name, func) + mesecon.queue.funcs[name] = func +end + +-- If add_action with twice the same overwritecheck and same position are called, the first one is overwritten +-- use overwritecheck nil to never overwrite, but just add the event to the queue +-- priority specifies the order actions are executed within one globalstep, highest by default +-- should be between 0 and 1 +function mesecon.queue:add_action(pos, func, params, time, overwritecheck, priority) + -- Create Action Table: + time = time or 0 -- time <= 0 --> execute, time > 0 --> wait time until execution + priority = priority or 1 + action = { pos=mesecon:tablecopy(pos), + func=func, + params=mesecon:tablecopy(params), + time=time, + owcheck=(overwritecheck and mesecon:tablecopy(overwritecheck)) or nil, + priority=priority} + + -- if not using the queue, (MESECONS_GLOBALSTEP off), just execute the function an we're done + if not MESECONS_GLOBALSTEP and action.time == 0 then + mesecon.queue:execute(action) + return + end + + local toremove = nil + -- Otherwise, add the action to the queue + if overwritecheck then -- check if old action has to be overwritten / removed: + for i, ac in ipairs(mesecon.queue.actions) do + if(mesecon:cmpPos(pos, ac.pos) + and mesecon:cmpAny(overwritecheck, ac.owcheck)) then + toremove = i + break + end + end + end + + if (toremove ~= nil) then + table.remove(mesecon.queue.actions, toremove) + end + + table.insert(mesecon.queue.actions, action) +end + +-- execute the stored functions on a globalstep +-- if however, the pos of a function is not loaded (get_node_or_nil == nil), do NOT execute the function +-- this makes sure that resuming mesecons circuits when restarting minetest works fine +-- However, even that does not work in some cases, that's why we delay the time the globalsteps +-- start to be execute by 5 seconds +local get_highest_priority = function (actions) + local highestp = 0, highesti + for i, ac in ipairs(actions) do + if ac.priority > highestp then + highestp = ac.priority + highesti = i + end + end + + return highesti +end + +local m_time = 0 +minetest.register_globalstep(function (dtime) + m_time = m_time + dtime + if (m_time < MESECONS_RESUMETIME) then return end -- don't even try if server has not been running for XY seconds + local actions = mesecon:tablecopy(mesecon.queue.actions) + local actions_now={} + + mesecon.queue.actions = {} + + -- sort actions in execute now (actions_now) and for later (mesecon.queue.actions) + for i, ac in ipairs(actions) do + if ac.time > 0 then + ac.time = ac.time - dtime -- executed later + table.insert(mesecon.queue.actions, ac) + else + table.insert(actions_now, ac) + end + end + + while(#actions_now > 0) do -- execute highest priorities first, until all are executed + local hp = get_highest_priority(actions_now) + mesecon.queue:execute(actions_now[hp]) + table.remove(actions_now, hp) + end +end) + +function mesecon.queue:execute(action) + mesecon.queue.funcs[action.func](action.pos, unpack(action.params)) +end + + +-- Store and read the ActionQueue to / from a file +-- so that upcoming actions are remembered when the game +-- is restarted + +local wpath = minetest.get_worldpath() +local function file2table(filename) + local f = io.open(filename, "r") + if f==nil then return {} end + local t = f:read("*all") + f:close() + if t=="" or t==nil then return {} end + return minetest.deserialize(t) +end + +local function table2file(filename, table) + local f = io.open(filename, "w") + f:write(minetest.serialize(table)) + f:close() +end + +mesecon.queue.actions = file2table(wpath.."/mesecon_actionqueue") + +minetest.register_on_shutdown(function() + mesecon.queue.actions = table2file(wpath.."/mesecon_actionqueue", mesecon.queue.actions) +end) diff --git a/mods/mesecons/mesecons/depends.txt b/mods/mesecons/mesecons/depends.txt new file mode 100644 index 0000000..4ad96d5 --- /dev/null +++ b/mods/mesecons/mesecons/depends.txt @@ -0,0 +1 @@ +default diff --git a/mods/mesecons/mesecons/init.lua b/mods/mesecons/mesecons/init.lua new file mode 100644 index 0000000..b5cf68b --- /dev/null +++ b/mods/mesecons/mesecons/init.lua @@ -0,0 +1,146 @@ +-- |\ /| ____ ____ ____ _____ ____ _____ +-- | \ / | | | | | | | |\ | | +-- | \/ | |___ ____ |___ | | | | \ | |____ +-- | | | | | | | | | \ | | +-- | | |___ ____| |___ |____ |____| | \| ____| +-- by Jeija, Uberi (Temperest), sfan5, VanessaE +-- +-- +-- +-- This mod adds mesecons[=minecraft redstone] and different receptors/effectors to minetest. +-- See the documentation on the forum for additional information, especially about crafting +-- +-- +-- For developer documentation see the Developers' section on mesecons.TK +-- +-- +-- +--Quick draft for the mesecons array in the node's definition +--mesecons = +--{ +-- receptor = +-- { +-- state = mesecon.state.on/off +-- rules = rules/get_rules +-- }, +-- effector = +-- { +-- action_on = function +-- action_off = function +-- action_change = function +-- rules = rules/get_rules +-- }, +-- conductor = +-- { +-- state = mesecon.state.on/off +-- offstate = opposite state (for state = on only) +-- onstate = opposite state (for state = off only) +-- rules = rules/get_rules +-- } +--} + + +-- PUBLIC VARIABLES +mesecon={} -- contains all functions and all global variables +mesecon.queue={} -- contains the ActionQueue +mesecon.queue.funcs={} -- contains all ActionQueue functions + +-- Settings +dofile(minetest.get_modpath("mesecons").."/settings.lua") + +-- Presets (eg default rules) +dofile(minetest.get_modpath("mesecons").."/presets.lua"); + + +-- Utilities like comparing positions, +-- adding positions and rules, +-- mostly things that make the source look cleaner +dofile(minetest.get_modpath("mesecons").."/util.lua"); + +-- The ActionQueue +-- Saves all the actions that have to be execute in the future +dofile(minetest.get_modpath("mesecons").."/actionqueue.lua"); + +-- Internal stuff +-- This is the most important file +-- it handles signal transmission and basically everything else +-- It is also responsible for managing the nodedef things, +-- like calling action_on/off/change +dofile(minetest.get_modpath("mesecons").."/internal.lua"); + +-- Deprecated stuff +-- To be removed in future releases +-- Currently there is nothing here +dofile(minetest.get_modpath("mesecons").."/legacy.lua"); + +-- API +-- these are the only functions you need to remember + +mesecon.queue:add_function("receptor_on", function (pos, rules) + rules = rules or mesecon.rules.default + + -- if area (any of the rule targets) is not loaded, keep trying and call this again later + if MESECONS_GLOBALSTEP then -- trying to enable resuming with globalstep disabled would cause an endless loop + for _, rule in ipairs(mesecon:flattenrules(rules)) do + local np = mesecon:addPosRule(pos, rule) + -- if area is not loaded, keep trying + if minetest.get_node_or_nil(np) == nil then + mesecon.queue:add_action(pos, "receptor_on", {rules}, nil, rules) + return + end + end + end + + -- execute action + for _, rule in ipairs(mesecon:flattenrules(rules)) do + local np = mesecon:addPosRule(pos, rule) + local rulenames = mesecon:rules_link_rule_all(pos, rule) + for _, rulename in ipairs(rulenames) do + mesecon:turnon(np, rulename) + end + end +end) + +function mesecon:receptor_on(pos, rules) + mesecon.queue:add_action(pos, "receptor_on", {rules}, nil, rules) +end + +mesecon.queue:add_function("receptor_off", function (pos, rules) + rules = rules or mesecon.rules.default + + -- if area (any of the rule targets) is not loaded, keep trying and call this again later + if MESECONS_GLOBALSTEP then + for _, rule in ipairs(mesecon:flattenrules(rules)) do + local np = mesecon:addPosRule(pos, rule) + if minetest.get_node_or_nil(np) == nil then + mesecon.queue:add_action(pos, "receptor_off", {rules}, nil, rules) + return + end + end + end + + for _, rule in ipairs(mesecon:flattenrules(rules)) do + local np = mesecon:addPosRule(pos, rule) + local rulenames = mesecon:rules_link_rule_all(pos, rule) + for _, rulename in ipairs(rulenames) do + if not mesecon:connected_to_receptor(np, mesecon:invertRule(rule)) then + mesecon:turnoff(np, rulename) + else + mesecon:changesignal(np, minetest.get_node(np), rulename, mesecon.state.off, 2) + end + end + end +end) + +function mesecon:receptor_off(pos, rules) + mesecon.queue:add_action(pos, "receptor_off", {rules}, nil, rules) +end + + +print("[OK] Mesecons") + +--The actual wires +dofile(minetest.get_modpath("mesecons").."/wires.lua"); + +--Services like turnoff receptor on dignode and so on +dofile(minetest.get_modpath("mesecons").."/services.lua"); diff --git a/mods/mesecons/mesecons/internal.lua b/mods/mesecons/mesecons/internal.lua new file mode 100644 index 0000000..3975b6a --- /dev/null +++ b/mods/mesecons/mesecons/internal.lua @@ -0,0 +1,684 @@ +-- Internal.lua - The core of mesecons +-- +-- For more practical developer resources see mesecons.tk +-- +-- Function overview +-- mesecon:get_effector(nodename) --> Returns the mesecons.effector -specifictation in the nodedef by the nodename +-- mesecon:get_receptor(nodename) --> Returns the mesecons.receptor -specifictation in the nodedef by the nodename +-- mesecon:get_conductor(nodename) --> Returns the mesecons.conductor-specifictation in the nodedef by the nodename +-- mesecon:get_any_inputrules (node) --> Returns the rules of a node if it is a conductor or an effector +-- mesecon:get_any_outputrules (node) --> Returns the rules of a node if it is a conductor or a receptor + +-- RECEPTORS +-- mesecon:is_receptor(nodename) --> Returns true if nodename is a receptor +-- mesecon:is_receptor_on(nodename) --> Returns true if nodename is an receptor with state = mesecon.state.on +-- mesecon:is_receptor_off(nodename) --> Returns true if nodename is an receptor with state = mesecon.state.off +-- mesecon:receptor_get_rules(node) --> Returns the rules of the receptor (mesecon.rules.default if none specified) + +-- EFFECTORS +-- mesecon:is_effector(nodename) --> Returns true if nodename is an effector +-- mesecon:is_effector_on(nodename) --> Returns true if nodename is an effector with nodedef.mesecons.effector.action_off +-- mesecon:is_effector_off(nodename) --> Returns true if nodename is an effector with nodedef.mesecons.effector.action_on +-- mesecon:effector_get_rules(node) --> Returns the input rules of the effector (mesecon.rules.default if none specified) + +-- SIGNALS +-- mesecon:activate(pos, node, recdepth) --> Activates the effector node at the specific pos (calls nodedef.mesecons.effector.action_on), higher recdepths are executed later +-- mesecon:deactivate(pos, node, recdepth) --> Deactivates the effector node at the specific pos (calls nodedef.mesecons.effector.action_off), " +-- mesecon:changesignal(pos, node, rulename, newstate) --> Changes the effector node at the specific pos (calls nodedef.mesecons.effector.action_change), " + +-- RULES +-- mesecon:add_rules(name, rules) | deprecated? --> Saves rules table by name +-- mesecon:get_rules(name, rules) | deprecated? --> Loads rules table with name + +-- CONDUCTORS +-- mesecon:is_conductor(nodename) --> Returns true if nodename is a conductor +-- mesecon:is_conductor_on(node) --> Returns true if node is a conductor with state = mesecon.state.on +-- mesecon:is_conductor_off(node) --> Returns true if node is a conductor with state = mesecon.state.off +-- mesecon:get_conductor_on(node_off) --> Returns the onstate nodename of the conductor +-- mesecon:get_conductor_off(node_on) --> Returns the offstate nodename of the conductor +-- mesecon:conductor_get_rules(node) --> Returns the input+output rules of a conductor (mesecon.rules.default if none specified) + +-- HIGH-LEVEL Internals +-- mesecon:is_power_on(pos) --> Returns true if pos emits power in any way +-- mesecon:is_power_off(pos) --> Returns true if pos does not emit power in any way +-- mesecon:turnon(pos, rulename) --> Returns true whatever there is at pos. Calls itself for connected nodes (if pos is a conductor) --> recursive, the rulename is the name of the input rule that caused calling turnon; Uses third parameter recdepth internally to determine how far away the current node is from the initial pos as it uses recursion +-- mesecon:turnoff(pos, rulename) --> Turns off whatever there is at pos. Calls itself for connected nodes (if pos is a conductor) --> recursive, the rulename is the name of the input rule that caused calling turnoff; Uses third parameter recdepth internally to determine how far away the current node is from the initial pos as it uses recursion +-- mesecon:connected_to_receptor(pos) --> Returns true if pos is connected to a receptor directly or via conductors; calls itself if pos is a conductor --> recursive +-- mesecon:rules_link(output, input, dug_outputrules) --> Returns true if outputposition + outputrules = inputposition and inputposition + inputrules = outputposition (if the two positions connect) +-- mesecon:rules_link_anydir(outp., inp., d_outpr.) --> Same as rules mesecon:rules_link but also returns true if output and input are swapped +-- mesecon:is_powered(pos) --> Returns true if pos is powered by a receptor or a conductor + +-- RULES ROTATION helpsers +-- mesecon:rotate_rules_right(rules) +-- mesecon:rotate_rules_left(rules) +-- mesecon:rotate_rules_up(rules) +-- mesecon:rotate_rules_down(rules) +-- These functions return rules that have been rotated in the specific direction + +-- General +function mesecon:get_effector(nodename) + if minetest.registered_nodes[nodename] + and minetest.registered_nodes[nodename].mesecons + and minetest.registered_nodes[nodename].mesecons.effector then + return minetest.registered_nodes[nodename].mesecons.effector + end +end + +function mesecon:get_receptor(nodename) + if minetest.registered_nodes[nodename] + and minetest.registered_nodes[nodename].mesecons + and minetest.registered_nodes[nodename].mesecons.receptor then + return minetest.registered_nodes[nodename].mesecons.receptor + end +end + +function mesecon:get_conductor(nodename) + if minetest.registered_nodes[nodename] + and minetest.registered_nodes[nodename].mesecons + and minetest.registered_nodes[nodename].mesecons.conductor then + return minetest.registered_nodes[nodename].mesecons.conductor + end +end + +function mesecon:get_any_outputrules (node) + if mesecon:is_conductor(node.name) then + return mesecon:conductor_get_rules(node) + elseif mesecon:is_receptor(node.name) then + return mesecon:receptor_get_rules(node) + end + return false +end + +function mesecon:get_any_inputrules (node) + if mesecon:is_conductor(node.name) then + return mesecon:conductor_get_rules(node) + elseif mesecon:is_effector(node.name) then + return mesecon:effector_get_rules(node) + end + return false +end + +-- Receptors +-- Nodes that can power mesecons +function mesecon:is_receptor_on(nodename) + local receptor = mesecon:get_receptor(nodename) + if receptor and receptor.state == mesecon.state.on then + return true + end + return false +end + +function mesecon:is_receptor_off(nodename) + local receptor = mesecon:get_receptor(nodename) + if receptor and receptor.state == mesecon.state.off then + return true + end + return false +end + +function mesecon:is_receptor(nodename) + local receptor = mesecon:get_receptor(nodename) + if receptor then + return true + end + return false +end + +function mesecon:receptor_get_rules(node) + local receptor = mesecon:get_receptor(node.name) + if receptor then + local rules = receptor.rules + if type(rules) == 'function' then + return rules(node) + elseif rules then + return rules + end + end + + return mesecon.rules.default +end + +-- Effectors +-- Nodes that can be powered by mesecons +function mesecon:is_effector_on(nodename) + local effector = mesecon:get_effector(nodename) + if effector and effector.action_off then + return true + end + return false +end + +function mesecon:is_effector_off(nodename) + local effector = mesecon:get_effector(nodename) + if effector and effector.action_on then + return true + end + return false +end + +function mesecon:is_effector(nodename) + local effector = mesecon:get_effector(nodename) + if effector then + return true + end + return false +end + +function mesecon:effector_get_rules(node) + local effector = mesecon:get_effector(node.name) + if effector then + local rules = effector.rules + if type(rules) == 'function' then + return rules(node) + elseif rules then + return rules + end + end + return mesecon.rules.default +end + +-- ####################### +-- # Signals (effectors) # +-- ####################### + +-- Activation: +mesecon.queue:add_function("activate", function (pos, rulename) + node = minetest.get_node(pos) + effector = mesecon:get_effector(node.name) + + if effector and effector.action_on then + effector.action_on(pos, node, rulename) + end +end) + +function mesecon:activate(pos, node, rulename, recdepth) + if rulename == nil then + for _,rule in ipairs(mesecon:effector_get_rules(node)) do + mesecon:activate(pos, node, rule, recdepth + 1) + end + return + end + mesecon.queue:add_action(pos, "activate", {rulename}, nil, rulename, 1 / recdepth) +end + + +-- Deactivation +mesecon.queue:add_function("deactivate", function (pos, rulename) + node = minetest.get_node(pos) + effector = mesecon:get_effector(node.name) + + if effector and effector.action_off then + effector.action_off(pos, node, rulename) + end +end) + +function mesecon:deactivate(pos, node, rulename, recdepth) + if rulename == nil then + for _,rule in ipairs(mesecon:effector_get_rules(node)) do + mesecon:deactivate(pos, node, rule, recdepth + 1) + end + return + end + mesecon.queue:add_action(pos, "deactivate", {rulename}, nil, rulename, 1 / recdepth) +end + + +-- Change +mesecon.queue:add_function("change", function (pos, rulename, changetype) + node = minetest.get_node(pos) + effector = mesecon:get_effector(node.name) + + if effector and effector.action_change then + effector.action_change(pos, node, rulename, changetype) + end +end) + +function mesecon:changesignal(pos, node, rulename, newstate, recdepth) + if rulename == nil then + for _,rule in ipairs(mesecon:effector_get_rules(node)) do + mesecon:changesignal(pos, node, rule, newstate, recdepth + 1) + end + return + end + + mesecon.queue:add_action(pos, "change", {rulename, newstate}, nil, rulename, 1 / recdepth) +end + +-- ######### +-- # Rules # "Database" for rulenames +-- ######### + +function mesecon:add_rules(name, rules) + mesecon.rules[name] = rules +end + +function mesecon:get_rules(name) + return mesecon.rules[name] +end + +-- Conductors + +function mesecon:is_conductor_on(node, rulename) + local conductor = mesecon:get_conductor(node.name) + if conductor then + if conductor.state then + return conductor.state == mesecon.state.on + end + if conductor.states then + if not rulename then + return mesecon:getstate(node.name, conductor.states) ~= 1 + end + local bit = mesecon:rule2bit(rulename, mesecon:conductor_get_rules(node)) + local binstate = mesecon:getbinstate(node.name, conductor.states) + return mesecon:get_bit(binstate, bit) + end + end + return false +end + +function mesecon:is_conductor_off(node, rulename) + local conductor = mesecon:get_conductor(node.name) + if conductor then + if conductor.state then + return conductor.state == mesecon.state.off + end + if conductor.states then + if not rulename then + return mesecon:getstate(node.name, conductor.states) == 1 + end + local bit = mesecon:rule2bit(rulename, mesecon:conductor_get_rules(node)) + local binstate = mesecon:getbinstate(node.name, conductor.states) + return not mesecon:get_bit(binstate, bit) + end + end + return false +end + +function mesecon:is_conductor(nodename) + local conductor = mesecon:get_conductor(nodename) + if conductor then + return true + end + return false +end + +function mesecon:get_conductor_on(node_off, rulename) + local conductor = mesecon:get_conductor(node_off.name) + if conductor then + if conductor.onstate then + return conductor.onstate + end + if conductor.states then + local bit = mesecon:rule2bit(rulename, mesecon:conductor_get_rules(node_off)) + local binstate = mesecon:getbinstate(node_off.name, conductor.states) + binstate = mesecon:set_bit(binstate, bit, "1") + return conductor.states[tonumber(binstate,2)+1] + end + end + return offstate +end + +function mesecon:get_conductor_off(node_on, rulename) + local conductor = mesecon:get_conductor(node_on.name) + if conductor then + if conductor.offstate then + return conductor.offstate + end + if conductor.states then + local bit = mesecon:rule2bit(rulename, mesecon:conductor_get_rules(node_on)) + local binstate = mesecon:getbinstate(node_on.name, conductor.states) + binstate = mesecon:set_bit(binstate, bit, "0") + return conductor.states[tonumber(binstate,2)+1] + end + end + return onstate +end + +function mesecon:conductor_get_rules(node) + local conductor = mesecon:get_conductor(node.name) + if conductor then + local rules = conductor.rules + if type(rules) == 'function' then + return rules(node) + elseif rules then + return rules + end + end + return mesecon.rules.default +end + +-- some more general high-level stuff + +function mesecon:is_power_on(pos, rulename) + local node = minetest.get_node(pos) + if mesecon:is_conductor_on(node, rulename) or mesecon:is_receptor_on(node.name) then + return true + end + return false +end + +function mesecon:is_power_off(pos, rulename) + local node = minetest.get_node(pos) + if mesecon:is_conductor_off(node, rulename) or mesecon:is_receptor_off(node.name) then + return true + end + return false +end + +function mesecon:turnon(pos, rulename, recdepth) + recdepth = recdepth or 2 + local node = minetest.get_node(pos) + + if(node.name == "ignore") then + -- try turning on later again + mesecon.queue:add_action( + pos, "turnon", {rulename, recdepth + 1}, nil, true) + end + + if mesecon:is_conductor_off(node, rulename) then + local rules = mesecon:conductor_get_rules(node) + + if not rulename then + for _, rule in ipairs(mesecon:flattenrules(rules)) do + if mesecon:connected_to_receptor(pos, rule) then + mesecon:turnon(pos, rule, recdepth + 1) + end + end + return + end + + minetest.swap_node(pos, {name = mesecon:get_conductor_on(node, rulename), param2 = node.param2}) + + for _, rule in ipairs(mesecon:rule2meta(rulename, rules)) do + local np = mesecon:addPosRule(pos, rule) + if(minetest.get_node(np).name == "ignore") then + -- try turning on later again + mesecon.queue:add_action( + np, "turnon", {rulename, recdepth + 1}, nil, true) + else + local rulenames = mesecon:rules_link_rule_all(pos, rule) + + for _, rulename in ipairs(rulenames) do + mesecon:turnon(np, rulename, recdepth + 1) + end + end + end + elseif mesecon:is_effector(node.name) then + mesecon:changesignal(pos, node, rulename, mesecon.state.on, recdepth) + if mesecon:is_effector_off(node.name) then + mesecon:activate(pos, node, rulename, recdepth) + end + end +end + +mesecon.queue:add_function("turnon", function (pos, rulename, recdepth) + if (MESECONS_GLOBALSTEP) then -- do not resume if we don't use globalstep - that would cause an endless loop + mesecon:turnon(pos, rulename, recdepth) + end +end) + +function mesecon:turnoff(pos, rulename, recdepth) + recdepth = recdepth or 2 + local node = minetest.get_node(pos) + + if(node.name == "ignore") then + -- try turning on later again + mesecon.queue:add_action( + pos, "turnoff", {rulename, recdepth + 1}, nil, true) + end + + if mesecon:is_conductor_on(node, rulename) then + local rules = mesecon:conductor_get_rules(node) + minetest.swap_node(pos, {name = mesecon:get_conductor_off(node, rulename), param2 = node.param2}) + + for _, rule in ipairs(mesecon:rule2meta(rulename, rules)) do + local np = mesecon:addPosRule(pos, rule) + if(minetest.get_node(np).name == "ignore") then + -- try turning on later again + mesecon.queue:add_action( + np, "turnoff", {rulename, recdepth + 1}, nil, true) + else + local rulenames = mesecon:rules_link_rule_all(pos, rule) + + for _, rulename in ipairs(rulenames) do + mesecon:turnoff(np, rulename, recdepth + 1) + end + end + end + elseif mesecon:is_effector(node.name) then + mesecon:changesignal(pos, node, rulename, mesecon.state.off, recdepth) + if mesecon:is_effector_on(node.name) + and not mesecon:is_powered(pos) then + mesecon:deactivate(pos, node, rulename, recdepth + 1) + end + end +end + +mesecon.queue:add_function("turnoff", function (pos, rulename, recdepth) + if (MESECONS_GLOBALSTEP) then -- do not resume if we don't use globalstep - that would cause an endless loop + mesecon:turnoff(pos, rulename, recdepth) + end +end) + + +function mesecon:connected_to_receptor(pos, rulename) + local node = minetest.get_node(pos) + + -- Check if conductors around are connected + local rules = mesecon:get_any_inputrules(node) + if not rules then return false end + + for _, rule in ipairs(mesecon:rule2meta(rulename, rules)) do + local np = mesecon:addPosRule(pos, rule) + if mesecon:rules_link(np, pos) then + if mesecon:find_receptor_on(np, {}, mesecon:invertRule(rule)) then + return true + end + end + end + + return false +end + +function mesecon:find_receptor_on(pos, checked, rulename) + local node = minetest.get_node(pos) + + if mesecon:is_receptor_on(node.name) then + -- add current position to checked + table.insert(checked, {x=pos.x, y=pos.y, z=pos.z}) + return true + end + + if mesecon:is_conductor(node.name) then + local rules = mesecon:conductor_get_rules(node) + local metaindex = mesecon:rule2metaindex(rulename, rules) + -- find out if node has already been checked (to prevent from endless loop) + for _, cp in ipairs(checked) do + if mesecon:cmpPos(cp, pos) and cp.metaindex == metaindex then + return false, checked + end + end + -- add current position to checked + table.insert(checked, {x=pos.x, y=pos.y, z=pos.z, metaindex = metaindex}) + for _, rule in ipairs(mesecon:rule2meta(rulename, rules)) do + local np = mesecon:addPosRule(pos, rule) + if mesecon:rules_link(np, pos) then + if mesecon:find_receptor_on(np, checked, mesecon:invertRule(rule)) then + return true + end + end + end + else + -- find out if node has already been checked (to prevent from endless loop) + for _, cp in ipairs(checked) do + if mesecon:cmpPos(cp, pos) then + return false, checked + end + end + table.insert(checked, {x=pos.x, y=pos.y, z=pos.z}) + end + + return false +end + +function mesecon:rules_link(output, input, dug_outputrules) --output/input are positions (outputrules optional, used if node has been dug), second return value: the name of the affected input rule + local outputnode = minetest.get_node(output) + local inputnode = minetest.get_node(input) + local outputrules = dug_outputrules or mesecon:get_any_outputrules (outputnode) + local inputrules = mesecon:get_any_inputrules (inputnode) + if not outputrules or not inputrules then + return + end + + for _, outputrule in ipairs(mesecon:flattenrules(outputrules)) do + -- Check if output sends to input + if mesecon:cmpPos(mesecon:addPosRule(output, outputrule), input) then + for _, inputrule in ipairs(mesecon:flattenrules(inputrules)) do + -- Check if input accepts from output + if mesecon:cmpPos(mesecon:addPosRule(input, inputrule), output) then + if inputrule.sx == nil or outputrule.sx == nil or mesecon:cmpSpecial(inputrule, outputrule) then + return true, inputrule + end + end + end + end + end + return false +end + +function mesecon:rules_link_rule_all(output, rule) --output/input are positions (outputrules optional, used if node has been dug), second return value: affected input rules + local input = mesecon:addPosRule(output, rule) + local inputnode = minetest.get_node(input) + local inputrules = mesecon:get_any_inputrules (inputnode) + if not inputrules then + return {} + end + local rules = {} + + for _, inputrule in ipairs(mesecon:flattenrules(inputrules)) do + -- Check if input accepts from output + if mesecon:cmpPos(mesecon:addPosRule(input, inputrule), output) then + if inputrule.sx == nil or rule.sx == nil or mesecon:cmpSpecial(inputrule, rule) then + rules[#rules+1] = inputrule + end + end + end + return rules +end + +function mesecon:rules_link_anydir(pos1, pos2) + return mesecon:rules_link(pos1, pos2) or mesecon:rules_link(pos2, pos1) +end + +function mesecon:is_powered(pos, rule) + local node = minetest.get_node(pos) + local rules = mesecon:get_any_inputrules(node) + if not rules then return false end + + if not rule then + for _, rule in ipairs(mesecon:flattenrules(rules)) do + local np = mesecon:addPosRule(pos, rule) + local nn = minetest.get_node(np) + + if (mesecon:is_conductor_on (nn, mesecon:invertRule(rule)) or mesecon:is_receptor_on (nn.name)) + and mesecon:rules_link(np, pos) then + return true + end + end + else + local np = mesecon:addPosRule(pos, rule) + local nn = minetest.get_node(np) + + if (mesecon:is_conductor_on (nn, mesecon:invertRule(rule)) or mesecon:is_receptor_on (nn.name)) + and mesecon:rules_link(np, pos) then + return true + end + end + + return false +end + +--Rules rotation Functions: +function mesecon:rotate_rules_right(rules) + local nr = {} + for i, rule in ipairs(rules) do + if rule.sx then + table.insert(nr, { + x = -rule.z, + y = rule.y, + z = rule.x, + sx = -rule.sz, + sy = rule.sy, + sz = rule.sx}) + else + table.insert(nr, { + x = -rule.z, + y = rule.y, + z = rule.x}) + end + end + return nr +end + +function mesecon:rotate_rules_left(rules) + local nr = {} + for i, rule in ipairs(rules) do + if rule.sx then + table.insert(nr, { + x = rule.z, + y = rule.y, + z = -rule.x, + sx = rule.sz, + sy = rule.sy, + sz = -rule.sx}) + else + table.insert(nr, { + x = rule.z, + y = rule.y, + z = -rule.x}) + end + end + return nr +end + +function mesecon:rotate_rules_down(rules) + local nr = {} + for i, rule in ipairs(rules) do + if rule.sx then + table.insert(nr, { + x = -rule.y, + y = rule.x, + z = rule.z, + sx = -rule.sy, + sy = rule.sx, + sz = rule.sz}) + else + table.insert(nr, { + x = -rule.y, + y = rule.x, + z = rule.z}) + end + end + return nr +end + +function mesecon:rotate_rules_up(rules) + local nr = {} + for i, rule in ipairs(rules) do + if rule.sx then + table.insert(nr, { + x = rule.y, + y = -rule.x, + z = rule.z, + sx = rule.sy, + sy = -rule.sx, + sz = rule.sz}) + else + table.insert(nr, { + x = rule.y, + y = -rule.x, + z = rule.z}) + end + end + return nr +end diff --git a/mods/mesecons/mesecons/legacy.lua b/mods/mesecons/mesecons/legacy.lua new file mode 100644 index 0000000..89c87ca --- /dev/null +++ b/mods/mesecons/mesecons/legacy.lua @@ -0,0 +1,32 @@ +minetest.swap_node = minetest.swap_node or function(pos, node) + local data = minetest.get_meta(pos):to_table() + minetest.add_node(pos, node) + minetest.get_meta(pos):from_table(data) +end + +local rules = {} +rules.a = {x = -1, y = 0, z = 0, name="A"} +rules.b = {x = 0, y = 0, z = 1, name="B"} +rules.c = {x = 1, y = 0, z = 0, name="C"} +rules.d = {x = 0, y = 0, z = -1, name="D"} + +function legacy_update_ports(pos) + local meta = minetest.get_meta(pos) + L = { + a = mesecon:is_power_on(mesecon:addPosRule(pos, rules.a), + mesecon:invertRule(rules.a)) and + mesecon:rules_link(mesecon:addPosRule(pos, rules.a), pos), + b = mesecon:is_power_on(mesecon:addPosRule(pos, rules.b), + mesecon:invertRule(rules.b)) and + mesecon:rules_link(mesecon:addPosRule(pos, rules.b), pos), + c = mesecon:is_power_on(mesecon:addPosRule(pos, rules.c), + mesecon:invertRule(rules.c)) and + mesecon:rules_link(mesecon:addPosRule(pos, rules.c), pos), + d = mesecon:is_power_on(mesecon:addPosRule(pos, rules.d), + mesecon:invertRule(rules.d)) and + mesecon:rules_link(mesecon:addPosRule(pos, rules.d), pos), + } + local n = (L.a and 1 or 0) + (L.b and 2 or 0) + (L.c and 4 or 0) + (L.d and 8 or 0) + 1 + meta:set_int("real_portstates", n) + return L +end diff --git a/mods/mesecons/mesecons/oldwires.lua b/mods/mesecons/mesecons/oldwires.lua new file mode 100644 index 0000000..9e54b1b --- /dev/null +++ b/mods/mesecons/mesecons/oldwires.lua @@ -0,0 +1,38 @@ +minetest.register_node("mesecons:mesecon_off", { + drawtype = "raillike", + tiles = {"jeija_mesecon_off.png", "jeija_mesecon_curved_off.png", "jeija_mesecon_t_junction_off.png", "jeija_mesecon_crossing_off.png"}, + inventory_image = "jeija_mesecon_off.png", + wield_image = "jeija_mesecon_off.png", + paramtype = "light", + is_ground_content = true, + walkable = false, + selection_box = { + type = "fixed", + fixed = {-0.5, -0.5, -0.5, 0.5, -0.45, 0.5}, + }, + groups = {dig_immediate=3, mesecon=1, mesecon_conductor_craftable=1}, + description="Mesecons", + mesecons = {conductor={ + state = mesecon.state.off, + onstate = "mesecons:mesecon_on" + }} +}) + +minetest.register_node("mesecons:mesecon_on", { + drawtype = "raillike", + tiles = {"jeija_mesecon_on.png", "jeija_mesecon_curved_on.png", "jeija_mesecon_t_junction_on.png", "jeija_mesecon_crossing_on.png"}, + paramtype = "light", + is_ground_content = true, + walkable = false, + selection_box = { + type = "fixed", + fixed = {-0.5, -0.5, -0.5, 0.5, -0.45, 0.5}, + }, + groups = {dig_immediate=3, not_in_creaive_inventory=1, mesecon=1}, + drop = "mesecons:mesecon_off 1", + light_source = LIGHT_MAX-11, + mesecons = {conductor={ + state = mesecon.state.on, + offstate = "mesecons:mesecon_off" + }} +}) diff --git a/mods/mesecons/mesecons/presets.lua b/mods/mesecons/mesecons/presets.lua new file mode 100644 index 0000000..6c8d3ea --- /dev/null +++ b/mods/mesecons/mesecons/presets.lua @@ -0,0 +1,45 @@ +mesecon.rules = {} +mesecon.state = {} + +mesecon.rules.default = +{{x=0, y=0, z=-1}, + {x=1, y=0, z=0}, + {x=-1, y=0, z=0}, + {x=0, y=0, z=1}, + {x=1, y=1, z=0}, + {x=1, y=-1, z=0}, + {x=-1, y=1, z=0}, + {x=-1, y=-1, z=0}, + {x=0, y=1, z=1}, + {x=0, y=-1, z=1}, + {x=0, y=1, z=-1}, + {x=0, y=-1, z=-1}} + +mesecon.rules.buttonlike = +{{x = 1, y = 0, z = 0}, + {x = 1, y = 1, z = 0}, + {x = 1, y =-1, z = 0}, + {x = 1, y =-1, z = 1}, + {x = 1, y =-1, z =-1}, + {x = 2, y = 0, z = 0}} + +mesecon.rules.flat = +{{x = 1, y = 0, z = 0}, + {x =-1, y = 0, z = 0}, + {x = 0, y = 0, z = 1}, + {x = 0, y = 0, z =-1}} + +mesecon.rules.buttonlike_get = function(node) + local rules = mesecon.rules.buttonlike + if node.param2 == 2 then + rules=mesecon:rotate_rules_left(rules) + elseif node.param2 == 3 then + rules=mesecon:rotate_rules_right(mesecon:rotate_rules_right(rules)) + elseif node.param2 == 0 then + rules=mesecon:rotate_rules_right(rules) + end + return rules +end + +mesecon.state.on = "on" +mesecon.state.off = "off" diff --git a/mods/mesecons/mesecons/services.lua b/mods/mesecons/mesecons/services.lua new file mode 100644 index 0000000..de0c8b6 --- /dev/null +++ b/mods/mesecons/mesecons/services.lua @@ -0,0 +1,38 @@ +mesecon.on_placenode = function (pos, node) + if mesecon:is_receptor_on(node.name) then + mesecon:receptor_on(pos, mesecon:receptor_get_rules(node)) + elseif mesecon:is_powered(pos) then + if mesecon:is_conductor(node.name) then + mesecon:turnon (pos) + --mesecon:receptor_on (pos, mesecon:conductor_get_rules(node)) + else + mesecon:changesignal(pos, node, mesecon:effector_get_rules(node), "on", 1) + mesecon:activate(pos, node, nil, 1) + end + elseif mesecon:is_conductor_on(node) then + minetest.swap_node(pos, {name = mesecon:get_conductor_off(node)}) + elseif mesecon:is_effector_on (node.name) then + mesecon:deactivate(pos, node, nil, 1) + end +end + +mesecon.on_dignode = function (pos, node) + if mesecon:is_conductor_on(node) then + mesecon:receptor_off(pos, mesecon:conductor_get_rules(node)) + elseif mesecon:is_receptor_on(node.name) then + mesecon:receptor_off(pos, mesecon:receptor_get_rules(node)) + end +end + +minetest.register_abm({ + nodenames = {"group:overheat"}, + interval = 1.0, + chance = 1, + action = function(pos, node, active_object_count, active_object_count_wider) + local meta = minetest.get_meta(pos) + meta:set_int("heat",0) + end, +}) + +minetest.register_on_placenode(mesecon.on_placenode) +minetest.register_on_dignode(mesecon.on_dignode) diff --git a/mods/mesecons/mesecons/settings.lua b/mods/mesecons/mesecons/settings.lua new file mode 100644 index 0000000..0ae9f5f --- /dev/null +++ b/mods/mesecons/mesecons/settings.lua @@ -0,0 +1,11 @@ +-- SETTINGS +BLINKY_PLANT_INTERVAL = 3 +NEW_STYLE_WIRES = true -- true = new nodebox wires, false = old raillike wires +PRESSURE_PLATE_INTERVAL = 0.1 +OBJECT_DETECTOR_RADIUS = 6 +PISTON_MAXIMUM_PUSH = 15 +MOVESTONE_MAXIMUM_PUSH = 100 +MESECONS_GLOBALSTEP = true -- true = receptors/effectors won't be updated + -- until next globalstep, decreases server load +MESECONS_RESUMETIME = 4 -- time to wait when starting the server before + -- processing the ActionQueue, don't set this too low diff --git a/mods/mesecons/mesecons/textures/jeija_fiber.png b/mods/mesecons/mesecons/textures/jeija_fiber.png new file mode 100644 index 0000000..e8c7b08 Binary files /dev/null and b/mods/mesecons/mesecons/textures/jeija_fiber.png differ diff --git a/mods/mesecons/mesecons/textures/jeija_glue.png b/mods/mesecons/mesecons/textures/jeija_glue.png new file mode 100644 index 0000000..2f351d1 Binary files /dev/null and b/mods/mesecons/mesecons/textures/jeija_glue.png differ diff --git a/mods/mesecons/mesecons/textures/jeija_mesecon_crossing_off.png b/mods/mesecons/mesecons/textures/jeija_mesecon_crossing_off.png new file mode 100644 index 0000000..4e3ca03 Binary files /dev/null and b/mods/mesecons/mesecons/textures/jeija_mesecon_crossing_off.png differ diff --git a/mods/mesecons/mesecons/textures/jeija_mesecon_crossing_on.png b/mods/mesecons/mesecons/textures/jeija_mesecon_crossing_on.png new file mode 100644 index 0000000..4518fa7 Binary files /dev/null and b/mods/mesecons/mesecons/textures/jeija_mesecon_crossing_on.png differ diff --git a/mods/mesecons/mesecons/textures/jeija_mesecon_curved_off.png b/mods/mesecons/mesecons/textures/jeija_mesecon_curved_off.png new file mode 100644 index 0000000..b34335f Binary files /dev/null and b/mods/mesecons/mesecons/textures/jeija_mesecon_curved_off.png differ diff --git a/mods/mesecons/mesecons/textures/jeija_mesecon_curved_on.png b/mods/mesecons/mesecons/textures/jeija_mesecon_curved_on.png new file mode 100644 index 0000000..fa882e4 Binary files /dev/null and b/mods/mesecons/mesecons/textures/jeija_mesecon_curved_on.png differ diff --git a/mods/mesecons/mesecons/textures/jeija_mesecon_inverter_off.png b/mods/mesecons/mesecons/textures/jeija_mesecon_inverter_off.png new file mode 100644 index 0000000..bd4de1b Binary files /dev/null and b/mods/mesecons/mesecons/textures/jeija_mesecon_inverter_off.png differ diff --git a/mods/mesecons/mesecons/textures/jeija_mesecon_inverter_on.png b/mods/mesecons/mesecons/textures/jeija_mesecon_inverter_on.png new file mode 100644 index 0000000..be41599 Binary files /dev/null and b/mods/mesecons/mesecons/textures/jeija_mesecon_inverter_on.png differ diff --git a/mods/mesecons/mesecons/textures/jeija_mesecon_off.png b/mods/mesecons/mesecons/textures/jeija_mesecon_off.png new file mode 100644 index 0000000..a3930cb Binary files /dev/null and b/mods/mesecons/mesecons/textures/jeija_mesecon_off.png differ diff --git a/mods/mesecons/mesecons/textures/jeija_mesecon_on.png b/mods/mesecons/mesecons/textures/jeija_mesecon_on.png new file mode 100644 index 0000000..d7ebeec Binary files /dev/null and b/mods/mesecons/mesecons/textures/jeija_mesecon_on.png differ diff --git a/mods/mesecons/mesecons/textures/jeija_mesecon_plug.png b/mods/mesecons/mesecons/textures/jeija_mesecon_plug.png new file mode 100644 index 0000000..8a4d281 Binary files /dev/null and b/mods/mesecons/mesecons/textures/jeija_mesecon_plug.png differ diff --git a/mods/mesecons/mesecons/textures/jeija_mesecon_socket_off.png b/mods/mesecons/mesecons/textures/jeija_mesecon_socket_off.png new file mode 100644 index 0000000..ad3f601 Binary files /dev/null and b/mods/mesecons/mesecons/textures/jeija_mesecon_socket_off.png differ diff --git a/mods/mesecons/mesecons/textures/jeija_mesecon_socket_on.png b/mods/mesecons/mesecons/textures/jeija_mesecon_socket_on.png new file mode 100644 index 0000000..6a9c480 Binary files /dev/null and b/mods/mesecons/mesecons/textures/jeija_mesecon_socket_on.png differ diff --git a/mods/mesecons/mesecons/textures/jeija_mesecon_switch_off.png b/mods/mesecons/mesecons/textures/jeija_mesecon_switch_off.png new file mode 100644 index 0000000..2a75ef3 Binary files /dev/null and b/mods/mesecons/mesecons/textures/jeija_mesecon_switch_off.png differ diff --git a/mods/mesecons/mesecons/textures/jeija_mesecon_switch_on.png b/mods/mesecons/mesecons/textures/jeija_mesecon_switch_on.png new file mode 100644 index 0000000..9df3450 Binary files /dev/null and b/mods/mesecons/mesecons/textures/jeija_mesecon_switch_on.png differ diff --git a/mods/mesecons/mesecons/textures/jeija_mesecon_switch_side.png b/mods/mesecons/mesecons/textures/jeija_mesecon_switch_side.png new file mode 100644 index 0000000..fb5db33 Binary files /dev/null and b/mods/mesecons/mesecons/textures/jeija_mesecon_switch_side.png differ diff --git a/mods/mesecons/mesecons/textures/jeija_mesecon_t_junction_off.png b/mods/mesecons/mesecons/textures/jeija_mesecon_t_junction_off.png new file mode 100644 index 0000000..7131846 Binary files /dev/null and b/mods/mesecons/mesecons/textures/jeija_mesecon_t_junction_off.png differ diff --git a/mods/mesecons/mesecons/textures/jeija_mesecon_t_junction_on.png b/mods/mesecons/mesecons/textures/jeija_mesecon_t_junction_on.png new file mode 100644 index 0000000..a6609ee Binary files /dev/null and b/mods/mesecons/mesecons/textures/jeija_mesecon_t_junction_on.png differ diff --git a/mods/mesecons/mesecons/textures/jeija_silicon.png b/mods/mesecons/mesecons/textures/jeija_silicon.png new file mode 100644 index 0000000..a7b0d52 Binary files /dev/null and b/mods/mesecons/mesecons/textures/jeija_silicon.png differ diff --git a/mods/mesecons/mesecons/textures/wires_bump_off.png b/mods/mesecons/mesecons/textures/wires_bump_off.png new file mode 100644 index 0000000..1e0bd74 Binary files /dev/null and b/mods/mesecons/mesecons/textures/wires_bump_off.png differ diff --git a/mods/mesecons/mesecons/textures/wires_bump_on.png b/mods/mesecons/mesecons/textures/wires_bump_on.png new file mode 100644 index 0000000..da9a661 Binary files /dev/null and b/mods/mesecons/mesecons/textures/wires_bump_on.png differ diff --git a/mods/mesecons/mesecons/textures/wires_full_off.png b/mods/mesecons/mesecons/textures/wires_full_off.png new file mode 100644 index 0000000..58164fa Binary files /dev/null and b/mods/mesecons/mesecons/textures/wires_full_off.png differ diff --git a/mods/mesecons/mesecons/textures/wires_full_on.png b/mods/mesecons/mesecons/textures/wires_full_on.png new file mode 100644 index 0000000..98a86c8 Binary files /dev/null and b/mods/mesecons/mesecons/textures/wires_full_on.png differ diff --git a/mods/mesecons/mesecons/textures/wires_inv.png b/mods/mesecons/mesecons/textures/wires_inv.png new file mode 100644 index 0000000..626f8d4 Binary files /dev/null and b/mods/mesecons/mesecons/textures/wires_inv.png differ diff --git a/mods/mesecons/mesecons/textures/wires_off.png b/mods/mesecons/mesecons/textures/wires_off.png new file mode 100644 index 0000000..757d339 Binary files /dev/null and b/mods/mesecons/mesecons/textures/wires_off.png differ diff --git a/mods/mesecons/mesecons/textures/wires_on.png b/mods/mesecons/mesecons/textures/wires_on.png new file mode 100644 index 0000000..57bb82d Binary files /dev/null and b/mods/mesecons/mesecons/textures/wires_on.png differ diff --git a/mods/mesecons/mesecons/textures/wires_vertical_off.png b/mods/mesecons/mesecons/textures/wires_vertical_off.png new file mode 100644 index 0000000..ba8d472 Binary files /dev/null and b/mods/mesecons/mesecons/textures/wires_vertical_off.png differ diff --git a/mods/mesecons/mesecons/textures/wires_vertical_on.png b/mods/mesecons/mesecons/textures/wires_vertical_on.png new file mode 100644 index 0000000..172fa65 Binary files /dev/null and b/mods/mesecons/mesecons/textures/wires_vertical_on.png differ diff --git a/mods/mesecons/mesecons/util.lua b/mods/mesecons/mesecons/util.lua new file mode 100644 index 0000000..91d435a --- /dev/null +++ b/mods/mesecons/mesecons/util.lua @@ -0,0 +1,195 @@ +function mesecon:move_node(pos, newpos) + local node = minetest.get_node(pos) + local meta = minetest.get_meta(pos):to_table() + minetest.remove_node(pos) + minetest.add_node(newpos, node) + minetest.get_meta(pos):from_table(meta) +end + +--[[ new functions: +mesecon:flattenrules(allrules) +mesecon:rule2bit(findrule, allrules) +mesecon:rule2meta(findrule, allrules) +dec2bin(n) +mesecon:getstate(nodename, states) +mesecon:getbinstate(nodename, states) +mesecon:get_bit(binary, bit) +mesecon:set_bit(binary, bit, value) +mesecon:invertRule(r) +--]] + +function mesecon:flattenrules(allrules) +--[[ + { + { + {xyz}, + {xyz}, + }, + { + {xyz}, + {xyz}, + }, + } +--]] + if allrules[1] and + allrules[1].x then + return allrules + end + + local shallowrules = {} + for _, metarule in ipairs( allrules) do + for _, rule in ipairs(metarule ) do + table.insert(shallowrules, rule) + end + end + return shallowrules +--[[ + { + {xyz}, + {xyz}, + {xyz}, + {xyz}, + } +--]] +end + +function mesecon:rule2bit(findrule, allrules) + --get the bit of the metarule the rule is in, or bit 1 + if (allrules[1] and + allrules[1].x) or + not findrule then + return 1 + end + for m,metarule in ipairs( allrules) do + for _, rule in ipairs(metarule ) do + if mesecon:cmpPos(findrule, rule) and mesecon:cmpSpecial(findrule, rule) then + return m + end + end + end +end + +function mesecon:rule2metaindex(findrule, allrules) + --get the metarule the rule is in, or allrules + + if allrules[1].x then + return nil + end + + if not(findrule) then + return mesecon:flattenrules(allrules) + end + + for m, metarule in ipairs( allrules) do + for _, rule in ipairs(metarule ) do + if mesecon:cmpPos(findrule, rule) and mesecon:cmpSpecial(findrule, rule) then + return m + end + end + end +end + +function mesecon:rule2meta(findrule, allrules) + local index = mesecon:rule2metaindex(findrule, allrules) + if index == nil then + if allrules[1].x then + return allrules + else + return {} + end + end + return allrules[index] +end + +if convert_base then + print( + "base2dec is tonumber(num,base1)\n".. + "commonlib needs dec2base(num,base2)\n".. + "and it needs base2base(num,base1,base2),\n".. + "which is dec2base(tonumber(num,base1),base2)" + ) +else + function dec2bin(n) + local x, y = math.floor(n / 2), n % 2 + if (n > 1) then + return dec2bin(x)..y + else + return ""..y + end + end +end + +function mesecon:getstate(nodename, states) + for state, name in ipairs(states) do + if name == nodename then + return state + end + end + error(nodename.." doesn't mention itself in "..dump(states)) +end + +function mesecon:getbinstate(nodename, states) + return dec2bin(mesecon:getstate(nodename, states)-1) +end + +function mesecon:get_bit(binary,bit) + bit = bit or 1 + local c = binary:len()-(bit-1) + return binary:sub(c,c) == "1" +end + +function mesecon:set_bit(binary,bit,value) + if value == "1" then + if not mesecon:get_bit(binary,bit) then + return dec2bin(tonumber(binary,2)+math.pow(2,bit-1)) + end + elseif value == "0" then + if mesecon:get_bit(binary,bit) then + return dec2bin(tonumber(binary,2)-math.pow(2,bit-1)) + end + end + return binary + +end + +function mesecon:invertRule(r) + return {x = -r.x, y = -r.y, z = -r.z, sx = r.sx, sy = r.sy, sz = r.sz} +end + +function mesecon:addPosRule(p, r) + return {x = p.x + r.x, y = p.y + r.y, z = p.z + r.z} +end + +function mesecon:cmpPos(p1, p2) + return (p1.x == p2.x and p1.y == p2.y and p1.z == p2.z) +end + +function mesecon:cmpSpecial(r1, r2) + return (r1.sx == r2.sx and r1.sy == r2.sy and r1.sz == r2.sz) +end + +function mesecon:tablecopy(table) -- deep table copy + if type(table) ~= "table" then return table end -- no need to copy + local newtable = {} + + for idx, item in pairs(table) do + if type(item) == "table" then + newtable[idx] = mesecon:tablecopy(item) + else + newtable[idx] = item + end + end + + return newtable +end + +function mesecon:cmpAny(t1, t2) + if type(t1) ~= type(t2) then return false end + if type(t1) ~= "table" and type(t2) ~= "table" then return t1 == t2 end + + for i, e in pairs(t1) do + if not mesecon:cmpAny(e, t2[i]) then return false end + end + + return true +end diff --git a/mods/mesecons/mesecons/wires.lua b/mods/mesecons/mesecons/wires.lua new file mode 100644 index 0000000..499c781 --- /dev/null +++ b/mods/mesecons/mesecons/wires.lua @@ -0,0 +1,280 @@ +-- naming scheme: wire:(xp)(zp)(xm)(zm)_on/off +-- The conditions in brackets define whether there is a mesecon at that place or not +-- 1 = there is one; 0 = there is none +-- y always means y+ + +box_center = {-1/16, -.5, -1/16, 1/16, -.5+1/16, 1/16} +box_bump1 = { -2/16, -8/16, -2/16, 2/16, -13/32, 2/16 } + +box_xp = {1/16, -.5, -1/16, 8/16, -.5+1/16, 1/16} +box_zp = {-1/16, -.5, 1/16, 1/16, -.5+1/16, 8/16} +box_xm = {-8/16, -.5, -1/16, -1/16, -.5+1/16, 1/16} +box_zm = {-1/16, -.5, -8/16, 1/16, -.5+1/16, -1/16} + +box_xpy = {.5-1/16, -.5+1/16, -1/16, .5, .4999+1/16, 1/16} +box_zpy = {-1/16, -.5+1/16, .5-1/16, 1/16, .4999+1/16, .5} +box_xmy = {-.5, -.5+1/16, -1/16, -.5+1/16, .4999+1/16, 1/16} +box_zmy = {-1/16, -.5+1/16, -.5, 1/16, .4999+1/16, -.5+1/16} + +-- Registering the wires + +for xp=0, 1 do +for zp=0, 1 do +for xm=0, 1 do +for zm=0, 1 do +for xpy=0, 1 do +for zpy=0, 1 do +for xmy=0, 1 do +for zmy=0, 1 do + if (xpy == 1 and xp == 0) or (zpy == 1 and zp == 0) + or (xmy == 1 and xm == 0) or (zmy == 1 and zm == 0) then break end + + local groups + local nodeid = tostring(xp )..tostring(zp )..tostring(xm )..tostring(zm ).. + tostring(xpy)..tostring(zpy)..tostring(xmy)..tostring(zmy) + + if nodeid == "00000000" then + groups = {dig_immediate = 3, mesecon_conductor_craftable=1} + wiredesc = "Mesecon" + else + groups = {dig_immediate = 3, not_in_creative_inventory = 1} + wiredesc = "Mesecons Wire (ID: "..nodeid..")" + end + + local nodebox = {} + local adjx = false + local adjz = false + if xp == 1 then table.insert(nodebox, box_xp) adjx = true end + if zp == 1 then table.insert(nodebox, box_zp) adjz = true end + if xm == 1 then table.insert(nodebox, box_xm) adjx = true end + if zm == 1 then table.insert(nodebox, box_zm) adjz = true end + if xpy == 1 then table.insert(nodebox, box_xpy) end + if zpy == 1 then table.insert(nodebox, box_zpy) end + if xmy == 1 then table.insert(nodebox, box_xmy) end + if zmy == 1 then table.insert(nodebox, box_zmy) end + + if adjx and adjz and (xp + zp + xm + zm > 2) then + table.insert(nodebox, box_bump1) + tiles_off = { + "wires_bump_off.png", + "wires_bump_off.png", + "wires_vertical_off.png", + "wires_vertical_off.png", + "wires_vertical_off.png", + "wires_vertical_off.png" + } + tiles_on = { + "wires_bump_on.png", + "wires_bump_on.png", + "wires_vertical_on.png", + "wires_vertical_on.png", + "wires_vertical_on.png", + "wires_vertical_on.png" + } + else + table.insert(nodebox, box_center) + tiles_off = { + "wires_off.png", + "wires_off.png", + "wires_vertical_off.png", + "wires_vertical_off.png", + "wires_vertical_off.png", + "wires_vertical_off.png" + } + tiles_on = { + "wires_on.png", + "wires_on.png", + "wires_vertical_on.png", + "wires_vertical_on.png", + "wires_vertical_on.png", + "wires_vertical_on.png" + } + end + + if nodeid == "00000000" then + nodebox = {-8/16, -.5, -1/16, 8/16, -.5+1/16, 1/16} + end + + minetest.register_node("mesecons:wire_"..nodeid.."_off", { + description = wiredesc, + drawtype = "nodebox", + tiles = tiles_off, +-- inventory_image = "wires_inv.png", +-- wield_image = "wires_inv.png", + inventory_image = "jeija_mesecon_off.png", + wield_image = "jeija_mesecon_off.png", + paramtype = "light", + paramtype2 = "facedir", + sunlight_propagates = true, + selection_box = { + type = "fixed", + fixed = {-.5, -.5, -.5, .5, -.5+4/16, .5} + }, + node_box = { + type = "fixed", + fixed = nodebox + }, + groups = groups, + walkable = false, + stack_max = 99, + drop = "mesecons:wire_00000000_off", + mesecons = {conductor={ + state = mesecon.state.off, + onstate = "mesecons:wire_"..nodeid.."_on" + }} + }) + + minetest.register_node("mesecons:wire_"..nodeid.."_on", { + description = "Wire ID:"..nodeid, + drawtype = "nodebox", + tiles = tiles_on, +-- inventory_image = "wires_inv.png", +-- wield_image = "wires_inv.png", + inventory_image = "jeija_mesecon_off.png", + wield_image = "jeija_mesecon_off.png", + paramtype = "light", + paramtype2 = "facedir", + sunlight_propagates = true, + selection_box = { + type = "fixed", + fixed = {-.5, -.5, -.5, .5, -.5+4/16, .5} + }, + node_box = { + type = "fixed", + fixed = nodebox + }, + groups = {dig_immediate = 3, mesecon = 2, not_in_creative_inventory = 1}, + walkable = false, + stack_max = 99, + drop = "mesecons:wire_00000000_off", + mesecons = {conductor={ + state = mesecon.state.on, + offstate = "mesecons:wire_"..nodeid.."_off" + }} + }) +end +end +end +end +end +end +end +end + +-- Updating the wires: +-- Place the right connection wire + +local update_on_place_dig = function (pos, node) + if minetest.registered_nodes[node.name] + and minetest.registered_nodes[node.name].mesecons then + mesecon:update_autoconnect(pos) + end +end + +minetest.register_on_placenode(update_on_place_dig) +minetest.register_on_dignode(update_on_place_dig) + +function mesecon:update_autoconnect(pos, secondcall, replace_old) + local xppos = {x=pos.x+1, y=pos.y, z=pos.z} + local zppos = {x=pos.x, y=pos.y, z=pos.z+1} + local xmpos = {x=pos.x-1, y=pos.y, z=pos.z} + local zmpos = {x=pos.x, y=pos.y, z=pos.z-1} + + local xpympos = {x=pos.x+1, y=pos.y-1, z=pos.z} + local zpympos = {x=pos.x, y=pos.y-1, z=pos.z+1} + local xmympos = {x=pos.x-1, y=pos.y-1, z=pos.z} + local zmympos = {x=pos.x, y=pos.y-1, z=pos.z-1} + + local xpypos = {x=pos.x+1, y=pos.y+1, z=pos.z} + local zpypos = {x=pos.x, y=pos.y+1, z=pos.z+1} + local xmypos = {x=pos.x-1, y=pos.y+1, z=pos.z} + local zmypos = {x=pos.x, y=pos.y+1, z=pos.z-1} + + if secondcall == nil then + mesecon:update_autoconnect(xppos, true) + mesecon:update_autoconnect(zppos, true) + mesecon:update_autoconnect(xmpos, true) + mesecon:update_autoconnect(zmpos, true) + + mesecon:update_autoconnect(xpypos, true) + mesecon:update_autoconnect(zpypos, true) + mesecon:update_autoconnect(xmypos, true) + mesecon:update_autoconnect(zmypos, true) + + mesecon:update_autoconnect(xpympos, true) + mesecon:update_autoconnect(zpympos, true) + mesecon:update_autoconnect(xmympos, true) + mesecon:update_autoconnect(zmympos, true) + end + + nodename = minetest.get_node(pos).name + if string.find(nodename, "mesecons:wire_") == nil and not replace_old then return nil end + + if mesecon:rules_link_anydir(pos, xppos) then xp = 1 else xp = 0 end + if mesecon:rules_link_anydir(pos, xmpos) then xm = 1 else xm = 0 end + if mesecon:rules_link_anydir(pos, zppos) then zp = 1 else zp = 0 end + if mesecon:rules_link_anydir(pos, zmpos) then zm = 1 else zm = 0 end + + if mesecon:rules_link_anydir(pos, xpympos) then xp = 1 end + if mesecon:rules_link_anydir(pos, xmympos) then xm = 1 end + if mesecon:rules_link_anydir(pos, zpympos) then zp = 1 end + if mesecon:rules_link_anydir(pos, zmympos) then zm = 1 end + + if mesecon:rules_link_anydir(pos, xpypos) then xpy = 1 else xpy = 0 end + if mesecon:rules_link_anydir(pos, zpypos) then zpy = 1 else zpy = 0 end + if mesecon:rules_link_anydir(pos, xmypos) then xmy = 1 else xmy = 0 end + if mesecon:rules_link_anydir(pos, zmypos) then zmy = 1 else zmy = 0 end + + if xpy == 1 then xp = 1 end + if zpy == 1 then zp = 1 end + if xmy == 1 then xm = 1 end + if zmy == 1 then zm = 1 end + + local nodeid = tostring(xp )..tostring(zp )..tostring(xm )..tostring(zm ).. + tostring(xpy)..tostring(zpy)..tostring(xmy)..tostring(zmy) + + + if string.find(nodename, "_off") ~= nil then + minetest.set_node(pos, {name = "mesecons:wire_"..nodeid.."_off"}) + else + minetest.set_node(pos, {name = "mesecons:wire_"..nodeid.."_on" }) + end +end + +if not minetest.registered_nodes["default:stone_with_mese"] then --before MESE update, use old recipes + minetest.register_craft({ + output = "mesecons:wire_00000000_off 18", + recipe = { + {"default:mese"}, + } + }) +else + + minetest.register_craft({ + type = "cooking", + output = "mesecons:wire_00000000_off 2", + recipe = "default:mese_crystal_fragment", + cooktime = 3, + }) + + minetest.register_craft({ + type = "cooking", + output = "mesecons:wire_00000000_off 18", + recipe = "default:mese_crystal", + cooktime = 15, + }) + + minetest.register_craft({ + type = "cooking", + output = "mesecons:wire_00000000_off 162", + recipe = "default:mese", + cooktime = 30, + }) + +end + +minetest.register_craft({ + type = "cooking", + output = "mesecons:wire_00000000_off 16", + recipe = "default:mese_crystal", +}) diff --git a/mods/mesecons/mesecons_alias/depends.txt b/mods/mesecons/mesecons_alias/depends.txt new file mode 100644 index 0000000..acaa924 --- /dev/null +++ b/mods/mesecons/mesecons_alias/depends.txt @@ -0,0 +1 @@ +mesecons diff --git a/mods/mesecons/mesecons_alias/init.lua b/mods/mesecons/mesecons_alias/init.lua new file mode 100644 index 0000000..395c368 --- /dev/null +++ b/mods/mesecons/mesecons_alias/init.lua @@ -0,0 +1,38 @@ +-- This file registers aliases for the /give /giveme commands. + +minetest.register_alias("mesecons:removestone", "mesecons_random:removestone") +minetest.register_alias("mesecons:power_plant", "mesecons_powerplant:power_plant") +minetest.register_alias("mesecons:powerplant", "mesecons_powerplant:power_plant") +minetest.register_alias("mesecons:meselamp", "mesecons_lamp:lamp_off") +minetest.register_alias("mesecons:mesecon", "mesecons:wire_00000000_off") +minetest.register_alias("mesecons:object_detector", "mesecons_detector:object_detector_off") +minetest.register_alias("mesecons:wireless_inverter", "mesecons_wireless:wireless_inverter_on") +minetest.register_alias("mesecons:wireless_receiver", "mesecons_wireless:wireless_receiver_off") +minetest.register_alias("mesecons:wireless_transmitter", "mesecons_wireless:wireless_transmitter_off") +minetest.register_alias("mesecons:switch", "mesecons_switch:mesecon_switch_off") +minetest.register_alias("mesecons:button", "mesecons_button:button_off") +minetest.register_alias("mesecons:piston", "mesecons_pistons:piston_normal_off") +minetest.register_alias("mesecons:blinky_plant", "mesecons_blinkyplant:blinky_plant_off") +minetest.register_alias("mesecons:mesecon_torch", "mesecons_torch:mesecon_torch_on") +minetest.register_alias("mesecons:torch", "mesecons_torch:mesecon_torch_on") +minetest.register_alias("mesecons:hydro_turbine", "mesecons_hydroturbine:hydro_turbine_off") +minetest.register_alias("mesecons:pressure_plate_stone", "mesecons_pressureplates:pressure_plate_stone_off") +minetest.register_alias("mesecons:pressure_plate_wood", "mesecons_pressureplates:pressure_plate_wood_off") +minetest.register_alias("mesecons:mesecon_socket", "mesecons_temperest:mesecon_socket_off") +minetest.register_alias("mesecons:mesecon_inverter", "mesecons_temperest:mesecon_inverter_on") +minetest.register_alias("mesecons:movestone", "mesecons_movestones:movestone") +minetest.register_alias("mesecons:sticky_movestone", "mesecons_movestones:sticky_movestone") +minetest.register_alias("mesecons:noteblock", "mesecons_noteblock:noteblock") +minetest.register_alias("mesecons:microcontroller", "mesecons_microcontroller:microcontroller0000") +minetest.register_alias("mesecons:delayer", "mesecons_delayer:delayer_off_1") +minetest.register_alias("mesecons:solarpanel", "mesecons_solarpanel:solar_panel_off") + + +--Backwards compatibility +minetest.register_alias("mesecons:mesecon_off", "mesecons:wire_00000000_off") +minetest.register_alias("mesecons_pistons:piston_sticky", "mesecons_pistons:piston_sticky_on") +minetest.register_alias("mesecons_pistons:piston_normal", "mesecons_pistons:piston_normal_on") +minetest.register_alias("mesecons_pistons:piston_up_normal", "mesecons_pistons:piston_up_normal_on") +minetest.register_alias("mesecons_pistons:piston_down_normal", "mesecons_pistons:piston_down_normal_on") +minetest.register_alias("mesecons_pistons:piston_up_sticky", "mesecons_pistons:piston_up_sticky_on") +minetest.register_alias("mesecons_pistons:piston_down_sticky", "mesecons_pistons:piston_down_sticky_on") diff --git a/mods/mesecons/mesecons_blinkyplant/depends.txt b/mods/mesecons/mesecons_blinkyplant/depends.txt new file mode 100644 index 0000000..acaa924 --- /dev/null +++ b/mods/mesecons/mesecons_blinkyplant/depends.txt @@ -0,0 +1 @@ +mesecons diff --git a/mods/mesecons/mesecons_blinkyplant/init.lua b/mods/mesecons/mesecons_blinkyplant/init.lua new file mode 100644 index 0000000..475d953 --- /dev/null +++ b/mods/mesecons/mesecons_blinkyplant/init.lua @@ -0,0 +1,102 @@ +-- The BLINKY_PLANT +minetest.register_node("mesecons_blinkyplant:blinky_plant", { + drawtype = "plantlike", + visual_scale = 1, + tiles = {"jeija_blinky_plant_off.png"}, + inventory_image = "jeija_blinky_plant_off.png", + walkable = false, + groups = {dig_immediate=3, not_in_creative_inventory=1}, + drop="mesecons_blinkyplant:blinky_plant_off 1", + description="Deactivated Blinky Plant", + sounds = default.node_sound_leaves_defaults(), + selection_box = { + type = "fixed", + fixed = {-0.3, -0.5, -0.3, 0.3, -0.5+0.7, 0.3}, + }, + mesecons = {receptor = { + state = mesecon.state.off + }}, + on_rightclick = function(pos, node, clicker) + minetest.set_node(pos, {name="mesecons_blinkyplant:blinky_plant_off"}) + end +}) + +minetest.register_node("mesecons_blinkyplant:blinky_plant_off", { + drawtype = "plantlike", + visual_scale = 1, + tiles = {"jeija_blinky_plant_off.png"}, + inventory_image = "jeija_blinky_plant_off.png", + paramtype = "light", + walkable = false, + groups = {dig_immediate=3, mesecon=2}, + description="Blinky Plant", + sounds = default.node_sound_leaves_defaults(), + selection_box = { + type = "fixed", + fixed = {-0.3, -0.5, -0.3, 0.3, -0.5+0.7, 0.3}, + }, + mesecons = {receptor = { + state = mesecon.state.off + }}, + on_rightclick = function(pos, node, clicker) + minetest.set_node(pos, {name="mesecons_blinkyplant:blinky_plant"}) + end +}) + +minetest.register_node("mesecons_blinkyplant:blinky_plant_on", { + drawtype = "plantlike", + visual_scale = 1, + tiles = {"jeija_blinky_plant_on.png"}, + inventory_image = "jeija_blinky_plant_off.png", + paramtype = "light", + walkable = false, + groups = {dig_immediate=3, not_in_creative_inventory=1, mesecon=2}, + drop="mesecons_blinkyplant:blinky_plant_off 1", + light_source = LIGHT_MAX-7, + description = "Blinky Plant", + sounds = default.node_sound_leaves_defaults(), + selection_box = { + type = "fixed", + fixed = {-0.3, -0.5, -0.3, 0.3, -0.5+0.7, 0.3}, + }, + mesecons = {receptor = { + state = mesecon.state.on + }}, + on_rightclick = function(pos, node, clicker) + minetest.set_node(pos, {name = "mesecons_blinkyplant:blinky_plant"}) + mesecon:receptor_off(pos) + end +}) + +minetest.register_craft({ + output = "mesecons_blinkyplant:blinky_plant_off 1", + recipe = { + {"","group:mesecon_conductor_craftable",""}, + {"","group:mesecon_conductor_craftable",""}, + {"default:sapling","default:sapling","default:sapling"}, + } +}) + +minetest.register_abm( + {nodenames = {"mesecons_blinkyplant:blinky_plant_off"}, + interval = BLINKY_PLANT_INTERVAL, + chance = 1, + action = function(pos, node, active_object_count, active_object_count_wider) + --minetest.remove_node(pos) + minetest.add_node(pos, {name="mesecons_blinkyplant:blinky_plant_on"}) + nodeupdate(pos) + mesecon:receptor_on(pos) + end, +}) + +minetest.register_abm({ + nodenames = {"mesecons_blinkyplant:blinky_plant_on"}, + interval = BLINKY_PLANT_INTERVAL, + chance = 1, + action = function(pos, node, active_object_count, active_object_count_wider) + --minetest.remove_node(pos) + minetest.add_node(pos, {name="mesecons_blinkyplant:blinky_plant_off"}) + nodeupdate(pos) + mesecon:receptor_off(pos) + end, +}) diff --git a/mods/mesecons/mesecons_blinkyplant/textures/jeija_blinky_plant_off.png b/mods/mesecons/mesecons_blinkyplant/textures/jeija_blinky_plant_off.png new file mode 100644 index 0000000..4f507da Binary files /dev/null and b/mods/mesecons/mesecons_blinkyplant/textures/jeija_blinky_plant_off.png differ diff --git a/mods/mesecons/mesecons_blinkyplant/textures/jeija_blinky_plant_on.png b/mods/mesecons/mesecons_blinkyplant/textures/jeija_blinky_plant_on.png new file mode 100644 index 0000000..f77a134 Binary files /dev/null and b/mods/mesecons/mesecons_blinkyplant/textures/jeija_blinky_plant_on.png differ diff --git a/mods/mesecons/mesecons_button/depends.txt b/mods/mesecons/mesecons_button/depends.txt new file mode 100644 index 0000000..19c798c --- /dev/null +++ b/mods/mesecons/mesecons_button/depends.txt @@ -0,0 +1,2 @@ +mesecons +mesecons_receiver diff --git a/mods/mesecons/mesecons_button/init.lua b/mods/mesecons/mesecons_button/init.lua new file mode 100644 index 0000000..f4a9198 --- /dev/null +++ b/mods/mesecons/mesecons_button/init.lua @@ -0,0 +1,98 @@ +-- WALL BUTTON +-- A button that when pressed emits power for 1 second +-- and then turns off again + +mesecon.button_turnoff = function (pos) + local node = minetest.get_node(pos) + if node.name=="mesecons_button:button_on" then --has not been dug + minetest.swap_node(pos, {name = "mesecons_button:button_off", param2=node.param2}) + minetest.sound_play("mesecons_button_pop", {pos=pos}) + local rules = mesecon.rules.buttonlike_get(node) + mesecon:receptor_off(pos, rules) + end +end + +minetest.register_node("mesecons_button:button_off", { + drawtype = "nodebox", + tiles = { + "jeija_wall_button_sides.png", + "jeija_wall_button_sides.png", + "jeija_wall_button_sides.png", + "jeija_wall_button_sides.png", + "jeija_wall_button_sides.png", + "jeija_wall_button_off.png" + }, + paramtype = "light", + paramtype2 = "facedir", + legacy_wallmounted = true, + walkable = false, + sunlight_propagates = true, + selection_box = { + type = "fixed", + fixed = { -6/16, -6/16, 5/16, 6/16, 6/16, 8/16 } + }, + node_box = { + type = "fixed", + fixed = { + { -6/16, -6/16, 6/16, 6/16, 6/16, 8/16 }, -- the thin plate behind the button + { -4/16, -2/16, 4/16, 4/16, 2/16, 6/16 } -- the button itself + } + }, + groups = {dig_immediate=2, mesecon_needs_receiver = 1}, + description = "Button", + on_punch = function (pos, node) + minetest.swap_node(pos, {name = "mesecons_button:button_on", param2=node.param2}) + mesecon:receptor_on(pos, mesecon.rules.buttonlike_get(node)) + minetest.sound_play("mesecons_button_push", {pos=pos}) + minetest.after(1, mesecon.button_turnoff, pos) + end, + sounds = default.node_sound_stone_defaults(), + mesecons = {receptor = { + state = mesecon.state.off, + rules = mesecon.rules.buttonlike_get + }} +}) + +minetest.register_node("mesecons_button:button_on", { + drawtype = "nodebox", + tiles = { + "jeija_wall_button_sides.png", + "jeija_wall_button_sides.png", + "jeija_wall_button_sides.png", + "jeija_wall_button_sides.png", + "jeija_wall_button_sides.png", + "jeija_wall_button_on.png" + }, + paramtype = "light", + paramtype2 = "facedir", + legacy_wallmounted = true, + walkable = false, + light_source = LIGHT_MAX-7, + sunlight_propagates = true, + selection_box = { + type = "fixed", + fixed = { -6/16, -6/16, 5/16, 6/16, 6/16, 8/16 } + }, + node_box = { + type = "fixed", + fixed = { + { -6/16, -6/16, 6/16, 6/16, 6/16, 8/16 }, + { -4/16, -2/16, 11/32, 4/16, 2/16, 6/16 } + } + }, + groups = {dig_immediate=2, not_in_creative_inventory=1, mesecon_needs_receiver = 1}, + drop = 'mesecons_button:button_off', + description = "Button", + sounds = default.node_sound_stone_defaults(), + mesecons = {receptor = { + state = mesecon.state.on, + rules = mesecon.rules.buttonlike_get + }} +}) + +minetest.register_craft({ + output = "mesecons_button:button_off 2", + recipe = { + {"group:mesecon_conductor_craftable","default:stone"}, + } +}) diff --git a/mods/mesecons/mesecons_button/sounds/mesecons_button_pop.ogg b/mods/mesecons/mesecons_button/sounds/mesecons_button_pop.ogg new file mode 100644 index 0000000..9d56bb8 Binary files /dev/null and b/mods/mesecons/mesecons_button/sounds/mesecons_button_pop.ogg differ diff --git a/mods/mesecons/mesecons_button/sounds/mesecons_button_push.ogg b/mods/mesecons/mesecons_button/sounds/mesecons_button_push.ogg new file mode 100644 index 0000000..53d45c1 Binary files /dev/null and b/mods/mesecons/mesecons_button/sounds/mesecons_button_push.ogg differ diff --git a/mods/mesecons/mesecons_button/textures/jeija_wall_button_off.png b/mods/mesecons/mesecons_button/textures/jeija_wall_button_off.png new file mode 100644 index 0000000..0e3ff25 Binary files /dev/null and b/mods/mesecons/mesecons_button/textures/jeija_wall_button_off.png differ diff --git a/mods/mesecons/mesecons_button/textures/jeija_wall_button_on.png b/mods/mesecons/mesecons_button/textures/jeija_wall_button_on.png new file mode 100644 index 0000000..1d97464 Binary files /dev/null and b/mods/mesecons/mesecons_button/textures/jeija_wall_button_on.png differ diff --git a/mods/mesecons/mesecons_button/textures/jeija_wall_button_sides.png b/mods/mesecons/mesecons_button/textures/jeija_wall_button_sides.png new file mode 100644 index 0000000..9b79b57 Binary files /dev/null and b/mods/mesecons/mesecons_button/textures/jeija_wall_button_sides.png differ diff --git a/mods/mesecons/mesecons_commandblock/init.lua b/mods/mesecons/mesecons_commandblock/init.lua new file mode 100644 index 0000000..2b03245 --- /dev/null +++ b/mods/mesecons/mesecons_commandblock/init.lua @@ -0,0 +1 @@ +-- removed until fixed diff --git a/mods/mesecons/mesecons_commandblock/textures/jeija_close_window.png b/mods/mesecons/mesecons_commandblock/textures/jeija_close_window.png new file mode 100644 index 0000000..5c27c6c Binary files /dev/null and b/mods/mesecons/mesecons_commandblock/textures/jeija_close_window.png differ diff --git a/mods/mesecons/mesecons_commandblock/textures/jeija_commandblock_off.png b/mods/mesecons/mesecons_commandblock/textures/jeija_commandblock_off.png new file mode 100644 index 0000000..c05b616 Binary files /dev/null and b/mods/mesecons/mesecons_commandblock/textures/jeija_commandblock_off.png differ diff --git a/mods/mesecons/mesecons_commandblock/textures/jeija_commandblock_on.png b/mods/mesecons/mesecons_commandblock/textures/jeija_commandblock_on.png new file mode 100644 index 0000000..7fc35b6 Binary files /dev/null and b/mods/mesecons/mesecons_commandblock/textures/jeija_commandblock_on.png differ diff --git a/mods/mesecons/mesecons_compatibility/depends.txt b/mods/mesecons/mesecons_compatibility/depends.txt new file mode 100644 index 0000000..ed2fcd8 --- /dev/null +++ b/mods/mesecons/mesecons_compatibility/depends.txt @@ -0,0 +1,2 @@ +mesecons +doors diff --git a/mods/mesecons/mesecons_compatibility/init.lua b/mods/mesecons/mesecons_compatibility/init.lua new file mode 100644 index 0000000..5bdce27 --- /dev/null +++ b/mods/mesecons/mesecons_compatibility/init.lua @@ -0,0 +1,167 @@ +doors = {} + +-- Registers a door - REDEFINITION ONLY | DOORS MOD MUST HAVE BEEN LOADED BEFORE +-- name: The name of the door +-- def: a table with the folowing fields: +-- description +-- inventory_image +-- groups +-- tiles_bottom: the tiles of the bottom part of the door {front, side} +-- tiles_top: the tiles of the bottom part of the door {front, side} +-- If the following fields are not defined the default values are used +-- node_box_bottom +-- node_box_top +-- selection_box_bottom +-- selection_box_top +-- only_placer_can_open: if true only the player who placed the door can +-- open it + +function doors:register_door(name, def) + def.groups.not_in_creative_inventory = 1 + + local box = {{-0.5, -0.5, -0.5, 0.5, 0.5, -0.5+1.5/16}} + + if not def.node_box_bottom then + def.node_box_bottom = box + end + if not def.node_box_top then + def.node_box_top = box + end + if not def.selection_box_bottom then + def.selection_box_bottom= box + end + if not def.selection_box_top then + def.selection_box_top = box + end + + local tt = def.tiles_top + local tb = def.tiles_bottom + + local function after_dig_node(pos, name) + if minetest.get_node(pos).name == name then + minetest.remove_node(pos) + end + end + + local function on_rightclick(pos, dir, check_name, replace, replace_dir, params) + pos.y = pos.y+dir + if not minetest.get_node(pos).name == check_name then + return + end + local p2 = minetest.get_node(pos).param2 + p2 = params[p2+1] + + local meta = minetest.get_meta(pos):to_table() + minetest.set_node(pos, {name=replace_dir, param2=p2}) + minetest.get_meta(pos):from_table(meta) + + pos.y = pos.y-dir + meta = minetest.get_meta(pos):to_table() + minetest.set_node(pos, {name=replace, param2=p2}) + minetest.get_meta(pos):from_table(meta) + end + + local function on_mesecons_signal_open (pos, node) + on_rightclick(pos, 1, name.."_t_1", name.."_b_2", name.."_t_2", {1,2,3,0}) + end + + local function on_mesecons_signal_close (pos, node) + on_rightclick(pos, 1, name.."_t_2", name.."_b_1", name.."_t_1", {3,0,1,2}) + end + + local function check_player_priv(pos, player) + if not def.only_placer_can_open then + return true + end + local meta = minetest.get_meta(pos) + local pn = player:get_player_name() + return meta:get_string("doors_owner") == pn + end + + minetest.register_node(":"..name.."_b_1", { + tiles = {tb[2], tb[2], tb[2], tb[2], tb[1], tb[1].."^[transformfx"}, + paramtype = "light", + paramtype2 = "facedir", + drop = name, + drawtype = "nodebox", + node_box = { + type = "fixed", + fixed = def.node_box_bottom + }, + selection_box = { + type = "fixed", + fixed = def.selection_box_bottom + }, + groups = def.groups, + + after_dig_node = function(pos, oldnode, oldmetadata, digger) + pos.y = pos.y+1 + after_dig_node(pos, name.."_t_1") + end, + + on_rightclick = function(pos, node, puncher) + if check_player_priv(pos, puncher) then + on_rightclick(pos, 1, name.."_t_1", name.."_b_2", name.."_t_2", {1,2,3,0}) + end + end, + + mesecons = {effector = { + action_on = on_mesecons_signal_open + }}, + + can_dig = check_player_priv, + }) + + minetest.register_node(":"..name.."_b_2", { + tiles = {tb[2], tb[2], tb[2], tb[2], tb[1].."^[transformfx", tb[1]}, + paramtype = "light", + paramtype2 = "facedir", + drop = name, + drawtype = "nodebox", + node_box = { + type = "fixed", + fixed = def.node_box_bottom + }, + selection_box = { + type = "fixed", + fixed = def.selection_box_bottom + }, + groups = def.groups, + + after_dig_node = function(pos, oldnode, oldmetadata, digger) + pos.y = pos.y+1 + after_dig_node(pos, name.."_t_2") + end, + + on_rightclick = function(pos, node, puncher) + if check_player_priv(pos, puncher) then + on_rightclick(pos, 1, name.."_t_2", name.."_b_1", name.."_t_1", {3,0,1,2}) + end + end, + + mesecons = {effector = { + action_off = on_mesecons_signal_close + }}, + + can_dig = check_player_priv, + }) +end + +doors:register_door("doors:door_wood", { + description = "Wooden Door", + inventory_image = "door_wood.png", + groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=2,door=1}, + tiles_bottom = {"door_wood_b.png", "door_brown.png"}, + tiles_top = {"door_wood_a.png", "door_brown.png"}, + sounds = default.node_sound_wood_defaults(), +}) + +doors:register_door("doors:door_steel", { + description = "Steel Door", + inventory_image = "door_steel.png", + groups = {snappy=1,bendy=2,cracky=1,melty=2,level=2,door=1}, + tiles_bottom = {"door_steel_b.png", "door_grey.png"}, + tiles_top = {"door_steel_a.png", "door_grey.png"}, + only_placer_can_open = true, + sounds = default.node_sound_stone_defaults(), +}) diff --git a/mods/mesecons/mesecons_delayer/depends.txt b/mods/mesecons/mesecons_delayer/depends.txt new file mode 100644 index 0000000..acaa924 --- /dev/null +++ b/mods/mesecons/mesecons_delayer/depends.txt @@ -0,0 +1 @@ +mesecons diff --git a/mods/mesecons/mesecons_delayer/init.lua b/mods/mesecons/mesecons_delayer/init.lua new file mode 100644 index 0000000..4ec0ebc --- /dev/null +++ b/mods/mesecons/mesecons_delayer/init.lua @@ -0,0 +1,179 @@ +-- Function that get the input/output rules of the delayer +local delayer_get_output_rules = function(node) + local rules = {{x = 0, y = 0, z = 1}} + for i = 0, node.param2 do + rules = mesecon:rotate_rules_left(rules) + end + return rules +end + +local delayer_get_input_rules = function(node) + local rules = {{x = 0, y = 0, z = -1}} + for i = 0, node.param2 do + rules = mesecon:rotate_rules_left(rules) + end + return rules +end + +-- Functions that are called after the delay time + +local delayer_activate = function(pos, node) + local def = minetest.registered_nodes[node.name] + local time = def.delayer_time + minetest.swap_node(pos, {name = def.delayer_onstate, param2=node.param2}) + mesecon.queue:add_action(pos, "receptor_on", {rules=delayer_get_output_rules(node)}, time, nil) +end + +local delayer_deactivate = function(pos, node) + local def = minetest.registered_nodes[node.name] + local time = def.delayer_time + minetest.swap_node(pos, {name = def.delayer_offstate, param2=node.param2}) + mesecon.queue:add_action(pos, "receptor_off", {rules=delayer_get_output_rules(node)}, time, nil) +end + +-- Register the 2 (states) x 4 (delay times) delayers + +for i = 1, 4 do +local groups = {} +if i == 1 then + groups = {bendy=2,snappy=1,dig_immediate=2} +else + groups = {bendy=2,snappy=1,dig_immediate=2, not_in_creative_inventory=1} +end + +local delaytime +if i == 1 then delaytime = 0.1 +elseif i == 2 then delaytime = 0.3 +elseif i == 3 then delaytime = 0.5 +elseif i == 4 then delaytime = 1.0 end + +boxes = {{ -6/16, -8/16, -6/16, 6/16, -7/16, 6/16 }, -- the main slab + + { -2/16, -7/16, -4/16, 2/16, -26/64, -3/16 }, -- the jeweled "on" indicator + { -3/16, -7/16, -3/16, 3/16, -26/64, -2/16 }, + { -4/16, -7/16, -2/16, 4/16, -26/64, 2/16 }, + { -3/16, -7/16, 2/16, 3/16, -26/64, 3/16 }, + { -2/16, -7/16, 3/16, 2/16, -26/64, 4/16 }, + + { -6/16, -7/16, -6/16, -4/16, -27/64, -4/16 }, -- the timer indicator + { -8/16, -8/16, -1/16, -6/16, -7/16, 1/16 }, -- the two wire stubs + { 6/16, -8/16, -1/16, 8/16, -7/16, 1/16 }} + +minetest.register_node("mesecons_delayer:delayer_off_"..tostring(i), { + description = "Delayer", + drawtype = "nodebox", + tiles = { + "mesecons_delayer_off_"..tostring(i)..".png", + "mesecons_delayer_bottom.png", + "mesecons_delayer_ends_off.png", + "mesecons_delayer_ends_off.png", + "mesecons_delayer_sides_off.png", + "mesecons_delayer_sides_off.png" + }, + inventory_image = "mesecons_delayer_off_1.png", + wield_image = "mesecons_delayer_off_1.png", + walkable = true, + selection_box = { + type = "fixed", + fixed = { -8/16, -8/16, -8/16, 8/16, -6/16, 8/16 }, + }, + node_box = { + type = "fixed", + fixed = boxes + }, + groups = groups, + paramtype = "light", + paramtype2 = "facedir", + sunlight_propagates = true, + is_ground_content = true, + drop = 'mesecons_delayer:delayer_off_1', + on_punch = function (pos, node) + if node.name=="mesecons_delayer:delayer_off_1" then + minetest.swap_node(pos, {name = "mesecons_delayer:delayer_off_2", param2=node.param2}) + elseif node.name=="mesecons_delayer:delayer_off_2" then + minetest.swap_node(pos, {name = "mesecons_delayer:delayer_off_3", param2=node.param2}) + elseif node.name=="mesecons_delayer:delayer_off_3" then + minetest.swap_node(pos, {name = "mesecons_delayer:delayer_off_4", param2=node.param2}) + elseif node.name=="mesecons_delayer:delayer_off_4" then + minetest.swap_node(pos, {name = "mesecons_delayer:delayer_off_1", param2=node.param2}) + end + end, + delayer_time = delaytime, + delayer_onstate = "mesecons_delayer:delayer_on_"..tostring(i), + sounds = default.node_sound_stone_defaults(), + mesecons = { + receptor = + { + state = mesecon.state.off, + rules = delayer_get_output_rules + }, + effector = + { + rules = delayer_get_input_rules, + action_on = delayer_activate + } + } +}) + + +minetest.register_node("mesecons_delayer:delayer_on_"..tostring(i), { + description = "You hacker you", + drawtype = "nodebox", + tiles = { + "mesecons_delayer_on_"..tostring(i)..".png", + "mesecons_delayer_bottom.png", + "mesecons_delayer_ends_on.png", + "mesecons_delayer_ends_on.png", + "mesecons_delayer_sides_on.png", + "mesecons_delayer_sides_on.png" + }, + walkable = true, + selection_box = { + type = "fixed", + fixed = { -8/16, -8/16, -8/16, 8/16, -6/16, 8/16 }, + }, + node_box = { + type = "fixed", + fixed = boxes + }, + groups = {bendy = 2, snappy = 1, dig_immediate = 2, not_in_creative_inventory = 1}, + paramtype = "light", + paramtype2 = "facedir", + sunlight_propagates = true, + is_ground_content = true, + drop = 'mesecons_delayer:delayer_off_1', + on_punch = function (pos, node) + if node.name=="mesecons_delayer:delayer_on_1" then + minetest.swap_node(pos, {name = "mesecons_delayer:delayer_on_2", param2=node.param2}) + elseif node.name=="mesecons_delayer:delayer_on_2" then + minetest.swap_node(pos, {name = "mesecons_delayer:delayer_on_3", param2=node.param2}) + elseif node.name=="mesecons_delayer:delayer_on_3" then + minetest.swap_node(pos, {name = "mesecons_delayer:delayer_on_4", param2=node.param2}) + elseif node.name=="mesecons_delayer:delayer_on_4" then + minetest.swap_node(pos, {name = "mesecons_delayer:delayer_on_1", param2=node.param2}) + end + end, + delayer_time = delaytime, + delayer_offstate = "mesecons_delayer:delayer_off_"..tostring(i), + mesecons = { + receptor = + { + state = mesecon.state.on, + rules = delayer_get_output_rules + }, + effector = + { + rules = delayer_get_input_rules, + action_off = delayer_deactivate + } + } +}) +end + +minetest.register_craft({ + output = "mesecons_delayer:delayer_off_1", + recipe = { + {"mesecons_torch:mesecon_torch_on", "group:mesecon_conductor_craftable", "mesecons_torch:mesecon_torch_on"}, + {"default:cobble","default:cobble", "default:cobble"}, + } +}) diff --git a/mods/mesecons/mesecons_delayer/textures/mesecons_delayer_bottom.png b/mods/mesecons/mesecons_delayer/textures/mesecons_delayer_bottom.png new file mode 100644 index 0000000..2e49d31 Binary files /dev/null and b/mods/mesecons/mesecons_delayer/textures/mesecons_delayer_bottom.png differ diff --git a/mods/mesecons/mesecons_delayer/textures/mesecons_delayer_ends_off.png b/mods/mesecons/mesecons_delayer/textures/mesecons_delayer_ends_off.png new file mode 100644 index 0000000..0242deb Binary files /dev/null and b/mods/mesecons/mesecons_delayer/textures/mesecons_delayer_ends_off.png differ diff --git a/mods/mesecons/mesecons_delayer/textures/mesecons_delayer_ends_on.png b/mods/mesecons/mesecons_delayer/textures/mesecons_delayer_ends_on.png new file mode 100644 index 0000000..19ae0cb Binary files /dev/null and b/mods/mesecons/mesecons_delayer/textures/mesecons_delayer_ends_on.png differ diff --git a/mods/mesecons/mesecons_delayer/textures/mesecons_delayer_off_1.png b/mods/mesecons/mesecons_delayer/textures/mesecons_delayer_off_1.png new file mode 100644 index 0000000..7372b37 Binary files /dev/null and b/mods/mesecons/mesecons_delayer/textures/mesecons_delayer_off_1.png differ diff --git a/mods/mesecons/mesecons_delayer/textures/mesecons_delayer_off_2.png b/mods/mesecons/mesecons_delayer/textures/mesecons_delayer_off_2.png new file mode 100644 index 0000000..e34f0ac Binary files /dev/null and b/mods/mesecons/mesecons_delayer/textures/mesecons_delayer_off_2.png differ diff --git a/mods/mesecons/mesecons_delayer/textures/mesecons_delayer_off_3.png b/mods/mesecons/mesecons_delayer/textures/mesecons_delayer_off_3.png new file mode 100644 index 0000000..091adbc Binary files /dev/null and b/mods/mesecons/mesecons_delayer/textures/mesecons_delayer_off_3.png differ diff --git a/mods/mesecons/mesecons_delayer/textures/mesecons_delayer_off_4.png b/mods/mesecons/mesecons_delayer/textures/mesecons_delayer_off_4.png new file mode 100644 index 0000000..7ecc9b6 Binary files /dev/null and b/mods/mesecons/mesecons_delayer/textures/mesecons_delayer_off_4.png differ diff --git a/mods/mesecons/mesecons_delayer/textures/mesecons_delayer_on_1.png b/mods/mesecons/mesecons_delayer/textures/mesecons_delayer_on_1.png new file mode 100644 index 0000000..61f52f2 Binary files /dev/null and b/mods/mesecons/mesecons_delayer/textures/mesecons_delayer_on_1.png differ diff --git a/mods/mesecons/mesecons_delayer/textures/mesecons_delayer_on_2.png b/mods/mesecons/mesecons_delayer/textures/mesecons_delayer_on_2.png new file mode 100644 index 0000000..7bd363f Binary files /dev/null and b/mods/mesecons/mesecons_delayer/textures/mesecons_delayer_on_2.png differ diff --git a/mods/mesecons/mesecons_delayer/textures/mesecons_delayer_on_3.png b/mods/mesecons/mesecons_delayer/textures/mesecons_delayer_on_3.png new file mode 100644 index 0000000..b93f725 Binary files /dev/null and b/mods/mesecons/mesecons_delayer/textures/mesecons_delayer_on_3.png differ diff --git a/mods/mesecons/mesecons_delayer/textures/mesecons_delayer_on_4.png b/mods/mesecons/mesecons_delayer/textures/mesecons_delayer_on_4.png new file mode 100644 index 0000000..ca90a1e Binary files /dev/null and b/mods/mesecons/mesecons_delayer/textures/mesecons_delayer_on_4.png differ diff --git a/mods/mesecons/mesecons_delayer/textures/mesecons_delayer_sides_off.png b/mods/mesecons/mesecons_delayer/textures/mesecons_delayer_sides_off.png new file mode 100644 index 0000000..79f3d59 Binary files /dev/null and b/mods/mesecons/mesecons_delayer/textures/mesecons_delayer_sides_off.png differ diff --git a/mods/mesecons/mesecons_delayer/textures/mesecons_delayer_sides_on.png b/mods/mesecons/mesecons_delayer/textures/mesecons_delayer_sides_on.png new file mode 100644 index 0000000..1c8edaa Binary files /dev/null and b/mods/mesecons/mesecons_delayer/textures/mesecons_delayer_sides_on.png differ diff --git a/mods/mesecons/mesecons_detector/depends.txt b/mods/mesecons/mesecons_detector/depends.txt new file mode 100644 index 0000000..bc7b062 --- /dev/null +++ b/mods/mesecons/mesecons_detector/depends.txt @@ -0,0 +1,2 @@ +mesecons +mesecons_materials diff --git a/mods/mesecons/mesecons_detector/init.lua b/mods/mesecons/mesecons_detector/init.lua new file mode 100644 index 0000000..79aa1f9 --- /dev/null +++ b/mods/mesecons/mesecons_detector/init.lua @@ -0,0 +1,111 @@ +-- Object detector +-- Detects players in a certain radius +-- The radius can be specified in mesecons/settings.lua + +local object_detector_make_formspec = function (pos) + local meta = minetest.get_meta(pos) + meta:set_string("formspec", "size[9,2.5]" .. + "field[0.3, 0;9,2;scanname;Name of player to scan for (empty for any):;${scanname}]".. + "field[0.3,1.5;4,2;digiline_channel;Digiline Channel (optional):;${digiline_channel}]".. + "button_exit[7,0.75;2,3;;Save]") +end + +local object_detector_on_receive_fields = function(pos, formname, fields) + if fields.quit then + return + end + local meta = minetest.get_meta(pos) + meta:set_string("scanname", fields.scanname) + meta:set_string("digiline_channel", fields.digiline_channel) + object_detector_make_formspec(pos) +end + +-- returns true if player was found, false if not +local object_detector_scan = function (pos) + local objs = minetest.get_objects_inside_radius(pos, OBJECT_DETECTOR_RADIUS) + for k, obj in pairs(objs) do + local isname = obj:get_player_name() -- "" is returned if it is not a player; "" ~= nil! + local scanname = minetest.get_meta(pos):get_string("scanname") + if (isname == scanname and isname ~= "") or (isname ~= "" and scanname == "") then -- player with scanname found or not scanname specified + return true + end + end + return false +end + +-- set player name when receiving a digiline signal on a specific channel +object_detector_digiline = { + effector = { + action = function (pos, node, channel, msg) + local meta = minetest.get_meta(pos) + local active_channel = meta:get_string("digiline_channel") + if channel == active_channel then + meta:set_string("scanname", msg) + object_detector_make_formspec(pos) + end + end, + } +} + +minetest.register_node("mesecons_detector:object_detector_off", { + tiles = {"default_steel_block.png", "default_steel_block.png", "jeija_object_detector_off.png", "jeija_object_detector_off.png", "jeija_object_detector_off.png", "jeija_object_detector_off.png"}, + paramtype = "light", + walkable = true, + groups = {cracky=3}, + description="Player Detector", + mesecons = {receptor = { + state = mesecon.state.off + }}, + on_construct = object_detector_make_formspec, + on_receive_fields = object_detector_on_receive_fields, + sounds = default.node_sound_stone_defaults(), + digiline = object_detector_digiline +}) + +minetest.register_node("mesecons_detector:object_detector_on", { + tiles = {"default_steel_block.png", "default_steel_block.png", "jeija_object_detector_on.png", "jeija_object_detector_on.png", "jeija_object_detector_on.png", "jeija_object_detector_on.png"}, + paramtype = "light", + walkable = true, + groups = {cracky=3,not_in_creative_inventory=1}, + drop = 'mesecons_detector:object_detector_off', + mesecons = {receptor = { + state = mesecon.state.on + }}, + on_construct = object_detector_make_formspec, + on_receive_fields = object_detector_on_receive_fields, + sounds = default.node_sound_stone_defaults(), + digiline = object_detector_digiline +}) + +minetest.register_craft({ + output = 'mesecons_detector:object_detector_off', + recipe = { + {"default:steel_ingot", "default:steel_ingot", "default:steel_ingot"}, + {"default:steel_ingot", "mesecons_luacontroller:luacontroller0000", "default:steel_ingot"}, + {"default:steel_ingot", "group:mesecon_conductor_craftable", "default:steel_ingot"}, + } +}) + +minetest.register_abm( + {nodenames = {"mesecons_detector:object_detector_off"}, + interval = 1.0, + chance = 1, + action = function(pos) + if object_detector_scan(pos) then + minetest.swap_node(pos, {name = "mesecons_detector:object_detector_on"}) + mesecon:receptor_on(pos) + end + end, +}) + +minetest.register_abm( + {nodenames = {"mesecons_detector:object_detector_on"}, + interval = 1.0, + chance = 1, + action = function(pos) + if not object_detector_scan(pos) then + minetest.swap_node(pos, {name = "mesecons_detector:object_detector_off"}) + mesecon:receptor_off(pos) + end + end, +}) diff --git a/mods/mesecons/mesecons_detector/textures/jeija_object_detector_off.png b/mods/mesecons/mesecons_detector/textures/jeija_object_detector_off.png new file mode 100644 index 0000000..825d78f Binary files /dev/null and b/mods/mesecons/mesecons_detector/textures/jeija_object_detector_off.png differ diff --git a/mods/mesecons/mesecons_detector/textures/jeija_object_detector_on.png b/mods/mesecons/mesecons_detector/textures/jeija_object_detector_on.png new file mode 100644 index 0000000..96f8ba3 Binary files /dev/null and b/mods/mesecons/mesecons_detector/textures/jeija_object_detector_on.png differ diff --git a/mods/mesecons/mesecons_extrawires/corner.lua b/mods/mesecons/mesecons_extrawires/corner.lua new file mode 100644 index 0000000..d7f7a02 --- /dev/null +++ b/mods/mesecons/mesecons_extrawires/corner.lua @@ -0,0 +1,83 @@ +local corner_nodebox = { + type = "fixed", + fixed = {{ -16/32-0.001, -17/32, -3/32, 0, -13/32, 3/32 }, + { -3/32, -17/32, -16/32+0.001, 3/32, -13/32, 3/32}} +} + +local corner_selectionbox = { + type = "fixed", + fixed = { -16/32-0.001, -18/32, -16/32, 5/32, -12/32, 5/32 }, +} + +local corner_get_rules = function (node) + local rules = + {{x = 1, y = 0, z = 0}, + {x = 0, y = 0, z = -1}} + + for i = 0, node.param2 do + rules = mesecon:rotate_rules_left(rules) + end + + return rules +end + +minetest.register_node("mesecons_extrawires:corner_on", { + drawtype = "nodebox", + tiles = { + "jeija_insulated_wire_curved_tb_on.png", + "jeija_insulated_wire_curved_tb_on.png^[transformR270", + "jeija_insulated_wire_sides_on.png", + "jeija_insulated_wire_ends_on.png", + "jeija_insulated_wire_sides_on.png", + "jeija_insulated_wire_ends_on.png" + }, + paramtype = "light", + paramtype2 = "facedir", + walkable = false, + sunlight_propagates = true, + selection_box = corner_selectionbox, + node_box = corner_nodebox, + groups = {dig_immediate = 3, not_in_creative_inventory = 1}, + drop = "mesecons_extrawires:corner_off", + mesecons = {conductor = + { + state = mesecon.state.on, + rules = corner_get_rules, + offstate = "mesecons_extrawires:corner_off" + }} +}) + +minetest.register_node("mesecons_extrawires:corner_off", { + drawtype = "nodebox", + description = "Mesecon Corner", + tiles = { + "jeija_insulated_wire_curved_tb_off.png", + "jeija_insulated_wire_curved_tb_off.png^[transformR270", + "jeija_insulated_wire_sides_off.png", + "jeija_insulated_wire_ends_off.png", + "jeija_insulated_wire_sides_off.png", + "jeija_insulated_wire_ends_off.png" + }, + paramtype = "light", + paramtype2 = "facedir", + walkable = false, + sunlight_propagates = true, + selection_box = corner_selectionbox, + node_box = corner_nodebox, + groups = {dig_immediate = 3}, + mesecons = {conductor = + { + state = mesecon.state.off, + rules = corner_get_rules, + onstate = "mesecons_extrawires:corner_on" + }} +}) + +minetest.register_craft({ + output = "mesecons_extrawires:corner_off 3", + recipe = { + {"", "", ""}, + {"mesecons_insulated:insulated_off", "mesecons_insulated:insulated_off", ""}, + {"", "mesecons_insulated:insulated_off", ""}, + } +}) diff --git a/mods/mesecons/mesecons_extrawires/crossover.lua b/mods/mesecons/mesecons_extrawires/crossover.lua new file mode 100644 index 0000000..9cdf3c2 --- /dev/null +++ b/mods/mesecons/mesecons_extrawires/crossover.lua @@ -0,0 +1,176 @@ +function crossover_get_rules(node) + return { + {--first wire + {x=-1,y=0,z=0}, + {x=1,y=0,z=0}, + }, + {--second wire + {x=0,y=0,z=-1}, + {x=0,y=0,z=1}, + }, + } +end + +local crossover_states = { + "mesecons_extrawires:crossover_off", + "mesecons_extrawires:crossover_01", + "mesecons_extrawires:crossover_10", + "mesecons_extrawires:crossover_on", +} + +minetest.register_node("mesecons_extrawires:crossover_off", { + description = "Insulated Crossover", + drawtype = "nodebox", + tiles = { + "jeija_insulated_wire_crossing_tb_off.png", + "jeija_insulated_wire_crossing_tb_off.png", + "jeija_insulated_wire_ends_off.png" + }, + paramtype = "light", + walkable = false, + stack_max = 99, + selection_box = {type="fixed", fixed={-16/32-0.0001, -18/32, -16/32-0.001, 16/32+0.001, -5/32, 16/32+0.001}}, + node_box = { + type = "fixed", + fixed = { + { -16/32-0.001, -17/32, -3/32, 16/32+0.001, -13/32, 3/32 }, + { -3/32, -17/32, -16/32-0.001, 3/32, -13/32, -6/32 }, + { -3/32, -13/32, -9/32, 3/32, -6/32, -6/32 }, + { -3/32, -9/32, -9/32, 3/32, -6/32, 9/32 }, + { -3/32, -13/32, 6/32, 3/32, -6/32, 9/32 }, + { -3/32, -17/32, 6/32, 3/32, -13/32, 16/32+0.001 }, + }, + }, + groups = {dig_immediate=3, mesecon=3, mesecon_conductor_craftable=1}, + mesecons = { + conductor = { + states = crossover_states, + rules = crossover_get_rules(), + } + }, +}) + +minetest.register_node("mesecons_extrawires:crossover_01", { + description = "You hacker you!", + drop = "mesecons_extrawires:crossover_off", + drawtype = "nodebox", + tiles = { + "jeija_insulated_wire_crossing_tb_01.png", + "jeija_insulated_wire_crossing_tb_01.png", + "jeija_insulated_wire_ends_01x.png", + "jeija_insulated_wire_ends_01x.png", + "jeija_insulated_wire_ends_01z.png", + "jeija_insulated_wire_ends_01z.png" + }, + paramtype = "light", + walkable = false, + stack_max = 99, + selection_box = {type="fixed", fixed={-16/32-0.0001, -18/32, -16/32-0.001, 16/32+0.001, -5/32, 16/32+0.001}}, + node_box = { + type = "fixed", + fixed = { + { -16/32-0.001, -17/32, -3/32, 16/32+0.001, -13/32, 3/32 }, + { -3/32, -17/32, -16/32-0.001, 3/32, -13/32, -6/32 }, + { -3/32, -13/32, -9/32, 3/32, -6/32, -6/32 }, + { -3/32, -9/32, -9/32, 3/32, -6/32, 9/32 }, + { -3/32, -13/32, 6/32, 3/32, -6/32, 9/32 }, + { -3/32, -17/32, 6/32, 3/32, -13/32, 16/32+0.001 }, + }, + }, + groups = {dig_immediate=3, mesecon=3, mesecon_conductor_craftable=1, not_in_creative_inventory=1}, + mesecons = { + conductor = { + states = crossover_states, + rules = crossover_get_rules(), + } + }, +}) + +minetest.register_node("mesecons_extrawires:crossover_10", { + description = "You hacker you!", + drop = "mesecons_extrawires:crossover_off", + drawtype = "nodebox", + tiles = { + "jeija_insulated_wire_crossing_tb_10.png", + "jeija_insulated_wire_crossing_tb_10.png", + "jeija_insulated_wire_ends_10x.png", + "jeija_insulated_wire_ends_10x.png", + "jeija_insulated_wire_ends_10z.png", + "jeija_insulated_wire_ends_10z.png" + }, + paramtype = "light", + walkable = false, + stack_max = 99, + selection_box = {type="fixed", fixed={-16/32-0.0001, -18/32, -16/32-0.001, 16/32+0.001, -5/32, 16/32+0.001}}, + node_box = { + type = "fixed", + fixed = { + { -16/32-0.001, -17/32, -3/32, 16/32+0.001, -13/32, 3/32 }, + { -3/32, -17/32, -16/32-0.001, 3/32, -13/32, -6/32 }, + { -3/32, -13/32, -9/32, 3/32, -6/32, -6/32 }, + { -3/32, -9/32, -9/32, 3/32, -6/32, 9/32 }, + { -3/32, -13/32, 6/32, 3/32, -6/32, 9/32 }, + { -3/32, -17/32, 6/32, 3/32, -13/32, 16/32+0.001 }, + }, + }, + groups = {dig_immediate=3, mesecon=3, mesecon_conductor_craftable=1, not_in_creative_inventory=1}, + mesecons = { + conductor = { + states = crossover_states, + rules = crossover_get_rules(), + } + }, +}) + +minetest.register_node("mesecons_extrawires:crossover_on", { + description = "You hacker you!", + drop = "mesecons_extrawires:crossover_off", + drawtype = "nodebox", + tiles = { + "jeija_insulated_wire_crossing_tb_on.png", + "jeija_insulated_wire_crossing_tb_on.png", + "jeija_insulated_wire_ends_on.png", + "jeija_insulated_wire_ends_on.png", + "jeija_insulated_wire_ends_on.png", + "jeija_insulated_wire_ends_on.png" + }, + paramtype = "light", + walkable = false, + stack_max = 99, + selection_box = {type="fixed", fixed={-16/32-0.0001, -18/32, -16/32-0.001, 16/32+0.001, -5/32, 16/32+0.001}}, + node_box = { + type = "fixed", + fixed = { + { -16/32-0.001, -17/32, -3/32, 16/32+0.001, -13/32, 3/32 }, + { -3/32, -17/32, -16/32-0.001, 3/32, -13/32, -6/32 }, + { -3/32, -13/32, -9/32, 3/32, -6/32, -6/32 }, + { -3/32, -9/32, -9/32, 3/32, -6/32, 9/32 }, + { -3/32, -13/32, 6/32, 3/32, -6/32, 9/32 }, + { -3/32, -17/32, 6/32, 3/32, -13/32, 16/32+0.001 }, + }, + }, + groups = {dig_immediate=3, mesecon=3, mesecon_conductor_craftable=1, not_in_creative_inventory=1}, + mesecons = { + conductor = { + states = crossover_states, + rules = crossover_get_rules(), + } + }, +}) + +minetest.register_craft({ + type = "shapeless", + output = "mesecons_extrawires:crossover_off", + recipe = { + "mesecons_insulated:insulated_off", + "mesecons_insulated:insulated_off", + }, +}) + +minetest.register_craft({ + type = "shapeless", + output = "mesecons_insulated:insulated_off 2", + recipe = { + "mesecons_extrawires:crossover_off", + }, +}) diff --git a/mods/mesecons/mesecons_extrawires/depends.txt b/mods/mesecons/mesecons_extrawires/depends.txt new file mode 100644 index 0000000..aca967d --- /dev/null +++ b/mods/mesecons/mesecons_extrawires/depends.txt @@ -0,0 +1,2 @@ +default +mesecons diff --git a/mods/mesecons/mesecons_extrawires/init.lua b/mods/mesecons/mesecons_extrawires/init.lua new file mode 100644 index 0000000..b22f2e5 --- /dev/null +++ b/mods/mesecons/mesecons_extrawires/init.lua @@ -0,0 +1,5 @@ +dofile(minetest.get_modpath("mesecons_extrawires").."/crossover.lua"); +dofile(minetest.get_modpath("mesecons_extrawires").."/tjunction.lua"); +dofile(minetest.get_modpath("mesecons_extrawires").."/corner.lua"); +dofile(minetest.get_modpath("mesecons_extrawires").."/vertical.lua"); +dofile(minetest.get_modpath("mesecons_extrawires").."/mesewire.lua"); diff --git a/mods/mesecons/mesecons_extrawires/mesewire.lua b/mods/mesecons/mesecons_extrawires/mesewire.lua new file mode 100644 index 0000000..cbb882e --- /dev/null +++ b/mods/mesecons/mesecons_extrawires/mesewire.lua @@ -0,0 +1,35 @@ +local mesewire_rules = +{ + {x = 1, y = 0, z = 0}, + {x =-1, y = 0, z = 0}, + {x = 0, y = 1, z = 0}, + {x = 0, y =-1, z = 0}, + {x = 0, y = 0, z = 1}, + {x = 0, y = 0, z =-1}, +} + +minetest.register_node(":default:mese", { + description = "Mese Block", + tiles = {minetest.registered_nodes["default:mese"].tiles[1]}, + is_ground_content = true, + groups = {cracky=1}, + sounds = default.node_sound_stone_defaults(), + mesecons = {conductor = { + state = mesecon.state.off, + onstate = "mesecons_extrawires:mese_powered", + rules = mesewire_rules + }} +}) + +minetest.register_node("mesecons_extrawires:mese_powered", { + tiles = {minetest.registered_nodes["default:mese"].tiles[1].."^[brighten"}, + is_ground_content = true, + groups = {cracky=1, not_in_creative_inventory = 1}, + sounds = default.node_sound_stone_defaults(), + mesecons = {conductor = { + state = mesecon.state.on, + offstate = "default:mese", + rules = mesewire_rules + }}, + drop = "default:mese" +}) diff --git a/mods/mesecons/mesecons_extrawires/tjunction.lua b/mods/mesecons/mesecons_extrawires/tjunction.lua new file mode 100644 index 0000000..4a569a0 --- /dev/null +++ b/mods/mesecons/mesecons_extrawires/tjunction.lua @@ -0,0 +1,84 @@ +local tjunction_nodebox = { + type = "fixed", + fixed = {{ -16/32-0.001, -17/32, -3/32, 16/32+0.001, -13/32, 3/32 }, + { -3/32, -17/32, -16/32+0.001, 3/32, -13/32, -3/32},} +} + +local tjunction_selectionbox = { + type = "fixed", + fixed = { -16/32-0.001, -18/32, -16/32, 16/32+0.001, -12/32, 7/32 }, +} + +local tjunction_get_rules = function (node) + local rules = + {{x = 0, y = 0, z = 1}, + {x = 1, y = 0, z = 0}, + {x = 0, y = 0, z = -1}} + + for i = 0, node.param2 do + rules = mesecon:rotate_rules_left(rules) + end + + return rules +end + +minetest.register_node("mesecons_extrawires:tjunction_on", { + drawtype = "nodebox", + tiles = { + "jeija_insulated_wire_tjunction_tb_on.png", + "jeija_insulated_wire_tjunction_tb_on.png^[transformR180", + "jeija_insulated_wire_ends_on.png", + "jeija_insulated_wire_ends_on.png", + "jeija_insulated_wire_sides_on.png", + "jeija_insulated_wire_ends_on.png" + }, + paramtype = "light", + paramtype2 = "facedir", + walkable = false, + sunlight_propagates = true, + selection_box = tjunction_selectionbox, + node_box = tjunction_nodebox, + groups = {dig_immediate = 3, mesecon_conductor_craftable=1, not_in_creative_inventory = 1}, + drop = "mesecons_extrawires:tjunction_off", + mesecons = {conductor = + { + state = mesecon.state.on, + rules = tjunction_get_rules, + offstate = "mesecons_extrawires:tjunction_off" + }} +}) + +minetest.register_node("mesecons_extrawires:tjunction_off", { + drawtype = "nodebox", + description = "T-junction", + tiles = { + "jeija_insulated_wire_tjunction_tb_off.png", + "jeija_insulated_wire_tjunction_tb_off.png^[transformR180", + "jeija_insulated_wire_ends_off.png", + "jeija_insulated_wire_ends_off.png", + "jeija_insulated_wire_sides_off.png", + "jeija_insulated_wire_ends_off.png" + }, + paramtype = "light", + paramtype2 = "facedir", + walkable = false, + sunlight_propagates = true, + selection_box = tjunction_selectionbox, + node_box = tjunction_nodebox, + groups = {dig_immediate = 3, mesecon_conductor_craftable=1}, + mesecons = {conductor = + { + state = mesecon.state.off, + rules = tjunction_get_rules, + onstate = "mesecons_extrawires:tjunction_on" + }} +}) + +minetest.register_craft({ + output = "mesecons_extrawires:tjunction_off 3", + recipe = { + {"", "", ""}, + {"mesecons_insulated:insulated_off", "mesecons_insulated:insulated_off", "mesecons_insulated:insulated_off"}, + {"", "mesecons_insulated:insulated_off", ""}, + } +}) diff --git a/mods/mesecons/mesecons_extrawires/vertical.lua b/mods/mesecons/mesecons_extrawires/vertical.lua new file mode 100644 index 0000000..16de55e --- /dev/null +++ b/mods/mesecons/mesecons_extrawires/vertical.lua @@ -0,0 +1,213 @@ +local vertical_box = { + type = "fixed", + fixed = {-1/16, -8/16, -1/16, 1/16, 8/16, 1/16} +} + +local top_box = { + type = "fixed", + fixed = {{-8/16, -8/16, -8/16, 8/16, -7/16, 8/16}} +} + +local bottom_box = { + type = "fixed", + fixed = { + {-8/16, -8/16, -8/16, 8/16, -7/16, 8/16}, + {-1/16, -7/16, -1/16, 1/16, 8/16, 1/16}, + } +} + +local vertical_rules = { + {x=0, y=1, z=0}, + {x=0, y=-1, z=0}, +} + +local top_rules = { + {x=1,y=0, z=0}, + {x=-1,y=0, z=0}, + {x=0,y=0, z=1}, + {x=0,y=0, z=-1}, + {x=0,y=-1, z=0}, +} + +local bottom_rules = { + {x=1, y=0, z=0}, + {x=-1, y=0, z=0}, + {x=0, y=0, z=1}, + {x=0, y=0, z=-1}, + {x=0, y=1, z=0}, +} + +local vertical_updatepos = function (pos) + local node = minetest.get_node(pos) + if minetest.registered_nodes[node.name] and minetest.registered_nodes[node.name].is_vertical_conductor then + local node_above = minetest.get_node(mesecon:addPosRule(pos, vertical_rules[1])) + local node_below = minetest.get_node(mesecon:addPosRule(pos, vertical_rules[2])) + local namestate = minetest.registered_nodes[node.name].vertical_conductor_state + + local above = minetest.registered_nodes[node_above.name] and minetest.registered_nodes[node_above.name].is_vertical_conductor + local below = minetest.registered_nodes[node_below.name] and minetest.registered_nodes[node_below.name].is_vertical_conductor + + if above and below then -- above and below: vertical mesecon + minetest.add_node(pos, {name = "mesecons_extrawires:vertical_" .. namestate}) + elseif above and not below then -- above only: bottom + minetest.add_node(pos, {name = "mesecons_extrawires:vertical_bottom_" .. namestate}) + elseif not above and below then -- below only: top + minetest.add_node(pos, {name = "mesecons_extrawires:vertical_top_" .. namestate}) + else -- no vertical wire above, no vertical wire below: use default wire + minetest.add_node(pos, {name = "mesecons_extrawires:vertical_" .. namestate}) + end + end +end + +local vertical_update = function (pos, node) + vertical_updatepos(pos) -- this one + vertical_updatepos(mesecon:addPosRule(pos, vertical_rules[1])) -- above + vertical_updatepos(mesecon:addPosRule(pos, vertical_rules[2])) -- below +end + +-- Vertical wire +minetest.register_node("mesecons_extrawires:vertical_on", { + description = "Vertical mesecon", + drawtype = "nodebox", + tiles = {"wires_vertical_on.png"}, + walkable = false, + paramtype = "light", + sunlight_propagates = true, + groups = {dig_immediate=3, not_in_creative_inventory=1}, + selection_box = vertical_box, + node_box = vertical_box, + is_vertical_conductor = true, + vertical_conductor_state = "on", + mesecons = {conductor = { + state = mesecon.state.on, + offstate = "mesecons_extrawires:vertical_off", + rules = vertical_rules, + }}, + drop = "mesecons_extrawires:vertical_off", + after_place_node = vertical_update, + after_dig_node = vertical_update, +}) + +minetest.register_node("mesecons_extrawires:vertical_off", { + description = "Vertical mesecon", + drawtype = "nodebox", + tiles = {"wires_vertical_off.png"}, + walkable = false, + paramtype = "light", + sunlight_propagates = true, + groups = {dig_immediate=3}, + selection_box = vertical_box, + node_box = vertical_box, + is_vertical_conductor = true, + vertical_conductor_state = "off", + mesecons = {conductor = { + state = mesecon.state.off, + onstate = "mesecons_extrawires:vertical_on", + rules = vertical_rules, + }}, + after_place_node = vertical_update, + after_dig_node = vertical_update, +}) + +-- Vertical wire top +minetest.register_node("mesecons_extrawires:vertical_top_on", { + description = "Vertical mesecon", + drawtype = "nodebox", + tiles = {"wires_full_on.png","wires_full_on.png","wires_vertical_on.png"}, + walkable = false, + paramtype = "light", + sunlight_propagates = true, + groups = {dig_immediate=3, not_in_creative_inventory=1}, + selection_box = top_box, + node_box = top_box, + is_vertical_conductor = true, + vertical_conductor_state = "on", + mesecons = {conductor = { + state = mesecon.state.on, + offstate = "mesecons_extrawires:vertical_top_off", + rules = top_rules, + }}, + drop = "mesecons_extrawires:vertical_off", + after_place_node = vertical_update, + after_dig_node = vertical_update, +}) + +minetest.register_node("mesecons_extrawires:vertical_top_off", { + description = "Vertical mesecon", + drawtype = "nodebox", + tiles = {"wires_full_off.png","wires_full_off.png","wires_vertical_off.png"}, + walkable = false, + paramtype = "light", + sunlight_propagates = true, + groups = {dig_immediate=3, not_in_creative_inventory=1}, + selection_box = top_box, + node_box = top_box, + is_vertical_conductor = true, + vertical_conductor_state = "off", + mesecons = {conductor = { + state = mesecon.state.off, + onstate = "mesecons_extrawires:vertical_top_on", + rules = top_rules, + }}, + drop = "mesecons_extrawires:vertical_off", + after_place_node = vertical_update, + after_dig_node = vertical_update, +}) + +-- Vertical wire bottom +minetest.register_node("mesecons_extrawires:vertical_bottom_on", { + description = "Vertical mesecon", + drawtype = "nodebox", + tiles = {"wires_full_on.png","wires_full_on.png","wires_vertical_on.png"}, + walkable = false, + paramtype = "light", + sunlight_propagates = true, + vertical_conductor_state = "on", + groups = {dig_immediate = 3, not_in_creative_inventory = 1}, + selection_box = bottom_box, + node_box = bottom_box, + mesecons = {conductor = { + state = mesecon.state.on, + offstate = "mesecons_extrawires:vertical_bottom_off", + rules = bottom_rules, + }}, + drop = "mesecons_extrawires:vertical_off", + after_place_node = vertical_update, + after_dig_node = vertical_update, +}) + +minetest.register_node("mesecons_extrawires:vertical_bottom_off", { + description = "Vertical mesecon", + drawtype = "nodebox", + tiles = {"wires_full_off.png","wires_full_off.png","wires_vertical_off.png"}, + walkable = false, + paramtype = "light", + sunlight_propagates = true, + groups = {dig_immediate = 3, not_in_creative_inventory = 1}, + selection_box = bottom_box, + node_box = bottom_box, + is_vertical_conductor = true, + vertical_conductor_state = "off", + mesecons = {conductor = { + state = mesecon.state.off, + onstate = "mesecons_extrawires:vertical_bottom_on", + rules = bottom_rules, + }}, + drop = "mesecons_extrawires:vertical_off", + after_place_node = vertical_update, + after_dig_node = vertical_update, +}) + +minetest.register_craft({ + output = "mesecons_extrawires:vertical_off 3", + recipe = { + {"mesecons:wire_00000000_off"}, + {"mesecons:wire_00000000_off"}, + {"mesecons:wire_00000000_off"} + } +}) + +minetest.register_craft({ + output = "mesecons:wire_00000000_off", + recipe = {{"mesecons_extrawires:vertical_off"}} +}) diff --git a/mods/mesecons/mesecons_gates/depends.txt b/mods/mesecons/mesecons_gates/depends.txt new file mode 100644 index 0000000..f3e0392 --- /dev/null +++ b/mods/mesecons/mesecons_gates/depends.txt @@ -0,0 +1,6 @@ +mesecons +mesecons_microcontroller +mesecons_delayer + +mesecons_torch +mesecons_materials diff --git a/mods/mesecons/mesecons_gates/init.lua b/mods/mesecons/mesecons_gates/init.lua new file mode 100644 index 0000000..51ed4af --- /dev/null +++ b/mods/mesecons/mesecons_gates/init.lua @@ -0,0 +1,224 @@ +function gate_rotate_rules(node) + for rotations = 0, node.param2 - 1 do + rules = mesecon:rotate_rules_left(rules) + end + return rules +end + +function gate_get_output_rules(node) + rules = {{x=1, y=0, z=0}} + return gate_rotate_rules(node) +end + +function gate_get_input_rules_oneinput(node) + rules = {{x=-1, y=0, z=0}, {x=1, y=0, z=0}} + return gate_rotate_rules(node) +end + +function gate_get_input_rules_twoinputs(node) + rules = { + {x=0, y=0, z=1}, + {x=0, y=0, z=-1}, + {x=1, y=0, z=0}} + return gate_rotate_rules(node) +end + +function update_gate(pos, node, rulename, newstate) + yc_update_real_portstates(pos, node, rulename, newstate) + gate = get_gate(pos) + L = rotate_ports( + yc_get_real_portstates(pos), + minetest.get_node(pos).param2 + ) + if gate == "diode" then + set_gate(pos, L.a) + elseif gate == "not" then + set_gate(pos, not L.a) + elseif gate == "nand" then + set_gate(pos, not(L.b and L.d)) + elseif gate == "and" then + set_gate(pos, L.b and L.d) + elseif gate == "xor" then + set_gate(pos, (L.b and not L.d) or (not L.b and L.d)) + end +end + +function set_gate(pos, on) + gate = get_gate(pos) + local meta = minetest.get_meta(pos) + if on ~= gate_state(pos) then + yc_heat(meta) + --minetest.after(0.5, yc_cool, meta) + if yc_overheat(meta) then + pop_gate(pos) + else + local node = minetest.get_node(pos) + if on then + minetest.swap_node(pos, {name = "mesecons_gates:"..gate.."_on", param2=node.param2}) + mesecon:receptor_on(pos, + gate_get_output_rules(node)) + else + minetest.swap_node(pos, {name = "mesecons_gates:"..gate.."_off", param2=node.param2}) + mesecon:receptor_off(pos, + gate_get_output_rules(node)) + end + end + end +end + +function get_gate(pos) + return minetest.registered_nodes[minetest.get_node(pos).name].mesecons_gate +end + +function gate_state(pos) + name = minetest.get_node(pos).name + return string.find(name, "_on") ~= nil +end + +function pop_gate(pos) + gate = get_gate(pos) + minetest.remove_node(pos) + minetest.after(0.2, yc_overheat_off, pos) + minetest.add_item(pos, "mesecons_gates:"..gate.."_off") +end + +function rotate_ports(L, param2) + for rotations=0, param2-1 do + port = L.a + L.a = L.b + L.b = L.c + L.c = L.d + L.d = port + end + return L +end + +gates = { +{name = "diode", inputnumber = 1}, +{name = "not" , inputnumber = 1}, +{name = "nand" , inputnumber = 2}, +{name = "and" , inputnumber = 2}, +{name = "xor" , inputnumber = 2}} + +local onoff, drop, nodename, description, groups +for _, gate in ipairs(gates) do + if gate.inputnumber == 1 then + get_rules = gate_get_input_rules_oneinput + elseif gate.inputnumber == 2 then + get_rules = gate_get_input_rules_twoinputs + end + for on = 0, 1 do + nodename = "mesecons_gates:"..gate.name + if on == 1 then + onoff = "on" + drop = nodename.."_off" + nodename = nodename.."_"..onoff + description = "You hacker you!" + groups = {dig_immediate=2, not_in_creative_inventory=1, overheat = 1} + else + onoff = "off" + drop = nil + nodename = nodename.."_"..onoff + description = gate.name.." Gate" + groups = {dig_immediate=2, overheat = 1} + end + + tiles = "jeija_microcontroller_bottom.png^".. + "jeija_gate_"..onoff..".png^".. + "jeija_gate_"..gate.name..".png" + + node_box = { + type = "fixed", + fixed = { + {-8/16, -8/16, -8/16, 8/16, -7/16, 8/16 }, + }, + } + + local mesecon_state + if on == 1 then + mesecon_state = mesecon.state.on + else + mesecon_state = mesecon.state.off + end + + minetest.register_node(nodename, { + description = description, + paramtype = "light", + paramtype2 = "facedir", + drawtype = "nodebox", + tiles = {tiles}, + inventory_image = tiles, + selection_box = node_box, + node_box = node_box, + walkable = true, + on_construct = function(pos) + local meta = minetest.get_meta(pos) + meta:set_int("heat", 0) + update_gate(pos) + end, + groups = groups, + drop = drop, + sounds = default.node_sound_stone_defaults(), + mesecons_gate = gate.name, + mesecons = + { + receptor = + { + state = mesecon_state, + rules = gate_get_output_rules + }, + effector = + { + rules = get_rules, + action_change = update_gate + } + } + }) + end +end + +minetest.register_craft({ + output = 'mesecons_gates:diode_off', + recipe = { + {'', '', ''}, + {'mesecons:mesecon', 'mesecons_torch:mesecon_torch_on', 'mesecons_torch:mesecon_torch_on'}, + {'', '', ''}, + }, +}) + +minetest.register_craft({ + output = 'mesecons_gates:not_off', + recipe = { + {'', '', ''}, + {'mesecons:mesecon', 'mesecons_torch:mesecon_torch_on', 'mesecons:mesecon'}, + {'', '', ''}, + }, +}) + +minetest.register_craft({ + output = 'mesecons_gates:and_off', + recipe = { + {'mesecons:mesecon', '', ''}, + {'', 'mesecons_materials:silicon', 'mesecons:mesecon'}, + {'mesecons:mesecon', '', ''}, + }, +}) + +minetest.register_craft({ + output = 'mesecons_gates:nand_off', + recipe = { + {'mesecons:mesecon', '', ''}, + {'', 'mesecons_materials:silicon', 'mesecons_torch:mesecon_torch_on'}, + {'mesecons:mesecon', '', ''}, + }, +}) + +minetest.register_craft({ + output = 'mesecons_gates:xor_off', + recipe = { + {'mesecons:mesecon', '', ''}, + {'', 'mesecons_materials:silicon', 'mesecons_materials:silicon'}, + {'mesecons:mesecon', '', ''}, + }, +}) + diff --git a/mods/mesecons/mesecons_gates/textures/jeija_gate_and.png b/mods/mesecons/mesecons_gates/textures/jeija_gate_and.png new file mode 100644 index 0000000..0ddc043 Binary files /dev/null and b/mods/mesecons/mesecons_gates/textures/jeija_gate_and.png differ diff --git a/mods/mesecons/mesecons_gates/textures/jeija_gate_diode.png b/mods/mesecons/mesecons_gates/textures/jeija_gate_diode.png new file mode 100644 index 0000000..ffa403f Binary files /dev/null and b/mods/mesecons/mesecons_gates/textures/jeija_gate_diode.png differ diff --git a/mods/mesecons/mesecons_gates/textures/jeija_gate_nand.png b/mods/mesecons/mesecons_gates/textures/jeija_gate_nand.png new file mode 100644 index 0000000..0e4294e Binary files /dev/null and b/mods/mesecons/mesecons_gates/textures/jeija_gate_nand.png differ diff --git a/mods/mesecons/mesecons_gates/textures/jeija_gate_not.png b/mods/mesecons/mesecons_gates/textures/jeija_gate_not.png new file mode 100644 index 0000000..939fb76 Binary files /dev/null and b/mods/mesecons/mesecons_gates/textures/jeija_gate_not.png differ diff --git a/mods/mesecons/mesecons_gates/textures/jeija_gate_off.png b/mods/mesecons/mesecons_gates/textures/jeija_gate_off.png new file mode 100644 index 0000000..44017b0 Binary files /dev/null and b/mods/mesecons/mesecons_gates/textures/jeija_gate_off.png differ diff --git a/mods/mesecons/mesecons_gates/textures/jeija_gate_on.png b/mods/mesecons/mesecons_gates/textures/jeija_gate_on.png new file mode 100644 index 0000000..47028a8 Binary files /dev/null and b/mods/mesecons/mesecons_gates/textures/jeija_gate_on.png differ diff --git a/mods/mesecons/mesecons_gates/textures/jeija_gate_xor.png b/mods/mesecons/mesecons_gates/textures/jeija_gate_xor.png new file mode 100644 index 0000000..afbd6ab Binary files /dev/null and b/mods/mesecons/mesecons_gates/textures/jeija_gate_xor.png differ diff --git a/mods/mesecons/mesecons_hydroturbine/depends.txt b/mods/mesecons/mesecons_hydroturbine/depends.txt new file mode 100644 index 0000000..acaa924 --- /dev/null +++ b/mods/mesecons/mesecons_hydroturbine/depends.txt @@ -0,0 +1 @@ +mesecons diff --git a/mods/mesecons/mesecons_hydroturbine/init.lua b/mods/mesecons/mesecons_hydroturbine/init.lua new file mode 100644 index 0000000..ef5ccae --- /dev/null +++ b/mods/mesecons/mesecons_hydroturbine/init.lua @@ -0,0 +1,96 @@ +-- HYDRO_TURBINE +-- Water turbine: +-- Active if flowing >water< above it +-- (does not work with other liquids) + +minetest.register_node("mesecons_hydroturbine:hydro_turbine_off", { + drawtype = "nodebox", + tiles = {"jeija_hydro_turbine_off.png"}, + groups = {dig_immediate=2}, + description="Water Turbine", + paramtype = "light", + selection_box = { + type = "fixed", + fixed = {{-0.5, -0.5, -0.5, 0.5, 0.5, 0.5}, + {-0.15, 0.5, -0.15, 0.15, 1.45, 0.15}, + {-0.45, 1.15, -0.1, 0.45, 1.45, 0.1}, + {-0.1, 1.15, -0.45, 0.1, 1.45, 0.45}}, + }, + node_box = { + type = "fixed", + fixed = {{-0.5, -0.5, -0.5, 0.5, 0.5, 0.5}, + {-0.15, 0.5, -0.15, 0.15, 1.45, 0.15}, + {-0.45, 1.15, -0.1, 0.45, 1.45, 0.1}, + {-0.1, 1.15, -0.45, 0.1, 1.45, 0.45}}, + }, + sounds = default.node_sound_stone_defaults(), + mesecons = {receptor = { + state = mesecon.state.off + }} +}) + +minetest.register_node("mesecons_hydroturbine:hydro_turbine_on", { + drawtype = "nodebox", + tiles = {"jeija_hydro_turbine_on.png"}, + drop = "mesecons_hydroturbine:hydro_turbine_off 1", + groups = {dig_immediate=2,not_in_creative_inventory=1}, + description="Water Turbine", + paramtype = "light", + selection_box = { + type = "fixed", + fixed = {{-0.5, -0.5, -0.5, 0.5, 0.5, 0.5}, + {-0.15, 0.5, -0.15, 0.15, 1.45, 0.15}, + {-0.5, 1.15, -0.1, 0.5, 1.45, 0.1}, + {-0.1, 1.15, -0.5, 0.1, 1.45, 0.5}}, + }, + node_box = { + type = "fixed", + fixed = {{-0.5, -0.5, -0.5, 0.5, 0.5, 0.5}, + {-0.15, 0.5, -0.15, 0.15, 1.45, 0.15}, + {-0.5, 1.15, -0.1, 0.5, 1.45, 0.1}, + {-0.1, 1.15, -0.5, 0.1, 1.45, 0.5}}, + }, + sounds = default.node_sound_stone_defaults(), + mesecons = {receptor = { + state = mesecon.state.on + }} +}) + + +minetest.register_abm({ +nodenames = {"mesecons_hydroturbine:hydro_turbine_off"}, + interval = 1, + chance = 1, + action = function(pos, node, active_object_count, active_object_count_wider) + local waterpos={x=pos.x, y=pos.y+1, z=pos.z} + if minetest.get_node(waterpos).name=="default:water_flowing" then + minetest.add_node(pos, {name="mesecons_hydroturbine:hydro_turbine_on"}) + nodeupdate(pos) + mesecon:receptor_on(pos) + end + end, +}) + +minetest.register_abm({ +nodenames = {"mesecons_hydroturbine:hydro_turbine_on"}, + interval = 1, + chance = 1, + action = function(pos, node, active_object_count, active_object_count_wider) + local waterpos={x=pos.x, y=pos.y+1, z=pos.z} + if minetest.get_node(waterpos).name~="default:water_flowing" then + minetest.add_node(pos, {name="mesecons_hydroturbine:hydro_turbine_off"}) + nodeupdate(pos) + mesecon:receptor_off(pos) + end + end, +}) + +minetest.register_craft({ + output = "mesecons_hydroturbine:hydro_turbine_off 2", + recipe = { + {"","default:stick", ""}, + {"default:stick", "default:steel_ingot", "default:stick"}, + {"","default:stick", ""}, + } +}) + diff --git a/mods/mesecons/mesecons_hydroturbine/textures/jeija_hydro_turbine_off.png b/mods/mesecons/mesecons_hydroturbine/textures/jeija_hydro_turbine_off.png new file mode 100644 index 0000000..5ca1a12 Binary files /dev/null and b/mods/mesecons/mesecons_hydroturbine/textures/jeija_hydro_turbine_off.png differ diff --git a/mods/mesecons/mesecons_hydroturbine/textures/jeija_hydro_turbine_on.png b/mods/mesecons/mesecons_hydroturbine/textures/jeija_hydro_turbine_on.png new file mode 100644 index 0000000..28eb0c9 Binary files /dev/null and b/mods/mesecons/mesecons_hydroturbine/textures/jeija_hydro_turbine_on.png differ diff --git a/mods/mesecons/mesecons_insulated/depends.txt b/mods/mesecons/mesecons_insulated/depends.txt new file mode 100644 index 0000000..acaa924 --- /dev/null +++ b/mods/mesecons/mesecons_insulated/depends.txt @@ -0,0 +1 @@ +mesecons diff --git a/mods/mesecons/mesecons_insulated/init.lua b/mods/mesecons/mesecons_insulated/init.lua new file mode 100644 index 0000000..9fdf494 --- /dev/null +++ b/mods/mesecons/mesecons_insulated/init.lua @@ -0,0 +1,84 @@ +function insulated_wire_get_rules(node) + local rules = {{x = 1, y = 0, z = 0}, + {x =-1, y = 0, z = 0}} + if node.param2 == 1 or node.param2 == 3 then + return mesecon:rotate_rules_right(rules) + end + return rules +end + +minetest.register_node("mesecons_insulated:insulated_on", { + drawtype = "nodebox", + description = "Insulated Mesecon", + tiles = { + "jeija_insulated_wire_sides_on.png", + "jeija_insulated_wire_sides_on.png", + "jeija_insulated_wire_ends_on.png", + "jeija_insulated_wire_ends_on.png", + "jeija_insulated_wire_sides_on.png", + "jeija_insulated_wire_sides_on.png" + }, + paramtype = "light", + paramtype2 = "facedir", + walkable = false, + sunlight_propagates = true, + selection_box = { + type = "fixed", + fixed = { -16/32-0.001, -18/32, -7/32, 16/32+0.001, -12/32, 7/32 } + }, + node_box = { + type = "fixed", + fixed = { -16/32-0.001, -17/32, -3/32, 16/32+0.001, -13/32, 3/32 } + }, + groups = {dig_immediate = 3, not_in_creative_inventory = 1}, + drop = "mesecons_insulated:insulated_off", + mesecons = {conductor = { + state = mesecon.state.on, + offstate = "mesecons_insulated:insulated_off", + rules = insulated_wire_get_rules + }} +}) + +minetest.register_node("mesecons_insulated:insulated_off", { + drawtype = "nodebox", + description = "insulated mesecons", + tiles = { + "jeija_insulated_wire_sides_off.png", + "jeija_insulated_wire_sides_off.png", + "jeija_insulated_wire_ends_off.png", + "jeija_insulated_wire_ends_off.png", + "jeija_insulated_wire_sides_off.png", + "jeija_insulated_wire_sides_off.png" + }, + paramtype = "light", + paramtype2 = "facedir", + walkable = false, + sunlight_propagates = true, + selection_box = { + type = "fixed", + fixed = { -16/32-0.001, -18/32, -7/32, 16/32+0.001, -12/32, 7/32 } + }, + node_box = { + type = "fixed", + fixed = { -16/32-0.001, -17/32, -3/32, 16/32+0.001, -13/32, 3/32 } + }, + groups = {dig_immediate = 3}, + mesecons = {conductor = { + state = mesecon.state.off, + onstate = "mesecons_insulated:insulated_on", + rules = insulated_wire_get_rules + }} +}) + +minetest.register_craft({ + output = "mesecons_insulated:insulated_off 3", + recipe = { + {"mesecons_materials:fiber", "mesecons_materials:fiber", "mesecons_materials:fiber"}, + {"mesecons:wire_00000000_off", "mesecons:wire_00000000_off", "mesecons:wire_00000000_off"}, + {"mesecons_materials:fiber", "mesecons_materials:fiber", "mesecons_materials:fiber"}, + } +}) + +mesecon:add_rules("insulated", { +{x = 1, y = 0, z = 0}, +{x =-1, y = 0, z = 0}}) diff --git a/mods/mesecons/mesecons_insulated/textures/jeija_insulated_wire_ends_01x.png b/mods/mesecons/mesecons_insulated/textures/jeija_insulated_wire_ends_01x.png new file mode 100644 index 0000000..b742152 Binary files /dev/null and b/mods/mesecons/mesecons_insulated/textures/jeija_insulated_wire_ends_01x.png differ diff --git a/mods/mesecons/mesecons_insulated/textures/jeija_insulated_wire_ends_01z.png b/mods/mesecons/mesecons_insulated/textures/jeija_insulated_wire_ends_01z.png new file mode 100644 index 0000000..497a467 Binary files /dev/null and b/mods/mesecons/mesecons_insulated/textures/jeija_insulated_wire_ends_01z.png differ diff --git a/mods/mesecons/mesecons_insulated/textures/jeija_insulated_wire_ends_10x.png b/mods/mesecons/mesecons_insulated/textures/jeija_insulated_wire_ends_10x.png new file mode 100644 index 0000000..d407cff Binary files /dev/null and b/mods/mesecons/mesecons_insulated/textures/jeija_insulated_wire_ends_10x.png differ diff --git a/mods/mesecons/mesecons_insulated/textures/jeija_insulated_wire_ends_10z.png b/mods/mesecons/mesecons_insulated/textures/jeija_insulated_wire_ends_10z.png new file mode 100644 index 0000000..830d390 Binary files /dev/null and b/mods/mesecons/mesecons_insulated/textures/jeija_insulated_wire_ends_10z.png differ diff --git a/mods/mesecons/mesecons_insulated/textures/jeija_insulated_wire_ends_off.png b/mods/mesecons/mesecons_insulated/textures/jeija_insulated_wire_ends_off.png new file mode 100644 index 0000000..89a8385 Binary files /dev/null and b/mods/mesecons/mesecons_insulated/textures/jeija_insulated_wire_ends_off.png differ diff --git a/mods/mesecons/mesecons_insulated/textures/jeija_insulated_wire_ends_on.png b/mods/mesecons/mesecons_insulated/textures/jeija_insulated_wire_ends_on.png new file mode 100644 index 0000000..75cf435 Binary files /dev/null and b/mods/mesecons/mesecons_insulated/textures/jeija_insulated_wire_ends_on.png differ diff --git a/mods/mesecons/mesecons_insulated/textures/jeija_insulated_wire_sides_off.png b/mods/mesecons/mesecons_insulated/textures/jeija_insulated_wire_sides_off.png new file mode 100644 index 0000000..db33f14 Binary files /dev/null and b/mods/mesecons/mesecons_insulated/textures/jeija_insulated_wire_sides_off.png differ diff --git a/mods/mesecons/mesecons_insulated/textures/jeija_insulated_wire_sides_on.png b/mods/mesecons/mesecons_insulated/textures/jeija_insulated_wire_sides_on.png new file mode 100644 index 0000000..f76e9a8 Binary files /dev/null and b/mods/mesecons/mesecons_insulated/textures/jeija_insulated_wire_sides_on.png differ diff --git a/mods/mesecons/mesecons_lamp/depends.txt b/mods/mesecons/mesecons_lamp/depends.txt new file mode 100644 index 0000000..acaa924 --- /dev/null +++ b/mods/mesecons/mesecons_lamp/depends.txt @@ -0,0 +1 @@ +mesecons diff --git a/mods/mesecons/mesecons_lamp/init.lua b/mods/mesecons/mesecons_lamp/init.lua new file mode 100644 index 0000000..6cdae2d --- /dev/null +++ b/mods/mesecons/mesecons_lamp/init.lua @@ -0,0 +1,61 @@ +-- MESELAMPS +-- A lamp is "is an electrical device used to create artificial light" (wikipedia) +-- guess what? + +mesecon_lamp_box = { + type = "wallmounted", + wall_top = {-0.3125,0.375,-0.3125,0.3125,0.5,0.3125}, + wall_bottom = {-0.3125,-0.5,-0.3125,0.3125,-0.375,0.3125}, + wall_side = {-0.375,-0.3125,-0.3125,-0.5,0.3125,0.3125}, +} + +minetest.register_node("mesecons_lamp:lamp_on", { + drawtype = "nodebox", + tiles = {"jeija_meselamp_on.png"}, + paramtype = "light", + paramtype2 = "wallmounted", + legacy_wallmounted = true, + sunlight_propagates = true, + walkable = true, + light_source = LIGHT_MAX, + node_box = mesecon_lamp_box, + selection_box = mesecon_lamp_box, + groups = {dig_immediate=3,not_in_creative_inventory=1, mesecon_effector_on = 1}, + drop="mesecons_lamp:lamp_off 1", + sounds = default.node_sound_glass_defaults(), + mesecons = {effector = { + action_off = function (pos, node) + minetest.swap_node(pos, {name = "mesecons_lamp:lamp_off", param2 = node.param2}) + end + }} +}) + +minetest.register_node("mesecons_lamp:lamp_off", { + drawtype = "nodebox", + tiles = {"jeija_meselamp_off.png"}, + inventory_image = "jeija_meselamp.png", + wield_image = "jeija_meselamp.png", + paramtype = "light", + paramtype2 = "wallmounted", + sunlight_propagates = true, + walkable = true, + node_box = mesecon_lamp_box, + selection_box = mesecon_lamp_box, + groups = {dig_immediate=3, mesecon_receptor_off = 1, mesecon_effector_off = 1}, + description="Meselamp", + sounds = default.node_sound_glass_defaults(), + mesecons = {effector = { + action_on = function (pos, node) + minetest.swap_node(pos, {name = "mesecons_lamp:lamp_on", param2 = node.param2}) + end + }} +}) + +minetest.register_craft({ + output = "mesecons_lamp:lamp_off 1", + recipe = { + {"", "default:glass", ""}, + {"group:mesecon_conductor_craftable", "default:steel_ingot", "group:mesecon_conductor_craftable"}, + {"", "default:glass", ""}, + } +}) diff --git a/mods/mesecons/mesecons_lamp/textures/jeija_meselamp.png b/mods/mesecons/mesecons_lamp/textures/jeija_meselamp.png new file mode 100644 index 0000000..5456ee9 Binary files /dev/null and b/mods/mesecons/mesecons_lamp/textures/jeija_meselamp.png differ diff --git a/mods/mesecons/mesecons_lamp/textures/jeija_meselamp_off.png b/mods/mesecons/mesecons_lamp/textures/jeija_meselamp_off.png new file mode 100644 index 0000000..67bd7fd Binary files /dev/null and b/mods/mesecons/mesecons_lamp/textures/jeija_meselamp_off.png differ diff --git a/mods/mesecons/mesecons_lamp/textures/jeija_meselamp_on.png b/mods/mesecons/mesecons_lamp/textures/jeija_meselamp_on.png new file mode 100644 index 0000000..2316e00 Binary files /dev/null and b/mods/mesecons/mesecons_lamp/textures/jeija_meselamp_on.png differ diff --git a/mods/mesecons/mesecons_lightstone/depends.txt b/mods/mesecons/mesecons_lightstone/depends.txt new file mode 100644 index 0000000..acaa924 --- /dev/null +++ b/mods/mesecons/mesecons_lightstone/depends.txt @@ -0,0 +1 @@ +mesecons diff --git a/mods/mesecons/mesecons_lightstone/init.lua b/mods/mesecons/mesecons_lightstone/init.lua new file mode 100644 index 0000000..7bb550d --- /dev/null +++ b/mods/mesecons/mesecons_lightstone/init.lua @@ -0,0 +1,60 @@ +local lightstone_rules = { + {x=0, y=0, z=-1}, + {x=1, y=0, z=0}, + {x=-1, y=0, z=0}, + {x=0, y=0, z=1}, + {x=1, y=1, z=0}, + {x=1, y=-1, z=0}, + {x=-1, y=1, z=0}, + {x=-1, y=-1, z=0}, + {x=0, y=1, z=1}, + {x=0, y=-1, z=1}, + {x=0, y=1, z=-1}, + {x=0, y=-1, z=-1}, + {x=0, y=-1, z=0}, +} + +function mesecon:lightstone_add(name, base_item, texture_off, texture_on) + minetest.register_node("mesecons_lightstone:lightstone_" .. name .. "_off", { + tiles = {texture_off}, + groups = {cracky=2, mesecon_effector_off = 1, mesecon = 2}, + description=name.." Lightstone", + sounds = default.node_sound_stone_defaults(), + mesecons = {effector = { + rules = lightstone_rules, + action_on = function (pos, node) + minetest.swap_node(pos, {name = "mesecons_lightstone:lightstone_" .. name .. "_on", param2 = node.param2}) + end, + }} + }) + minetest.register_node("mesecons_lightstone:lightstone_" .. name .. "_on", { + tiles = {texture_on}, + groups = {cracky=2,not_in_creative_inventory=1, mesecon = 2}, + drop = "mesecons_lightstone:lightstone_" .. name .. "_off", + light_source = LIGHT_MAX-2, + sounds = default.node_sound_stone_defaults(), + mesecons = {effector = { + rules = lightstone_rules, + action_off = function (pos, node) + minetest.swap_node(pos, {name = "mesecons_lightstone:lightstone_" .. name .. "_off", param2 = node.param2}) + end, + }} + }) + + minetest.register_craft({ + output = "mesecons_lightstone:lightstone_" .. name .. "_off", + recipe = { + {"",base_item,""}, + {base_item,"default:torch",base_item}, + {"","group:mesecon_conductor_craftable",""} + } + }) +end + + +mesecon:lightstone_add("red", "default:clay_brick", "jeija_lightstone_red_off.png", "jeija_lightstone_red_on.png") +mesecon:lightstone_add("green", "default:cactus", "jeija_lightstone_green_off.png", "jeija_lightstone_green_on.png") +mesecon:lightstone_add("blue", "mesecons_materials:fiber", "jeija_lightstone_blue_off.png", "jeija_lightstone_blue_on.png") +mesecon:lightstone_add("gray", "default:cobble", "jeija_lightstone_gray_off.png", "jeija_lightstone_gray_on.png") +mesecon:lightstone_add("darkgray", "default:gravel", "jeija_lightstone_darkgray_off.png", "jeija_lightstone_darkgray_on.png") +mesecon:lightstone_add("yellow", "default:mese_crystal_fragment", "jeija_lightstone_yellow_off.png", "jeija_lightstone_yellow_on.png") diff --git a/mods/mesecons/mesecons_lightstone/textures/jeija_lightstone_blue_off.png b/mods/mesecons/mesecons_lightstone/textures/jeija_lightstone_blue_off.png new file mode 100644 index 0000000..09acc22 Binary files /dev/null and b/mods/mesecons/mesecons_lightstone/textures/jeija_lightstone_blue_off.png differ diff --git a/mods/mesecons/mesecons_lightstone/textures/jeija_lightstone_blue_on.png b/mods/mesecons/mesecons_lightstone/textures/jeija_lightstone_blue_on.png new file mode 100644 index 0000000..93c8638 Binary files /dev/null and b/mods/mesecons/mesecons_lightstone/textures/jeija_lightstone_blue_on.png differ diff --git a/mods/mesecons/mesecons_lightstone/textures/jeija_lightstone_darkgray_off.png b/mods/mesecons/mesecons_lightstone/textures/jeija_lightstone_darkgray_off.png new file mode 100644 index 0000000..7e5aae7 Binary files /dev/null and b/mods/mesecons/mesecons_lightstone/textures/jeija_lightstone_darkgray_off.png differ diff --git a/mods/mesecons/mesecons_lightstone/textures/jeija_lightstone_darkgray_on.png b/mods/mesecons/mesecons_lightstone/textures/jeija_lightstone_darkgray_on.png new file mode 100644 index 0000000..e6d4d00 Binary files /dev/null and b/mods/mesecons/mesecons_lightstone/textures/jeija_lightstone_darkgray_on.png differ diff --git a/mods/mesecons/mesecons_lightstone/textures/jeija_lightstone_gray_off.png b/mods/mesecons/mesecons_lightstone/textures/jeija_lightstone_gray_off.png new file mode 100644 index 0000000..f168fc2 Binary files /dev/null and b/mods/mesecons/mesecons_lightstone/textures/jeija_lightstone_gray_off.png differ diff --git a/mods/mesecons/mesecons_lightstone/textures/jeija_lightstone_gray_on.png b/mods/mesecons/mesecons_lightstone/textures/jeija_lightstone_gray_on.png new file mode 100644 index 0000000..24c5470 Binary files /dev/null and b/mods/mesecons/mesecons_lightstone/textures/jeija_lightstone_gray_on.png differ diff --git a/mods/mesecons/mesecons_lightstone/textures/jeija_lightstone_green_off.png b/mods/mesecons/mesecons_lightstone/textures/jeija_lightstone_green_off.png new file mode 100644 index 0000000..2f214fa Binary files /dev/null and b/mods/mesecons/mesecons_lightstone/textures/jeija_lightstone_green_off.png differ diff --git a/mods/mesecons/mesecons_lightstone/textures/jeija_lightstone_green_on.png b/mods/mesecons/mesecons_lightstone/textures/jeija_lightstone_green_on.png new file mode 100644 index 0000000..225bf4e Binary files /dev/null and b/mods/mesecons/mesecons_lightstone/textures/jeija_lightstone_green_on.png differ diff --git a/mods/mesecons/mesecons_lightstone/textures/jeija_lightstone_red_off.png b/mods/mesecons/mesecons_lightstone/textures/jeija_lightstone_red_off.png new file mode 100644 index 0000000..3c828b2 Binary files /dev/null and b/mods/mesecons/mesecons_lightstone/textures/jeija_lightstone_red_off.png differ diff --git a/mods/mesecons/mesecons_lightstone/textures/jeija_lightstone_red_on.png b/mods/mesecons/mesecons_lightstone/textures/jeija_lightstone_red_on.png new file mode 100644 index 0000000..512b0fe Binary files /dev/null and b/mods/mesecons/mesecons_lightstone/textures/jeija_lightstone_red_on.png differ diff --git a/mods/mesecons/mesecons_lightstone/textures/jeija_lightstone_yellow_off.png b/mods/mesecons/mesecons_lightstone/textures/jeija_lightstone_yellow_off.png new file mode 100644 index 0000000..2e7fed0 Binary files /dev/null and b/mods/mesecons/mesecons_lightstone/textures/jeija_lightstone_yellow_off.png differ diff --git a/mods/mesecons/mesecons_lightstone/textures/jeija_lightstone_yellow_on.png b/mods/mesecons/mesecons_lightstone/textures/jeija_lightstone_yellow_on.png new file mode 100644 index 0000000..8943aca Binary files /dev/null and b/mods/mesecons/mesecons_lightstone/textures/jeija_lightstone_yellow_on.png differ diff --git a/mods/mesecons/mesecons_luacontroller/depends.txt b/mods/mesecons/mesecons_luacontroller/depends.txt new file mode 100644 index 0000000..acaa924 --- /dev/null +++ b/mods/mesecons/mesecons_luacontroller/depends.txt @@ -0,0 +1 @@ +mesecons diff --git a/mods/mesecons/mesecons_luacontroller/init.lua b/mods/mesecons/mesecons_luacontroller/init.lua new file mode 100644 index 0000000..c9a765e --- /dev/null +++ b/mods/mesecons/mesecons_luacontroller/init.lua @@ -0,0 +1,592 @@ +-- Reference +-- ports = get_real_portstates(pos): gets if inputs are powered from outside +-- newport = merge_portstates(state1, state2): just does result = state1 or state2 for every port +-- action_setports(pos, rule, state): activates/deactivates the mesecons according to the portstates (helper for action) +-- action(pos, ports): Applies new portstates to a luacontroller at pos +-- lc_update(pos): updates the controller at pos by executing the code +-- reset_meta (pos, code, errmsg): performs a software-reset, installs new code and prints error messages +-- reset (pos): performs a hardware reset, turns off all ports +-- +-- The Sandbox +-- The whole code of the controller runs in a sandbox, +-- a very restricted environment. +-- However, as this does not prevent you from using e.g. loops, +-- we need to check for these prohibited commands first. +-- Actually the only way to damage the server is to +-- use too much memory from the sandbox. +-- You can add more functions to the environment +-- (see where local env is defined) +-- Something nice to play is is appending minetest.env to it. + +local BASENAME = "mesecons_luacontroller:luacontroller" + +local rules = {} +rules.a = {x = -1, y = 0, z = 0, name="A"} +rules.b = {x = 0, y = 0, z = 1, name="B"} +rules.c = {x = 1, y = 0, z = 0, name="C"} +rules.d = {x = 0, y = 0, z = -1, name="D"} + +------------------ +-- Action stuff -- +------------------ +-- These helpers are required to set the portstates of the luacontroller + +function lc_update_real_portstates(pos, rulename, newstate) + local meta = minetest.get_meta(pos) + if rulename == nil then + meta:set_int("real_portstates", 1) + return + end + local n = meta:get_int("real_portstates") - 1 + if n < 0 then + legacy_update_ports(pos) + n = meta:get_int("real_portstates") - 1 + end + local L = {} + for i = 1, 4 do + L[i] = n%2 + n = math.floor(n/2) + end + if rulename.x == nil then + for _, rname in ipairs(rulename) do + local port = ({4, 1, nil, 3, 2})[rname.x+2*rname.z+3] + L[port] = (newstate == "on") and 1 or 0 + end + else + local port = ({4, 1, nil, 3, 2})[rulename.x+2*rulename.z+3] + L[port] = (newstate == "on") and 1 or 0 + end + meta:set_int("real_portstates", 1 + L[1] + 2*L[2] + 4*L[3] + 8*L[4]) +end + +local get_real_portstates = function(pos) -- determine if ports are powered (by itself or from outside) + local meta = minetest.get_meta(pos) + local L = {} + local n = meta:get_int("real_portstates") - 1 + if n < 0 then + return legacy_update_ports(pos) + end + for _, index in ipairs({"a", "b", "c", "d"}) do + L[index] = ((n%2) == 1) + n = math.floor(n/2) + end + return L +end + +local merge_portstates = function (ports, vports) + local npo = {a=false, b=false, c=false, d=false} + npo.a = vports.a or ports.a + npo.b = vports.b or ports.b + npo.c = vports.c or ports.c + npo.d = vports.d or ports.d + return npo +end + +local generate_name = function (ports) + local overwrite = overwrite or {} + local d = ports.d and 1 or 0 + local c = ports.c and 1 or 0 + local b = ports.b and 1 or 0 + local a = ports.a and 1 or 0 + return BASENAME..d..c..b..a +end + +local setport = function (pos, rule, state) + if state then + mesecon:receptor_on(pos, {rule}) + else + mesecon:receptor_off(pos, {rule}) + end +end + +local action = function (pos, ports) + local node = minetest.get_node(pos) + local name = node.name + local vports = minetest.registered_nodes[name].virtual_portstates + local newname = generate_name(ports) + + if name ~= newname and vports then + local rules_on = {} + local rules_off = {} + + minetest.swap_node(pos, {name = newname, param2 = node.param2}) + + if ports.a ~= vports.a then setport(pos, rules.a, ports.a) end + if ports.b ~= vports.b then setport(pos, rules.b, ports.b) end + if ports.c ~= vports.c then setport(pos, rules.c, ports.c) end + if ports.d ~= vports.d then setport(pos, rules.d, ports.d) end + end +end + +-------------------- +-- Overheat stuff -- +-------------------- + +local heat = function (meta) -- warm up + h = meta:get_int("heat") + if h ~= nil then + meta:set_int("heat", h + 1) + end +end + +--local cool = function (meta) -- cool down after a while +-- h = meta:get_int("heat") +-- if h ~= nil then +-- meta:set_int("heat", h - 1) +-- end +--end + +local overheat = function (meta) -- determine if too hot + h = meta:get_int("heat") + if h == nil then return true end -- if nil then overheat + if h > 40 then + return true + else + return false + end +end + +local overheat_off = function(pos) + mesecon:receptor_off(pos, mesecon.rules.flat) +end + +------------------- +-- Parsing stuff -- +------------------- + +local code_prohibited = function(code) + -- Clean code + local prohibited = {"while", "for", "repeat", "until", "function", "goto"} + for _, p in ipairs(prohibited) do + if string.find(code, p) then + return "Prohibited command: "..p + end + end +end + +local safe_print = function(param) + print(dump(param)) +end + +deep_copy = function(original, visited) --deep copy that removes functions + visited = visited or {} + if visited[original] ~= nil then --already visited this node + return visited[original] + end + if type(original) == 'table' then --nested table + local copy = {} + visited[original] = copy + for key, value in next, original, nil do + copy[deep_copy(key, visited)] = deep_copy(value, visited) + end + setmetatable(copy, deep_copy(getmetatable(original), visited)) + return copy + elseif type(original) == 'function' then --ignore functions + return nil + else --by-value type + return original + end +end + +local safe_serialize = function(value) + return minetest.serialize(deep_copy(value)) +end + +local interrupt = function(params) + lc_update(params.pos, {type="interrupt", iid = params.iid}) +end + +local getinterrupt = function(pos) + local interrupt = function (time, iid) -- iid = interrupt id + if type(time) ~= "number" then return end + local iid = iid or math.random() + local meta = minetest.get_meta(pos) + local interrupts = minetest.deserialize(meta:get_string("lc_interrupts")) or {} + local found = false + local search = safe_serialize(iid) + for _, i in ipairs(interrupts) do + if safe_serialize(i) == search then + found = true + break + end + end + if not found then + table.insert(interrupts, iid) + meta:set_string("lc_interrupts", safe_serialize(interrupts)) + end + minetest.after(time, interrupt, {pos=pos, iid = iid}) + end + return interrupt +end + +local getdigiline_send = function (pos) + local digiline_send = function (channel, msg) + if digiline then + digiline:receptor_send(pos, digiline.rules.default, channel, msg) + end + end + return digiline_send +end + +local create_environment = function(pos, mem, event) + -- Gather variables for the environment + local vports = minetest.registered_nodes[minetest.get_node(pos).name].virtual_portstates + vports = {a = vports.a, b = vports.b, c = vports.c, d = vports.d} + local rports = get_real_portstates(pos) + + return { + print = safe_print, + pin = merge_portstates(vports, rports), + port = vports, + interrupt = getinterrupt(pos), + digiline_send = getdigiline_send(pos), + mem = mem, + tostring = tostring, + tonumber = tonumber, + string = { + byte = string.byte, + char = string.char, + find = string.find, + format = string.format, + gmatch = string.gmatch, + gsub = string.gsub, + len = string.len, + lower = string.lower, + match = string.match, + rep = string.rep, + reverse = string.reverse, + sub = string.sub, + }, + math = { + abs = math.abs, + acos = math.acos, + asin = math.asin, + atan = math.atan, + atan2 = math.atan2, + ceil = math.ceil, + cos = math.cos, + cosh = math.cosh, + deg = math.deg, + exp = math.exp, + floor = math.floor, + fmod = math.fmod, + frexp = math.frexp, + huge = math.huge, + ldexp = math.ldexp, + log = math.log, + log10 = math.log10, + max = math.max, + min = math.min, + modf = math.modf, + pi = math.pi, + pow = math.pow, + rad = math.rad, + random = math.random, + sin = math.sin, + sinh = math.sinh, + sqrt = math.sqrt, + tan = math.tan, + tanh = math.tanh, + }, + table = { + insert = table.insert, + maxn = table.maxn, + remove = table.remove, + sort = table.sort + }, + event = event, + } +end + +local create_sandbox = function (code, env) + -- Create Sandbox + if code:byte(1) == 27 then + return _, "You Hacker You! Don't use binary code!" + end + f, msg = loadstring(code) + if not f then return _, msg end + setfenv(f, env) + return f +end + +local do_overheat = function (pos, meta) + -- Overheat protection + heat(meta) + --minetest.after(0.5, cool, meta) + if overheat(meta) then + local node = minetest.get_node(pos) + minetest.swap_node(pos, {name = BASENAME.."_burnt", param2 = node.param2}) + minetest.get_meta(pos):set_string("lc_interrupts", "") + minetest.after(0.2, overheat_off, pos) -- wait for pending operations + return true + end +end + +local load_memory = function(meta) + return minetest.deserialize(meta:get_string("lc_memory")) or {} +end + +local save_memory = function(meta, mem) + meta:set_string("lc_memory", safe_serialize(mem)) +end + +local interrupt_allow = function (meta, event) + if event.type ~= "interrupt" then return true end + + local interrupts = minetest.deserialize(meta:get_string("lc_interrupts")) or {} + local search = safe_serialize(event.iid) + for _, i in ipairs(interrupts) do + if safe_serialize(i) == search then + return true + end + end + + return false +end + +local ports_invalid = function (var) + if type(var) == "table" then + return false + end + return "The ports you set are invalid" +end + +---------------------- +-- Parsing function -- +---------------------- + +lc_update = function (pos, event) + local meta = minetest.get_meta(pos) + if not interrupt_allow(meta, event) then return end + if do_overheat(pos, meta) then return end + + -- load code & mem from memory + local mem = load_memory(meta) + local code = meta:get_string("code") + + -- make sure code is ok and create environment + local prohibited = code_prohibited(code) + if prohibited then return prohibited end + local env = create_environment(pos, mem, event) + + -- create the sandbox and execute code + local chunk, msg = create_sandbox (code, env) + if not chunk then return msg end + local success, msg = pcall(f) + if not success then return msg end + if ports_invalid(env.port) then return ports_invalid(env.port) end + + save_memory(meta, mem) + + -- Actually set the ports + minetest.after(0, action, pos, env.port) +end + +local reset_meta = function(pos, code, errmsg) + local meta = minetest.get_meta(pos) + meta:set_string("code", code) + code = minetest.formspec_escape(code or "") + errmsg = minetest.formspec_escape(errmsg or "") + meta:set_string("formspec", "size[10,8]".. + "background[-0.2,-0.25;10.4,8.75;jeija_luac_background.png]".. + "textarea[0.2,0.6;10.2,5;code;;"..code.."]".. + "image_button[3.75,6;2.5,1;jeija_luac_runbutton.png;program;]".. + "image_button_exit[9.72,-0.25;0.425,0.4;jeija_close_window.png;exit;]".. + "label[0.1,5;"..errmsg.."]") + meta:set_int("heat", 0) +end + +local reset = function (pos) + minetest.get_meta(pos):set_string("lc_interrupts", "") + action(pos, {a=false, b=false, c=false, d=false}, true) +end + +-- ______ +-- | +-- | +-- | __ ___ _ __ _ _ +-- | | | | | |\ | | |_| | | | | |_ |_| +-- |___| |______ |__| | \| | | \ |__| |_ |_ |_ |\ +-- | +-- | +-- + +----------------------- +-- Node Registration -- +----------------------- + +local output_rules={} +local input_rules={} + +local nodebox = { + type = "fixed", + fixed = { + { -8/16, -8/16, -8/16, 8/16, -7/16, 8/16 }, -- bottom slab + { -5/16, -7/16, -5/16, 5/16, -6/16, 5/16 }, -- circuit board + { -3/16, -6/16, -3/16, 3/16, -5/16, 3/16 }, -- IC + } + } + +local selectionbox = { + type = "fixed", + fixed = { -8/16, -8/16, -8/16, 8/16, -5/16, 8/16 }, + } + +local digiline = { + receptor = {}, + effector = { + action = function (pos, node, channel, msg) + lc_update (pos, {type = "digiline", channel = channel, msg = msg}) + end + } +} + +for a = 0, 1 do -- 0 = off; 1 = on +for b = 0, 1 do +for c = 0, 1 do +for d = 0, 1 do + +local cid = tostring(d)..tostring(c)..tostring(b)..tostring(a) +local nodename = BASENAME..cid +local top = "jeija_luacontroller_top.png" +if a == 1 then + top = top.."^jeija_luacontroller_LED_A.png" +end +if b == 1 then + top = top.."^jeija_luacontroller_LED_B.png" +end +if c == 1 then + top = top.."^jeija_luacontroller_LED_C.png" +end +if d == 1 then + top = top.."^jeija_luacontroller_LED_D.png" +end + +if a + b + c + d ~= 0 then + groups = {dig_immediate=2, not_in_creative_inventory=1, overheat = 1} +else + groups = {dig_immediate=2, overheat = 1} +end + +output_rules[cid] = {} +input_rules[cid] = {} +if (a == 1) then table.insert(output_rules[cid], rules.a) end +if (b == 1) then table.insert(output_rules[cid], rules.b) end +if (c == 1) then table.insert(output_rules[cid], rules.c) end +if (d == 1) then table.insert(output_rules[cid], rules.d) end + +if (a == 0) then table.insert(input_rules[cid], rules.a) end +if (b == 0) then table.insert(input_rules[cid], rules.b) end +if (c == 0) then table.insert(input_rules[cid], rules.c) end +if (d == 0) then table.insert(input_rules[cid], rules.d) end + +local mesecons = { + effector = + { + rules = input_rules[cid], + action_change = function (pos, _, rulename, newstate) + lc_update_real_portstates(pos, rulename, newstate) + lc_update(pos, {type=newstate, pin=rulename}) + end, + }, + receptor = + { + state = mesecon.state.on, + rules = output_rules[cid] + } +} + +minetest.register_node(nodename, { + description = "Luacontroller", + drawtype = "nodebox", + tiles = { + top, + "jeija_microcontroller_bottom.png", + "jeija_microcontroller_sides.png", + "jeija_microcontroller_sides.png", + "jeija_microcontroller_sides.png", + "jeija_microcontroller_sides.png" + }, + + inventory_image = top, + paramtype = "light", + groups = groups, + drop = BASENAME.."0000", + sunlight_propagates = true, + selection_box = selectionbox, + node_box = nodebox, + on_construct = reset_meta, + on_receive_fields = function(pos, formname, fields) + if fields.quit then + return + end + reset(pos) + reset_meta(pos, fields.code) + local err = lc_update(pos, {type="program"}) + if err then print(err) end + reset_meta(pos, fields.code, err) + end, + sounds = default.node_sound_stone_defaults(), + mesecons = mesecons, + digiline = digiline, + is_luacontroller = true, + virtual_portstates = { a = a == 1, -- virtual portstates are + b = b == 1, -- the ports the the + c = c == 1, -- controller powers itself + d = d == 1},-- so those that light up + after_dig_node = function (pos, node) + mesecon:receptor_off(pos, output_rules) + end, +}) +end +end +end +end + +--overheated luacontroller +minetest.register_node(BASENAME .. "_burnt", { + drawtype = "nodebox", + tiles = { + "jeija_luacontroller_burnt_top.png", + "jeija_microcontroller_bottom.png", + "jeija_microcontroller_sides.png", + "jeija_microcontroller_sides.png", + "jeija_microcontroller_sides.png", + "jeija_microcontroller_sides.png" + }, + inventory_image = "jeija_luacontroller_burnt_top.png", + paramtype = "light", + groups = {dig_immediate=2, not_in_creative_inventory=1}, + drop = BASENAME.."0000", + sunlight_propagates = true, + selection_box = selectionbox, + node_box = nodebox, + on_construct = reset_meta, + on_receive_fields = function(pos, formname, fields) + if fields.quit then + return + end + reset(pos) + reset_meta(pos, fields.code) + local err = lc_update(pos, {type="program"}) + if err then print(err) end + reset_meta(pos, fields.code, err) + end, + sounds = default.node_sound_stone_defaults(), + is_luacontroller = true, + virtual_portstates = {a = false, b = false, c = false, d = false}, +}) + +------------------------ +-- Craft Registration -- +------------------------ + +minetest.register_craft({ + output = BASENAME.."0000 2", + recipe = { + {'mesecons_materials:silicon', 'mesecons_materials:silicon', 'group:mesecon_conductor_craftable'}, + {'mesecons_materials:silicon', 'mesecons_materials:silicon', 'group:mesecon_conductor_craftable'}, + {'group:mesecon_conductor_craftable', 'group:mesecon_conductor_craftable', ''}, + } +}) + diff --git a/mods/mesecons/mesecons_luacontroller/textures/jeija_luac_background.png b/mods/mesecons/mesecons_luacontroller/textures/jeija_luac_background.png new file mode 100644 index 0000000..40e316c Binary files /dev/null and b/mods/mesecons/mesecons_luacontroller/textures/jeija_luac_background.png differ diff --git a/mods/mesecons/mesecons_luacontroller/textures/jeija_luac_runbutton.png b/mods/mesecons/mesecons_luacontroller/textures/jeija_luac_runbutton.png new file mode 100644 index 0000000..157507f Binary files /dev/null and b/mods/mesecons/mesecons_luacontroller/textures/jeija_luac_runbutton.png differ diff --git a/mods/mesecons/mesecons_luacontroller/textures/jeija_luacontroller_LED_A.png b/mods/mesecons/mesecons_luacontroller/textures/jeija_luacontroller_LED_A.png new file mode 100644 index 0000000..a187e8e Binary files /dev/null and b/mods/mesecons/mesecons_luacontroller/textures/jeija_luacontroller_LED_A.png differ diff --git a/mods/mesecons/mesecons_luacontroller/textures/jeija_luacontroller_LED_B.png b/mods/mesecons/mesecons_luacontroller/textures/jeija_luacontroller_LED_B.png new file mode 100644 index 0000000..738ba96 Binary files /dev/null and b/mods/mesecons/mesecons_luacontroller/textures/jeija_luacontroller_LED_B.png differ diff --git a/mods/mesecons/mesecons_luacontroller/textures/jeija_luacontroller_LED_C.png b/mods/mesecons/mesecons_luacontroller/textures/jeija_luacontroller_LED_C.png new file mode 100644 index 0000000..abe0fe6 Binary files /dev/null and b/mods/mesecons/mesecons_luacontroller/textures/jeija_luacontroller_LED_C.png differ diff --git a/mods/mesecons/mesecons_luacontroller/textures/jeija_luacontroller_LED_D.png b/mods/mesecons/mesecons_luacontroller/textures/jeija_luacontroller_LED_D.png new file mode 100644 index 0000000..cc10170 Binary files /dev/null and b/mods/mesecons/mesecons_luacontroller/textures/jeija_luacontroller_LED_D.png differ diff --git a/mods/mesecons/mesecons_luacontroller/textures/jeija_luacontroller_top.png b/mods/mesecons/mesecons_luacontroller/textures/jeija_luacontroller_top.png new file mode 100644 index 0000000..3128230 Binary files /dev/null and b/mods/mesecons/mesecons_luacontroller/textures/jeija_luacontroller_top.png differ diff --git a/mods/mesecons/mesecons_materials/depends.txt b/mods/mesecons/mesecons_materials/depends.txt new file mode 100644 index 0000000..acaa924 --- /dev/null +++ b/mods/mesecons/mesecons_materials/depends.txt @@ -0,0 +1 @@ +mesecons diff --git a/mods/mesecons/mesecons_materials/init.lua b/mods/mesecons/mesecons_materials/init.lua new file mode 100644 index 0000000..f95373c --- /dev/null +++ b/mods/mesecons/mesecons_materials/init.lua @@ -0,0 +1,41 @@ +--GLUE +minetest.register_craftitem("mesecons_materials:glue", { + image = "jeija_glue.png", + on_place_on_ground = minetest.craftitem_place_item, + description="Glue", +}) + +minetest.register_craftitem("mesecons_materials:fiber", { + image = "jeija_fiber.png", + on_place_on_ground = minetest.craftitem_place_item, + description="Fiber", +}) + +minetest.register_craft({ + output = "mesecons_materials:glue 2", + type = "cooking", + recipe = "default:sapling", + cooktime = 2 +}) + +minetest.register_craft({ + output = "mesecons_materials:fiber 6", + type = "cooking", + recipe = "mesecons_materials:glue", + cooktime = 4 +}) + +-- Silicon +minetest.register_craftitem("mesecons_materials:silicon", { + image = "jeija_silicon.png", + on_place_on_ground = minetest.craftitem_place_item, + description="Silicon", +}) + +minetest.register_craft({ + output = "mesecons_materials:silicon 4", + recipe = { + {"default:sand", "default:sand"}, + {"default:sand", "default:steel_ingot"}, + } +}) diff --git a/mods/mesecons/mesecons_microcontroller/MeseconMicro.odt b/mods/mesecons/mesecons_microcontroller/MeseconMicro.odt new file mode 100644 index 0000000..be82d1b Binary files /dev/null and b/mods/mesecons/mesecons_microcontroller/MeseconMicro.odt differ diff --git a/mods/mesecons/mesecons_microcontroller/MeseconMicro.pdf b/mods/mesecons/mesecons_microcontroller/MeseconMicro.pdf new file mode 100644 index 0000000..7ab7484 Binary files /dev/null and b/mods/mesecons/mesecons_microcontroller/MeseconMicro.pdf differ diff --git a/mods/mesecons/mesecons_microcontroller/depends.txt b/mods/mesecons/mesecons_microcontroller/depends.txt new file mode 100644 index 0000000..acaa924 --- /dev/null +++ b/mods/mesecons/mesecons_microcontroller/depends.txt @@ -0,0 +1 @@ +mesecons diff --git a/mods/mesecons/mesecons_microcontroller/init.lua b/mods/mesecons/mesecons_microcontroller/init.lua new file mode 100644 index 0000000..b6134da --- /dev/null +++ b/mods/mesecons/mesecons_microcontroller/init.lua @@ -0,0 +1,731 @@ +EEPROM_SIZE = 255 + +for a = 0, 1 do +for b = 0, 1 do +for c = 0, 1 do +for d = 0, 1 do +local nodename = "mesecons_microcontroller:microcontroller"..tostring(d)..tostring(c)..tostring(b)..tostring(a) +local top = "jeija_microcontroller_top.png" +if tostring(a) == "1" then + top = top.."^jeija_microcontroller_LED_A.png" +end +if tostring(b) == "1" then + top = top.."^jeija_microcontroller_LED_B.png" +end +if tostring(c) == "1" then + top = top.."^jeija_microcontroller_LED_C.png" +end +if tostring(d) == "1" then + top = top.."^jeija_microcontroller_LED_D.png" +end +if tostring(d)..tostring(c)..tostring(b)..tostring(a) ~= "0000" then + groups = {dig_immediate=2, not_in_creative_inventory=1, mesecon = 3, overheat = 1} +else + groups = {dig_immediate=2, mesecon = 3, overheat = 1} +end +local rules={} +if (a == 1) then table.insert(rules, {x = -1, y = 0, z = 0}) end +if (b == 1) then table.insert(rules, {x = 0, y = 0, z = 1}) end +if (c == 1) then table.insert(rules, {x = 1, y = 0, z = 0}) end +if (d == 1) then table.insert(rules, {x = 0, y = 0, z = -1}) end + +local input_rules={} +if (a == 0) then table.insert(input_rules, {x = -1, y = 0, z = 0, name = "A"}) end +if (b == 0) then table.insert(input_rules, {x = 0, y = 0, z = 1, name = "B"}) end +if (c == 0) then table.insert(input_rules, {x = 1, y = 0, z = 0, name = "C"}) end +if (d == 0) then table.insert(input_rules, {x = 0, y = 0, z = -1, name = "D"}) end +mesecon:add_rules(nodename, rules) + +local mesecons = {effector = +{ + rules = input_rules, + action_change = function (pos, node, rulename, newstate) + yc_update_real_portstates(pos, node, rulename, newstate) + update_yc(pos) + end +}} +if nodename ~= "mesecons_microcontroller:microcontroller0000" then + mesecons.receptor = { + state = mesecon.state.on, + rules = rules + } +end + +minetest.register_node(nodename, { + description = "Microcontroller", + drawtype = "nodebox", + tiles = { + top, + "jeija_microcontroller_bottom.png", + "jeija_microcontroller_sides.png", + "jeija_microcontroller_sides.png", + "jeija_microcontroller_sides.png", + "jeija_microcontroller_sides.png" + }, + + sunlight_propagates = true, + paramtype = "light", + walkable = true, + groups = groups, + drop = "mesecons_microcontroller:microcontroller0000 1", + selection_box = { + type = "fixed", + fixed = { -8/16, -8/16, -8/16, 8/16, -5/16, 8/16 }, + }, + node_box = { + type = "fixed", + fixed = { + { -8/16, -8/16, -8/16, 8/16, -7/16, 8/16 }, -- bottom slab + { -5/16, -7/16, -5/16, 5/16, -6/16, 5/16 }, -- circuit board + { -3/16, -6/16, -3/16, 3/16, -5/16, 3/16 }, -- IC + } + }, + on_construct = function(pos) + local meta = minetest.get_meta(pos) + meta:set_string("code", "") + meta:set_string("formspec", "size[9,2.5]".. + "field[0.256,-0.2;9,2;code;Code:;]".. + "button[0 ,0.2;1.5,3;band;AND]".. + "button[1.5,0.2;1.5,3;bxor;XOR]".. + "button[3 ,0.2;1.5,3;bnot;NOT]".. + "button[4.5,0.2;1.5,3;bnand;NAND]".. + "button[6 ,0.2;1.5,3;btflop;T-Flop]".. + "button[7.5,0.2;1.5,3;brsflop;RS-Flop]".. + "button_exit[3.5,1;2,3;program;Program]") + meta:set_string("infotext", "Unprogrammed Microcontroller") + meta:set_int("heat", 0) + local r = "" + for i=1, EEPROM_SIZE+1 do r=r.."0" end --Generate a string with EEPROM_SIZE*"0" + meta:set_string("eeprom", r) + end, + on_receive_fields = function(pos, formanme, fields, sender) + if fields.quit then + return + end + local meta = minetest.get_meta(pos) + if fields.band then + fields.code = "sbi(C, A&B) :A and B are inputs, C is output" + elseif fields.bxor then + fields.code = "sbi(C, A~B) :A and B are inputs, C is output" + elseif fields.bnot then + fields.code = "sbi(B, !A) :A is input, B is output" + elseif fields.bnand then + fields.code = "sbi(C, !A|!B) :A and B are inputs, C is output" + elseif fields.btflop then + fields.code = "if(A)sbi(1,1);if(!A)sbi(B,!B)sbi(1,0); if(C)off(B,1); :A is input, B is output (Q), C is reset, toggles with falling edge" + elseif fields.brsflop then + fields.code = "if(A)on(C);if(B)off(C); :A is S (Set), B is R (Reset), C is output (R dominates)" + elseif fields.program or fields.code then --nothing + else return nil end + + meta:set_string("code", fields.code) + meta:set_string("formspec", "size[9,2.5]".. + "field[0.256,-0.2;9,2;code;Code:;"..minetest.formspec_escape(fields.code).."]".. + "button[0 ,0.2;1.5,3;band;AND]".. + "button[1.5,0.2;1.5,3;bxor;XOR]".. + "button[3 ,0.2;1.5,3;bnot;NOT]".. + "button[4.5,0.2;1.5,3;bnand;NAND]".. + "button[6 ,0.2;1.5,3;btflop;T-Flop]".. + "button[7.5,0.2;1.5,3;brsflop;RS-Flop]".. + "button_exit[3.5,1;2,3;program;Program]") + meta:set_string("infotext", "Programmed Microcontroller") + yc_reset (pos) + update_yc(pos) + end, + sounds = default.node_sound_stone_defaults(), + mesecons = mesecons, + after_dig_node = function (pos, node) + rules = mesecon:get_rules(node.name) + mesecon:receptor_off(pos, rules) + end, +}) +end +end +end +end + +minetest.register_craft({ + output = 'craft "mesecons_microcontroller:microcontroller0000" 2', + recipe = { + {'mesecons_materials:silicon', 'mesecons_materials:silicon', 'group:mesecon_conductor_craftable'}, + {'mesecons_materials:silicon', 'mesecons_materials:silicon', 'group:mesecon_conductor_craftable'}, + {'group:mesecon_conductor_craftable', 'group:mesecon_conductor_craftable', ''}, + } +}) + +function yc_reset(pos) + yc_action(pos, {a=false, b=false, c=false, d=false}) + local meta = minetest.get_meta(pos) + meta:set_int("heat", 0) + meta:set_int("afterid", 0) + local r = "" + for i=1, EEPROM_SIZE+1 do r=r.."0" end --Generate a string with EEPROM_SIZE*"0" + meta:set_string("eeprom", r) +end + +function update_yc(pos) + local meta = minetest.get_meta(pos) + yc_heat(meta) + --minetest.after(0.5, yc_cool, meta) + if (yc_overheat(meta)) then + minetest.remove_node(pos) + minetest.after(0.2, yc_overheat_off, pos) --wait for pending parsings + minetest.add_item(pos, "mesecons_microcontroller:microcontroller0000") + end + + local code = meta:get_string("code") + code = yc_code_remove_commentary(code) + code = string.gsub(code, " ", "") --Remove all spaces + code = string.gsub(code, " ", "") --Remove all tabs + if yc_parsecode(code, pos) == nil then + meta:set_string("infotext", "Code not valid!\n"..code) + else + meta:set_string("infotext", "Working Microcontroller\n"..code) + end +end + + +--Code Parsing +function yc_code_remove_commentary(code) + is_string = false + for i = 1, #code do + if code:sub(i, i) == '"' then + is_string = not is_string --toggle is_string + elseif code:sub(i, i) == ":" and not is_string then + return code:sub(1, i-1) + end + end + return code +end + +function yc_parsecode(code, pos) + local meta = minetest.get_meta(pos) + local endi = 1 + local Lreal = yc_get_real_portstates(pos) + local Lvirtual = yc_get_virtual_portstates(pos) + if Lvirtual == nil then return nil end + local c + local eeprom = meta:get_string("eeprom") + while true do + command, endi = parse_get_command(code, endi) + if command == nil then return nil end + if command == true then break end --end of code + if command == "if" then + r, endi = yc_command_if(code, endi, yc_merge_portstates(Lreal, Lvirtual), eeprom) + if r == nil then return nil end + if r == true then -- nothing + elseif r == false then + endi_new = yc_skip_to_else (code, endi) + if endi_new == nil then --else > not found + endi = yc_skip_to_endif(code, endi) + else + endi = endi_new + end + if endi == nil then return nil end + end + else + params, endi = parse_get_params(code, endi) + if params == nil then return nil end + end + if command == "on" then + L = yc_command_on (params, Lvirtual) + elseif command == "off" then + L = yc_command_off(params, Lvirtual) + elseif command == "print" then + local su = yc_command_print(params, eeprom, yc_merge_portstates(Lreal, Lvirtual)) + if su ~= true then return nil end + elseif command == "after" then + local su = yc_command_after(params, pos) + if su == nil then return nil end + elseif command == "sbi" then + new_eeprom, Lvirtual = yc_command_sbi (params, eeprom, yc_merge_portstates(Lreal, Lvirtual), Lvirtual) + if new_eeprom == nil then return nil + else eeprom = new_eeprom end + elseif command == "if" then --nothing + else + return nil + end + if Lvirtual == nil then return nil end + if eeprom == nil then return nil else + minetest.get_meta(pos):set_string("eeprom", eeprom) end + end + yc_action(pos, Lvirtual) + return true +end + +function parse_get_command(code, starti) + i = starti + s = nil + while s ~= "" do + s = string.sub(code, i, i) + if s == "(" then + return string.sub(code, starti, i-1), i + 1 -- i: ( i+1 after ( + end + if s == ";" and starti == i then + starti = starti + 1 + i = starti + elseif s == ">" then + starti = yc_skip_to_endif(code, starti) + if starti == nil then return nil end + i = starti + else + i = i + 1 + end + end + + if starti == i-1 then + return true, true + end + return nil, nil +end + +function parse_get_params(code, starti) + i = starti + s = nil + local params = {} + local is_string = false + while s ~= "" do + s = string.sub(code, i, i) + if code:sub(i, i) == '"' then + is_string = (is_string==false) --toggle is_string + end + if s == ")" and is_string == false then + table.insert(params, string.sub(code, starti, i-1)) -- i: ) i+1 after ) + return params, i + 1 + end + if s == "," and is_string == false then + table.insert(params, string.sub(code, starti, i-1)) -- i: ) i+1 after ) + starti = i + 1 + end + i = i + 1 + end + return nil, nil +end + +function yc_parse_get_eeprom_param(cond, starti) + i = starti + s = nil + local addr + while s ~= "" do + s = string.sub(cond, i, i) + if string.find("0123456789", s) == nil or s == "" then + addr = string.sub(cond, starti, i-1) -- i: last number i+1 after last number + return addr, i + end + if s == "," then return nil, nil end + i = i + 1 + end + return nil, nil +end + +function yc_skip_to_endif(code, starti) + local i = starti + local s = false + local open_ifs = 1 + while s ~= nil and s~= "" do + s = code:sub(i, i) + if s == "i" and code:sub(i+1, i+1) == "f" then --if in µCScript + open_ifs = open_ifs + 1 + end + if s == ";" then + open_ifs = open_ifs - 1 + end + if open_ifs == 0 then + return i + 1 + end + i = i + 1 + end + return nil +end + +function yc_skip_to_else(code, starti) + local i = starti + local s = false + local open_ifs = 1 + while s ~= nil and s~= "" do + s = code:sub(i, i) + if s == "i" and code:sub(i+1, i+1) == "f" then --if in µCScript + open_ifs = open_ifs + 1 + end + if s == ";" then + open_ifs = open_ifs - 1 + end + if open_ifs == 1 and s == ">" then + return i + 1 + end + i = i + 1 + end + return nil +end + +--Commands +function yc_command_on(params, L) + local rules = {} + for i, port in ipairs(params) do + L = yc_set_portstate (port, true, L) + end + return L +end + +function yc_command_off(params, L) + local rules = {} + for i, port in ipairs(params) do + L = yc_set_portstate (port, false, L) + end + return L +end + +function yc_command_print(params, eeprom, L) + local s = "" + for i, param in ipairs(params) do + if param:sub(1,1) == '"' and param:sub(#param, #param) == '"' then + s = s..param:sub(2, #param-1) + else + r = yc_command_parsecondition(param, L, eeprom) + if r == "1" or r == "0" then + s = s..r + else return nil end + end + end + print(s) --don't remove + return true +end + +function yc_command_sbi(params, eeprom, L, Lv) + if params[1]==nil or params[2]==nil or params[3] ~=nil then return nil end + local status = yc_command_parsecondition(params[2], L, eeprom) + + if status == nil then return nil, nil end + + if string.find("ABCD", params[1])~=nil and #params[1]==1 then --is a port + if status == "1" then + Lv = yc_set_portstate (params[1], true, Lv) + else + Lv = yc_set_portstate (params[1], false, Lv) + end + return eeprom, Lv; + end + + --is an eeprom address + new_eeprom = ""; + for i=1, #eeprom do + if tonumber(params[1])==i then + new_eeprom = new_eeprom..status + else + new_eeprom = new_eeprom..eeprom:sub(i, i) + end + end + return new_eeprom, Lv +end + +-- after (delay) +function yc_command_after(params, pos) + if params[1] == nil or params[2] == nil or params[3] ~= nil then return nil end + + --get time (maximum time is 200) + local time = tonumber(params[1]) + if time == nil or time > 200 then + return nil + end + + --get code in quotes "code" + if string.sub(params[2], 1, 1) ~= '"' or string.sub(params[2], #params[2], #params[2]) ~= '"' then return nil end + local code = string.sub(params[2], 2, #params[2] - 1) + + local afterid = math.random(10000) + local meta = minetest.get_meta(pos) + meta:set_int("afterid", afterid) + minetest.after(time, yc_command_after_execute, {pos = pos, code = code, afterid = afterid}) + return true +end + +function yc_command_after_execute(params) + local meta = minetest.get_meta(params.pos) + if meta:get_int("afterid") == params.afterid then --make sure the node has not been changed + if yc_parsecode(params.code, params.pos) == nil then + meta:set_string("infotext", "Code in after() not valid!") + else + if code ~= nil then + meta:set_string("infotext", "Working Microcontroller\n"..code) + else + meta:set_string("infotext", "Working Microcontroller") + end + end + end +end + +--If +function yc_command_if(code, starti, L, eeprom) + local cond, endi = yc_command_if_getcondition(code, starti) + if cond == nil then return nil end + + cond = yc_command_parsecondition(cond, L, eeprom) + + if cond == "0" then result = false + elseif cond == "1" then result = true + else result = nil end + if result == nil then end + return result, endi --endi from local cond, endi = yc_command_if_getcondition(code, starti) +end + +--Condition parsing +function yc_command_if_getcondition(code, starti) + i = starti + s = nil + local brackets = 1 --1 Bracket to close + while s ~= "" do + s = string.sub(code, i, i) + + if s == ")" then + brackets = brackets - 1 + end + + if s == "(" then + brackets = brackets + 1 + end + + if brackets == 0 then + return string.sub(code, starti, i-1), i + 1 -- i: ( i+1 after ( + end + + i = i + 1 + end + return nil, nil +end + +function yc_command_parsecondition(cond, L, eeprom) + cond = string.gsub(cond, "A", tonumber(L.a and 1 or 0)) + cond = string.gsub(cond, "B", tonumber(L.b and 1 or 0)) + cond = string.gsub(cond, "C", tonumber(L.c and 1 or 0)) + cond = string.gsub(cond, "D", tonumber(L.d and 1 or 0)) + + + local i = 1 + local l = string.len(cond) + while i<=l do + local s = cond:sub(i,i) + if s == "#" then + addr, endi = yc_parse_get_eeprom_param(cond, i+1) + buf = yc_eeprom_read(tonumber(addr), eeprom) + if buf == nil then return nil end + local call = cond:sub(i, endi-1) + cond = string.gsub(cond, call, buf) + i = 0 + l = string.len(cond) + end + i = i + 1 + end + + cond = string.gsub(cond, "!0", "1") + cond = string.gsub(cond, "!1", "0") + + local i = 2 + local l = string.len(cond) + while i<=l do + local s = cond:sub(i,i) + local b = tonumber(cond:sub(i-1, i-1)) + local a = tonumber(cond:sub(i+1, i+1)) + if cond:sub(i+1, i+1) == nil then break end + if s == "=" then + if a==nil then return nil end + if b==nil then return nil end + if a == b then buf = "1" end + if a ~= b then buf = "0" end + cond = string.gsub(cond, b..s..a, buf) + i = 1 + l = string.len(cond) + end + i = i + 1 + end + + local i = 2 + local l = string.len(cond) + while i<=l do + local s = cond:sub(i,i) + local b = tonumber(cond:sub(i-1, i-1)) + local a = tonumber(cond:sub(i+1, i+1)) + if cond:sub(i+1, i+1) == nil then break end + if s == "&" then + if a==nil then return nil end + local buf = ((a==1) and (b==1)) + if buf == true then buf = "1" end + if buf == false then buf = "0" end + cond = string.gsub(cond, b..s..a, buf) + i = 1 + l = string.len(cond) + end + if s == "|" then + if a==nil then return nil end + local buf = ((a == 1) or (b == 1)) + if buf == true then buf = "1" end + if buf == false then buf = "0" end + cond = string.gsub(cond, b..s..a, buf) + i = 1 + l = string.len(cond) + end + if s == "~" then + if a==nil then return nil end + local buf = (((a == 1) or (b == 1)) and not((a==1) and (b==1))) + if buf == true then buf = "1" end + if buf == false then buf = "0" end + cond = string.gsub(cond, b..s..a, buf) + i = 1 + l = string.len(cond) + end + i = i + 1 + end + + return cond +end + +--Virtual-Hardware functions +function yc_eeprom_read(number, eeprom) + if number == nil then return nil, nil end + value = eeprom:sub(number, number) + if value == nil then return nil, nil end + return value, endi +end + +--Real I/O functions +function yc_action(pos, L) --L-->Lvirtual + local Lv = yc_get_virtual_portstates(pos) + local name = "mesecons_microcontroller:microcontroller" + ..tonumber(L.d and 1 or 0) + ..tonumber(L.c and 1 or 0) + ..tonumber(L.b and 1 or 0) + ..tonumber(L.a and 1 or 0) + local node = minetest.get_node(pos) + minetest.swap_node(pos, {name = name, param2 = node.param2}) + + yc_action_setports(pos, L, Lv) +end + +function yc_action_setports(pos, L, Lv) + local name = "mesecons_microcontroller:microcontroller" + local rules + if Lv.a ~= L.a then + rules = mesecon:get_rules(name.."0001") + if L.a == true then mesecon:receptor_on(pos, rules) + else mesecon:receptor_off(pos, rules) end + end + if Lv.b ~= L.b then + rules = mesecon:get_rules(name.."0010") + if L.b == true then mesecon:receptor_on(pos, rules) + else mesecon:receptor_off(pos, rules) end + end + if Lv.c ~= L.c then + rules = mesecon:get_rules(name.."0100") + if L.c == true then mesecon:receptor_on(pos, rules) + else mesecon:receptor_off(pos, rules) end + end + if Lv.d ~= L.d then + rules = mesecon:get_rules(name.."1000") + if L.d == true then mesecon:receptor_on(pos, rules) + else mesecon:receptor_off(pos, rules) end + end +end + +function yc_set_portstate(port, state, L) + if port == "A" then L.a = state + elseif port == "B" then L.b = state + elseif port == "C" then L.c = state + elseif port == "D" then L.d = state + else return nil end + return L +end + +function yc_update_real_portstates(pos, node, rulename, newstate) + local meta = minetest.get_meta(pos) + if rulename == nil then + meta:set_int("real_portstates", 1) + return + end + local n = meta:get_int("real_portstates") - 1 + if n < 0 then + legacy_update_ports(pos) + n = meta:get_int("real_portstates") - 1 + end + local L = {} + for i = 1, 4 do + L[i] = n%2 + n = math.floor(n/2) + end + if rulename.x == nil then + for _, rname in ipairs(rulename) do + local port = ({4, 1, nil, 3, 2})[rname.x+2*rname.z+3] + L[port] = (newstate == "on") and 1 or 0 + end + else + local port = ({4, 1, nil, 3, 2})[rulename.x+2*rulename.z+3] + L[port] = (newstate == "on") and 1 or 0 + end + meta:set_int("real_portstates", 1 + L[1] + 2*L[2] + 4*L[3] + 8*L[4]) +end + +function yc_get_real_portstates(pos) -- determine if ports are powered (by itself or from outside) + local meta = minetest.get_meta(pos) + local L = {} + local n = meta:get_int("real_portstates") - 1 + if n < 0 then + return legacy_update_ports(pos) + end + for _, index in ipairs({"a", "b", "c", "d"}) do + L[index] = ((n%2) == 1) + n = math.floor(n/2) + end + return L +end + +function yc_get_virtual_portstates(pos) -- portstates according to the name + name = minetest.get_node(pos).name + b, a = string.find(name, ":microcontroller") + if a == nil then return nil end + a = a + 1 + + Lvirtual = {a=false, b=false, c=false, d=false} + if name:sub(a , a ) == "1" then Lvirtual.d = true end + if name:sub(a+1, a+1) == "1" then Lvirtual.c = true end + if name:sub(a+2, a+2) == "1" then Lvirtual.b = true end + if name:sub(a+3, a+3) == "1" then Lvirtual.a = true end + return Lvirtual +end + +function yc_merge_portstates(Lreal, Lvirtual) + local L = {a=false, b=false, c=false, d=false} + if Lvirtual.a or Lreal.a then L.a = true end + if Lvirtual.b or Lreal.b then L.b = true end + if Lvirtual.c or Lreal.c then L.c = true end + if Lvirtual.d or Lreal.d then L.d = true end + return L +end + +--"Overheat" protection +function yc_heat(meta) + h = meta:get_int("heat") + if h ~= nil then + meta:set_int("heat", h + 1) + end +end + +--function yc_cool(meta) +-- h = meta:get_int("heat") +-- if h ~= nil then +-- meta:set_int("heat", h - 1) +-- end +--end + +function yc_overheat(meta) + if MESECONS_GLOBALSTEP then return false end + h = meta:get_int("heat") + if h == nil then return true end -- if nil the overheat + if h>60 then + return true + else + return false + end +end + +function yc_overheat_off(pos) + rules = mesecon:get_rules("mesecons_microcontroller:microcontroller1111") + mesecon:receptor_off(pos, rules) +end diff --git a/mods/mesecons/mesecons_microcontroller/textures/jeija_microcontroller_top.png b/mods/mesecons/mesecons_microcontroller/textures/jeija_microcontroller_top.png new file mode 100644 index 0000000..438c934 Binary files /dev/null and b/mods/mesecons/mesecons_microcontroller/textures/jeija_microcontroller_top.png differ diff --git a/mods/mesecons/mesecons_movestones/depends.txt b/mods/mesecons/mesecons_movestones/depends.txt new file mode 100644 index 0000000..a596cf8 --- /dev/null +++ b/mods/mesecons/mesecons_movestones/depends.txt @@ -0,0 +1,3 @@ +mesecons +mesecons_materials +mesecons_mvps diff --git a/mods/mesecons/mesecons_movestones/init.lua b/mods/mesecons/mesecons_movestones/init.lua new file mode 100644 index 0000000..e31f2d2 --- /dev/null +++ b/mods/mesecons/mesecons_movestones/init.lua @@ -0,0 +1,216 @@ +-- MOVESTONE +-- Non-sticky: +-- Moves along mesecon lines +-- Pushes all blocks in front of it +-- +-- Sticky one +-- Moves along mesecon lines +-- Pushes all block in front of it +-- Pull all blocks in its back + +function mesecon:get_movestone_direction(pos) + getactivated = 0 + local lpos + local getactivated = 0 + local rules = { + {x=0, y=1, z=-1}, + {x=0, y=0, z=-1}, + {x=0, y=-1, z=-1}, + {x=0, y=1, z=1}, + {x=0, y=-1, z=1}, + {x=0, y=0, z=1}, + {x=1, y=0, z=0}, + {x=1, y=1, z=0}, + {x=1, y=-1, z=0}, + {x=-1, y=1, z=0}, + {x=-1, y=-1, z=0}, + {x=-1, y=0, z=0}} + + lpos = {x=pos.x+1, y=pos.y, z=pos.z} + for n = 1, 3 do + if mesecon:is_power_on(lpos, rules[n].x, rules[n].y, rules[n].z) then + return {x=0, y=0, z=-1} + end + end + + lpos = {x = pos.x-1, y = pos.y, z = pos.z} + for n=4, 6 do + if mesecon:is_power_on(lpos, rules[n].x, rules[n].y, rules[n].z) then + return {x=0, y=0, z=1} + end + end + + lpos = {x = pos.x, y = pos.y, z = pos.z+1} + for n=7, 9 do + if mesecon:is_power_on(lpos, rules[n].x, rules[n].y, rules[n].z) then + return {x=-1, y=0, z=0} + end + end + + lpos = {x = pos.x, y = pos.y, z = pos.z-1} + for n=10, 12 do + if mesecon:is_power_on(lpos, rules[n].x, rules[n].y, rules[n].z) then + return {x=1, y=0, z=0} + end + end +end + +minetest.register_node("mesecons_movestones:movestone", { + tiles = {"jeija_movestone_side.png", "jeija_movestone_side.png", "jeija_movestone_side.png", "jeija_movestone_side.png", "jeija_movestone_arrows.png", "jeija_movestone_arrows.png"}, + paramtype2 = "facedir", + legacy_facedir_simple = true, + groups = {cracky=3}, + description="Movestone", + sounds = default.node_sound_stone_defaults(), + mesecons = {effector = { + action_on = function (pos, node) + local direction=mesecon:get_movestone_direction(pos) + if not direction then return end + minetest.remove_node(pos) + mesecon:update_autoconnect(pos) + minetest.add_entity(pos, "mesecons_movestones:movestone_entity") + end + }} +}) + +minetest.register_entity("mesecons_movestones:movestone_entity", { + physical = false, + visual = "sprite", + textures = {"jeija_movestone_side.png", "jeija_movestone_side.png", "jeija_movestone_side.png", "jeija_movestone_side.png", "jeija_movestone_arrows.png", "jeija_movestone_arrows.png"}, + collisionbox = {-0.5,-0.5,-0.5, 0.5, 0.5, 0.5}, + visual = "cube", + lastdir = {x=0, y=0, z=0}, + + on_punch = function(self, hitter) + self.object:remove() + hitter:get_inventory():add_item("main", "mesecons_movestones:movestone") + end, + + on_step = function(self, dtime) + local pos = self.object:getpos() + pos.x, pos.y, pos.z = math.floor(pos.x+0.5), math.floor(pos.y+0.5), math.floor(pos.z+0.5) + local direction = mesecon:get_movestone_direction(pos) + + if not direction then -- no mesecon power + --push only solid nodes + local name = minetest.get_node(pos).name + if name ~= "air" and name ~= "ignore" + and ((not minetest.registered_nodes[name]) + or minetest.registered_nodes[name].liquidtype == "none") then + mesecon:mvps_push(pos, self.lastdir, MOVESTONE_MAXIMUM_PUSH) + end + minetest.add_node(pos, {name="mesecons_movestones:movestone"}) + self.object:remove() + return + end + + local success, stack, oldstack = + mesecon:mvps_push(pos, direction, MOVESTONE_MAXIMUM_PUSH) + if not success then -- Too large stack/stopper in the way + minetest.add_node(pos, {name="mesecons_movestones:movestone"}) + self.object:remove() + return + else + mesecon:mvps_process_stack (stack) + mesecon:mvps_move_objects (pos, direction, oldstack) + self.lastdir = direction + end + + self.object:setvelocity({x=direction.x*2, y=direction.y*2, z=direction.z*2}) + end, +}) + +minetest.register_craft({ + output = "mesecons_movestones:movestone 2", + recipe = { + {"default:stone", "default:stone", "default:stone"}, + {"group:mesecon_conductor_craftable", "group:mesecon_conductor_craftable", "group:mesecon_conductor_craftable"}, + {"default:stone", "default:stone", "default:stone"}, + } +}) + + + +-- STICKY_MOVESTONE + +minetest.register_node("mesecons_movestones:sticky_movestone", { + tiles = {"jeija_movestone_side.png", "jeija_movestone_side.png", "jeija_movestone_side.png", "jeija_movestone_side.png", "jeija_sticky_movestone.png", "jeija_sticky_movestone.png"}, + inventory_image = minetest.inventorycube("jeija_sticky_movestone.png", "jeija_movestone_side.png", "jeija_movestone_side.png"), + paramtype2 = "facedir", + legacy_facedir_simple = true, + groups = {cracky=3}, + description="Sticky Movestone", + sounds = default.node_sound_stone_defaults(), + mesecons = {effector = { + action_on = function (pos, node) + local direction=mesecon:get_movestone_direction(pos) + if not direction then return end + minetest.remove_node(pos) + mesecon:update_autoconnect(pos) + minetest.add_entity(pos, "mesecons_movestones:sticky_movestone_entity") + end + }} +}) + +minetest.register_craft({ + output = "mesecons_movestones:sticky_movestone 2", + recipe = { + {"mesecons_materials:glue", "mesecons_movestones:movestone", "mesecons_materials:glue"}, + } +}) + +minetest.register_entity("mesecons_movestones:sticky_movestone_entity", { + physical = false, + visual = "sprite", + textures = {"jeija_movestone_side.png", "jeija_movestone_side.png", "jeija_movestone_side.png", "jeija_movestone_side.png", "jeija_sticky_movestone.png", "jeija_sticky_movestone.png"}, + collisionbox = {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5}, + visual = "cube", + lastdir = {x=0, y=0, z=0}, + + on_punch = function(self, hitter) + self.object:remove() + hitter:get_inventory():add_item("main", 'mesecons_movestones:sticky_movestone') + end, + + on_step = function(self, dtime) + local pos = self.object:getpos() + pos.x, pos.y, pos.z = math.floor(pos.x+0.5), math.floor(pos.y+0.5), math.floor(pos.z+0.5) + local direction = mesecon:get_movestone_direction(pos) + + if not direction then -- no mesecon power + --push only solid nodes + local name = minetest.get_node(pos).name + if name ~= "air" and name ~= "ignore" + and ((not minetest.registered_nodes[name]) + or minetest.registered_nodes[name].liquidtype == "none") then + mesecon:mvps_push(pos, self.lastdir, MOVESTONE_MAXIMUM_PUSH) + --STICKY + mesecon:mvps_pull_all(pos, self.lastdir) + end + minetest.add_node(pos, {name="mesecons_movestones:sticky_movestone"}) + self.object:remove() + return + end + + local success, stack, oldstack = + mesecon:mvps_push(pos, direction, MOVESTONE_MAXIMUM_PUSH) + if not success then -- Too large stack/stopper in the way + minetest.add_node(pos, {name="mesecons_movestones:sticky_movestone"}) + self.object:remove() + return + else + mesecon:mvps_process_stack (stack) + mesecon:mvps_move_objects (pos, direction, oldstack) + self.lastdir = direction + end + + self.object:setvelocity({x=direction.x*2, y=direction.y*2, z=direction.z*2}) + + --STICKY + mesecon:mvps_pull_all(pos, direction) + end, +}) + + +mesecon:register_mvps_unmov("mesecons_movestones:movestone_entity") +mesecon:register_mvps_unmov("mesecons_movestones:sticky_movestone_entity") diff --git a/mods/mesecons/mesecons_movestones/textures/jeija_movestone_arrows.png b/mods/mesecons/mesecons_movestones/textures/jeija_movestone_arrows.png new file mode 100644 index 0000000..358c357 Binary files /dev/null and b/mods/mesecons/mesecons_movestones/textures/jeija_movestone_arrows.png differ diff --git a/mods/mesecons/mesecons_movestones/textures/jeija_movestone_side.png b/mods/mesecons/mesecons_movestones/textures/jeija_movestone_side.png new file mode 100644 index 0000000..de753ef Binary files /dev/null and b/mods/mesecons/mesecons_movestones/textures/jeija_movestone_side.png differ diff --git a/mods/mesecons/mesecons_movestones/textures/jeija_sticky_movestone.png b/mods/mesecons/mesecons_movestones/textures/jeija_sticky_movestone.png new file mode 100644 index 0000000..8953cf1 Binary files /dev/null and b/mods/mesecons/mesecons_movestones/textures/jeija_sticky_movestone.png differ diff --git a/mods/mesecons/mesecons_mvps/depends.txt b/mods/mesecons/mesecons_mvps/depends.txt new file mode 100644 index 0000000..acaa924 --- /dev/null +++ b/mods/mesecons/mesecons_mvps/depends.txt @@ -0,0 +1 @@ +mesecons diff --git a/mods/mesecons/mesecons_mvps/init.lua b/mods/mesecons/mesecons_mvps/init.lua new file mode 100644 index 0000000..20cc37d --- /dev/null +++ b/mods/mesecons/mesecons_mvps/init.lua @@ -0,0 +1,238 @@ +--register stoppers for movestones/pistons + +mesecon.mvps_stoppers = {} +mesecon.mvps_unmov = {} +mesecon.on_mvps_move = {} + +function mesecon:is_mvps_stopper(node, pushdir, stack, stackid) + local get_stopper = mesecon.mvps_stoppers[node.name] + if type (get_stopper) == "function" then + get_stopper = get_stopper(node, pushdir, stack, stackid) + end + return get_stopper +end + +function mesecon:register_mvps_stopper(nodename, get_stopper) + if get_stopper == nil then + get_stopper = true + end + mesecon.mvps_stoppers[nodename] = get_stopper +end + +-- Objects that cannot be moved (e.g. movestones) +function mesecon:register_mvps_unmov(objectname) + mesecon.mvps_unmov[objectname] = true; +end + +function mesecon:is_mvps_unmov(objectname) + return mesecon.mvps_unmov[objectname] +end + +-- Functions to be called on mvps movement +function mesecon:register_on_mvps_move(callback) + mesecon.on_mvps_move[#mesecon.on_mvps_move+1] = callback +end + +local function on_mvps_move(moved_nodes) + for _, callback in ipairs(mesecon.on_mvps_move) do + callback(moved_nodes) + end +end + +function mesecon:mvps_process_stack(stack) + -- update mesecons for placed nodes ( has to be done after all nodes have been added ) + for _, n in ipairs(stack) do + nodeupdate(n.pos) + mesecon.on_placenode(n.pos, minetest.get_node(n.pos)) + mesecon:update_autoconnect(n.pos) + end +end + +function mesecon:mvps_get_stack(pos, dir, maximum) + -- determine the number of nodes to be pushed + local np = {x = pos.x, y = pos.y, z = pos.z} + local nodes = {} + while true do + local nn = minetest.get_node_or_nil(np) + if not nn or #nodes > maximum then + -- don't push at all, something is in the way (unloaded map or too many nodes) + return nil + end + + if nn.name == "air" + or (minetest.registered_nodes[nn.name] + and minetest.registered_nodes[nn.name].liquidtype ~= "none") then --is liquid + break + end + + table.insert (nodes, {node = nn, pos = np}) + + np = mesecon:addPosRule(np, dir) + end + return nodes +end + +function mesecon:mvps_push(pos, dir, maximum) -- pos: pos of mvps; dir: direction of push; maximum: maximum nodes to be pushed + local nodes = mesecon:mvps_get_stack(pos, dir, maximum) + + if not nodes then return end + -- determine if one of the nodes blocks the push + for id, n in ipairs(nodes) do + if mesecon:is_mvps_stopper(n.node, dir, nodes, id) then + return + end + end + + -- remove all nodes + for _, n in ipairs(nodes) do + n.meta = minetest.get_meta(n.pos):to_table() + minetest.remove_node(n.pos) + end + + -- update mesecons for removed nodes ( has to be done after all nodes have been removed ) + for _, n in ipairs(nodes) do + mesecon.on_dignode(n.pos, n.node) + mesecon:update_autoconnect(n.pos) + end + + -- add nodes + for _, n in ipairs(nodes) do + np = mesecon:addPosRule(n.pos, dir) + minetest.add_node(np, n.node) + minetest.get_meta(np):from_table(n.meta) + end + + local moved_nodes = {} + local oldstack = mesecon:tablecopy(nodes) + for i in ipairs(nodes) do + moved_nodes[i] = {} + moved_nodes[i].oldpos = nodes[i].pos + nodes[i].pos = mesecon:addPosRule(nodes[i].pos, dir) + moved_nodes[i].pos = nodes[i].pos + moved_nodes[i].node = nodes[i].node + moved_nodes[i].meta = nodes[i].meta + end + + on_mvps_move(moved_nodes) + + return true, nodes, oldstack +end + +mesecon:register_on_mvps_move(function(moved_nodes) + for _, n in ipairs(moved_nodes) do + mesecon.on_placenode(n.pos, n.node) + mesecon:update_autoconnect(n.pos) + end +end) + +function mesecon:mvps_pull_single(pos, dir) -- pos: pos of mvps; direction: direction of pull (matches push direction for sticky pistons) + np = mesecon:addPosRule(pos, dir) + nn = minetest.get_node(np) + + if ((not minetest.registered_nodes[nn.name]) --unregistered node + or minetest.registered_nodes[nn.name].liquidtype == "none") --non-liquid node + and not mesecon:is_mvps_stopper(nn, {x = -dir.x, y = -dir.y, z = -dir.z}, {{pos = np, node = nn}}, 1) then --non-stopper node + local meta = minetest.get_meta(np):to_table() + minetest.remove_node(np) + minetest.add_node(pos, nn) + minetest.get_meta(pos):from_table(meta) + + nodeupdate(np) + nodeupdate(pos) + mesecon.on_dignode(np, nn) + mesecon:update_autoconnect(np) + on_mvps_move({{pos = pos, oldpos = np, node = nn, meta = meta}}) + end + return {{pos = np, node = {param2 = 0, name = "air"}}, {pos = pos, node = nn}} +end + +function mesecon:mvps_pull_all(pos, direction) -- pos: pos of mvps; direction: direction of pull + local lpos = {x=pos.x-direction.x, y=pos.y-direction.y, z=pos.z-direction.z} -- 1 away + local lnode = minetest.get_node(lpos) + local lpos2 = {x=pos.x-direction.x*2, y=pos.y-direction.y*2, z=pos.z-direction.z*2} -- 2 away + local lnode2 = minetest.get_node(lpos2) + + --avoid pulling solid nodes + if lnode.name ~= "ignore" + and lnode.name ~= "air" + and ((not minetest.registered_nodes[lnode.name]) + or minetest.registered_nodes[lnode.name].liquidtype == "none") then + return + end + + --avoid pulling empty or liquid nodes + if lnode2.name == "ignore" + or lnode2.name == "air" + or (minetest.registered_nodes[lnode2.name] + and minetest.registered_nodes[lnode2.name].liquidtype ~= "none") then + return + end + + local moved_nodes = {} + local oldpos = {x=lpos2.x + direction.x, y=lpos2.y + direction.y, z=lpos2.z + direction.z} + repeat + lnode2 = minetest.get_node(lpos2) + local meta = minetest.get_meta(lnode2):to_table() + minetest.add_node(oldpos, lnode2) + minetest.get_meta(oldpos):from_table(meta) + moved_nodes[#moved_nodes+1] = {pos = oldpos, oldpos = lnode2, node = lnode2, meta = meta} + nodeupdate(oldpos) + oldpos = {x=lpos2.x, y=lpos2.y, z=lpos2.z} + lpos2.x = lpos2.x-direction.x + lpos2.y = lpos2.y-direction.y + lpos2.z = lpos2.z-direction.z + lnode = minetest.get_node(lpos2) + until lnode.name == "air" + or lnode.name == "ignore" + or (minetest.registered_nodes[lnode.name] + and minetest.registered_nodes[lnode.name].liquidtype ~= "none") + minetest.remove_node(oldpos) + mesecon.on_dignode(oldpos, lnode2) + mesecon:update_autoconnect(oldpos) + on_mvps_move(moved_nodes) +end + +function mesecon:mvps_move_objects(pos, dir, nodestack) + local objects_to_move = {} + + -- Move object at tip of stack + local pushpos = mesecon:addPosRule(pos, -- get pos at tip of stack + {x = dir.x * #nodestack, + y = dir.y * #nodestack, + z = dir.z * #nodestack}) + + + local objects = minetest.get_objects_inside_radius(pushpos, 1) + for _, obj in ipairs(objects) do + table.insert(objects_to_move, obj) + end + + -- Move objects lying/standing on the stack (before it was pushed - oldstack) + if tonumber(minetest.setting_get("movement_gravity")) > 0 and dir.y == 0 then + -- If gravity positive and dir horizontal, push players standing on the stack + for _, n in ipairs(nodestack) do + local p_above = mesecon:addPosRule(n.pos, {x=0, y=1, z=0}) + local objects = minetest.get_objects_inside_radius(p_above, 1) + for _, obj in ipairs(objects) do + table.insert(objects_to_move, obj) + end + end + end + + for _, obj in ipairs(objects_to_move) do + local entity = obj:get_luaentity() + if not entity or not mesecon:is_mvps_unmov(entity.name) then + local np = mesecon:addPosRule(obj:getpos(), dir) + + --move only if destination is not solid + local nn = minetest.get_node(np) + if not ((not minetest.registered_nodes[nn.name]) + or minetest.registered_nodes[nn.name].walkable) then + obj:setpos(np) + end + end + end +end + +mesecon:register_mvps_stopper("default:chest_locked") +mesecon:register_mvps_stopper("default:furnace") diff --git a/mods/mesecons/mesecons_noteblock/depends.txt b/mods/mesecons/mesecons_noteblock/depends.txt new file mode 100644 index 0000000..acaa924 --- /dev/null +++ b/mods/mesecons/mesecons_noteblock/depends.txt @@ -0,0 +1 @@ +mesecons diff --git a/mods/mesecons/mesecons_noteblock/init.lua b/mods/mesecons/mesecons_noteblock/init.lua new file mode 100644 index 0000000..3971076 --- /dev/null +++ b/mods/mesecons/mesecons_noteblock/init.lua @@ -0,0 +1,79 @@ +minetest.register_node("mesecons_noteblock:noteblock", { + description = "Noteblock", + tiles = {"mesecons_noteblock.png"}, + groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2}, + drawtype = "allfaces_optional", + visual_scale = 1.3, + paramtype="light", + after_place_node = function(pos) + minetest.add_node(pos, {name="mesecons_noteblock:noteblock", param2=0}) + end, + on_punch = function (pos, node) -- change sound when punched + local param2 = node.param2+1 + if param2==12 then param2=0 end + minetest.add_node(pos, {name = node.name, param2 = param2}) + mesecon.noteblock_play(pos, param2) + end, + sounds = default.node_sound_wood_defaults(), + mesecons = {effector = { -- play sound when activated + action_on = function (pos, node) + mesecon.noteblock_play(pos, node.param2) + end + }} +}) + +minetest.register_craft({ + output = "mesecons_noteblock:noteblock 1", + recipe = { + {"group:wood", "group:wood", "group:wood"}, + {"group:mesecon_conductor_craftable", "default:steel_ingot", "group:mesecon_conductor_craftable"}, + {"group:wood", "group:wood", "group:wood"}, + } +}) + +mesecon.noteblock_play = function (pos, param2) + local soundname + if param2==8 then + soundname="mesecons_noteblock_a" + elseif param2==9 then + soundname="mesecons_noteblock_asharp" + elseif param2==10 then + soundname="mesecons_noteblock_b" + elseif param2==11 then + soundname="mesecons_noteblock_c" + elseif param2==0 then + soundname="mesecons_noteblock_csharp" + elseif param2==1 then + soundname="mesecons_noteblock_d" + elseif param2==2 then + soundname="mesecons_noteblock_dsharp" + elseif param2==3 then + soundname="mesecons_noteblock_e" + elseif param2==4 then + soundname="mesecons_noteblock_f" + elseif param2==5 then + soundname="mesecons_noteblock_fsharp" + elseif param2==6 then + soundname="mesecons_noteblock_g" + elseif param2==7 then + soundname="mesecons_noteblock_gsharp" + end + local block_below_name = minetest.get_node({x=pos.x, y=pos.y-1, z=pos.z}).name + if block_below_name == "default:glass" then + soundname="mesecons_noteblock_hihat" + end + if block_below_name == "default:stone" then + soundname="mesecons_noteblock_kick" + end + if block_below_name == "default:chest" then + soundname="mesecons_noteblock_snare" + end + if block_below_name == "default:tree" then + soundname="mesecons_noteblock_crash" + end + if block_below_name == "default:wood" then + soundname="mesecons_noteblock_litecrash" + end + minetest.sound_play(soundname, + {pos = pos, gain = 1.0, max_hear_distance = 32,}) +end diff --git a/mods/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_a.ogg b/mods/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_a.ogg new file mode 100644 index 0000000..5668a8a Binary files /dev/null and b/mods/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_a.ogg differ diff --git a/mods/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_asharp.ogg b/mods/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_asharp.ogg new file mode 100644 index 0000000..4cd2dcc Binary files /dev/null and b/mods/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_asharp.ogg differ diff --git a/mods/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_b.ogg b/mods/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_b.ogg new file mode 100644 index 0000000..621a6b5 Binary files /dev/null and b/mods/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_b.ogg differ diff --git a/mods/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_c.ogg b/mods/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_c.ogg new file mode 100644 index 0000000..e235978 Binary files /dev/null and b/mods/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_c.ogg differ diff --git a/mods/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_crash.ogg b/mods/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_crash.ogg new file mode 100644 index 0000000..d33027a Binary files /dev/null and b/mods/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_crash.ogg differ diff --git a/mods/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_csharp.ogg b/mods/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_csharp.ogg new file mode 100644 index 0000000..50ba835 Binary files /dev/null and b/mods/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_csharp.ogg differ diff --git a/mods/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_d.ogg b/mods/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_d.ogg new file mode 100644 index 0000000..f1227ba Binary files /dev/null and b/mods/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_d.ogg differ diff --git a/mods/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_dsharp.ogg b/mods/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_dsharp.ogg new file mode 100644 index 0000000..817728e Binary files /dev/null and b/mods/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_dsharp.ogg differ diff --git a/mods/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_e.ogg b/mods/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_e.ogg new file mode 100644 index 0000000..c91d1a6 Binary files /dev/null and b/mods/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_e.ogg differ diff --git a/mods/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_f.ogg b/mods/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_f.ogg new file mode 100644 index 0000000..3f1eaea Binary files /dev/null and b/mods/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_f.ogg differ diff --git a/mods/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_fsharp.ogg b/mods/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_fsharp.ogg new file mode 100644 index 0000000..9f13797 Binary files /dev/null and b/mods/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_fsharp.ogg differ diff --git a/mods/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_g.ogg b/mods/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_g.ogg new file mode 100644 index 0000000..d2a90dd Binary files /dev/null and b/mods/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_g.ogg differ diff --git a/mods/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_gsharp.ogg b/mods/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_gsharp.ogg new file mode 100644 index 0000000..6177b8c Binary files /dev/null and b/mods/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_gsharp.ogg differ diff --git a/mods/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_hihat.ogg b/mods/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_hihat.ogg new file mode 100644 index 0000000..d05a870 Binary files /dev/null and b/mods/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_hihat.ogg differ diff --git a/mods/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_kick.ogg b/mods/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_kick.ogg new file mode 100644 index 0000000..108e89e Binary files /dev/null and b/mods/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_kick.ogg differ diff --git a/mods/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_litecrash.ogg b/mods/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_litecrash.ogg new file mode 100644 index 0000000..21aecfa Binary files /dev/null and b/mods/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_litecrash.ogg differ diff --git a/mods/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_snare.ogg b/mods/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_snare.ogg new file mode 100644 index 0000000..25d7b78 Binary files /dev/null and b/mods/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_snare.ogg differ diff --git a/mods/mesecons/mesecons_noteblock/textures/mesecons_noteblock.png b/mods/mesecons/mesecons_noteblock/textures/mesecons_noteblock.png new file mode 100644 index 0000000..d13e61b Binary files /dev/null and b/mods/mesecons/mesecons_noteblock/textures/mesecons_noteblock.png differ diff --git a/mods/mesecons/mesecons_pistons/depends.txt b/mods/mesecons/mesecons_pistons/depends.txt new file mode 100644 index 0000000..01f085b --- /dev/null +++ b/mods/mesecons/mesecons_pistons/depends.txt @@ -0,0 +1,2 @@ +mesecons +mesecons_mvps diff --git a/mods/mesecons/mesecons_pistons/init.lua b/mods/mesecons/mesecons_pistons/init.lua new file mode 100644 index 0000000..7780fc9 --- /dev/null +++ b/mods/mesecons/mesecons_pistons/init.lua @@ -0,0 +1,758 @@ +-- Get mesecon rules of pistons +piston_rules = +{{x=0, y=0, z=1}, --everything apart from z- (pusher side) + {x=1, y=0, z=0}, + {x=-1, y=0, z=0}, + {x=1, y=1, z=0}, + {x=1, y=-1, z=0}, + {x=-1, y=1, z=0}, + {x=-1, y=-1, z=0}, + {x=0, y=1, z=1}, + {x=0, y=-1, z=1}} + +local piston_up_rules = +{{x=0, y=0, z=-1}, --everything apart from y+ (pusher side) + {x=1, y=0, z=0}, + {x=-1, y=0, z=0}, + {x=0, y=0, z=1}, + {x=1, y=-1, z=0}, + {x=-1, y=-1, z=0}, + {x=0, y=-1, z=1}, + {x=0, y=-1, z=-1}} + +local piston_down_rules = +{{x=0, y=0, z=-1}, --everything apart from y- (pusher side) + {x=1, y=0, z=0}, + {x=-1, y=0, z=0}, + {x=0, y=0, z=1}, + {x=1, y=1, z=0}, + {x=-1, y=1, z=0}, + {x=0, y=1, z=1}, + {x=0, y=1, z=-1}} + +local piston_get_rules = function (node) + local rules = piston_rules + for i = 1, node.param2 do + rules = mesecon:rotate_rules_left(rules) + end + return rules +end + +piston_facedir_direction = function (node) + local rules = {{x = 0, y = 0, z = -1}} + for i = 1, node.param2 do + rules = mesecon:rotate_rules_left(rules) + end + return rules[1] +end + +piston_get_direction = function(dir, node) + if type(dir) == "function" then + return dir(node) + else + return dir + end +end + +local piston_remove_pusher = function(pos, node) + pistonspec = minetest.registered_nodes[node.name].mesecons_piston + if pushername == pistonspec.pusher then --make sure there actually is a pusher (for compatibility reasons mainly) + return + end + + dir = piston_get_direction(pistonspec.dir, node) + local pusherpos = mesecon:addPosRule(pos, dir) + local pushername = minetest.get_node(pusherpos).name + + minetest.remove_node(pusherpos) + minetest.sound_play("piston_retract", { + pos = pos, + max_hear_distance = 20, + gain = 0.3, + }) + nodeupdate(pusherpos) +end + +local piston_on = function(pos, node) + local pistonspec = minetest.registered_nodes[node.name].mesecons_piston + + local dir = piston_get_direction(pistonspec.dir, node) + local np = mesecon:addPosRule(pos, dir) + local success, stack, oldstack = mesecon:mvps_push(np, dir, PISTON_MAXIMUM_PUSH) + if success then + minetest.add_node(pos, {param2 = node.param2, name = pistonspec.onname}) + minetest.add_node(np, {param2 = node.param2, name = pistonspec.pusher}) + minetest.sound_play("piston_extend", { + pos = pos, + max_hear_distance = 20, + gain = 0.3, + }) + mesecon:mvps_process_stack (stack) + mesecon:mvps_move_objects (np, dir, oldstack) + end +end + +local piston_off = function(pos, node) + local pistonspec = minetest.registered_nodes[node.name].mesecons_piston + minetest.add_node(pos, {param2 = node.param2, name = pistonspec.offname}) + piston_remove_pusher(pos, node) + + if pistonspec.sticky then + dir = piston_get_direction(pistonspec.dir, node) + pullpos = mesecon:addPosRule(pos, dir) + stack = mesecon:mvps_pull_single(pullpos, dir) + mesecon:mvps_process_stack(pos, dir, stack) + end +end + +local piston_orientate = function(pos, placer) + -- not placed by player + if not placer then return end + + -- placer pitch in degrees + local pitch = placer:get_look_pitch() * (180 / math.pi) + + local node = minetest.get_node(pos) + local pistonspec = minetest.registered_nodes[node.name].mesecons_piston + if pitch > 55 then --looking upwards + minetest.add_node(pos, {name=pistonspec.piston_down}) + elseif pitch < -55 then --looking downwards + minetest.add_node(pos, {name=pistonspec.piston_up}) + end +end + + +-- Horizontal pistons + +local pt = 3/16 -- pusher thickness + +local piston_pusher_box = { + type = "fixed", + fixed = { + {-2/16, -2/16, -.5 + pt, 2/16, 2/16, .5 + pt}, + {-.5 , -.5 , -.5 , .5 , .5 , -.5 + pt}, + } +} + +local piston_on_box = { + type = "fixed", + fixed = { + {-.5, -.5, -.5 + pt, .5, .5, .5} + } +} + + +-- Normal (non-sticky) ones: + +local pistonspec_normal = { + offname = "mesecons_pistons:piston_normal_off", + onname = "mesecons_pistons:piston_normal_on", + dir = piston_facedir_direction, + pusher = "mesecons_pistons:piston_pusher_normal", + piston_down = "mesecons_pistons:piston_down_normal_off", + piston_up = "mesecons_pistons:piston_up_normal_off", +} + +-- offstate +minetest.register_node("mesecons_pistons:piston_normal_off", { + description = "Piston", + tiles = { + "mesecons_piston_top.png", + "mesecons_piston_bottom.png", + "mesecons_piston_left.png", + "mesecons_piston_right.png", + "mesecons_piston_back.png", + "mesecons_piston_pusher_front.png" + }, + groups = {cracky = 3}, + paramtype2 = "facedir", + after_place_node = piston_orientate, + mesecons_piston = pistonspec_normal, + sounds = default.node_sound_wood_defaults(), + mesecons = {effector={ + action_on = piston_on, + rules = piston_get_rules + }} +}) + +-- onstate +minetest.register_node("mesecons_pistons:piston_normal_on", { + drawtype = "nodebox", + tiles = { + "mesecons_piston_top.png", + "mesecons_piston_bottom.png", + "mesecons_piston_left.png", + "mesecons_piston_right.png", + "mesecons_piston_back.png", + "mesecons_piston_on_front.png" + }, + inventory_image = "mesecons_piston_top.png", + wield_image = "mesecons_piston_top.png", + groups = {cracky = 3, not_in_creative_inventory = 1}, + paramtype = "light", + paramtype2 = "facedir", + drop = "mesecons_pistons:piston_normal_off", + after_dig_node = piston_remove_pusher, + node_box = piston_on_box, + selection_box = piston_on_box, + mesecons_piston = pistonspec_normal, + sounds = default.node_sound_wood_defaults(), + mesecons = {effector={ + action_off = piston_off, + rules = piston_get_rules + }} +}) + +-- pusher +minetest.register_node("mesecons_pistons:piston_pusher_normal", { + drawtype = "nodebox", + tiles = { + "mesecons_piston_pusher_top.png", + "mesecons_piston_pusher_bottom.png", + "mesecons_piston_pusher_left.png", + "mesecons_piston_pusher_right.png", + "mesecons_piston_pusher_back.png", + "mesecons_piston_pusher_front.png" + }, + paramtype = "light", + paramtype2 = "facedir", + diggable = false, + corresponding_piston = "mesecons_pistons:piston_normal_on", + selection_box = piston_pusher_box, + node_box = piston_pusher_box, +}) + +-- Sticky ones + +local pistonspec_sticky = { + offname = "mesecons_pistons:piston_sticky_off", + onname = "mesecons_pistons:piston_sticky_on", + dir = piston_facedir_direction, + pusher = "mesecons_pistons:piston_pusher_sticky", + sticky = true, + piston_down = "mesecons_pistons:piston_down_sticky_off", + piston_up = "mesecons_pistons:piston_up_sticky_off", +} + +-- offstate +minetest.register_node("mesecons_pistons:piston_sticky_off", { + description = "Sticky Piston", + tiles = { + "mesecons_piston_top.png", + "mesecons_piston_bottom.png", + "mesecons_piston_left.png", + "mesecons_piston_right.png", + "mesecons_piston_back.png", + "mesecons_piston_pusher_front_sticky.png" + }, + groups = {cracky = 3}, + paramtype2 = "facedir", + after_place_node = piston_orientate, + mesecons_piston = pistonspec_sticky, + sounds = default.node_sound_wood_defaults(), + mesecons = {effector={ + action_on = piston_on, + rules = piston_get_rules + }} +}) + +-- onstate +minetest.register_node("mesecons_pistons:piston_sticky_on", { + drawtype = "nodebox", + tiles = { + "mesecons_piston_top.png", + "mesecons_piston_bottom.png", + "mesecons_piston_left.png", + "mesecons_piston_right.png", + "mesecons_piston_back.png", + "mesecons_piston_on_front.png" + }, + inventory_image = "mesecons_piston_top.png", + wield_image = "mesecons_piston_top.png", + groups = {cracky = 3, not_in_creative_inventory = 1}, + paramtype = "light", + paramtype2 = "facedir", + drop = "mesecons_pistons:piston_normal_off", + after_dig_node = piston_remove_pusher, + node_box = piston_on_box, + selection_box = piston_on_box, + mesecons_piston = pistonspec_sticky, + sounds = default.node_sound_wood_defaults(), + mesecons = {effector={ + action_off = piston_off, + rules = piston_get_rules + }} +}) + +-- pusher +minetest.register_node("mesecons_pistons:piston_pusher_sticky", { + drawtype = "nodebox", + tiles = { + "mesecons_piston_pusher_top.png", + "mesecons_piston_pusher_bottom.png", + "mesecons_piston_pusher_left.png", + "mesecons_piston_pusher_right.png", + "mesecons_piston_pusher_back.png", + "mesecons_piston_pusher_front_sticky.png" + }, + paramtype = "light", + paramtype2 = "facedir", + diggable = false, + corresponding_piston = "mesecons_pistons:piston_sticky_on", + selection_box = piston_pusher_box, + node_box = piston_pusher_box, +}) + +-- +-- +-- UP +-- +-- + +local piston_up_pusher_box = { + type = "fixed", + fixed = { + {-2/16, -.5 - pt, -2/16, 2/16, .5 - pt, 2/16}, + {-.5 , .5 - pt, -.5 , .5 , .5 , .5}, + } +} + +local piston_up_on_box = { + type = "fixed", + fixed = { + {-.5, -.5, -.5 , .5, .5-pt, .5} + } +} + +-- Normal + +local pistonspec_normal_up = { + offname = "mesecons_pistons:piston_up_normal_off", + onname = "mesecons_pistons:piston_up_normal_on", + dir = {x = 0, y = 1, z = 0}, + pusher = "mesecons_pistons:piston_up_pusher_normal" +} + +-- offstate +minetest.register_node("mesecons_pistons:piston_up_normal_off", { + tiles = { + "mesecons_piston_pusher_front.png", + "mesecons_piston_back.png", + "mesecons_piston_left.png^[transformR270", + "mesecons_piston_right.png^[transformR90", + "mesecons_piston_bottom.png", + "mesecons_piston_top.png^[transformR180", + }, + inventory_image = "mesecons_piston_top.png", + wield_image = "mesecons_piston_top.png", + groups = {cracky = 3, not_in_creative_inventory = 1}, + paramtype2 = "facedir", + drop = "mesecons_pistons:piston_normal_off", + mesecons_piston = pistonspec_normal_up, + mesecons = {effector={ + action_on = piston_on, + rules = piston_up_rules, + }} +}) + +-- onstate +minetest.register_node("mesecons_pistons:piston_up_normal_on", { + drawtype = "nodebox", + tiles = { + "mesecons_piston_on_front.png", + "mesecons_piston_back.png", + "mesecons_piston_left.png^[transformR270", + "mesecons_piston_right.png^[transformR90", + "mesecons_piston_bottom.png", + "mesecons_piston_top.png^[transformR180", + }, + inventory_image = "mesecons_piston_top.png", + wield_image = "mesecons_piston_top.png", + groups = {cracky = 3, not_in_creative_inventory = 1}, + paramtype = "light", + paramtype2 = "facedir", + drop = "mesecons_pistons:piston_normal_off", + after_dig_node = piston_remove_pusher, + node_box = piston_up_on_box, + selection_box = piston_up_on_box, + mesecons_piston = pistonspec_normal_up, + sounds = default.node_sound_wood_defaults(), + mesecons = {effector={ + action_off = piston_off, + rules = piston_up_rules, + }} +}) + +-- pusher +minetest.register_node("mesecons_pistons:piston_up_pusher_normal", { + drawtype = "nodebox", + tiles = { + "mesecons_piston_pusher_front.png", + "mesecons_piston_pusher_back.png", + "mesecons_piston_pusher_left.png^[transformR270", + "mesecons_piston_pusher_right.png^[transformR90", + "mesecons_piston_pusher_bottom.png", + "mesecons_piston_pusher_top.png^[transformR180", + }, + paramtype = "light", + paramtype2 = "facedir", + diggable = false, + corresponding_piston = "mesecons_pistons:piston_up_normal_on", + selection_box = piston_up_pusher_box, + node_box = piston_up_pusher_box, +}) + + + +-- Sticky + + +local pistonspec_sticky_up = { + offname = "mesecons_pistons:piston_up_sticky_off", + onname = "mesecons_pistons:piston_up_sticky_on", + dir = {x = 0, y = 1, z = 0}, + pusher = "mesecons_pistons:piston_up_pusher_sticky", + sticky = true +} + +-- offstate +minetest.register_node("mesecons_pistons:piston_up_sticky_off", { + tiles = { + "mesecons_piston_pusher_front_sticky.png", + "mesecons_piston_back.png", + "mesecons_piston_left.png^[transformR270", + "mesecons_piston_right.png^[transformR90", + "mesecons_piston_bottom.png", + "mesecons_piston_top.png^[transformR180", + "mesecons_piston_tb.png" + }, + inventory_image = "mesecons_piston_top.png", + wield_image = "mesecons_piston_top.png", + groups = {cracky = 3, not_in_creative_inventory = 1}, + paramtype2 = "facedir", + drop = "mesecons_pistons:piston_sticky_off", + mesecons_piston = pistonspec_sticky_up, + sounds = default.node_sound_wood_defaults(), + mesecons = {effector={ + action_on = piston_on, + rules = piston_up_rules, + }} +}) + +-- onstate +minetest.register_node("mesecons_pistons:piston_up_sticky_on", { + drawtype = "nodebox", + tiles = { + "mesecons_piston_on_front.png", + "mesecons_piston_back.png", + "mesecons_piston_left.png^[transformR270", + "mesecons_piston_right.png^[transformR90", + "mesecons_piston_bottom.png", + "mesecons_piston_top.png^[transformR180", + }, + inventory_image = "mesecons_piston_top.png", + wield_image = "mesecons_piston_top.png", + groups = {cracky = 3, not_in_creative_inventory = 1}, + paramtype = "light", + paramtype2 = "facedir", + drop = "mesecons_pistons:piston_normal_off", + after_dig_node = piston_remove_pusher, + node_box = piston_up_on_box, + selection_box = piston_up_on_box, + mesecons_piston = pistonspec_sticky_up, + sounds = default.node_sound_wood_defaults(), + mesecons = {effector={ + action_off = piston_off, + rules = piston_up_rules, + }} +}) + +-- pusher +minetest.register_node("mesecons_pistons:piston_up_pusher_sticky", { + drawtype = "nodebox", + tiles = { + "mesecons_piston_pusher_front_sticky.png", + "mesecons_piston_pusher_back.png", + "mesecons_piston_pusher_left.png^[transformR270", + "mesecons_piston_pusher_right.png^[transformR90", + "mesecons_piston_pusher_bottom.png", + "mesecons_piston_pusher_top.png^[transformR180", + }, + paramtype = "light", + paramtype2 = "facedir", + diggable = false, + corresponding_piston = "mesecons_pistons:piston_up_sticky_on", + selection_box = piston_up_pusher_box, + node_box = piston_up_pusher_box, +}) + +-- +-- +-- DOWN +-- +-- + +local piston_down_pusher_box = { + type = "fixed", + fixed = { + {-2/16, -.5 + pt, -2/16, 2/16, .5 + pt, 2/16}, + {-.5 , -.5 , -.5 , .5 , -.5 + pt, .5}, + } +} + +local piston_down_on_box = { + type = "fixed", + fixed = { + {-.5, -.5+pt, -.5 , .5, .5, .5} + } +} + + + +-- Normal + +local pistonspec_normal_down = { + offname = "mesecons_pistons:piston_down_normal_off", + onname = "mesecons_pistons:piston_down_normal_on", + dir = {x = 0, y = -1, z = 0}, + pusher = "mesecons_pistons:piston_down_pusher_normal", +} + +-- offstate +minetest.register_node("mesecons_pistons:piston_down_normal_off", { + tiles = { + "mesecons_piston_back.png", + "mesecons_piston_pusher_front.png", + "mesecons_piston_left.png^[transformR90", + "mesecons_piston_right.png^[transformR270", + "mesecons_piston_bottom.png^[transformR180", + "mesecons_piston_top.png", + }, + inventory_image = "mesecons_piston_top.png", + wield_image = "mesecons_piston_top.png", + groups = {cracky = 3, not_in_creative_inventory = 1}, + paramtype2 = "facedir", + drop = "mesecons_pistons:piston_normal_off", + mesecons_piston = pistonspec_normal_down, + sounds = default.node_sound_wood_defaults(), + mesecons = {effector={ + action_on = piston_on, + rules = piston_down_rules, + }} +}) + +-- onstate +minetest.register_node("mesecons_pistons:piston_down_normal_on", { + drawtype = "nodebox", + tiles = { + "mesecons_piston_back.png", + "mesecons_piston_on_front.png", + "mesecons_piston_left.png^[transformR90", + "mesecons_piston_right.png^[transformR270", + "mesecons_piston_bottom.png^[transformR180", + "mesecons_piston_top.png", + }, + inventory_image = "mesecons_piston_top.png", + wield_image = "mesecons_piston_top.png", + groups = {cracky = 3, not_in_creative_inventory = 1}, + paramtype = "light", + paramtype2 = "facedir", + drop = "mesecons_pistons:piston_normal_off", + after_dig_node = piston_remove_pusher, + node_box = piston_down_on_box, + selection_box = piston_down_on_box, + mesecons_piston = pistonspec_normal_down, + sounds = default.node_sound_wood_defaults(), + mesecons = {effector={ + action_off = piston_off, + rules = piston_down_rules, + }} +}) + +-- pusher +minetest.register_node("mesecons_pistons:piston_down_pusher_normal", { + drawtype = "nodebox", + tiles = { + "mesecons_piston_pusher_back.png", + "mesecons_piston_pusher_front.png", + "mesecons_piston_pusher_left.png^[transformR90", + "mesecons_piston_pusher_right.png^[transformR270", + "mesecons_piston_pusher_bottom.png^[transformR180", + "mesecons_piston_pusher_top.png", + }, + paramtype = "light", + paramtype2 = "facedir", + diggable = false, + corresponding_piston = "mesecons_pistons:piston_down_normal_on", + selection_box = piston_down_pusher_box, + node_box = piston_down_pusher_box, +}) + +-- Sticky + +local pistonspec_sticky_down = { + onname = "mesecons_pistons:piston_down_sticky_on", + offname = "mesecons_pistons:piston_down_sticky_off", + dir = {x = 0, y = -1, z = 0}, + pusher = "mesecons_pistons:piston_down_pusher_sticky", + sticky = true +} + +-- offstate +minetest.register_node("mesecons_pistons:piston_down_sticky_off", { + tiles = { + "mesecons_piston_back.png", + "mesecons_piston_pusher_front_sticky.png", + "mesecons_piston_left.png^[transformR90", + "mesecons_piston_right.png^[transformR270", + "mesecons_piston_bottom.png^[transformR180", + "mesecons_piston_top.png", + }, + inventory_image = "mesecons_piston_top.png", + wield_image = "mesecons_piston_top.png", + groups = {cracky = 3, not_in_creative_inventory = 1}, + paramtype2 = "facedir", + drop = "mesecons_pistons:piston_sticky_off", + mesecons_piston = pistonspec_sticky_down, + sounds = default.node_sound_wood_defaults(), + mesecons = {effector={ + action_on = piston_on, + rules = piston_down_rules, + }} +}) + +-- onstate +minetest.register_node("mesecons_pistons:piston_down_sticky_on", { + drawtype = "nodebox", + tiles = { + "mesecons_piston_back.png", + "mesecons_piston_on_front.png", + "mesecons_piston_left.png^[transformR90", + "mesecons_piston_right.png^[transformR270", + "mesecons_piston_bottom.png^[transformR180", + "mesecons_piston_top.png", + }, + inventory_image = "mesecons_piston_top.png", + wield_image = "mesecons_piston_top.png", + groups = {cracky = 3, not_in_creative_inventory = 1}, + paramtype = "light", + paramtype2 = "facedir", + drop = "mesecons_pistons:piston_sticky_off", + after_dig_node = piston_remove_pusher, + node_box = piston_down_on_box, + selection_box = piston_down_on_box, + mesecons_piston = pistonspec_sticky_down, + sounds = default.node_sound_wood_defaults(), + mesecons = {effector={ + action_off = piston_off, + rules = piston_down_rules, + }} +}) + +-- pusher +minetest.register_node("mesecons_pistons:piston_down_pusher_sticky", { + drawtype = "nodebox", + tiles = { + "mesecons_piston_pusher_back.png", + "mesecons_piston_pusher_front_sticky.png", + "mesecons_piston_pusher_left.png^[transformR90", + "mesecons_piston_pusher_right.png^[transformR270", + "mesecons_piston_pusher_bottom.png^[transformR180", + "mesecons_piston_pusher_top.png", + }, + paramtype = "light", + paramtype2 = "facedir", + diggable = false, + corresponding_piston = "mesecons_pistons:piston_down_sticky_on", + selection_box = piston_down_pusher_box, + node_box = piston_down_pusher_box, +}) + + +-- Register pushers as stoppers if they would be seperated from the piston +local piston_pusher_get_stopper = function (node, dir, stack, stackid) + if (stack[stackid + 1] + and stack[stackid + 1].node.name == minetest.registered_nodes[node.name].corresponding_piston + and stack[stackid + 1].node.param2 == node.param2) + or (stack[stackid - 1] + and stack[stackid - 1].node.name == minetest.registered_nodes[node.name].corresponding_piston + and stack[stackid - 1].node.param2 == node.param2) then + return false + end + return true +end + +local piston_pusher_up_down_get_stopper = function (node, dir, stack, stackid) + if (stack[stackid + 1] + and stack[stackid + 1].node.name == minetest.registered_nodes[node.name].corresponding_piston) + or (stack[stackid - 1] + and stack[stackid - 1].node.name == minetest.registered_nodes[node.name].corresponding_piston) then + return false + end + return true +end + +mesecon:register_mvps_stopper("mesecons_pistons:piston_pusher_normal", piston_pusher_get_stopper) +mesecon:register_mvps_stopper("mesecons_pistons:piston_pusher_sticky", piston_pusher_get_stopper) + +mesecon:register_mvps_stopper("mesecons_pistons:piston_up_pusher_normal", piston_pusher_up_down_get_stopper) +mesecon:register_mvps_stopper("mesecons_pistons:piston_up_pusher_sticky", piston_pusher_up_down_get_stopper) + +mesecon:register_mvps_stopper("mesecons_pistons:piston_down_pusher_normal", piston_pusher_up_down_get_stopper) +mesecon:register_mvps_stopper("mesecons_pistons:piston_down_pusher_sticky", piston_pusher_up_down_get_stopper) + + +-- Register pistons as stoppers if they would be seperated from the stopper +local piston_up_down_get_stopper = function (node, dir, stack, stackid) + if (stack[stackid + 1] + and stack[stackid + 1].node.name == minetest.registered_nodes[node.name].mesecons_piston.pusher) + or (stack[stackid - 1] + and stack[stackid - 1].node.name == minetest.registered_nodes[node.name].mesecons_piston.pusher) then + return false + end + return true +end + +local piston_get_stopper = function (node, dir, stack, stackid) + pistonspec = minetest.registered_nodes[node.name].mesecons_piston + dir = piston_get_direction(pistonspec.dir, node) + local pusherpos = mesecon:addPosRule(stack[stackid].pos, dir) + local pushernode = minetest.get_node(pusherpos) + + if minetest.registered_nodes[node.name].mesecons_piston.pusher == pushernode.name then + for _, s in ipairs(stack) do + if mesecon:cmpPos(s.pos, pusherpos) -- pusher is also to be pushed + and s.node.param2 == node.param2 then + return false + end + end + end + return true +end + +mesecon:register_mvps_stopper("mesecons_pistons:piston_normal_on", piston_get_stopper) +mesecon:register_mvps_stopper("mesecons_pistons:piston_sticky_on", piston_get_stopper) + +mesecon:register_mvps_stopper("mesecons_pistons:piston_up_normal_on", piston_up_down_get_stopper) +mesecon:register_mvps_stopper("mesecons_pistons:piston_up_sticky_on", piston_up_down_get_stopper) + +mesecon:register_mvps_stopper("mesecons_pistons:piston_down_normal_on", piston_up_down_get_stopper) +mesecon:register_mvps_stopper("mesecons_pistons:piston_down_sticky_on", piston_up_down_get_stopper) + +--craft recipes +minetest.register_craft({ + output = "mesecons_pistons:piston_normal_off 2", + recipe = { + {"group:wood", "group:wood", "group:wood"}, + {"default:cobble", "default:steel_ingot", "default:cobble"}, + {"default:cobble", "group:mesecon_conductor_craftable", "default:cobble"}, + } +}) + +minetest.register_craft({ + output = "mesecons_pistons:piston_sticky_off", + recipe = { + {"mesecons_materials:glue"}, + {"mesecons_pistons:piston_normal_off"}, + } +}) diff --git a/mods/mesecons/mesecons_pistons/sounds/piston_extend.ogg b/mods/mesecons/mesecons_pistons/sounds/piston_extend.ogg new file mode 100644 index 0000000..e234ad9 Binary files /dev/null and b/mods/mesecons/mesecons_pistons/sounds/piston_extend.ogg differ diff --git a/mods/mesecons/mesecons_pistons/sounds/piston_retract.ogg b/mods/mesecons/mesecons_pistons/sounds/piston_retract.ogg new file mode 100644 index 0000000..feb9f04 Binary files /dev/null and b/mods/mesecons/mesecons_pistons/sounds/piston_retract.ogg differ diff --git a/mods/mesecons/mesecons_pistons/textures/mesecons_piston_back.png b/mods/mesecons/mesecons_pistons/textures/mesecons_piston_back.png new file mode 100644 index 0000000..6a57dce Binary files /dev/null and b/mods/mesecons/mesecons_pistons/textures/mesecons_piston_back.png differ diff --git a/mods/mesecons/mesecons_pistons/textures/mesecons_piston_bottom.png b/mods/mesecons/mesecons_pistons/textures/mesecons_piston_bottom.png new file mode 100644 index 0000000..5a3af9b Binary files /dev/null and b/mods/mesecons/mesecons_pistons/textures/mesecons_piston_bottom.png differ diff --git a/mods/mesecons/mesecons_pistons/textures/mesecons_piston_left.png b/mods/mesecons/mesecons_pistons/textures/mesecons_piston_left.png new file mode 100644 index 0000000..215dd73 Binary files /dev/null and b/mods/mesecons/mesecons_pistons/textures/mesecons_piston_left.png differ diff --git a/mods/mesecons/mesecons_pistons/textures/mesecons_piston_on_front.png b/mods/mesecons/mesecons_pistons/textures/mesecons_piston_on_front.png new file mode 100644 index 0000000..0ade67e Binary files /dev/null and b/mods/mesecons/mesecons_pistons/textures/mesecons_piston_on_front.png differ diff --git a/mods/mesecons/mesecons_pistons/textures/mesecons_piston_pusher_back.png b/mods/mesecons/mesecons_pistons/textures/mesecons_piston_pusher_back.png new file mode 100644 index 0000000..fe87943 Binary files /dev/null and b/mods/mesecons/mesecons_pistons/textures/mesecons_piston_pusher_back.png differ diff --git a/mods/mesecons/mesecons_pistons/textures/mesecons_piston_pusher_bottom.png b/mods/mesecons/mesecons_pistons/textures/mesecons_piston_pusher_bottom.png new file mode 100644 index 0000000..87c4e81 Binary files /dev/null and b/mods/mesecons/mesecons_pistons/textures/mesecons_piston_pusher_bottom.png differ diff --git a/mods/mesecons/mesecons_pistons/textures/mesecons_piston_pusher_front.png b/mods/mesecons/mesecons_pistons/textures/mesecons_piston_pusher_front.png new file mode 100644 index 0000000..8ec9dc6 Binary files /dev/null and b/mods/mesecons/mesecons_pistons/textures/mesecons_piston_pusher_front.png differ diff --git a/mods/mesecons/mesecons_pistons/textures/mesecons_piston_pusher_left.png b/mods/mesecons/mesecons_pistons/textures/mesecons_piston_pusher_left.png new file mode 100644 index 0000000..bc5495b Binary files /dev/null and b/mods/mesecons/mesecons_pistons/textures/mesecons_piston_pusher_left.png differ diff --git a/mods/mesecons/mesecons_pistons/textures/mesecons_piston_pusher_right.png b/mods/mesecons/mesecons_pistons/textures/mesecons_piston_pusher_right.png new file mode 100644 index 0000000..32ee32f Binary files /dev/null and b/mods/mesecons/mesecons_pistons/textures/mesecons_piston_pusher_right.png differ diff --git a/mods/mesecons/mesecons_pistons/textures/mesecons_piston_pusher_top.png b/mods/mesecons/mesecons_pistons/textures/mesecons_piston_pusher_top.png new file mode 100644 index 0000000..72f04e9 Binary files /dev/null and b/mods/mesecons/mesecons_pistons/textures/mesecons_piston_pusher_top.png differ diff --git a/mods/mesecons/mesecons_pistons/textures/mesecons_piston_right.png b/mods/mesecons/mesecons_pistons/textures/mesecons_piston_right.png new file mode 100644 index 0000000..176463c Binary files /dev/null and b/mods/mesecons/mesecons_pistons/textures/mesecons_piston_right.png differ diff --git a/mods/mesecons/mesecons_pistons/textures/mesecons_piston_top.png b/mods/mesecons/mesecons_pistons/textures/mesecons_piston_top.png new file mode 100644 index 0000000..5c8bace Binary files /dev/null and b/mods/mesecons/mesecons_pistons/textures/mesecons_piston_top.png differ diff --git a/mods/mesecons/mesecons_powerplant/depends.txt b/mods/mesecons/mesecons_powerplant/depends.txt new file mode 100644 index 0000000..acaa924 --- /dev/null +++ b/mods/mesecons/mesecons_powerplant/depends.txt @@ -0,0 +1 @@ +mesecons diff --git a/mods/mesecons/mesecons_powerplant/init.lua b/mods/mesecons/mesecons_powerplant/init.lua new file mode 100644 index 0000000..9429487 --- /dev/null +++ b/mods/mesecons/mesecons_powerplant/init.lua @@ -0,0 +1,31 @@ +-- The POWER_PLANT +-- Just emits power. always. + +minetest.register_node("mesecons_powerplant:power_plant", { + drawtype = "plantlike", + visual_scale = 1, + tiles = {"jeija_power_plant.png"}, + inventory_image = "jeija_power_plant.png", + paramtype = "light", + walkable = false, + groups = {dig_immediate=3, mesecon = 2}, + light_source = LIGHT_MAX-9, + description="Power Plant", + selection_box = { + type = "fixed", + fixed = {-0.3, -0.5, -0.3, 0.3, -0.5+0.7, 0.3}, + }, + sounds = default.node_sound_leaves_defaults(), + mesecons = {receptor = { + state = mesecon.state.on + }} +}) + +minetest.register_craft({ + output = "mesecons_powerplant:power_plant 1", + recipe = { + {"group:mesecon_conductor_craftable"}, + {"group:mesecon_conductor_craftable"}, + {"default:sapling"}, + } +}) diff --git a/mods/mesecons/mesecons_powerplant/textures/jeija_power_plant.png b/mods/mesecons/mesecons_powerplant/textures/jeija_power_plant.png new file mode 100644 index 0000000..edc8891 Binary files /dev/null and b/mods/mesecons/mesecons_powerplant/textures/jeija_power_plant.png differ diff --git a/mods/mesecons/mesecons_pressureplates/depends.txt b/mods/mesecons/mesecons_pressureplates/depends.txt new file mode 100644 index 0000000..acaa924 --- /dev/null +++ b/mods/mesecons/mesecons_pressureplates/depends.txt @@ -0,0 +1 @@ +mesecons diff --git a/mods/mesecons/mesecons_pressureplates/init.lua b/mods/mesecons/mesecons_pressureplates/init.lua new file mode 100644 index 0000000..ec8d789 --- /dev/null +++ b/mods/mesecons/mesecons_pressureplates/init.lua @@ -0,0 +1,127 @@ +local pp_box_off = { + type = "fixed", + fixed = { -7/16, -8/16, -7/16, 7/16, -7/16, 7/16 }, +} + +local pp_box_on = { + type = "fixed", + fixed = { -7/16, -8/16, -7/16, 7/16, -7.5/16, 7/16 }, +} + +pp_on_timer = function (pos, elapsed) + local node = minetest.get_node(pos) + local ppspec = minetest.registered_nodes[node.name].pressureplate + + -- This is a workaround for a strange bug that occurs when the server is started + -- For some reason the first time on_timer is called, the pos is wrong + if not ppspec then return end + + local objs = minetest.get_objects_inside_radius(pos, 1) + local two_below = mesecon:addPosRule(pos, {x = 0, y = -2, z = 0}) + + if objs[1] == nil and node.name == ppspec.onstate then + minetest.add_node(pos, {name = ppspec.offstate}) + mesecon:receptor_off(pos) + -- force deactivation of mesecon two blocks below (hacky) + if not mesecon:connected_to_receptor(two_below) then + mesecon:turnoff(two_below) + end + else + for k, obj in pairs(objs) do + local objpos = obj:getpos() + if objpos.y > pos.y-1 and objpos.y < pos.y then + minetest.add_node(pos, {name=ppspec.onstate}) + mesecon:receptor_on(pos) + -- force activation of mesecon two blocks below (hacky) + mesecon:turnon(two_below) + end + end + end + return true +end + +-- Register a Pressure Plate +-- offstate: name of the pressure plate when inactive +-- onstate: name of the pressure plate when active +-- description: description displayed in the player's inventory +-- tiles_off: textures of the pressure plate when inactive +-- tiles_on: textures of the pressure plate when active +-- image: inventory and wield image of the pressure plate +-- recipe: crafting recipe of the pressure plate + +function mesecon:register_pressure_plate(offstate, onstate, description, textures_off, textures_on, image_w, image_i, recipe) + local ppspec = { + offstate = offstate, + onstate = onstate + } + + minetest.register_node(offstate, { + drawtype = "nodebox", + tiles = textures_off, + inventory_image = image_i, + wield_image = image_w, + paramtype = "light", + selection_box = pp_box_off, + node_box = pp_box_off, + groups = {snappy = 2, oddly_breakable_by_hand = 3}, + description = description, + pressureplate = ppspec, + on_timer = pp_on_timer, + mesecons = {receptor = { + state = mesecon.state.off + }}, + on_construct = function(pos) + minetest.get_node_timer(pos):start(PRESSURE_PLATE_INTERVAL) + end, + }) + + minetest.register_node(onstate, { + drawtype = "nodebox", + tiles = textures_on, + paramtype = "light", + selection_box = pp_box_on, + node_box = pp_box_on, + groups = {snappy = 2, oddly_breakable_by_hand = 3, not_in_creative_inventory = 1}, + drop = offstate, + pressureplate = ppspec, + on_timer = pp_on_timer, + sounds = default.node_sound_wood_defaults(), + mesecons = {receptor = { + state = mesecon.state.on + }}, + on_construct = function(pos) + minetest.get_node_timer(pos):start(PRESSURE_PLATE_INTERVAL) + end, + after_dig_node = function(pos) + local two_below = mesecon:addPosRule(pos, {x = 0, y = -2, z = 0}) + if not mesecon:connected_to_receptor(two_below) then + mesecon:turnoff(two_below) + end + end + }) + + minetest.register_craft({ + output = offstate, + recipe = recipe, + }) +end + +mesecon:register_pressure_plate( + "mesecons_pressureplates:pressure_plate_wood_off", + "mesecons_pressureplates:pressure_plate_wood_on", + "Wooden Pressure Plate", + {"jeija_pressure_plate_wood_off.png","jeija_pressure_plate_wood_off.png","jeija_pressure_plate_wood_off_edges.png"}, + {"jeija_pressure_plate_wood_on.png","jeija_pressure_plate_wood_on.png","jeija_pressure_plate_wood_on_edges.png"}, + "jeija_pressure_plate_wood_wield.png", + "jeija_pressure_plate_wood_inv.png", + {{"group:wood", "group:wood"}}) + +mesecon:register_pressure_plate( + "mesecons_pressureplates:pressure_plate_stone_off", + "mesecons_pressureplates:pressure_plate_stone_on", + "Stone Pressure Plate", + {"jeija_pressure_plate_stone_off.png","jeija_pressure_plate_stone_off.png","jeija_pressure_plate_stone_off_edges.png"}, + {"jeija_pressure_plate_stone_on.png","jeija_pressure_plate_stone_on.png","jeija_pressure_plate_stone_on_edges.png"}, + "jeija_pressure_plate_stone_wield.png", + "jeija_pressure_plate_stone_inv.png", + {{"default:cobble", "default:cobble"}}) diff --git a/mods/mesecons/mesecons_random/depends.txt b/mods/mesecons/mesecons_random/depends.txt new file mode 100644 index 0000000..acaa924 --- /dev/null +++ b/mods/mesecons/mesecons_random/depends.txt @@ -0,0 +1 @@ +mesecons diff --git a/mods/mesecons/mesecons_random/init.lua b/mods/mesecons/mesecons_random/init.lua new file mode 100644 index 0000000..670bea4 --- /dev/null +++ b/mods/mesecons/mesecons_random/init.lua @@ -0,0 +1,85 @@ +-- REMOVESTONE + +minetest.register_node("mesecons_random:removestone", { + tiles = {"jeija_removestone.png"}, + inventory_image = minetest.inventorycube("jeija_removestone_inv.png"), + groups = {cracky=3}, + description="Removestone", + sounds = default.node_sound_stone_defaults(), + mesecons = {effector = { + action_on = function (pos, node) + minetest.remove_node(pos) + mesecon:update_autoconnect(pos) + end + }} +}) + +minetest.register_craft({ + output = 'mesecons_random:removestone 4', + recipe = { + {"", "default:cobble", ""}, + {"default:cobble", "group:mesecon_conductor_craftable", "default:cobble"}, + {"", "default:cobble", ""}, + } +}) + +-- GHOSTSTONE + +minetest.register_node("mesecons_random:ghoststone", { + description="ghoststone", + tiles = {"jeija_ghoststone.png"}, + is_ground_content = true, + inventory_image = minetest.inventorycube("jeija_ghoststone_inv.png"), + groups = {cracky=3}, + sounds = default.node_sound_stone_defaults(), + mesecons = {conductor = { + state = mesecon.state.off, + rules = { --axes + {x = -1, y = 0, z = 0}, + {x = 1, y = 0, z = 0}, + {x = 0, y = -1, z = 0}, + {x = 0, y = 1, z = 0}, + {x = 0, y = 0, z = -1}, + {x = 0, y = 0, z = 1}, + }, + onstate = "mesecons_random:ghoststone_active" + }} +}) + +minetest.register_node("mesecons_random:ghoststone_active", { + drawtype = "airlike", + pointable = false, + walkable = false, + diggable = false, + sunlight_propagates = true, + paramtype = "light", + mesecons = {conductor = { + state = mesecon.state.on, + rules = { + {x = -1, y = 0, z = 0}, + {x = 1, y = 0, z = 0}, + {x = 0, y = -1, z = 0}, + {x = 0, y = 1, z = 0}, + {x = 0, y = 0, z = -1}, + {x = 0, y = 0, z = 1}, + }, + offstate = "mesecons_random:ghoststone" + }}, + on_construct = function(pos) + --remove shadow + pos2 = {x = pos.x, y = pos.y + 1, z = pos.z} + if ( minetest.get_node(pos2).name == "air" ) then + minetest.dig_node(pos2) + end + end +}) + + +minetest.register_craft({ + output = 'mesecons_random:ghoststone 4', + recipe = { + {"default:steel_ingot", "default:cobble", "default:steel_ingot"}, + {"default:cobble", "group:mesecon_conductor_craftable", "default:cobble"}, + {"default:steel_ingot", "default:cobble", "default:steel_ingot"}, + } +}) diff --git a/mods/mesecons/mesecons_random/textures/jeija_ghoststone.png b/mods/mesecons/mesecons_random/textures/jeija_ghoststone.png new file mode 100644 index 0000000..1917b7c Binary files /dev/null and b/mods/mesecons/mesecons_random/textures/jeija_ghoststone.png differ diff --git a/mods/mesecons/mesecons_random/textures/jeija_ghoststone_inv.png b/mods/mesecons/mesecons_random/textures/jeija_ghoststone_inv.png new file mode 100644 index 0000000..c715d7f Binary files /dev/null and b/mods/mesecons/mesecons_random/textures/jeija_ghoststone_inv.png differ diff --git a/mods/mesecons/mesecons_random/textures/jeija_removestone.png b/mods/mesecons/mesecons_random/textures/jeija_removestone.png new file mode 100644 index 0000000..1917b7c Binary files /dev/null and b/mods/mesecons/mesecons_random/textures/jeija_removestone.png differ diff --git a/mods/mesecons/mesecons_random/textures/jeija_removestone_inv.png b/mods/mesecons/mesecons_random/textures/jeija_removestone_inv.png new file mode 100644 index 0000000..c715d7f Binary files /dev/null and b/mods/mesecons/mesecons_random/textures/jeija_removestone_inv.png differ diff --git a/mods/mesecons/mesecons_receiver/depends.txt b/mods/mesecons/mesecons_receiver/depends.txt new file mode 100644 index 0000000..acaa924 --- /dev/null +++ b/mods/mesecons/mesecons_receiver/depends.txt @@ -0,0 +1 @@ +mesecons diff --git a/mods/mesecons/mesecons_receiver/init.lua b/mods/mesecons/mesecons_receiver/init.lua new file mode 100644 index 0000000..3b1108e --- /dev/null +++ b/mods/mesecons/mesecons_receiver/init.lua @@ -0,0 +1,165 @@ +rcvboxes = { + { -3/16, -3/16 , -8/16 , 3/16, 3/16, -13/32 }, -- the smaller bump + { -1/32, -1/32 , -3/2 , 1/32, 1/32, -1/2 }, -- the wire through the block + { -2/32, -.5-1/32, -.5 , 2/32, 0 , -.5002+3/32 }, -- the vertical wire bit + { -2/32, -17/32 , -7/16+0.002 , 2/32, -14/32, 16/32+0.001 } -- the horizontal wire +} + +local receiver_get_rules = function (node) + local rules = { {x = 1, y = 0, z = 0}, + {x = -2, y = 0, z = 0}} + if node.param2 == 2 then + rules = mesecon:rotate_rules_left(rules) + elseif node.param2 == 3 then + rules = mesecon:rotate_rules_right(mesecon:rotate_rules_right(rules)) + elseif node.param2 == 0 then + rules = mesecon:rotate_rules_right(rules) + end + return rules +end + +minetest.register_node("mesecons_receiver:receiver_on", { + drawtype = "nodebox", + tiles = { + "receiver_top_on.png", + "receiver_bottom_on.png", + "receiver_lr_on.png", + "receiver_lr_on.png", + "receiver_fb_on.png", + "receiver_fb_on.png", + }, + paramtype = "light", + paramtype2 = "facedir", + sunlight_propagates = true, + walkable = false, + selection_box = { + type = "fixed", + fixed = { -3/16, -8/16, -8/16, 3/16, 3/16, 8/16 } + }, + node_box = { + type = "fixed", + fixed = rcvboxes + }, + groups = {dig_immediate = 3, not_in_creative_inventory = 1}, + drop = "mesecons:wire_00000000_off", + mesecons = {conductor = { + state = mesecon.state.on, + rules = receiver_get_rules, + offstate = "mesecons_receiver:receiver_off" + }} +}) + +minetest.register_node("mesecons_receiver:receiver_off", { + drawtype = "nodebox", + description = "You hacker you", + tiles = { + "receiver_top_off.png", + "receiver_bottom_off.png", + "receiver_lr_off.png", + "receiver_lr_off.png", + "receiver_fb_off.png", + "receiver_fb_off.png", + }, + paramtype = "light", + paramtype2 = "facedir", + sunlight_propagates = true, + walkable = false, + selection_box = { + type = "fixed", + fixed = { -3/16, -8/16, -8/16, 3/16, 3/16, 8/16 } + }, + node_box = { + type = "fixed", + fixed = rcvboxes + }, + groups = {dig_immediate = 3, not_in_creative_inventory = 1}, + drop = "mesecons:wire_00000000_off", + mesecons = {conductor = { + state = mesecon.state.off, + rules = receiver_get_rules, + onstate = "mesecons_receiver:receiver_on" + }} +}) + +mesecon:add_rules("receiver_pos", {{x = 2, y = 0, z = 0}}) + +mesecon:add_rules("receiver_pos_all", { +{x = 2, y = 0, z = 0}, +{x =-2, y = 0, z = 0}, +{x = 0, y = 0, z = 2}, +{x = 0, y = 0, z =-2}}) + +function mesecon:receiver_get_pos_from_rcpt(pos, param2) + local rules = mesecon:get_rules("receiver_pos") + if param2 == nil then param2 = minetest.get_node(pos).param2 end + if param2 == 2 then + rules = mesecon:rotate_rules_left(rules) + elseif param2 == 3 then + rules = mesecon:rotate_rules_right(mesecon:rotate_rules_right(rules)) + elseif param2 == 0 then + rules = mesecon:rotate_rules_right(rules) + end + np = { + x = pos.x + rules[1].x, + y = pos.y + rules[1].y, + z = pos.z + rules[1].z} + return np +end + +function mesecon:receiver_place(rcpt_pos) + local node = minetest.get_node(rcpt_pos) + local pos = mesecon:receiver_get_pos_from_rcpt(rcpt_pos, node.param2) + local nn = minetest.get_node(pos) + + if string.find(nn.name, "mesecons:wire_") ~= nil then + minetest.dig_node(pos) + if mesecon:is_power_on(rcpt_pos) then + minetest.add_node(pos, {name = "mesecons_receiver:receiver_on", param2 = node.param2}) + mesecon:receptor_on(pos, receiver_get_rules(node)) + else + minetest.add_node(pos, {name = "mesecons_receiver:receiver_off", param2 = node.param2}) + end + mesecon:update_autoconnect(pos) + end +end + +function mesecon:receiver_remove(rcpt_pos, dugnode) + local pos = mesecon:receiver_get_pos_from_rcpt(rcpt_pos, dugnode.param2) + local nn = minetest.get_node(pos) + if string.find(nn.name, "mesecons_receiver:receiver_") ~=nil then + minetest.dig_node(pos) + local node = {name = "mesecons:wire_00000000_off"} + minetest.add_node(pos, node) + mesecon:update_autoconnect(pos) + mesecon.on_placenode(pos, node) + end +end + +minetest.register_on_placenode(function (pos, node) + if minetest.get_item_group(node.name, "mesecon_needs_receiver") == 1 then + mesecon:receiver_place(pos) + end +end) + +minetest.register_on_dignode(function(pos, node) + if minetest.get_item_group(node.name, "mesecon_needs_receiver") == 1 then + mesecon:receiver_remove(pos, node) + end +end) + +minetest.register_on_placenode(function (pos, node) + if string.find(node.name, "mesecons:wire_") ~=nil then + rules = mesecon:get_rules("receiver_pos_all") + local i = 1 + while rules[i] ~= nil do + np = { + x = pos.x + rules[i].x, + y = pos.y + rules[i].y, + z = pos.z + rules[i].z} + if minetest.get_item_group(minetest.get_node(np).name, "mesecon_needs_receiver") == 1 then + mesecon:receiver_place(np) + end + i = i + 1 + end + end +end) diff --git a/mods/mesecons/mesecons_receiver/textures/receiver_bottom_off.png b/mods/mesecons/mesecons_receiver/textures/receiver_bottom_off.png new file mode 100644 index 0000000..b95903e Binary files /dev/null and b/mods/mesecons/mesecons_receiver/textures/receiver_bottom_off.png differ diff --git a/mods/mesecons/mesecons_receiver/textures/receiver_bottom_on.png b/mods/mesecons/mesecons_receiver/textures/receiver_bottom_on.png new file mode 100644 index 0000000..d0b7006 Binary files /dev/null and b/mods/mesecons/mesecons_receiver/textures/receiver_bottom_on.png differ diff --git a/mods/mesecons/mesecons_receiver/textures/receiver_fb_off.png b/mods/mesecons/mesecons_receiver/textures/receiver_fb_off.png new file mode 100644 index 0000000..aed3008 Binary files /dev/null and b/mods/mesecons/mesecons_receiver/textures/receiver_fb_off.png differ diff --git a/mods/mesecons/mesecons_receiver/textures/receiver_fb_on.png b/mods/mesecons/mesecons_receiver/textures/receiver_fb_on.png new file mode 100644 index 0000000..0916736 Binary files /dev/null and b/mods/mesecons/mesecons_receiver/textures/receiver_fb_on.png differ diff --git a/mods/mesecons/mesecons_receiver/textures/receiver_lr_off.png b/mods/mesecons/mesecons_receiver/textures/receiver_lr_off.png new file mode 100644 index 0000000..1fb2b3a Binary files /dev/null and b/mods/mesecons/mesecons_receiver/textures/receiver_lr_off.png differ diff --git a/mods/mesecons/mesecons_receiver/textures/receiver_lr_on.png b/mods/mesecons/mesecons_receiver/textures/receiver_lr_on.png new file mode 100644 index 0000000..087c0b4 Binary files /dev/null and b/mods/mesecons/mesecons_receiver/textures/receiver_lr_on.png differ diff --git a/mods/mesecons/mesecons_receiver/textures/receiver_top_off.png b/mods/mesecons/mesecons_receiver/textures/receiver_top_off.png new file mode 100644 index 0000000..ae50106 Binary files /dev/null and b/mods/mesecons/mesecons_receiver/textures/receiver_top_off.png differ diff --git a/mods/mesecons/mesecons_receiver/textures/receiver_top_on.png b/mods/mesecons/mesecons_receiver/textures/receiver_top_on.png new file mode 100644 index 0000000..5b48cac Binary files /dev/null and b/mods/mesecons/mesecons_receiver/textures/receiver_top_on.png differ diff --git a/mods/mesecons/mesecons_solarpanel/depends.txt b/mods/mesecons/mesecons_solarpanel/depends.txt new file mode 100644 index 0000000..bc7b062 --- /dev/null +++ b/mods/mesecons/mesecons_solarpanel/depends.txt @@ -0,0 +1,2 @@ +mesecons +mesecons_materials diff --git a/mods/mesecons/mesecons_solarpanel/init.lua b/mods/mesecons/mesecons_solarpanel/init.lua new file mode 100644 index 0000000..c30fe12 --- /dev/null +++ b/mods/mesecons/mesecons_solarpanel/init.lua @@ -0,0 +1,95 @@ +-- Solar Panel +minetest.register_node("mesecons_solarpanel:solar_panel_on", { + drawtype = "nodebox", + tiles = { "jeija_solar_panel.png", }, + inventory_image = "jeija_solar_panel.png", + wield_image = "jeija_solar_panel.png", + paramtype = "light", + paramtype2 = "wallmounted", + walkable = false, + is_ground_content = true, + node_box = { + type = "wallmounted", + wall_bottom = { -7/16, -8/16, -7/16, 7/16, -7/16, 7/16 }, + wall_top = { -7/16, 7/16, -7/16, 7/16, 8/16, 7/16 }, + wall_side = { -8/16, -7/16, -7/16, -7/16, 7/16, 7/16 }, + }, + selection_box = { + type = "wallmounted", + wall_bottom = { -7/16, -8/16, -7/16, 7/16, -7/16, 7/16 }, + wall_top = { -7/16, 7/16, -7/16, 7/16, 8/16, 7/16 }, + wall_side = { -8/16, -7/16, -7/16, -7/16, 7/16, 7/16 }, + }, + drop = "mesecons_solarpanel:solar_panel_off", + groups = {dig_immediate=3, not_in_creative_inventory = 1}, + sounds = default.node_sound_glass_defaults(), + mesecons = {receptor = { + state = mesecon.state.on + }} +}) + +-- Solar Panel +minetest.register_node("mesecons_solarpanel:solar_panel_off", { + drawtype = "nodebox", + tiles = { "jeija_solar_panel.png", }, + inventory_image = "jeija_solar_panel.png", + wield_image = "jeija_solar_panel.png", + paramtype = "light", + paramtype2 = "wallmounted", + walkable = false, + is_ground_content = true, + node_box = { + type = "wallmounted", + wall_bottom = { -7/16, -8/16, -7/16, 7/16, -7/16, 7/16 }, + wall_top = { -7/16, 7/16, -7/16, 7/16, 8/16, 7/16 }, + wall_side = { -8/16, -7/16, -7/16, -7/16, 7/16, 7/16 }, + }, + selection_box = { + type = "wallmounted", + wall_bottom = { -7/16, -8/16, -7/16, 7/16, -7/16, 7/16 }, + wall_top = { -7/16, 7/16, -7/16, 7/16, 8/16, 7/16 }, + wall_side = { -8/16, -7/16, -7/16, -7/16, 7/16, 7/16 }, + }, + groups = {dig_immediate=3}, + description="Solar Panel", + sounds = default.node_sound_glass_defaults(), + mesecons = {receptor = { + state = mesecon.state.off + }} +}) + +minetest.register_craft({ + output = "mesecons_solarpanel:solar_panel_off 1", + recipe = { + {"mesecons_materials:silicon", "mesecons_materials:silicon"}, + {"mesecons_materials:silicon", "mesecons_materials:silicon"}, + } +}) + +minetest.register_abm( + {nodenames = {"mesecons_solarpanel:solar_panel_off"}, + interval = 1, + chance = 1, + action = function(pos, node, active_object_count, active_object_count_wider) + local light = minetest.get_node_light(pos, nil) + + if light >= 12 then + minetest.set_node(pos, {name="mesecons_solarpanel:solar_panel_on", param2=node.param2}) + mesecon:receptor_on(pos) + end + end, +}) + +minetest.register_abm( + {nodenames = {"mesecons_solarpanel:solar_panel_on"}, + interval = 1, + chance = 1, + action = function(pos, node, active_object_count, active_object_count_wider) + local light = minetest.get_node_light(pos, nil) + + if light < 12 then + minetest.set_node(pos, {name="mesecons_solarpanel:solar_panel_off", param2=node.param2}) + mesecon:receptor_off(pos) + end + end, +}) diff --git a/mods/mesecons/mesecons_solarpanel/textures/jeija_solar_panel.png b/mods/mesecons/mesecons_solarpanel/textures/jeija_solar_panel.png new file mode 100644 index 0000000..a7b0f75 Binary files /dev/null and b/mods/mesecons/mesecons_solarpanel/textures/jeija_solar_panel.png differ diff --git a/mods/mesecons/mesecons_switch/depends.txt b/mods/mesecons/mesecons_switch/depends.txt new file mode 100644 index 0000000..acaa924 --- /dev/null +++ b/mods/mesecons/mesecons_switch/depends.txt @@ -0,0 +1 @@ +mesecons diff --git a/mods/mesecons/mesecons_switch/init.lua b/mods/mesecons/mesecons_switch/init.lua new file mode 100644 index 0000000..1b7f478 --- /dev/null +++ b/mods/mesecons/mesecons_switch/init.lua @@ -0,0 +1,41 @@ +-- MESECON_SWITCH + +minetest.register_node("mesecons_switch:mesecon_switch_off", { + tiles = {"jeija_mesecon_switch_side.png", "jeija_mesecon_switch_side.png", "jeija_mesecon_switch_side.png", "jeija_mesecon_switch_side.png", "jeija_mesecon_switch_side.png", "jeija_mesecon_switch_off.png"}, + paramtype2="facedir", + groups = {dig_immediate=2}, + description="Switch", + sounds = default.node_sound_stone_defaults(), + mesecons = {receptor = { + state = mesecon.state.off + }}, + on_punch = function(pos, node) + minetest.swap_node(pos, {name = "mesecons_switch:mesecon_switch_on", param2 = node.param2}) + mesecon:receptor_on(pos) + minetest.sound_play("mesecons_switch", {pos=pos}) + end +}) + +minetest.register_node("mesecons_switch:mesecon_switch_on", { + tiles = {"jeija_mesecon_switch_side.png", "jeija_mesecon_switch_side.png", "jeija_mesecon_switch_side.png", "jeija_mesecon_switch_side.png", "jeija_mesecon_switch_side.png", "jeija_mesecon_switch_on.png"}, + paramtype2="facedir", + groups = {dig_immediate=2,not_in_creative_inventory=1}, + drop="mesecons_switch:mesecon_switch_off 1", + sounds = default.node_sound_stone_defaults(), + mesecons = {receptor = { + state = mesecon.state.on + }}, + on_punch = function(pos, node) + minetest.swap_node(pos, {name = "mesecons_switch:mesecon_switch_off", param2 = node.param2}) + mesecon:receptor_off(pos) + minetest.sound_play("mesecons_switch", {pos=pos}) + end +}) + +minetest.register_craft({ + output = "mesecons_switch:mesecon_switch_off 2", + recipe = { + {"default:steel_ingot", "default:cobble", "default:steel_ingot"}, + {"group:mesecon_conductor_craftable","", "group:mesecon_conductor_craftable"}, + } +}) diff --git a/mods/mesecons/mesecons_switch/sounds/mesecons_switch.ogg b/mods/mesecons/mesecons_switch/sounds/mesecons_switch.ogg new file mode 100644 index 0000000..53d45c1 Binary files /dev/null and b/mods/mesecons/mesecons_switch/sounds/mesecons_switch.ogg differ diff --git a/mods/mesecons/mesecons_torch/depends.txt b/mods/mesecons/mesecons_torch/depends.txt new file mode 100644 index 0000000..acaa924 --- /dev/null +++ b/mods/mesecons/mesecons_torch/depends.txt @@ -0,0 +1 @@ +mesecons diff --git a/mods/mesecons/mesecons_torch/init.lua b/mods/mesecons/mesecons_torch/init.lua new file mode 100644 index 0000000..97a2991 --- /dev/null +++ b/mods/mesecons/mesecons_torch/init.lua @@ -0,0 +1,118 @@ +--MESECON TORCHES + +local rotate_torch_rules = function (rules, param2) + if param2 == 5 then + return mesecon:rotate_rules_right(rules) + elseif param2 == 2 then + return mesecon:rotate_rules_right(mesecon:rotate_rules_right(rules)) --180 degrees + elseif param2 == 4 then + return mesecon:rotate_rules_left(rules) + elseif param2 == 1 then + return mesecon:rotate_rules_down(rules) + elseif param2 == 0 then + return mesecon:rotate_rules_up(rules) + else + return rules + end +end + +local torch_get_output_rules = function(node) + local rules = { + {x = 1, y = 0, z = 0}, + {x = 0, y = 0, z = 1}, + {x = 0, y = 0, z =-1}, + {x = 0, y = 1, z = 0}, + {x = 0, y =-1, z = 0}} + + return rotate_torch_rules(rules, node.param2) +end + +local torch_get_input_rules = function(node) + local rules = {{x = -2, y = 0, z = 0}, + {x = -1, y = 1, z = 0}} + + return rotate_torch_rules(rules, node.param2) +end + +minetest.register_craft({ + output = "mesecons_torch:mesecon_torch_on 4", + recipe = { + {"group:mesecon_conductor_craftable"}, + {"default:stick"},} +}) + +local torch_selectionbox = +{ + type = "wallmounted", + wall_top = {-0.1, 0.5-0.6, -0.1, 0.1, 0.5, 0.1}, + wall_bottom = {-0.1, -0.5, -0.1, 0.1, -0.5+0.6, 0.1}, + wall_side = {-0.5, -0.1, -0.1, -0.5+0.6, 0.1, 0.1}, +} + +minetest.register_node("mesecons_torch:mesecon_torch_off", { + drawtype = "torchlike", + tiles = {"jeija_torches_off.png", "jeija_torches_off_ceiling.png", "jeija_torches_off_side.png"}, + inventory_image = "jeija_torches_off.png", + paramtype = "light", + walkable = false, + paramtype2 = "wallmounted", + selection_box = torch_selectionbox, + groups = {dig_immediate = 3, not_in_creative_inventory = 1}, + drop = "mesecons_torch:mesecon_torch_on", + mesecons = {receptor = { + state = mesecon.state.off, + rules = torch_get_output_rules + }} +}) + +minetest.register_node("mesecons_torch:mesecon_torch_on", { + drawtype = "torchlike", + tiles = {"jeija_torches_on.png", "jeija_torches_on_ceiling.png", "jeija_torches_on_side.png"}, + inventory_image = "jeija_torches_on.png", + wield_image = "jeija_torches_on.png", + paramtype = "light", + sunlight_propagates = true, + walkable = false, + paramtype2 = "wallmounted", + selection_box = torch_selectionbox, + groups = {dig_immediate=3}, + light_source = LIGHT_MAX-5, + description="Mesecon Torch", + mesecons = {receptor = { + state = mesecon.state.on, + rules = torch_get_output_rules + }}, +}) + +minetest.register_abm({ + nodenames = {"mesecons_torch:mesecon_torch_off","mesecons_torch:mesecon_torch_on"}, + interval = 1, + chance = 1, + action = function(pos, node) + local is_powered = false + for _, rule in ipairs(torch_get_input_rules(node)) do + local src = mesecon:addPosRule(pos, rule) + if mesecon:is_power_on(src) then + is_powered = true + end + end + + if is_powered then + if node.name == "mesecons_torch:mesecon_torch_on" then + minetest.swap_node(pos, {name = "mesecons_torch:mesecon_torch_off", param2 = node.param2}) + mesecon:receptor_off(pos, torch_get_output_rules(node)) + end + elseif node.name == "mesecons_torch:mesecon_torch_off" then + minetest.swap_node(pos, {name = "mesecons_torch:mesecon_torch_on", param2 = node.param2}) + mesecon:receptor_on(pos, torch_get_output_rules(node)) + end + end +}) + +-- Param2 Table (Block Attached To) +-- 5 = z-1 +-- 3 = x-1 +-- 4 = z+1 +-- 2 = x+1 +-- 0 = y+1 +-- 1 = y-1 diff --git a/mods/mesecons/mesecons_torch/textures/jeija_torches_off.png b/mods/mesecons/mesecons_torch/textures/jeija_torches_off.png new file mode 100644 index 0000000..537920c Binary files /dev/null and b/mods/mesecons/mesecons_torch/textures/jeija_torches_off.png differ diff --git a/mods/mesecons/mesecons_torch/textures/jeija_torches_off_ceiling.png b/mods/mesecons/mesecons_torch/textures/jeija_torches_off_ceiling.png new file mode 100644 index 0000000..3934e6e Binary files /dev/null and b/mods/mesecons/mesecons_torch/textures/jeija_torches_off_ceiling.png differ diff --git a/mods/mesecons/mesecons_torch/textures/jeija_torches_off_side.png b/mods/mesecons/mesecons_torch/textures/jeija_torches_off_side.png new file mode 100644 index 0000000..ecb2951 Binary files /dev/null and b/mods/mesecons/mesecons_torch/textures/jeija_torches_off_side.png differ diff --git a/mods/mesecons/mesecons_torch/textures/jeija_torches_on.png b/mods/mesecons/mesecons_torch/textures/jeija_torches_on.png new file mode 100644 index 0000000..a93dcc2 Binary files /dev/null and b/mods/mesecons/mesecons_torch/textures/jeija_torches_on.png differ diff --git a/mods/mesecons/mesecons_torch/textures/jeija_torches_on_ceiling.png b/mods/mesecons/mesecons_torch/textures/jeija_torches_on_ceiling.png new file mode 100644 index 0000000..24fe201 Binary files /dev/null and b/mods/mesecons/mesecons_torch/textures/jeija_torches_on_ceiling.png differ diff --git a/mods/mesecons/mesecons_torch/textures/jeija_torches_on_side.png b/mods/mesecons/mesecons_torch/textures/jeija_torches_on_side.png new file mode 100644 index 0000000..fe7dfd2 Binary files /dev/null and b/mods/mesecons/mesecons_torch/textures/jeija_torches_on_side.png differ diff --git a/mods/mesecons/mesecons_walllever/depends.txt b/mods/mesecons/mesecons_walllever/depends.txt new file mode 100644 index 0000000..19c798c --- /dev/null +++ b/mods/mesecons/mesecons_walllever/depends.txt @@ -0,0 +1,2 @@ +mesecons +mesecons_receiver diff --git a/mods/mesecons/mesecons_walllever/init.lua b/mods/mesecons/mesecons_walllever/init.lua new file mode 100644 index 0000000..a35d9f1 --- /dev/null +++ b/mods/mesecons/mesecons_walllever/init.lua @@ -0,0 +1,95 @@ +-- WALL LEVER +-- Basically a switch that can be attached to a wall +-- Powers the block 2 nodes behind (using a receiver) +minetest.register_node("mesecons_walllever:wall_lever_off", { + drawtype = "nodebox", + tiles = { + "jeija_wall_lever_tb.png", + "jeija_wall_lever_bottom.png", + "jeija_wall_lever_sides.png", + "jeija_wall_lever_sides.png", + "jeija_wall_lever_back.png", + "jeija_wall_lever_off.png", + }, + inventory_image = "jeija_wall_lever_off.png", + wield_image = "jeija_wall_lever_off.png", + paramtype = "light", + paramtype2 = "facedir", + sunlight_propagates = true, + walkable = false, + selection_box = { + type = "fixed", + fixed = { -8/16, -8/16, 3/16, 8/16, 8/16, 8/16 }, + }, + node_box = { + type = "fixed", + fixed = {{ -6/16, -6/16, 6/16, 6/16, 6/16, 8/16 }, -- the base "slab" + { -5/16, -3/16, 5/16, 5/16, 3/16, 6/16 }, -- the lighted ring area + { -4/16, -2/16, 4/16, 4/16, 2/16, 5/16 }, -- the raised bit that the lever "sits" on + { -2/16, -1/16, 3/16, 2/16, 1/16, 4/16 }, -- the lever "hinge" + { -1/16, -8/16, 4/16, 1/16, 0, 6/16 }} -- the lever itself. + }, + groups = {dig_immediate=2, mesecon_needs_receiver = 1}, + description="Lever", + on_punch = function (pos, node) + minetest.swap_node(pos, {name = "mesecons_walllever:wall_lever_on", param2 = node.param2}) + mesecon:receptor_on(pos, mesecon.rules.buttonlike_get(node)) + minetest.sound_play("mesecons_lever", {pos=pos}) + end, + sounds = default.node_sound_wood_defaults(), + mesecons = {receptor = { + rules = mesecon.rules.buttonlike_get, + state = mesecon.state.off + }} +}) +minetest.register_node("mesecons_walllever:wall_lever_on", { + drawtype = "nodebox", + tiles = { + "jeija_wall_lever_top.png", + "jeija_wall_lever_tb.png", + "jeija_wall_lever_sides.png", + "jeija_wall_lever_sides.png", + "jeija_wall_lever_back.png", + "jeija_wall_lever_on.png", + }, + inventory_image = "jeija_wall_lever_on.png", + paramtype = "light", + paramtype2 = "facedir", + sunlight_propagates = true, + walkable = false, + light_source = LIGHT_MAX-7, + selection_box = { + type = "fixed", + fixed = { -8/16, -8/16, 3/16, 8/16, 8/16, 8/16 }, + }, + node_box = { + type = "fixed", + fixed = {{ -6/16, -6/16, 6/16, 6/16, 6/16, 8/16 }, -- the base "slab" + { -5/16, -3/16, 5/16, 5/16, 3/16, 6/16 }, -- the lighted ring area + { -4/16, -2/16, 4/16, 4/16, 2/16, 5/16 }, -- the raised bit that the lever "sits" on + { -2/16, -1/16, 3/16, 2/16, 1/16, 4/16 }, -- the lever "hinge" + { -1/16, 0, 4/16, 1/16, 8/16, 6/16 }} -- the lever itself. + }, + groups = {dig_immediate = 2, not_in_creative_inventory = 1, mesecon_needs_receiver = 1}, + drop = "mesecons_walllever:wall_lever_off 1", + description="Lever", + on_punch = function (pos, node) + minetest.swap_node(pos, {name = "mesecons_walllever:wall_lever_off", param2 = node.param2}) + mesecon:receptor_off(pos, mesecon.rules.buttonlike_get(node)) + minetest.sound_play("mesecons_lever", {pos=pos}) + end, + sounds = default.node_sound_wood_defaults(), + mesecons = {receptor = { + rules = mesecon.rules.buttonlike_get, + state = mesecon.state.on + }} +}) + +minetest.register_craft({ + output = "mesecons_walllever:wall_lever_off 2", + recipe = { + {"group:mesecon_conductor_craftable"}, + {"default:stone"}, + {"default:stick"}, + } +}) diff --git a/mods/mesecons/mesecons_walllever/sounds/mesecons_lever.ogg b/mods/mesecons/mesecons_walllever/sounds/mesecons_lever.ogg new file mode 100644 index 0000000..53d45c1 Binary files /dev/null and b/mods/mesecons/mesecons_walllever/sounds/mesecons_lever.ogg differ diff --git a/mods/mesecons/mesecons_walllever/textures/jeija_wall_lever_back.png b/mods/mesecons/mesecons_walllever/textures/jeija_wall_lever_back.png new file mode 100644 index 0000000..9047e70 Binary files /dev/null and b/mods/mesecons/mesecons_walllever/textures/jeija_wall_lever_back.png differ diff --git a/mods/mesecons/mesecons_walllever/textures/jeija_wall_lever_bottom.png b/mods/mesecons/mesecons_walllever/textures/jeija_wall_lever_bottom.png new file mode 100644 index 0000000..041da96 Binary files /dev/null and b/mods/mesecons/mesecons_walllever/textures/jeija_wall_lever_bottom.png differ diff --git a/mods/mesecons/mesecons_walllever/textures/jeija_wall_lever_off.png b/mods/mesecons/mesecons_walllever/textures/jeija_wall_lever_off.png new file mode 100644 index 0000000..474f8c1 Binary files /dev/null and b/mods/mesecons/mesecons_walllever/textures/jeija_wall_lever_off.png differ diff --git a/mods/mesecons/mesecons_walllever/textures/jeija_wall_lever_on.png b/mods/mesecons/mesecons_walllever/textures/jeija_wall_lever_on.png new file mode 100644 index 0000000..01cbc24 Binary files /dev/null and b/mods/mesecons/mesecons_walllever/textures/jeija_wall_lever_on.png differ diff --git a/mods/mesecons/mesecons_walllever/textures/jeija_wall_lever_sides.png b/mods/mesecons/mesecons_walllever/textures/jeija_wall_lever_sides.png new file mode 100644 index 0000000..5864f26 Binary files /dev/null and b/mods/mesecons/mesecons_walllever/textures/jeija_wall_lever_sides.png differ diff --git a/mods/mesecons/mesecons_walllever/textures/jeija_wall_lever_tb.png b/mods/mesecons/mesecons_walllever/textures/jeija_wall_lever_tb.png new file mode 100644 index 0000000..50348d3 Binary files /dev/null and b/mods/mesecons/mesecons_walllever/textures/jeija_wall_lever_tb.png differ diff --git a/mods/mesecons/mesecons_walllever/textures/jeija_wall_lever_top.png b/mods/mesecons/mesecons_walllever/textures/jeija_wall_lever_top.png new file mode 100644 index 0000000..31161ec Binary files /dev/null and b/mods/mesecons/mesecons_walllever/textures/jeija_wall_lever_top.png differ diff --git a/mods/mesecons/modpack.txt b/mods/mesecons/modpack.txt new file mode 100644 index 0000000..33d91f5 --- /dev/null +++ b/mods/mesecons/modpack.txt @@ -0,0 +1 @@ +The presence of this file indicates that the current folder is a modpack. \ No newline at end of file diff --git a/mods/moreblocks/LICENSE.txt b/mods/moreblocks/LICENSE.txt new file mode 100644 index 0000000..f42bd64 --- /dev/null +++ b/mods/moreblocks/LICENSE.txt @@ -0,0 +1,13 @@ ++---- zlib/libpng license ----+ + +Copyright (c) 2013 Calinou + +This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. + +Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: + +1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. + +2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. + +3. This notice may not be removed or altered from any source distribution. diff --git a/mods/moreblocks/README.txt b/mods/moreblocks/README.txt new file mode 100644 index 0000000..4c15581 --- /dev/null +++ b/mods/moreblocks/README.txt @@ -0,0 +1,22 @@ +Calinou's Minetest Mods +===================== + +Calinou's Mods for Minetest [http://minetest.net], a free and opensource Minecraft-like game. + +This Git repository is mostly made for servers; it allows easy updating. + +To install, just clone this repository somewhere, then copy the "calinou_mods" folder in the "mods/minetest" folder of Minetest's installation folder. + + + +Misc stuff +===================== + +All these mods' source codes, except More Ores are under the zlib/libpng license. More Ores is under the GNU GPLv3; the mods' textures are under the CC BY-SA 3.0 Unported. + +Mods' forum threads: +More Blocks: http://minetest.net/forum/viewtopic.php?id=509 +More Ores: http://minetest.net/forum/viewtopic.php?id=549 +Map Tools: http://minetest.net/forum/viewtopic.php?id=1882 +Doors+: http://minetest.net/forum/viewtopic.php?id=2059 +Stairs+: http://minetest.net/forum/viewtopic.php?id=2092 diff --git a/mods/moreblocks/_config.txt b/mods/moreblocks/_config.txt new file mode 100644 index 0000000..a7e6fcd --- /dev/null +++ b/mods/moreblocks/_config.txt @@ -0,0 +1,17 @@ +------------------------------------------------------------------------------ +------------------------------ CONFIGURATION --------------------------------- +------------------------------------------------------------------------------ + +------------------------------------------------------------------------------ +-------- Change settings by changing the values after the "=". --------------- +------------------------------------------------------------------------------ + + +-- Whether to direct wood based on player yaw when placing the block (true or false) +wood_facedir = true + +-- Allow stair/slab crafting without a circular saw or not (true or false) +allow_stair_slab_crafting = true + +-- Show stairs/slabs/panels/microblocks in creative inventory (true or false) +show_stairsplus_creative_inv = false diff --git a/mods/moreblocks/aliases.lua b/mods/moreblocks/aliases.lua new file mode 100644 index 0000000..cabe2d9 --- /dev/null +++ b/mods/moreblocks/aliases.lua @@ -0,0 +1,206 @@ +-- Aliases (some of them are about the default mod, some about moreblocks) + +-- Additional default aliases + +minetest.register_alias("woodpick", "default:pick_wood") +minetest.register_alias("woodenpick", "default:pick_wood") +minetest.register_alias("stonepick", "default:pick_stone") +minetest.register_alias("steelpick", "default:pick_steel") +minetest.register_alias("ironpick", "default:pick_steel") +minetest.register_alias("mesepick", "default:pick_mese") + +minetest.register_alias("woodaxe", "default:axe_wood") +minetest.register_alias("woodenaxe", "default:axe_wood") +minetest.register_alias("stoneaxe", "default:axe_stone") +minetest.register_alias("steelaxe", "default:axe_steel") +minetest.register_alias("ironaxe", "default:axe_steel") + +minetest.register_alias("woodshovel", "default:shovel_wood") +minetest.register_alias("woodenshovel", "default:shovel_wood") +minetest.register_alias("stoneshovel", "default:shovel_stone") +minetest.register_alias("steelshovel", "default:shovel_steel") +minetest.register_alias("ironshovel", "default:shovel_steel") + +minetest.register_alias("woodsword", "default:sword_wood") +minetest.register_alias("woodensword", "default:sword_wood") +minetest.register_alias("stonesword", "default:sword_stone") +minetest.register_alias("steelsword", "default:sword_steel") +minetest.register_alias("ironsword", "default:sword_steel") + +minetest.register_alias("grass", "default:dirt_with_grass") +minetest.register_alias("grassblock", "default:dirt_with_grass") +minetest.register_alias("grass_block", "default:dirt_with_grass") + +minetest.register_alias("grassfootsteps", "default:dirt_with_grass_footsteps") +minetest.register_alias("grass_footsteps", "default:dirt_with_grass_footsteps") + +minetest.register_alias("jungle_tree", "default:jungletree") + +minetest.register_alias("stick", "default:stick") +minetest.register_alias("sign", "default:sign_wall") +minetest.register_alias("fence", "default:fence_wood") +minetest.register_alias("coal", "default:coal_lump") +minetest.register_alias("iron", "default:iron_lump") +minetest.register_alias("clay", "default:clay_lump") +minetest.register_alias("steel", "default:steel_ingot") +minetest.register_alias("steel_block", "default:steelblock") + +minetest.register_alias("stonebrick", "default:stonebrick") +minetest.register_alias("stonebricks", "default:stonebrick") +minetest.register_alias("stone_brick", "default:stonebrick") +minetest.register_alias("stone_bricks", "default:stonebrick") + +minetest.register_alias("screwdriver", "screwdriver:screwdriver") +minetest.register_alias("screw_driver", "screwdriver:screw_driver") +minetest.register_alias("screwdrive", "screwdriver:screw_driver") +minetest.register_alias("screw_drive", "screwdriver:screw_driver") +minetest.register_alias("sd", "screwdriver:screw_driver") + + +minetest.register_alias("obsidian", "default:obsidian") +minetest.register_alias("obsidianglass", "default:obsidian_glass") +minetest.register_alias("obsidian_glass", "default:obsidian_glass") + +-- More Blocks aliases + +minetest.register_alias("circlestonebrick", "moreblocks:circle_stone_bricks") +minetest.register_alias("circlestonebricks", "moreblocks:circle_stone_bricks") +minetest.register_alias("circlestone_brick", "moreblocks:circle_stone_bricks") +minetest.register_alias("circlestone_bricks", "moreblocks:circle_stone_bricks") +minetest.register_alias("circle_stonebrick", "moreblocks:circle_stone_bricks") +minetest.register_alias("circle_stonebricks", "moreblocks:circle_stone_bricks") +minetest.register_alias("circle_stone_brick", "moreblocks:circle_stone_bricks") +minetest.register_alias("circle_stone_bricks", "moreblocks:circle_stone_bricks") + +minetest.register_alias("sweeper", "moreblocks:sweeper") +minetest.register_alias("circularsaw", "moreblocks:circular_saw") +minetest.register_alias("circular_saw", "moreblocks:circular_saw") +minetest.register_alias("cs", "moreblocks:circular_saw") + +minetest.register_alias("sweep", "moreblocks:sweeper") +minetest.register_alias("junglestick", "moreblocks:jungle_stick") +minetest.register_alias("jungle_stick", "moreblocks:jungle_stick") + +minetest.register_alias("stonesquare", "moreblocks:stone_tile") +minetest.register_alias("stonesquares", "moreblocks:stone_tile") +minetest.register_alias("stone_square", "moreblocks:stone_tile") +minetest.register_alias("stone_squares", "moreblocks:stone_tile") +minetest.register_alias("stonetile", "moreblocks:stone_tile") +minetest.register_alias("stonetiles", "moreblocks:stone_tile") +minetest.register_alias("stone_tile", "moreblocks:stone_tile") +minetest.register_alias("stone_tiles", "moreblocks:stone_tile") + +minetest.register_alias("splitstonesquare", "moreblocks:split_stone_tile") +minetest.register_alias("splitstonesquares", "moreblocks:split_stone_tile") +minetest.register_alias("split_stone_square", "moreblocks:split_stone_tile") +minetest.register_alias("split_stone_squares", "moreblocks:split_stone_tile") +minetest.register_alias("split_stonesquare", "moreblocks:split_stone_tile") +minetest.register_alias("split_stonesquares", "moreblocks:split_stone_tile") + +minetest.register_alias("coalstone", "moreblocks:coal_stone") +minetest.register_alias("coal_stone", "moreblocks:coal_stone") + +minetest.register_alias("ironstone", "moreblocks:iron_stone") +minetest.register_alias("iron_stone", "moreblocks:iron_stone") + +minetest.register_alias("coalglass", "moreblocks:coal_glass") +minetest.register_alias("coal_glass", "moreblocks:coal_glass") + +minetest.register_alias("ironglass", "moreblocks:iron_glass") +minetest.register_alias("iron_glass", "moreblocks:iron_glass") + +minetest.register_alias("glowglass", "moreblocks:glow_glass") +minetest.register_alias("glow_glass", "moreblocks:glow_glass") + +minetest.register_alias("superglowglass", "moreblocks:super_glow_glass") +minetest.register_alias("super_glowglass", "moreblocks:super_glow_glass") +minetest.register_alias("super_glow_glass", "moreblocks:super_glow_glass") + +minetest.register_alias("plankstone", "moreblocks:plankstone") + +minetest.register_alias("cactusbrick", "moreblocks:cactus_brick") +minetest.register_alias("cactus_brick", "moreblocks:cactus_brick") + +minetest.register_alias("cactuschecker", "moreblocks:cactus_checker") +minetest.register_alias("cactus_checker", "moreblocks:cactus_checker") + +minetest.register_alias("coalchecker", "moreblocks:coal_checker") +minetest.register_alias("coal_checker", "moreblocks:coal_checker") + +minetest.register_alias("ironchecker", "moreblocks:iron_checker") +minetest.register_alias("iron_checker", "moreblocks:iron_checker") + +minetest.register_alias("woodtile", "moreblocks:wood_tile") +minetest.register_alias("woodentile", "moreblocks:wood_tile") +minetest.register_alias("wood_tile", "moreblocks:wood_tile") +minetest.register_alias("wooden_tile", "moreblocks:wood_tile") + +minetest.register_alias("woodtile_full", "moreblocks:wood_tile_full") +minetest.register_alias("woodentile_full", "moreblocks:wood_tile_full") +minetest.register_alias("wood_tile_full", "moreblocks:wood_tile_full") +minetest.register_alias("wooden_tile_full", "moreblocks:wood_tile_full") +minetest.register_alias("full_woodtile", "moreblocks:wood_tile_full") +minetest.register_alias("full_woodentile", "moreblocks:wood_tile_full") +minetest.register_alias("full_wood_tile", "moreblocks:wood_tile_full") +minetest.register_alias("full_wooden_tile", "moreblocks:wood_tile_full") + +-- Old block/item replacement + +minetest.register_alias("moreblocks:oerkkiblock", "default:mossycobble") +minetest.register_alias("moreblocks:screwdriver", "screwdriver:screwdriver") + +-- Node and item renaming + +minetest.register_alias("moreblocks:stone_bricks", "default:stonebrick") +minetest.register_alias("moreblocks:stonebrick", "default:stonebrick") +minetest.register_alias("moreblocks:junglewood", "default:junglewood") +minetest.register_alias("moreblocks:jungle_wood", "default:junglewood") + +minetest.register_alias("moreblocks:horizontaltree", "moreblocks:horizontal_tree") +minetest.register_alias("moreblocks:horizontaljungletree", "moreblocks:horizontal_jungle_tree") +minetest.register_alias("moreblocks:stonesquare", "moreblocks:stone_tile") +minetest.register_alias("moreblocks:circlestonebrick", "moreblocks:circle_stone_bricks") +minetest.register_alias("moreblocks:ironstonebrick", "moreblocks:iron_stone_bricks") +minetest.register_alias("moreblocks:fence_junglewood", "moreblocks:fence_jungle_wood") +minetest.register_alias("moreblocks:coalstone", "moreblocks:coal_stone") +minetest.register_alias("moreblocks:ironstone", "moreblocks:iron_stone") +minetest.register_alias("moreblocks:woodtile", "moreblocks:wood_tile") +minetest.register_alias("moreblocks:woodtile_full", "moreblocks:wood_tile_full") +minetest.register_alias("moreblocks:woodtile_centered", "moreblocks:wood_tile_centered") +minetest.register_alias("moreblocks:woodtile_up", "moreblocks:wood_tile_up") +minetest.register_alias("moreblocks:woodtile_down", "moreblocks:wood_tile_down") +minetest.register_alias("moreblocks:woodtile_left", "moreblocks:wood_tile_left") +minetest.register_alias("moreblocks:woodtile_right", "moreblocks:wood_tile_right") +minetest.register_alias("moreblocks:coalglass", "moreblocks:coal_glass") +minetest.register_alias("moreblocks:ironglass", "moreblocks:iron_glass") +minetest.register_alias("moreblocks:glowglass", "moreblocks:glow_glass") +minetest.register_alias("moreblocks:superglowglass", "moreblocks:super_glow_glass") +minetest.register_alias("moreblocks:trapglass", "moreblocks:trap_glass") +minetest.register_alias("moreblocks:trapstone", "moreblocks:trap_stone") +minetest.register_alias("moreblocks:cactuschecker", "moreblocks:cactus_checker") +minetest.register_alias("moreblocks:coalchecker", "moreblocks:coal_checker") +minetest.register_alias("moreblocks:ironchecker", "moreblocks:iron_checker") +minetest.register_alias("moreblocks:cactusbrick", "moreblocks:cactus_brick") +minetest.register_alias("moreblocks:cleanglass", "moreblocks:clean_glass") +minetest.register_alias("moreblocks:emptybookshelf", "moreblocks:empty_bookshelf") +minetest.register_alias("moreblocks:junglestick", "moreblocks:jungle_stick") +minetest.register_alias("moreblocks:splitstonesquare","moreblocks:split_stone_tile") +minetest.register_alias("moreblocks:allfacestree","moreblocks:all_faces_tree") + +-- ABM for Horizontal_tree (fix facedir). + +minetest.register_abm({ + nodenames = {"moreblocks:horizontal_tree","moreblocks:horizontal_jungle_tree"}, + interval = 1, + chance = 1, + action = function(pos, node) + local convert_facedir={7,12,9,18} + if node.name=="moreblocks:horizontal_tree" then + node.name="default:tree" + else + node.name="default:jungletree" + end + minetest.set_node(pos, {name=node.name,param2=convert_facedir[node.param2+1]}) + end, +}) + diff --git a/mods/moreblocks/circular_saw.lua b/mods/moreblocks/circular_saw.lua new file mode 100644 index 0000000..bc37b21 --- /dev/null +++ b/mods/moreblocks/circular_saw.lua @@ -0,0 +1,383 @@ +-- Load translation library if intllib is installed + +local S +if (minetest.get_modpath("intllib")) then + dofile(minetest.get_modpath("intllib").."/intllib.lua") + S = intllib.Getter(minetest.get_current_modname()) + else + S = function ( s ) return s end +end + +circular_saw = {}; + +circular_saw.known_stairs = {} + + +-- Register known moreblocks stairs. +for i,v in ipairs({"default:wood", "default:stone", "default:cobble", "default:mossycobble", "default:brick", "default:sandstone", + "default:steelblock", "default:desert_stone", "default:glass", "default:tree", "default:jungletree", "default:stonebrick", + "default:obsidian", "default:obsidian_glass", "default:stone_bricks", "default:junglewood", "default:goldblock", + "default:copperblock", "default:bronzeblock", "default:diamondblock", "default:desert_stonebrick", "default:sandstonebrick", + + "moreblocks:coal_stone", "moreblocks:iron_stone", "moreblocks:coal_checker", "moreblocks:iron_checker", + "moreblocks:cactus_checker", "moreblocks:coal_glass", "moreblocks:iron_glass", "moreblocks:glow_glass", + "moreblocks:super_glow_glass", "moreblocks:wooden_tile", "moreblocks:stone_tile", "moreblocks:split_stone_tile", + "moreblocks:coal_stone_bricks","moreblocks:iron_stone_bricks", "moreblocks:circle_stone_bricks", + "moreblocks:wood_tile_centered", "moreblocks:wood_tile_full", "moreblocks:plank_stone"}) do + table.insert(circular_saw.known_stairs, v); +end + + +-- How many microblocks does this shape at the output inventory cost? +circular_saw.cost_in_microblocks = { 1, 1, 1, 1, 1, 1, 1, 2, + 2, 3, 2, 4, 2, 4, 5, 6, + 7, 1, 1, 2, 4, 6, 7, 8, + 3, 1, 1, 2, 4, 0, 0, 0, }; + +-- anz: amount of input material in microblocks. +circular_saw.get_stair_output_inv = function(modname, material, anz, max) + + local max_offered = 99; + + if(not(max) or (max == nil) or tonumber(max) > 99 or tonumber(max) < 1) then + max_offered = 99; + else + max_offered = tonumber(max); + end + + + -- If there is nothing inside display empty inventory. + if(anz < 1) then + return { "", "", "", "", "", "", "", + "", "", "", "", "", "", "", + "", "", "", "", "", "", "", + "", "", "", "", "", "", ""}; + end + + return { + + modname .. ":micro_" .. material .. "_1 " .. math.min(math.floor(anz/1), max_offered), + modname .. ":panel_" .. material .. "_1 " .. math.min(math.floor(anz/1), max_offered), + modname .. ":micro_" .. material .. "_2 " .. math.min(math.floor(anz/1), max_offered), + modname .. ":panel_" .. material .. "_2 " .. math.min(math.floor(anz/1), max_offered), + modname .. ":micro_" .. material .. "_4 " .. math.min(math.floor(anz/1), max_offered), + modname .. ":panel_" .. material .. "_4 " .. math.min(math.floor(anz/1), max_offered), + modname .. ":micro_" .. material .. " " .. math.min(math.floor(anz/1), max_offered), + modname .. ":panel_" .. material .. " " .. math.min(math.floor(anz/2), max_offered), + + modname .. ":micro_" .. material .. "_12 " .. math.min(math.floor(anz/2), max_offered), + modname .. ":panel_" .. material .. "_12 " .. math.min(math.floor(anz/3), max_offered), + modname .. ":micro_" .. material .. "_14 " .. math.min(math.floor(anz/2), max_offered), + modname .. ":panel_" .. material .. "_14 " .. math.min(math.floor(anz/4), max_offered), + modname .. ":micro_" .. material .. "_15 " .. math.min(math.floor(anz/2), max_offered), + modname .. ":panel_" .. material .. "_15 " .. math.min(math.floor(anz/4), max_offered), + modname .. ":stair_" .. material .. "_outer " .. math.min(math.floor(anz/5), max_offered), + modname .. ":stair_" .. material .. " " .. math.min(math.floor(anz/6), max_offered), + + modname .. ":stair_" .. material .. "_inner " .. math.min(math.floor(anz/7), max_offered), + modname .. ":slab_" .. material .. "_1 " .. math.min(math.floor(anz/1), max_offered), + modname .. ":slab_" .. material .. "_2 " .. math.min(math.floor(anz/1), max_offered), + modname .. ":slab_" .. material .. "_quarter " .. math.min(math.floor(anz/2), max_offered), + modname .. ":slab_" .. material .. " " .. math.min(math.floor(anz/4), max_offered), + modname .. ":slab_" .. material .. "_three_quarter " .. math.min(math.floor(anz/6), max_offered), + modname .. ":slab_" .. material .. "_14 " .. math.min(math.floor(anz/7), max_offered), + modname .. ":slab_" .. material .. "_15 " .. math.min(math.floor(anz/8), max_offered), + + modname .. ":stair_" .. material .. "_half " .. math.min(math.floor(anz/3), max_offered), + modname .. ":stair_" .. material .. "_alt_1 " .. math.min(math.floor(anz/1), max_offered), + modname .. ":stair_" .. material .. "_alt_2 " .. math.min(math.floor(anz/1), max_offered), + modname .. ":stair_" .. material .. "_alt_4 " .. math.min(math.floor(anz/2), max_offered), + modname .. ":stair_" .. material .. "_alt " .. math.min(math.floor(anz/4), max_offered), + + "", + } +end + + +-- Reset empty circular_saw after last full block has been taken out (or the circular_saw has been placed the first tiem); note: max_offered is not reset. +circular_saw.reset_circular_saw = function(pos) + local meta = minetest.env:get_meta(pos); + local inv = meta:get_inventory(); + + inv:set_list("input", { "" }); + inv:set_list("micro", { "" }); + inv:set_list("output", circular_saw.get_stair_output_inv("", "", 0, meta:get_string("max_offered"))); + meta:set_int("anz", 0); + + meta:set_string("infotext", S("Circular saw, empty (owned by %s)"):format((meta:get_string("owner") or ""))); +end + + +-- Player has taken something out of the box or placed something inside; that amounts to count microblocks. +circular_saw.update_inventory = function(pos, amount) + local meta = minetest.env:get_meta(pos); + local inv = meta:get_inventory(); + local akt = meta:get_int("anz"); + + -- The material is receicled automaticly + inv:set_list("recycle", { "" }); + + if(akt + amount < 1) then -- If the last block is taken out + + circular_saw.reset_circular_saw(pos); + return; + + end + + local stack = inv:get_stack("input", 1); + -- At least one "normal" block is necessary to see what kind of stairs are requested. + if(stack:is_empty()) then + + -- Any microblocks not taken out yet are now lost (covers material loss in the machine). + circular_saw.reset_circular_saw(pos); + return; + + end + local node_name = stack:get_name(); + local liste = node_name:split(":"); + local modname = liste[1]; + local material = liste[2]; + + -- Display as many full blocks as possible. + inv:set_list("input", { modname.. ":" .. material .. " " .. math.floor( (akt + amount) / 8) }); + + -- The stairnodes made of default nodes use moreblocks namespace, other mods keep own. + if(modname == "default") then modname = "moreblocks"; end + --print("circular_saw set to " ..modname.. " : " ..material.. " with " .. (akt+amount) .. " microblocks."); + + -- 0-7 microblocks may remain as a rest. + inv:set_list("micro", { modname.. ":micro_" .. material .. "_bottom " .. ((akt + amount) % 8) }); + -- Display. + inv:set_list("output", circular_saw.get_stair_output_inv(modname, material, (akt + amount), meta:get_string("max_offered"))); + -- Store how many microblocks are available. + meta:set_int("anz", (akt+amount)); + + meta:set_string("infotext", S("Circular saw, working with %s (owned by %s)"):format(material,(meta:get_string("owner") or ""))); +end + + +-- The amount of items offered per shape can be configured. +circular_saw.on_receive_fields = function(pos, formname, fields, sender) + local meta = minetest.env:get_meta(pos); + if tonumber(fields.max_offered) and tonumber(fields.max_offered) > 0 and tonumber(fields.max_offered) < 99 then + meta:set_string("max_offered", fields.max_offered); + circular_saw.update_inventory(pos, 0); -- Update to show the correct number of items. + end +end + + +-- Moving the inventory of the circular_saw around is not allowed because it is a fictional inventory. +circular_saw.allow_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player) + -- Moving inventory around would be rather immpractical and make things more difficult to calculate. + return 0; +end + + +-- Only input- and recycle-slot are intended as input slots. +circular_saw.allow_metadata_inventory_put = function(pos, listname, index, stack, player) + + -- The player is not allowed to put something in there. + if(listname == "output" or listname == "micro") then + return 0; + end + + local meta = minetest.env:get_meta(pos); + local inv = meta:get_inventory(); + + -- Only alow those items that are offered in the output inventory to be recycled. + if(listname == "recycle" and not(inv:contains_item("output", stack:get_name()))) then + return 0; + end + + -- Only accept certain blocks as input which are known to be craftable into stairs. + if(listname == "input") then + + for i,v in ipairs(circular_saw.known_stairs) do + + if(circular_saw.known_stairs[ i ] == stack:get_name()) and inv:room_for_item("input", stack) then + return stack:get_count(); + end + + end + return 0; + + end + + return stack:get_count() +end + +-- Taking is allowed from all slots (even the internal microblock slot). + +-- Putting something in is slightly more complicated than taking anything because we have to make sure it is of a suitable material. +circular_saw.on_metadata_inventory_put = function(pos, listname, index, stack, player) + + -- We need to find out if the circular_saw is already set to a specific material or not. + local meta = minetest.env:get_meta(pos); + local inv = meta:get_inventory(); + + -- Putting something into the input slot is only possible if that had been empty before or did contain something of the same material. + if( listname=="input") then + + if( not( inv:is_empty("input"))) then + + local old_stack = inv:get_stack("input", 1 ); + if( old_stack:get_name() ~= stack:get_name() ) then + return 0; + end + end + + -- Each new block is worth 8 microblocks. + circular_saw.update_inventory(pos, 8 * stack:get_count()); + + elseif(listname=="recycle") then + + -- Lets look which shape this represents. + for i,v in ipairs(inv:get_list("output")) do + + if(v:get_name() == stack:get_name()) then + + local value = circular_saw.cost_in_microblocks[ i ] * stack:get_count(); + --print("\nRecycling " .. (v:get_name()) .. " into " ..value.. " microblocks."); + + -- We get value microblocks back. + circular_saw.update_inventory(pos, value); + end + end + end +end + +-- The player takes something. +circular_saw.on_metadata_inventory_take = function(pos, listname, index, stack, player) + + -- If it is one of the offered stairs: find out how many microblocks have to be substracted. + if (listname=="output") then + + -- We do know how much each block at each position costs. + local cost = circular_saw.cost_in_microblocks[ index ] * stack:get_count(); + + circular_saw.update_inventory(pos, -1 * cost); + + elseif (listname=="micro") then + + -- Each microblock costs 1 microblock. + circular_saw.update_inventory(pos, -1 * 1 * stack:get_count()); + + elseif (listname=="input") then + + -- Each normal (= full) block taken costs 8 microblocks. + circular_saw.update_inventory(pos, -1 * 8 * stack:get_count()); + + end + -- The recycle field plays no role here since it is processed immediately. +end + + +circular_saw.on_construct_init = function(pos, formspec) + + local meta = minetest.env:get_meta(pos) + meta:set_string("formspec", formspec); + + meta:set_int( "anz", 0); -- No microblocks inside yet. + meta:set_string("max_offered", 99); -- How many items of this kind are offered by default? + meta:set_string("infotext", S("Circular saw, empty")) + + local inv = meta:get_inventory() + inv:set_size("input", 1) -- Input slot for full blocks of material x + inv:set_size("micro", 1) -- Storage for 1-7 surplus microblocks + inv:set_size("recycle", 1) -- Surplus partial blocks can be placed here + inv:set_size("output", 32) -- 4*7 versions of stair-parts of material x + + circular_saw.reset_circular_saw(pos); +end + + +circular_saw.can_dig = function(pos,player) + local meta = minetest.env:get_meta(pos); + local inv = meta:get_inventory() + if not inv:is_empty("input") then + return false + elseif not inv:is_empty("micro") then + return false + elseif not inv:is_empty("recycle") then + return false + end + + -- Can be digged by anyone when empty (not only by the owner) + return true +end, + + +minetest.register_node("moreblocks:circular_saw", { + description = S("Circular Saw"), + drawtype = "nodebox", + node_box = { + type = "fixed", + fixed = { + {-0.4, -0.5, -0.4, -0.25, 0.25, -0.25}, -- leg + {0.25, -0.5, 0.25, 0.4, 0.25, 0.4}, -- leg + {-0.4, -0.5, 0.25, -0.25, 0.25, 0.4}, -- leg + {0.25, -0.5, -0.4, 0.4, 0.25, -0.25}, -- leg + {-0.5, 0.25, -0.5, 0.5, 0.375, 0.5}, -- tabletop + {-0.01, 0.4375, -0.125, 0.01, 0.5, 0.125}, -- saw blade (top) + {-0.01, 0.375, -0.1875, 0.01, 0.4375, 0.1875}, -- saw blade (bottom) + {-0.25, -0.0625, -0.25, 0.25, 0.25, 0.25}, -- motor case + }, + }, + tiles = {"moreblocks_circular_saw_top.png", "moreblocks_circular_saw_bottom.png", "moreblocks_circular_saw_side.png"}, + paramtype = "light", + sunlight_propagates = true, + paramtype2 = "facedir", + groups = {cracky=2}, + on_construct = function(pos) + return circular_saw.on_construct_init(pos, + "size[10,9]" .. + "list[current_name;input;0,0;1,1;]" .. + "label[0,0;"..S("Input material").."]" .. + "list[current_name;micro;0,1;1,1;]" .. + "label[0,1;"..S("Rest/microblocks").."]" .. + "field[0.3,2.5;1,1;max_offered;"..S("Max:")..";${max_offered}]" .. + "button[1,2;1,1;Set;"..S("Set").."]" .. + "list[current_name;recycle;0,3;1,1;]" .. + "label[0,3;"..S("Recycle output").."]" .. + "list[current_name;output;2,0;8,4;]" .. + "list[current_player;main;1,5;8,4;]"); + end, + + can_dig = function(pos,player) + return circular_saw.can_dig(pos, player); + end, + + -- Set owner of this circular saw. + after_place_node = function(pos, placer) + local meta = minetest.env:get_meta(pos); + + meta:set_string("owner", (placer:get_player_name() or "")); + meta:set_string("infotext", S("Circular saw is empty (owned by %s)"):format((placer:get_player_name() or ""))); + end, + + -- The amount of items offered per shape can be configured. + on_receive_fields = function(pos, formname, fields, sender) + return circular_saw.on_receive_fields(pos, formname, fields, sender); + end, + + allow_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player) + return circular_saw.allow_metadata_inventory_move(pos, from_list, from_index, to_list, to_index, count, player); + end, + + -- Only input- and recycle-slot are intended as input slots. + allow_metadata_inventory_put = function(pos, listname, index, stack, player) + return circular_saw.allow_metadata_inventory_put(pos, listname, index, stack, player); + end, + + -- Taking is allowed from all slots (even the internal microblock slot); moving is forbidden. + + -- Putting something in is slightly more complicated than taking anything because we have to make sure it is of a suitable material. + on_metadata_inventory_put = function(pos, listname, index, stack, player) + return circular_saw.on_metadata_inventory_put(pos, listname, index, stack, player); + end, + + on_metadata_inventory_take = function(pos, listname, index, stack, player) + return circular_saw.on_metadata_inventory_take(pos, listname, index, stack, player); + end + +}) diff --git a/mods/moreblocks/crafting.lua b/mods/moreblocks/crafting.lua new file mode 100644 index 0000000..3d52161 --- /dev/null +++ b/mods/moreblocks/crafting.lua @@ -0,0 +1,354 @@ +-- Crafting + +minetest.register_craft({ + output = "default:stick 1", + recipe = { + {"default:dry_shrub"}, + } +}) + +minetest.register_craft({ + output = "default:dirt_with_grass 1", + recipe = { + {"default:junglegrass"}, + {"default:dirt"}, + } +}) + +minetest.register_craft({ + output = "default:dirt_with_grass 1", + recipe = { + {"default:mese"}, + {"default:dirt"}, + } +}) + +minetest.register_craft({ + output = "default:mossycobble 1", + recipe = { + {"default:junglegrass"}, + {"default:cobble"}, + } +}) + +minetest.register_craft({ + output = "default:mossycobble 1", + recipe = { + {"default:mese"}, + {"default:cobble"}, + } +}) + +minetest.register_craft({ + output = "moreblocks:wood_tile 9", + recipe = { + {"default:wood", "default:wood", "default:wood"}, + {"default:wood", "default:wood", "default:wood"}, + {"default:wood", "default:wood", "default:wood"}, + } +}) + +minetest.register_craft({ + output = "moreblocks:wood_tile_flipped 1", + recipe = { + {"moreblocks:wood_tile"}, + } +}) + +minetest.register_craft({ + output = "moreblocks:wood_tile_center 9", + recipe = { + {"default:wood", "default:wood", "default:wood"}, + {"default:wood", "moreblocks:wood_tile", "default:wood"}, + {"default:wood", "default:wood", "default:wood"}, + } +}) + +minetest.register_craft({ + output = "moreblocks:wood_tile_full 4", + recipe = { + {"moreblocks:wood_tile", "moreblocks:wood_tile"}, + {"moreblocks:wood_tile", "moreblocks:wood_tile"}, + } +}) + +minetest.register_craft({ + output = "moreblocks:wood_tile_up 1", + recipe = { + {"default:stick"}, + {"moreblocks:wood_tile_center"}, + } +}) + +minetest.register_craft({ + output = "moreblocks:wood_tile_down 1", + recipe = { + {"moreblocks:wood_tile_center"}, + {"default:stick"}, + } +}) + +minetest.register_craft({ + output = "moreblocks:wood_tile_left 1", + recipe = { + {"default:stick", "moreblocks:wood_tile_center"}, + } +}) + +minetest.register_craft({ + output = "moreblocks:wood_tile_right 1", + recipe = { + {"moreblocks:wood_tile_center", "default:stick"}, + } +}) + +minetest.register_craft({ + output = "moreblocks:junglestick 4", + recipe = { + {"default:junglewood"}, + } +}) + +minetest.register_craft({ + output = "moreblocks:fence_jungle_wood 2", + recipe = { + {"moreblocks:jungle_stick", "moreblocks:jungle_stick", "moreblocks:jungle_stick"}, + {"moreblocks:jungle_stick", "moreblocks:jungle_stick", "moreblocks:jungle_stick"}, + } +}) + +minetest.register_craft({ + output = "moreblocks:circle_stone_bricks 8", + recipe = { + {"default:stone", "default:stone", "default:stone"}, + {"default:stone", "", "default:stone"}, + {"default:stone", "default:stone", "default:stone"}, + } +}) + +minetest.register_craft({ + output = "moreblocks:all_faces_tree 8", + recipe = { + {"default:tree", "default:tree", "default:tree"}, + {"default:tree", "", "default:tree"}, + {"default:tree", "default:tree", "default:tree"}, + } +}) + +minetest.register_craft({ + output = "moreblocks:all_faces_jungle_tree 8", + recipe = { + {"default:jungletree", "default:jungletree", "default:jungletree"}, + {"default:jungletree", "", "default:jungletree"}, + {"default:jungletree", "default:jungletree", "default:jungletree"}, + } +}) + +minetest.register_craft({ + output = "moreblocks:sweeper 3", + recipe = { + {"default:junglegrass"}, + {"default:stick"}, + } +}) + +minetest.register_craft({ + output = "moreblocks:stone_tile 4", + recipe = { + {"default:cobble", "default:cobble"}, + {"default:cobble", "default:cobble"}, + } +}) + +minetest.register_craft({ + output = "moreblocks:split_stone_tile 1", + recipe = { + {"moreblocks:stone_tile"}, + } +}) + +minetest.register_craft({ + output = "moreblocks:empty_bookshelf 1", + recipe = { + {"moreblocks:sweeper"}, + {"default:bookshelf"}, + } +}) + +minetest.register_craft({ + output = "moreblocks:coal_stone_bricks 1", + recipe = { + {"moreblocks:coal_stone", "moreblocks:coal_stone"}, + {"moreblocks:coal_stone", "moreblocks:coal_stone"}, + } +}) + +minetest.register_craft({ + output = "moreblocks:iron_stone_bricks 1", + recipe = { + {"moreblocks:iron_stone", "moreblocks:iron_stone"}, + {"moreblocks:iron_stone", "moreblocks:iron_stone"}, + } +}) + +minetest.register_craft({ + output = "moreblocks:plankstone 4", + recipe = { + {"default:stone", "default:wood"}, + {"default:wood", "default:stone"}, + } +}) + +minetest.register_craft({ + output = "moreblocks:plankstone 4", + recipe = { + {"default:wood", "default:stone"}, + {"default:stone", "default:wood"}, + } +}) + +minetest.register_craft({ + output = "moreblocks:coal_checker 4", + recipe = { + {"default:stone", "default:coal_lump"}, + {"default:coal_lump", "default:stone"}, + } +}) + +minetest.register_craft({ + output = "moreblocks:coal_checker 4", + recipe = { + {"default:coal_lump", "default:stone"}, + {"default:stone", "default:coal_lump"}, + } +}) + +minetest.register_craft({ + output = "moreblocks:iron_checker 4", + recipe = { + {"default:steel_ingot", "default:stone"}, + {"default:stone", "default:steel_ingot"}, + } +}) + +minetest.register_craft({ + output = "moreblocks:iron_checker 4", + recipe = { + {"default:stone", "default:steel_ingot"}, + {"default:steel_ingot", "default:stone"}, + } +}) + +minetest.register_craft({ + output = "default:chest_locked 1", + type = "shapeless", + recipe = {"default:steel_ingot", "default:chest"}, +}) + +minetest.register_craft({ + output = "moreblocks:iron_glass 1", + type = "shapeless", + recipe = {"default:steel_ingot", "default:glass"}, +}) + +minetest.register_craft({ + output = "moreblocks:coal_glass 1", + type = "shapeless", + recipe = {"default:coal_lump", "default:glass"}, +}) + +minetest.register_craft({ + output = "moreblocks:clean_glass 1", + type = "shapeless", + recipe = {"moreblocks:sweeper", "default:glass"}, +}) + +minetest.register_craft({ + output = "moreblocks:glow_glass 1", + type = "shapeless", + recipe = {"default:torch", "default:glass"}, +}) + +minetest.register_craft({ + output = "moreblocks:trap_glow_glass 1", + type = "shapeless", + walkable = false, + recipe = {"default:mese_crystal", "default:glass", "default:torch"}, +}) + +minetest.register_craft({ + output = "moreblocks:super_glow_glass 1", + type = "shapeless", + recipe = {"default:torch", "default:torch", "default:glass"}, +}) + +minetest.register_craft({ + output = "moreblocks:trap_super_glow_glass 1", + type = "shapeless", + walkable = false, + recipe = {"default:mese_crystal", "default:glass", "default:torch", "default:torch"}, +}) + +minetest.register_craft({ + output = "moreblocks:coal_stone 1", + type = "shapeless", + recipe = {"default:coal_lump", "default:stone"}, +}) + +minetest.register_craft({ + output = "moreblocks:iron_stone 1", + type = "shapeless", + recipe = {"default:iron_lump", "default:stone"}, +}) + +minetest.register_craft({ + output = "moreblocks:trap_stone 12", + type = "shapeless", + recipe = {"default:mese", "default:stone"}, +}) + +minetest.register_craft({ + output = "moreblocks:trap_glass 12", + type = "shapeless", + recipe = {"default:mese", "default:glass"}, +}) + +minetest.register_craft({ + output = "moreblocks:cactus_brick 1", + type = "shapeless", + recipe = {"default:cactus", "default:brick"}, +}) + +minetest.register_craft({ + output = "moreblocks:cactus_checker 4", + recipe = { + {"default:cactus", "default:stone"}, + {"default:stone", "default:cactus"}, + } +}) + +minetest.register_craft({ + output = "moreblocks:cactuschecker 4", + recipe = { + {"default:stone", "default:cactus"}, + {"default:cactus", "default:stone"}, + } +}) + +minetest.register_craft({ + output = "moreblocks:rope 2", + recipe = { + {"default:junglegrass"}, + {"default:junglegrass"}, + {"default:junglegrass"}, + } +}) + +minetest.register_craft({ + output = "moreblocks:circular_saw 1", + recipe = { + { "", "default:steel_ingot", "" }, + { "default:tree", "default:tree", "default:tree"}, + { "default:tree", "", "default:tree"}, + } +}) diff --git a/mods/moreblocks/depends.txt b/mods/moreblocks/depends.txt new file mode 100644 index 0000000..4ad96d5 --- /dev/null +++ b/mods/moreblocks/depends.txt @@ -0,0 +1 @@ +default diff --git a/mods/moreblocks/init.lua b/mods/moreblocks/init.lua new file mode 100644 index 0000000..9c43a46 --- /dev/null +++ b/mods/moreblocks/init.lua @@ -0,0 +1,375 @@ +--[[ +**** +More Blocks +by Calinou +Licensed under the zlib/libpng license for code and CC BY-SA for textures, see LICENSE.txt for info. +**** +--]] + +moreblocks = {} + +-- Load translation library if intllib is installed + +local S +if (minetest.get_modpath("intllib")) then + dofile(minetest.get_modpath("intllib").."/intllib.lua") + S = intllib.Getter(minetest.get_current_modname()) + else + S = function ( s ) return s end +end +moreblocks.gettext = S + +dofile(minetest.get_modpath("moreblocks").."/_config.txt") + +dofile(minetest.get_modpath("moreblocks").."/ownership.lua") +dofile(minetest.get_modpath("moreblocks").."/redefinitions.lua") +dofile(minetest.get_modpath("moreblocks").."/crafting.lua") +dofile(minetest.get_modpath("moreblocks").."/aliases.lua") +dofile(minetest.get_modpath("moreblocks").."/stairsplus_convert.lua") +dofile(minetest.get_modpath("moreblocks").."/stairsplus/stairs.lua") +dofile(minetest.get_modpath("moreblocks").."/stairsplus/slabs.lua") +dofile(minetest.get_modpath("moreblocks").."/stairsplus/panels.lua") +dofile(minetest.get_modpath("moreblocks").."/stairsplus/microblocks.lua") +dofile(minetest.get_modpath("moreblocks").."/stairsplus/aliases.lua") +dofile(minetest.get_modpath("moreblocks").."/stairsplus.lua") +dofile(minetest.get_modpath("moreblocks").."/circular_saw.lua") + +-- Blocks + +minetest.register_node("moreblocks:wood_tile", { + description = S("Wooden Tile"), + tiles = {"moreblocks_wood_tile.png", "moreblocks_wood_tile.png", "moreblocks_wood_tile.png", "moreblocks_wood_tile.png", "moreblocks_wood_tile.png^[transformR90", "moreblocks_wood_tile.png^[transformR90"}, + paramtype2 = "facedir", + groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=3}, + sounds = default.node_sound_wood_defaults(), +}) + +minetest.register_node("moreblocks:wood_tile_flipped", { + description = S("Wooden Tile"), + tiles = {"moreblocks_wood_tile_flipped.png", "moreblocks_wood_tile_flipped.png", "moreblocks_wood_tile_flipped.png", "moreblocks_wood_tile_flipped.png", "moreblocks_wood_tile_flipped.png^[transformR90", "moreblocks_wood_tile_flipped.png^[transformR90"}, + paramtype2 = "facedir", + groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=3}, + sounds = default.node_sound_wood_defaults(), +}) + +minetest.register_node("moreblocks:wood_tile_center", { + description = S("Centered Wooden Tile"), + tiles = {"moreblocks_wood_tile_center.png", "moreblocks_wood_tile_center.png", "moreblocks_wood_tile_center.png", "moreblocks_wood_tile_center.png", "moreblocks_wood_tile_center.png^[transformR90", "moreblocks_wood_tile_center.png^[transformR90"}, + paramtype2 = "facedir", + groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=3}, + sounds = default.node_sound_wood_defaults(), +}) + +minetest.register_node("moreblocks:wood_tile_full", { + description = S("Full Wooden Tile"), + tiles = {"moreblocks_wood_tile_full.png", "moreblocks_wood_tile_full.png", "moreblocks_wood_tile_full.png", + "moreblocks_wood_tile_full.png", "moreblocks_wood_tile_full.png^[transformR90", "moreblocks_wood_tile_full.png^[transformR90"}, + paramtype2 = "facedir", + groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=3}, + sounds = default.node_sound_wood_defaults(), +}) + +minetest.register_node("moreblocks:wood_tile_up", { + description = S("Up Wooden Tile"), + tiles = {"moreblocks_wood_tile_up.png", "moreblocks_wood_tile_up.png", "moreblocks_wood_tile_up.png", + "moreblocks_wood_tile_up.png", "moreblocks_wood_tile_up.png^[transformR90", "moreblocks_wood_tile_up.png^[transformR90"}, + paramtype2 = "facedir", + groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=3}, + sounds = default.node_sound_wood_defaults(), +}) + +minetest.register_node("moreblocks:wood_tile_down", { + description = S("Down Wooden Tile"), + tiles = {"moreblocks_wood_tile_down.png", "moreblocks_wood_tile_down.png", "moreblocks_wood_tile_down.png", + "moreblocks_wood_tile_down.png", "moreblocks_wood_tile_down.png^[transformR90", "moreblocks_wood_tile_down.png^[transformR90"}, + paramtype2 = "facedir", + groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=3}, + sounds = default.node_sound_wood_defaults(), +}) + +minetest.register_node("moreblocks:wood_tile_left", { + description = S("Left Wooden Tile"), + tiles = {"moreblocks_wood_tile_left.png", "moreblocks_wood_tile_left.png", "moreblocks_wood_tile_left.png", + "moreblocks_wood_tile_left.png", "moreblocks_wood_tile_left.png^[transformR90", "moreblocks_wood_tile_left.png^[transformR90"}, + paramtype2 = "facedir", + groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=3}, + sounds = default.node_sound_wood_defaults(), +}) + +minetest.register_node("moreblocks:wood_tile_right", { + description = S("Right Wooden Tile"), + tiles = {"moreblocks_wood_tile_right.png", "moreblocks_wood_tile_right.png", "moreblocks_wood_tile_right.png", + "moreblocks_wood_tile_right.png", "moreblocks_wood_tile_right.png^[transformR90", "moreblocks_wood_tile_right.png^[transformR90"}, + paramtype2 = "facedir", + groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=3}, + sounds = default.node_sound_wood_defaults(), +}) + +minetest.register_node("moreblocks:circle_stone_bricks", { + description = S("Circle Stone Bricks"), + tiles = {"moreblocks_circle_stone_bricks.png"}, + groups = {cracky=3}, + sounds = default.node_sound_stone_defaults(), +}) + +minetest.register_node("moreblocks:coal_stone_bricks", { + description = S("Coal Stone Bricks"), + tiles = {"moreblocks_coal_stone_bricks.png"}, + groups = {cracky=3}, + sounds = default.node_sound_stone_defaults(), +}) + +minetest.register_node("moreblocks:iron_stone_bricks", { + description = S("Iron Stone Bricks"), + tiles = {"moreblocks_iron_stone_bricks.png"}, + groups = {cracky=3}, + sounds = default.node_sound_stone_defaults(), +}) + +minetest.register_node("moreblocks:stone_tile", { + description = S("Stone Tile"), + tiles = {"moreblocks_stone_tile.png"}, + groups = {cracky=3}, + sounds = default.node_sound_stone_defaults(), +}) + +minetest.register_node("moreblocks:split_stone_tile", { + description = S("Split Stone Tile"), + tiles = {"moreblocks_split_stone_tile_top.png", "moreblocks_split_stone_tile.png"}, + groups = {cracky=3}, + sounds = default.node_sound_stone_defaults(), +}) + +minetest.register_node("moreblocks:plankstone", { + description = S("Plankstone"), + tiles = {"moreblocks_plankstone.png", "moreblocks_plankstone.png", "moreblocks_plankstone.png", + "moreblocks_plankstone.png", "moreblocks_plankstone.png^[transformR90", "moreblocks_plankstone.png^[transformR90"}, + groups = {cracky=3}, + sounds = default.node_sound_stone_defaults(), +}) + +minetest.register_node("moreblocks:iron_glass", { + description = S("Iron Glass"), + drawtype = "glasslike", + tiles = {"moreblocks_iron_glass.png"}, + inventory_image = minetest.inventorycube("moreblocks_iron_glass.png"), + paramtype = "light", + sunlight_propagates = true, + groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3}, + sounds = default.node_sound_glass_defaults(), +}) + +minetest.register_node("moreblocks:coal_glass", { + description = S("Coal Glass"), + drawtype = "glasslike", + tiles = {"moreblocks_coal_glass.png"}, + inventory_image = minetest.inventorycube("moreblocks_coal_glass.png"), + paramtype = "light", + sunlight_propagates = true, + groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3}, + sounds = default.node_sound_glass_defaults(), +}) + +minetest.register_node("moreblocks:clean_glass", { + description = S("Clean Glass"), + drawtype = "glasslike", + tiles = {"moreblocks_clean_glass.png"}, + inventory_image = minetest.inventorycube("moreblocks_clean_glass.png"), + paramtype = "light", + sunlight_propagates = true, + groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3}, + sounds = default.node_sound_glass_defaults(), +}) + + +minetest.register_node("moreblocks:cactus_brick", { + description = S("Cactus Brick"), + tiles = {"moreblocks_cactus_brick.png"}, + groups = {cracky=3}, + sounds = default.node_sound_stone_defaults(), +}) + +minetest.register_node("moreblocks:cactus_checker", { + description = S("Cactus Checker"), + tiles = {"moreblocks_cactus_checker.png", "moreblocks_cactus_checker.png", "moreblocks_cactus_checker.png", + "moreblocks_cactus_checker.png", "moreblocks_cactus_checker.png^[transformR90", "moreblocks_cactus_checker.png^[transformR90"}, + paramtype2 = "facedir", + groups = {cracky=3}, + sounds = default.node_sound_stone_defaults(), +}) + +minetest.register_node("moreblocks:empty_bookshelf", { + description = S("Empty Bookshelf"), + tiles = {"default_wood.png", "default_wood.png", "moreblocks_empty_bookshelf.png"}, + groups = {snappy=2,choppy=3,oddly_breakable_by_hand=2,flammable=3}, + sounds = default.node_sound_wood_defaults(), +}) + +minetest.register_node("moreblocks:coal_stone", { + description = S("Coal Stone"), + tiles = {"moreblocks_coal_stone.png"}, + groups = {cracky=3}, + sounds = default.node_sound_stone_defaults(), +}) + +minetest.register_node("moreblocks:iron_stone", { + description = S("Iron Stone"), + tiles = {"moreblocks_iron_stone.png"}, + groups = {cracky=3}, + sounds = default.node_sound_stone_defaults(), +}) + +minetest.register_node("moreblocks:coal_checker", { + description = S("Coal Checker"), + tiles = {"moreblocks_coal_checker.png", "moreblocks_coal_checker.png", "moreblocks_coal_checker.png", + "moreblocks_coal_checker.png", "moreblocks_coal_checker.png^[transformR90", "moreblocks_coal_checker.png^[transformR90"}, + paramtype2 = "facedir", + groups = {cracky=3}, + sounds = default.node_sound_stone_defaults(), +}) + +minetest.register_node("moreblocks:iron_checker", { + description = S("Iron Checker"), + tiles = {"moreblocks_iron_checker.png", "moreblocks_iron_checker.png", "moreblocks_iron_checker.png", + "moreblocks_iron_checker.png", "moreblocks_iron_checker.png^[transformR90", "moreblocks_iron_checker.png^[transformR90"}, + paramtype2 = "facedir", + groups = {cracky=3}, + sounds = default.node_sound_stone_defaults(), +}) + +minetest.register_node("moreblocks:trap_stone", { + description = S("Trap Stone"), + tiles = {"moreblocks_trap_stone.png"}, + walkable = false, + groups = {cracky=3}, + sounds = default.node_sound_stone_defaults(), +}) + +minetest.register_node("moreblocks:trap_glass", { + description = S("Trap Glass"), + drawtype = "glasslike", + tiles = {"moreblocks_trap_glass.png"}, + inventory_image = minetest.inventorycube("moreblocks_trap_glass.png"), + paramtype = "light", + sunlight_propagates = true, + walkable = false, + groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3}, + sounds = default.node_sound_glass_defaults(), +}) + +minetest.register_node("moreblocks:fence_jungle_wood", { + description = S("Jungle Wood Fence"), + drawtype = "fencelike", + tiles = {"moreblocks_jungle_wood.png"}, + inventory_image = "moreblocks_fence_jungle_wood.png", + wield_image = "moreblocks_fence_jungle_wood.png", + paramtype = "light", + selection_box = { + type = "fixed", + fixed = {-1/7, -1/2, -1/7, 1/7, 1/2, 1/7}, + }, + groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2,flammable=2}, + sounds = default.node_sound_wood_defaults(), +}) + +minetest.register_node("moreblocks:all_faces_tree", { + description = S("All-faces Tree"), + tiles = {"default_tree_top.png"}, + groups = {tree=1,snappy=1,choppy=2,oddly_breakable_by_hand=1,flammable=2}, + sounds = default.node_sound_wood_defaults(), + furnace_burntime = 30, +}) + +minetest.register_node("moreblocks:all_faces_jungle_tree", { + description = S("All-faces Tree"), + tiles = {"default_jungletree_top.png"}, + groups = {tree=1,snappy=1,choppy=2,oddly_breakable_by_hand=1,flammable=2}, + sounds = default.node_sound_wood_defaults(), + furnace_burntime = 30, +}) + +minetest.register_node("moreblocks:glow_glass", { + description = S("Glow Glass"), + drawtype = "glasslike", + tiles = {"moreblocks_glow_glass.png"}, + inventory_image = minetest.inventorycube("moreblocks_glow_glass.png"), + paramtype = "light", + sunlight_propagates = true, + light_source = 11, + groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3}, + sounds = default.node_sound_glass_defaults(), +}) + +minetest.register_node("moreblocks:trap_glow_glass", { + description = S("Trap Glow Glass"), + drawtype = "glasslike", + tiles = {"moreblocks_glow_glass.png"}, + inventory_image = minetest.inventorycube("moreblocks_glow_glass.png"), + paramtype = "light", + sunlight_propagates = true, + light_source = 11, + walkable = false, + groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3}, + sounds = default.node_sound_glass_defaults(), +}) + +minetest.register_node("moreblocks:super_glow_glass", { + description = S("Super Glow Glass"), + drawtype = "glasslike", + tiles = {"moreblocks_super_glow_glass.png"}, + inventory_image = minetest.inventorycube("moreblocks_super_glow_glass.png"), + paramtype = "light", + sunlight_propagates = true, + light_source = 15, + groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3}, + sounds = default.node_sound_glass_defaults(), +}) + +minetest.register_node("moreblocks:trap_super_glow_glass", { + description = S("Trap Super Glow Glass"), + drawtype = "glasslike", + tiles = {"moreblocks_glow_glass.png"}, + inventory_image = minetest.inventorycube("moreblocks_glow_glass.png"), + paramtype = "light", + sunlight_propagates = true, + light_source = 11, + walkable = false, + groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3}, + sounds = default.node_sound_glass_defaults(), +}) + +minetest.register_node("moreblocks:rope", { + description = S("Rope"), + drawtype = "signlike", + tiles = {"moreblocks_rope.png"}, + inventory_image = "moreblocks_rope.png", + wield_image = "moreblocks_rope.png", + paramtype = "light", + paramtype2 = "wallmounted", + walkable = false, + climbable = true, + selection_box = { + type = "wallmounted", + }, + groups = {snappy=3,flammable=2}, + sounds = default.node_sound_leaves_defaults(), +}) + +-- Items + +minetest.register_craftitem("moreblocks:sweeper", { + description = S("Sweeper"), + inventory_image = "moreblocks_sweeper.png", +}) + +minetest.register_craftitem("moreblocks:jungle_stick", { + description = S("Jungle Stick"), + inventory_image = "moreblocks_junglestick.png", + groups = {stick=1}, +}) + +minetest.register_craftitem("moreblocks:nothing", { + on_use = minetest.item_eat(0), +}) + +print(S("[moreblocks] loaded.")) diff --git a/mods/moreblocks/locale/es.txt b/mods/moreblocks/locale/es.txt new file mode 100644 index 0000000..d11ba49 --- /dev/null +++ b/mods/moreblocks/locale/es.txt @@ -0,0 +1,52 @@ +# Translation by kaeza + +[moreblocks] loaded. = [moreblocks] cargado. + +Jungle Wooden Planks = Tablones de madera de jungla +Empty Bookshelf = Estante para libros vacío +Clean Glass = Cristal Limpio +Plankstone = Tablones de piedra +Wooden Tile = Parquet +Full Wooden Tile = Parquet Completo +Centered Wooden Tile = Parquet Centrado +Up Wooden Tile = Parquet Superior +Down Wooden Tile = Parquet Inferior +Left Wooden Tile = Parquet Izquierdo +Right Wooden Tile = Parquet Derecho +Circle Stone Bricks = Bloques de Piedra Circulares +Stone Tile = Baldosa de Piedra +Split Stone Tile = Baldosas de Piedra Partida +Glow Glass = Cristal Brillante +Super Glow Glass = Cristal Súper Brillante +Coal Glass = Cristal con Carbón +Iron Glass = Cristal con Hierro +Coal Checker = Cuadros de Carbón +Iron Checker = Cuadros de Hierro +Trap Stone = Piedra Trampa +Trap Glass = Cristal Trampa +Coal Stone = Carbón y Piedra +Iron Stone = Hierro y Piedra +Cactus Checker = Cuadros de Cactus +Cactus Brick = Ladrillos de Cactus +Sweeper = Limpiador +Jungle Stick = Varita de Madera de Jungla +Horizontal Tree = Tronco de árbol horizontal +Horizontal Jungle Tree = Tronco de árbol de la jungla horizontal +Rope = Soga +All-faces Tree = Tronco de Ãrbol + +%s Stairs = Escalera de %s +%s Slab = Losa de %s +%s Panel = Panel de %s +%s Microblock = Microbloque de %s + +Wooden = Madera +Papyrus = Papiro +Dry Shrub = Arbusto Desértico +Sapling = Brote de Ãrbol +Wooden Planks = Tablones de Madera +Ladder = Escalera de Mano +Glass = Cristal + +%s Pane = Panel de %s +%s Fence = Valla de %s diff --git a/mods/moreblocks/locale/fr.txt b/mods/moreblocks/locale/fr.txt new file mode 100644 index 0000000..6bd7f98 --- /dev/null +++ b/mods/moreblocks/locale/fr.txt @@ -0,0 +1,72 @@ +# Translation by Calinou + +###init.lua### +[moreblocks] loaded. = [moreblocks] a été chargé. + +Jungle Wooden Planks = Planches de bois de jungle +Empty Bookshelf = Ètagère vide +Clean Glass = Verre propre +Plankstone = Pierre-bois +Wooden Tile = Dalle en bois +Full Wooden Tile = Dalle en bois complète +Centered Wooden Tile = Dalle en bois centrée +Up Wooden Tile = Dalle en bois vers le haut +Down Wooden Tile = Dalle en bois vers le bas +Left Wooden Tile = Dalle en bois vers la gauche +Right Wooden Tile = Dalle en bois vers la droite +Circle Stone Bricks = Briques en pierre circulaires +Stone Tile = Dalle en pierre +Split Stone Tile = Dalle en pierre découpée +Glow Glass = Verre brillant +Super Glow Glass = Verre très brillant +Coal Glass = Verre de charbon +Iron Glass = Verre de fer +Coal Checker = Damier en charbon +Iron Checker = Damier en fer +Trap Stone = Pierre traversable +Trap Glass = Verre traversable +Trap Glow Glass = Verre brillant traversable +Trap Super Glow Glass = Verre très brillant traversable +Coal Stone = Pierre de charbon +Iron Stone = Pierre de fer +Coal Stone Bricks = Briques en pierre de charbon +Iron Stone Bricks = Briques en pierre de fer +Cactus Checker = Damier en cactus +Cactus Brick = Briques de cactus +Sweeper = Balai +Jungle Stick = Bâton en bois de jungle +Horizontal Tree = Tronc d'arbre horizontal +Horizontal Jungle Tree = Tronc d'arbre de jungle horizontal +Rope = Corde +All-faces Tree = Tronc d'arbre + +###redefinition.lua### +Wooden = bois +Papyrus = Papyrus +Dry Shrub = Buisson mort +Sapling = Pousse d'arbre +Wooden Planks = Planches de bois +Ladder = Échelle +Glass = Verre + +###circular_saw.lua### +Circular Saw = Scie circulaire +Circular saw, empty (owned by %s) = Scie circulaire, vide (propriété de %s) +Circular saw, working with %s (owned by %s) = Scie circulaire, manipule %s (propriété de %s) +Circular saw, empty = Scie circulaire, vide +Circular saw is empty (owned by %s) = Scie circulaire est vide (propriété de %s) + +Input material = Entrée du matériel +Rest/microblocks = Reste/microbloc +Max: = Max: +Set = Fixer +Recycle output = Recyclage + +###./stairsplus/*### +%s Stairs = Escaliers en %s +%s Slab = Demi-dalle en %s +%s Panel = Barre en %s +%s Microblock = Microbloc en %s + +%s Pane = Panneau en %s +%s Fence = Barrière en %s \ No newline at end of file diff --git a/mods/moreblocks/locale/template.txt b/mods/moreblocks/locale/template.txt new file mode 100644 index 0000000..77ed1a9 --- /dev/null +++ b/mods/moreblocks/locale/template.txt @@ -0,0 +1,70 @@ +###init.lua### +[moreblocks] loaded. = + +Jungle Wooden Planks = +Empty Bookshelf = +Clean Glass = +Plankstone = +Wooden Tile = +Full Wooden Tile = +Centered Wooden Tile = +Up Wooden Tile = +Down Wooden Tile = +Left Wooden Tile = +Right Wooden Tile = +Circle Stone Bricks = +Stone Tile = +Split Stone Tile = +Glow Glass = +Super Glow Glass = +Coal Glass = +Iron Glass = +Coal Checker = +Iron Checker = +Trap Stone = +Trap Glass = +Trap Glow Glass = +Trap Super Glow Glass = +Coal Stone = +Iron Stone = +Coal Stone Bricks = +Iron Stone Bricks = +Cactus Checker = +Cactus Brick = +Sweeper = +Jungle Stick = +Horizontal Tree = +Horizontal Jungle Tree = +Rope = +All-faces Tree = + +###redefinition.lua### +Wooden = +Papyrus = +Dry Shrub = +Sapling = +Wooden Planks = +Ladder = +Glass = + +###circular_saw.lua### +Circular Saw = +Circular saw, empty (owned by %s) = +Circular saw, working with %s (owned by %s) = +Circular saw, empty = +Circular saw is empty (owned by %s) = + +Input material = +Rest/microblocks = +Max: = +Set = +Recycle output = + +###./stairsplus/*### +%s Stairs = +%s Slab = +%s Panel = +%s Microblock = + +%s Pane = +%s Fence = \ No newline at end of file diff --git a/mods/moreblocks/ownership.lua b/mods/moreblocks/ownership.lua new file mode 100644 index 0000000..9cd4cb3 --- /dev/null +++ b/mods/moreblocks/ownership.lua @@ -0,0 +1,35 @@ + +local S = moreblocks.gettext + +function moreblocks.node_is_owned(pos, placer) + local ownername = false + if type(IsPlayerNodeOwner) == "function" then -- node_ownership mod + if HasOwner(pos, placer) then -- returns true if the node is owned + if not IsPlayerNodeOwner(pos, placer:get_player_name()) then + if type(getLastOwner) == "function" then -- ...is an old version + ownername = getLastOwner(pos) + elseif type(GetNodeOwnerName) == "function" then -- ...is a recent version + ownername = GetNodeOwnerName(pos) + else + ownername = S("someone") + end + end + end + + elseif type(isprotect)=="function" then -- glomie's protection mod + if not isprotect(5, pos, placer) then + ownername = S("someone") + end + elseif type(protector)=="table" and type(protector.can_dig)=="function" then -- Zeg9's protection mod + if not protector.can_dig(5, pos, placer) then + ownername = S("someone") + end + end + + if ownername ~= false then + minetest.chat_send_player( placer:get_player_name(), S("Sorry, %s owns that spot."):format(ownername) ) + return true + else + return false + end +end diff --git a/mods/moreblocks/redefinitions.lua b/mods/moreblocks/redefinitions.lua new file mode 100644 index 0000000..07a28bc --- /dev/null +++ b/mods/moreblocks/redefinitions.lua @@ -0,0 +1,272 @@ +-- Redefinitions of some default crafting recipes + +minetest.register_craft({ + output = "default:sign_wall 4", + recipe = { + {"default:wood", "default:wood", "default:wood"}, + {"default:wood", "default:wood", "default:wood"}, + {"", "default:stick", ""}, + } +}) + +minetest.register_craft({ + output = "default:ladder 3", + recipe = { + {"default:stick", "", "default:stick"}, + {"default:stick", "default:stick", "default:stick"}, + {"default:stick", "", "default:stick"}, + } +}) + +minetest.register_craft({ + output = "default:paper 3", + recipe = { + {"default:papyrus", "default:papyrus", "default:papyrus"}, + } +}) + +minetest.register_craft({ + output = "default:rail 16", + recipe = { + {"default:steel_ingot", "", "default:steel_ingot"}, + {"default:steel_ingot", "default:stick", "default:steel_ingot"}, + {"default:steel_ingot", "", "default:steel_ingot"}, + } +}) + +minetest.register_craft({ + output = "default:axe_wood", + recipe = { + {"default:wood", "default:wood"}, + {"default:stick", "default:wood"}, + {"default:stick", ""}, + } +}) + +minetest.register_craft({ + output = "default:axe_stone", + recipe = { + {"default:cobble", "default:cobble"}, + {"default:stick", "default:cobble"}, + {"default:stick", ""}, + } +}) + +minetest.register_craft({ + output = "default:axe_steel", + recipe = { + {"default:steel_ingot", "default:steel_ingot"}, + {"default:stick", "default:steel_ingot"}, + {"default:stick", ""}, + } +}) + +-- Tool repair buff (15% bonus instead of 2%) + +minetest.register_craft({ + type = "toolrepair", + additional_wear = -0.15, +}) + +-- Redefinitions of some default nodes + +minetest.register_node(":default:ladder", { + description = "Ladder", + drawtype = "signlike", + tiles = {"default_ladder.png"}, + inventory_image = "default_ladder.png", + wield_image = "default_ladder.png", + paramtype = "light", + sunlight_propagates = true, + paramtype2 = "wallmounted", + walkable = false, + climbable = true, + selection_box = { + type = "wallmounted", + }, + groups = {snappy=1,choppy=2,oddly_breakable_by_hand=3,flammable=2}, + legacy_wallmounted = true, + sounds = default.node_sound_wood_defaults(), +}) + +if wood_facedir == true +then +minetest.register_node(":default:wood", { + description = "Wooden Planks", + tiles = {"default_wood.png"}, + paramtype2 = "facedir", + groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=3,wood=1}, + sounds = default.node_sound_wood_defaults(), +}) +end + +minetest.register_node(":default:sapling", { + description = "Sapling", + drawtype = "plantlike", + visual_scale = 1.0, + tiles = {"default_sapling.png"}, + inventory_image = "default_sapling.png", + wield_image = "default_sapling.png", + paramtype = "light", + sunlight_propagates = true, + walkable = false, + selection_box = { + type = "fixed", + fixed = {-0.3, -0.5, -0.3, 0.3, 0.35, 0.3} + }, + groups = {snappy=2,dig_immediate=3,flammable=2,attached_node=1}, + sounds = default.node_sound_defaults(), +}) + +minetest.register_node(":default:dry_shrub", { + description = "Dry Shrub", + drawtype = "plantlike", + visual_scale = 1.0, + tiles = {"default_dry_shrub.png"}, + inventory_image = "default_dry_shrub.png", + wield_image = "default_dry_shrub.png", + paramtype = "light", + sunlight_propagates = true, + walkable = false, + groups = {snappy=3,flammable=3,attached_node=1}, + sounds = default.node_sound_leaves_defaults(), + selection_box = { + type = "fixed", + fixed = {-1/3, -1/2, -1/3, 1/3, 1/6, 1/3}, + }, +}) + +minetest.register_node(":default:papyrus", { + description = "Papyrus", + drawtype = "plantlike", + tiles = {"default_papyrus.png"}, + inventory_image = "default_papyrus.png", + wield_image = "default_papyrus.png", + paramtype = "light", + sunlight_propagates = true, + walkable = false, + selection_box = { + type = "fixed", + fixed = {-0.3, -0.5, -0.3, 0.3, 0.5, 0.3} + }, + groups = {snappy=3,flammable=2}, + sounds = default.node_sound_leaves_defaults(), +}) + +minetest.register_node(":default:fence_wood", { + description = "Wooden Fence", + drawtype = "fencelike", + tiles = {"default_wood.png"}, + inventory_image = "default_fence.png", + wield_image = "default_fence.png", + paramtype = "light", + sunlight_propagates = true, + selection_box = { + type = "fixed", + fixed = {-1/7, -1/2, -1/7, 1/7, 1/2, 1/7}, + }, + groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=2}, + sounds = default.node_sound_wood_defaults(), +}) + +minetest.register_node(":default:junglegrass", { + description = "Jungle Grass", + drawtype = "plantlike", + visual_scale = 1.3, + tiles = {"default_junglegrass.png"}, + inventory_image = "default_junglegrass.png", + wield_image = "default_junglegrass.png", + paramtype = "light", + walkable = false, + buildable_to = true, + is_ground_content = true, + sunlight_propagates = true, + drop = { + max_items = 1, + items = { + {items = {'farming:seed_cotton'},rarity = 8}, + {items = {'default:junglegrass'}}, + } + }, + groups = {snappy=3,flammable=2,flora=1,attached_node=1}, + sounds = default.node_sound_leaves_defaults(), + selection_box = { + type = "fixed", + fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5}, + }, +}) + +minetest.register_node(":default:junglesapling", { + description = "Jungle Sapling", + drawtype = "plantlike", + sunlight_propagates = true, + tiles = {"default_junglesapling.png"}, + paramtype = "light", + walkable = false, + selection_box = { + type = "fixed", + fixed = {-0.3, -0.5, -0.3, 0.3, 0.35, 0.3} + }, + groups = {snappy=2,dig_immediate=3,flammable=2,attached_node=1}, + sounds = default.node_sound_defaults(), +}) + +minetest.register_node(":default:grass_1", { + description = "Grass", + drawtype = "plantlike", + tiles = {"default_grass_1.png"}, + -- use a bigger inventory image + inventory_image = "default_grass_3.png", + wield_image = "default_grass_3.png", + paramtype = "light", + sunlight_propagates = true, + walkable = false, + buildable_to = true, + drop = { + max_items = 1, + items = { + {items = {'farming:seed_wheat'},rarity = 5}, + {items = {'default:grass_1'}}, + } + }, + groups = {snappy=3,flammable=3,flora=1,attached_node=1}, + sounds = default.node_sound_leaves_defaults(), + selection_box = { + type = "fixed", + fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5}, + }, + on_place = function(itemstack, placer, pointed_thing) + -- place a random grass node + local stack = ItemStack("default:grass_"..math.random(1,5)) + local ret = minetest.item_place(stack, placer, pointed_thing) + return ItemStack("default:grass_1 "..itemstack:get_count()-(1-ret:get_count())) + end, +}) + +for i=2,5 do + minetest.register_node(":default:grass_"..i, { + description = "Grass", + drawtype = "plantlike", + tiles = {"default_grass_"..i..".png"}, + inventory_image = "default_grass_"..i..".png", + wield_image = "default_grass_"..i..".png", + paramtype = "light", + sunlight_propagates = true, + walkable = false, + buildable_to = true, + is_ground_content = true, + drop = { + max_items = 1, + items = { + {items = {'farming:seed_wheat'},rarity = 5}, + {items = {'default:grass_1'}}, + } + }, + groups = {snappy=3,flammable=3,flora=1,attached_node=1,not_in_creative_inventory=1}, + sounds = default.node_sound_leaves_defaults(), + selection_box = { + type = "fixed", + fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5}, + }, + }) +end diff --git a/mods/moreblocks/stairsplus.lua b/mods/moreblocks/stairsplus.lua new file mode 100644 index 0000000..3f85902 --- /dev/null +++ b/mods/moreblocks/stairsplus.lua @@ -0,0 +1,415 @@ +dofile(minetest.get_modpath("moreblocks").."/_config.txt") + +-- Nodes will be called :{stair,slab,panel,micro}_ + +if minetest.get_modpath("unified_inventory") or not minetest.setting_getbool("creative_mode") then + stairsplus_expect_infinite_stacks = false +else + stairsplus_expect_infinite_stacks = true +end + +-- These vales are in order: facedir in degrees = 90, 0, 270, 180, 90 + +local dirs1 = { 21, 20, 23, 22, 21 } +local dirs2 = { 15, 8, 17, 6, 15 } +local dirs3 = { 14, 11, 16, 5, 14 } + +stairsplus_can_it_stack = function(itemstack, placer, pointed_thing) + return false +--[[ + if pointed_thing.type ~= "node" then + return itemstack + end + + -- If it's being placed on an another similar one, replace it with + -- a full block + local slabpos = nil + local slabnode = nil + local p1 = pointed_thing.above + p1 = {x = p1.x, y = p1.y - 1, z = p1.z} + local n1 = minetest.env:get_node(p1) + if n1.name == modname .. ":slab_" .. subname then + slabpos = p1 + slabnode = n1 + end + if slabpos then + -- Remove the slab at slabpos + minetest.env:remove_node(slabpos) + -- Make a fake stack of a single item and try to place it + local fakestack = ItemStack(recipeitem) + pointed_thing.above = slabpos + fakestack = minetest.item_place(fakestack, placer, pointed_thing) + -- If the item was taken from the fake stack, decrement original + if not fakestack or fakestack:is_empty() then + itemstack:take_item(1) + -- Else put old node back + else + minetest.env:set_node(slabpos, slabnode) + end + return itemstack + end + + if n1.name == modname .. ":slab_" .. subname .. "_quarter" then + slabpos = p1 + slabnode = n1 + end + if slabpos then + -- Remove the slab at slabpos + minetest.env:remove_node(slabpos) + -- Make a fake stack of a single item and try to place it + local fakestack = ItemStack(modname .. ":slab_" .. subname .. "_three_quarter") + pointed_thing.above = slabpos + fakestack = minetest.item_place(fakestack, placer, pointed_thing) + -- If the item was taken from the fake stack, decrement original + if not fakestack or fakestack:is_empty() then + itemstack:take_item(1) + -- Else put old node back + else + minetest.env:set_node(slabpos, slabnode) + end + return itemstack + end + + -- Otherwise place regularly + return minetest.item_place(itemstack, placer, pointed_thing) + +]]-- + +end + +local function get_nodedef_field(nodename, fieldname) + if not minetest.registered_nodes[nodename] then + return nil + end + return minetest.registered_nodes[nodename][fieldname] +end + +--[[ + +function(itemstack, placer, pointed_thing) + local keys=placer:get_player_control() + stairsplus_rotate_and_place(itemstack, placer, pointed_thing, keys["sneak"]) + return itemstack + end + +]]-- + +function stairsplus_rotate_and_place(itemstack, placer, pointed_thing) + if not moreblocks.node_is_owned(pointed_thing.under, placer) then + local keys=placer:get_player_control() + minetest.rotate_and_place(itemstack, placer, pointed_thing, + stairsplus_expect_infinite_stacks, {force_wall = keys.sneak}) + end + return itemstack +end + +function register_stair_slab_panel_micro(modname, subname, recipeitem, groups, images, description, drop, light) + if show_stairsplus_creative_inv then + groups.not_in_creative_inventory = 0 + else + groups.not_in_creative_inventory = 1 + end + register_stair(modname, subname, recipeitem, groups, images, description, drop, light) + register_slab( modname, subname, recipeitem, groups, images, description, drop, light) + register_panel(modname, subname, recipeitem, groups, images, description, drop, light) + register_micro(modname, subname, recipeitem, groups, images, description, drop, light) + register_6dfacedir_conversion(modname, subname) +end + +-- Default stairs/slabs/panels/microblocks. + +register_stair_slab_panel_micro("moreblocks", "wood", "default:wood", + {snappy=1, choppy=2, oddly_breakable_by_hand=2, flammable=3}, + {"default_wood.png"}, + "Wooden", + "wood", + 0) + +register_stair_slab_panel_micro("moreblocks", "stone", "default:stone", + {cracky=3}, + {"default_stone.png"}, + "Stone", + "cobble", + 0) + +register_stair_slab_panel_micro("moreblocks", "cobble", "default:cobble", + {cracky=3}, + {"default_cobble.png"}, + "Cobblestone", + "cobble", + 0) + +register_stair_slab_panel_micro("moreblocks", "mossycobble", "default:mossycobble", + {cracky=3}, + {"default_mossycobble.png"}, + "Mossy Cobblestone", + "mossycobble", + 0) + +register_stair_slab_panel_micro("moreblocks", "brick", "default:brick", + {cracky=3}, + {"default_brick.png"}, + "Brick", + "brick", + 0) + +register_stair_slab_panel_micro("moreblocks", "sandstone", "default:sandstone", + {crumbly=2, cracky=2}, + {"default_sandstone.png"}, + "Sandstone", + "sandstone", + 0) + +register_stair_slab_panel_micro("moreblocks", "steelblock", "default:steelblock", + {cracky=1, level=2}, + {"default_steel_block.png"}, + "Steel Block", + "steelblock", + 0) + +register_stair_slab_panel_micro("moreblocks", "goldblock", "default:goldblock", + {cracky=1}, + {"default_gold_block.png"}, + "Gold Block", + "goldblock", + 0) + +register_stair_slab_panel_micro("moreblocks", "copperblock", "default:copperblock", + {cracky=1, level=2}, + {"default_copper_block.png"}, + "Copper Block", + "copperblock", + 0) + +register_stair_slab_panel_micro("moreblocks", "bronzeblock", "default:bronzeblock", + {cracky=1, level=2}, + {"default_bronze_block.png"}, + "Bronze Block", + "bronzeblock", + 0) + +register_stair_slab_panel_micro("moreblocks", "diamondblock", "default:diamondblock", + {cracky=1, level=3}, + {"default_diamond_block.png"}, + "Diamond Block", + "diamondblock", + 0) + +register_stair_slab_panel_micro("moreblocks", "desert_stone", "default:desert_stone", + {cracky=3}, + {"default_desert_stone.png"}, + "Desert Stone", + "desert_stone", + 0) + +register_stair_slab_panel_micro("moreblocks", "glass", "default:glass", + {snappy=2, cracky=3, oddly_breakable_by_hand=3}, + {"moreblocks_glass_stairsplus.png"}, + "Glass", + "glass", + 0) + +register_stair_slab_panel_micro("moreblocks", "tree", "default:tree", + {tree=1, snappy=1, choppy=2, oddly_breakable_by_hand=1, flammable=2}, + {"default_tree_top.png", "default_tree_top.png", "default_tree.png"}, + "Tree", + "tree", + 0) + +register_stair_slab_panel_micro("moreblocks", "jungletree", "default:jungletree", + {tree=1, snappy=1, choppy=2, oddly_breakable_by_hand=1, flammable=2}, + {"default_jungletree_top.png", "default_jungletree_top.png", "default_jungletree.png"}, + "Jungle Tree", + "jungletree", + 0) + +register_stair_slab_panel_micro("moreblocks", "obsidian", "default:obsidian", + {cracky=1, level=2}, + {"default_obsidian.png"}, + "Obsidian", + "obsidian", + 0) + +register_stair_slab_panel_micro("moreblocks", "obsidian_glass", "default:obsidian_glass", + {cracky=3, oddly_breakable_by_hand=3}, + {"moreblocks_obsidian_glass_stairsplus.png"}, + "Obsidian Glass", + "obsidian_glass", + 0) + +register_stair_slab_panel_micro("moreblocks", "stonebrick", "default:stonebrick", + {cracky=3}, + {"default_stone_brick.png"}, + "Stone Bricks", + "stonebrick", + 0) + +register_stair_slab_panel_micro("moreblocks", "desert_stonebrick", "default:desert_stonebrick", + {cracky=3}, + {"default_desert_stone_brick.png"}, + "Desert Stone Bricks", + "desert_stonebrick", + 0) + +register_stair_slab_panel_micro("moreblocks", "sandstonebrick", "default:sandstonebrick", + {cracky=3}, + {"default_sandstone_brick.png"}, + "Sandstone Bricks", + "sandstonebrick", + 0) + +-- More Blocks stairs/slabs/panels/microblocks + +register_stair_slab_panel_micro("moreblocks", "invisible", "air", + {unbreakable=1, not_in_creative_inventory=1}, + {"invisible.png"}, + "Invisible", + "invisible", + 0) + +register_stair_slab_panel_micro("moreblocks", "circle_stone_bricks", "moreblocks:circle_stone_bricks", + {cracky=3}, + {"moreblocks_circle_stone_bricks.png"}, + "Circle Stone Bricks", + "circle_stone_bricks", + 0) + +register_stair_slab_panel_micro("moreblocks", "coal_stone_bricks", "moreblocks:coal_stone_bricks", + {cracky=3}, + {"moreblocks_coal_stone_bricks.png"}, + "Coal Stone Bricks", + "Coal_stone_bricks", + 0) + +register_stair_slab_panel_micro("moreblocks", "iron_stone_bricks", "moreblocks:iron_stone_bricks", + {cracky=3}, + {"moreblocks_iron_stone_bricks.png"}, + "Iron Stone Bricks", + "iron_stone_bricks", + 0) + +register_stair_slab_panel_micro("moreblocks", "stone_tile", "moreblocks:stone_tile", + {cracky=3}, + {"moreblocks_stone_tile.png"}, + "Stonesquare", + "stone_tile", + 0) + +register_stair_slab_panel_micro("moreblocks", "split_stone_tile", "moreblocks:split_stone_tile", + {cracky=3}, + {"moreblocks_split_stone_tile_top.png", "moreblocks_split_stone_tile.png"}, + "Split Stonesquare", + "split_stone_tile", + 0) + +register_stair_slab_panel_micro("moreblocks", "jungle_wood", "default:junglewood", -- Compatibility + {snappy=1, choppy=2, oddly_breakable_by_hand=2,flammable=3}, + {"default_junglewood.png"}, + "Jungle Wood", + "jungle_wood", + 0) + +register_stair_slab_panel_micro("moreblocks", "junglewood", "default:junglewood", + {snappy=1, choppy=2, oddly_breakable_by_hand=2,flammable=3}, + {"default_junglewood.png"}, + "Jungle Wood", + "jungle_wood", + 0) + +register_stair_slab_panel_micro("moreblocks", "plankstone", "moreblocks:plankstone", + {cracky=3}, + {"moreblocks_plankstone.png", "moreblocks_plankstone.png", "moreblocks_plankstone.png", + "moreblocks_plankstone.png", "moreblocks_plankstone.png^[transformR90", "moreblocks_plankstone.png^[transformR90"}, + "Plankstone", + "plankstone", + 0) + +register_stair_slab_panel_micro("moreblocks", "coal_checker", "moreblocks:coal_checker", + {cracky=3}, + {"moreblocks_coal_checker.png", "moreblocks_coal_checker.png", "moreblocks_coal_checker.png", + "moreblocks_coal_checker.png", "moreblocks_coal_checker.png^[transformR90", "moreblocks_coal_checker.png^[transformR90"}, + "Coal Checker", + "coal_checker", + 0) + +register_stair_slab_panel_micro("moreblocks", "iron_checker", "moreblocks:iron_checker", + {cracky=3}, + {"moreblocks_iron_checker.png", "moreblocks_iron_checker.png", "moreblocks_iron_checker.png", + "moreblocks_iron_checker.png", "moreblocks_iron_checker.png^[transformR90", "moreblocks_iron_checker.png^[transformR90"}, + "Iron Checker", + "iron_checker", + 0) + +register_stair_slab_panel_micro("moreblocks", "cactus_checker", "moreblocks:cactus_checker", + {cracky=3}, + {"moreblocks_cactus_checker.png", "moreblocks_cactus_checker.png", "moreblocks_cactus_checker.png", + "moreblocks_cactus_checker.png", "moreblocks_cactus_checker.png^[transformR90", "moreblocks_cactus_checker.png^[transformR90"}, + "Cactus Checker", + "cactus_checker", + 0) + +register_stair_slab_panel_micro("moreblocks", "coal_stone", "moreblocks:coal_stone", + {cracky=3}, + {"moreblocks_coal_stone.png"}, + "Coal Stone", + "coal_stone", + 0) + +register_stair_slab_panel_micro("moreblocks", "iron_stone", "moreblocks:iron_stone", + {cracky=3}, + {"moreblocks_iron_stone.png"}, + "Iron Stone", + "iron_stone", + 0) + +register_stair_slab_panel_micro("moreblocks", "glow_glass", "moreblocks:glow_glass", + {snappy=2,cracky=3,oddly_breakable_by_hand=3}, + {"moreblocks_glow_glass_stairsplus.png"}, + "Glow Glass", + "glow_glass", + 11) + +register_stair_slab_panel_micro("moreblocks", "super_glow_glass", "moreblocks:super_glow_glass", + {snappy=2, cracky=3, oddly_breakable_by_hand=3}, + {"moreblocks_super_glow_glass_stairsplus.png"}, + "Super Glow Glass", + "super_glow_glass", + 15) + +register_stair_slab_panel_micro("moreblocks", "coal_glass", "moreblocks:coal_glass", + {snappy=2, cracky=3, oddly_breakable_by_hand=3}, + {"moreblocks_coal_glass_stairsplus.png"}, + "Coal Glass", + "coal_glass", + 0) + +register_stair_slab_panel_micro("moreblocks", "iron_glass", "moreblocks:iron_glass", + {snappy=2, cracky=3, oddly_breakable_by_hand=3}, + {"moreblocks_iron_glass_stairsplus.png"}, + "Iron Glass", + "iron_glass", + 0) + +register_stair_slab_panel_micro("moreblocks", "wood_tile", "moreblocks:wood_tile", + {snappy=1, choppy=2, oddly_breakable_by_hand=2, flammable=3}, + {"moreblocks_wood_tile.png", "moreblocks_wood_tile.png", "moreblocks_wood_tile.png", + "moreblocks_wood_tile.png", "moreblocks_wood_tile.png^[transformR90", "moreblocks_wood_tile.png^[transformR90"}, + "Wooden Tile", + "wood_tile", + 0) + +register_stair_slab_panel_micro("moreblocks", "wood_tile_center", "moreblocks:wood_tile_center", + {snappy=1, choppy=2, oddly_breakable_by_hand=2, flammable=3}, + {"moreblocks_wood_tile_center.png", "moreblocks_wood_tile_center.png", "moreblocks_wood_tile_center.png", + "moreblocks_wood_tile_center.png", "moreblocks_wood_tile_center.png^[transformR90", "moreblocks_wood_tile_center.png^[transformR90"}, + "Centered Wooden Tile", + "wood_tile_center", + 0) + +register_stair_slab_panel_micro("moreblocks", "wood_tile_full", "moreblocks:wood_tile_full", + {snappy=1, choppy=2, oddly_breakable_by_hand=2, flammable=3}, + {"moreblocks_wood_tile_full.png", "moreblocks_wood_tile_full.png", "moreblocks_wood_tile_full.png", + "moreblocks_wood_tile_full.png", "moreblocks_wood_tile_full.png^[transformR90", "moreblocks_wood_tile_full.png^[transformR90"}, + "Full Wooden Tile", + "wood_tile_full", + 0) diff --git a/mods/moreblocks/stairsplus/aliases.lua b/mods/moreblocks/stairsplus/aliases.lua new file mode 100644 index 0000000..3fcd867 --- /dev/null +++ b/mods/moreblocks/stairsplus/aliases.lua @@ -0,0 +1,61 @@ +function register_stairsplus_alias(modname, origname, newname) +minetest.register_alias(modname .. ":slab_" .. origname, "moreblocks:slab_" .. newname) +minetest.register_alias(modname .. ":slab_" .. origname .. "_inverted", "moreblocks:slab_" .. newname .. "_inverted") +minetest.register_alias(modname .. ":slab_" .. origname .. "_wall", "moreblocks:slab_" .. newname .. "_wall") +minetest.register_alias(modname .. ":slab_" .. origname .. "_quarter", "moreblocks:slab_" .. newname .. "_quarter") +minetest.register_alias(modname .. ":slab_" .. origname .. "_quarter_inverted", "moreblocks:slab_" .. newname .. "_quarter_inverted") +minetest.register_alias(modname .. ":slab_" .. origname .. "_quarter_wall", "moreblocks:slab_" .. newname .. "_quarter_wall") +minetest.register_alias(modname .. ":slab_" .. origname .. "_three_quarter", "moreblocks:slab_" .. newname .. "_three_quarter") +minetest.register_alias(modname .. ":slab_" .. origname .. "_three_quarter_inverted", "moreblocks:slab_" .. newname .. "_three_quarter_inverted") +minetest.register_alias(modname .. ":slab_" .. origname .. "_three_quarter_wall", "moreblocks:slab_" .. newname .. "_three_quarter_wall") +minetest.register_alias(modname .. ":stair_" .. origname, "moreblocks:stair_" .. newname) +minetest.register_alias(modname .. ":stair_" .. origname .. "_inverted", "moreblocks:stair_" .. newname .. "_inverted") +minetest.register_alias(modname .. ":stair_" .. origname .. "_wall", "moreblocks:stair_" .. newname .. "_wall") +minetest.register_alias(modname .. ":stair_" .. origname .. "_wall_half", "moreblocks:stair_" .. newname .. "_wall_half") +minetest.register_alias(modname .. ":stair_" .. origname .. "_wall_half_inverted", "moreblocks:stair_" .. newname .. "_wall_half_inverted") +minetest.register_alias(modname .. ":stair_" .. origname .. "_half", "moreblocks:stair_" .. newname .. "_half") +minetest.register_alias(modname .. ":stair_" .. origname .. "_half_inverted", "moreblocks:stair_" .. newname .. "_half_inverted") +minetest.register_alias(modname .. ":stair_" .. origname .. "_right_half", "moreblocks:stair_" .. newname .. "_right_half") +minetest.register_alias(modname .. ":stair_" .. origname .. "_right_half_inverted", "moreblocks:stair_" .. newname .. "_right_half_inverted") +minetest.register_alias(modname .. ":stair_" .. origname .. "_wall_half", "moreblocks:stair_" .. newname .. "_wall_half") +minetest.register_alias(modname .. ":stair_" .. origname .. "_wall_half_inverted", "moreblocks:stair_" .. newname .. "_wall_half_inverted") +minetest.register_alias(modname .. ":stair_" .. origname .. "_inner", "moreblocks:stair_" .. newname .. "_inner") +minetest.register_alias(modname .. ":stair_" .. origname .. "_inner_inverted", "moreblocks:stair_" .. newname .. "_inner_inverted") +minetest.register_alias(modname .. ":stair_" .. origname .. "_outer", "moreblocks:stair_" .. newname .. "_outer") +minetest.register_alias(modname .. ":stair_" .. origname .. "_outer_inverted", "moreblocks:stair_" .. newname .. "_outer_inverted") +minetest.register_alias(modname .. ":panel_" .. origname .. "_bottom", "moreblocks:panel_" .. newname .. "_bottom") +minetest.register_alias(modname .. ":panel_" .. origname .. "_top", "moreblocks:panel_" .. newname .. "_top") +minetest.register_alias(modname .. ":panel_" .. origname .. "_vertical", "moreblocks:panel_" .. newname .. "_vertical") +minetest.register_alias(modname .. ":micro_" .. origname .. "_bottom", "moreblocks:micro_" .. newname .. "_bottom") +minetest.register_alias(modname .. ":micro_" .. origname .. "_top", "moreblocks:micro_" .. newname .. "_top") +end + +register_stairsplus_alias("stairsplus", "stone", "stone") +register_stairsplus_alias("stairsplus", "wood", "wood") +register_stairsplus_alias("stairsplus", "cobble", "cobble") +register_stairsplus_alias("stairsplus", "brick", "brick") +register_stairsplus_alias("stairsplus", "sandstone", "sandstone") +register_stairsplus_alias("stairsplus", "glass", "glass") +register_stairsplus_alias("stairsplus", "tree", "tree") +register_stairsplus_alias("stairsplus", "jungletree", "jungletree") +register_stairsplus_alias("stairsplus", "desert_stone", "desert_stone") +register_stairsplus_alias("stairsplus", "steelblock", "steelblock") +register_stairsplus_alias("stairsplus", "mossycobble", "mossycobble") + +register_stairsplus_alias("moreblocks", "coalstone", "coal_stone") +register_stairsplus_alias("moreblocks", "junglewood", "jungle_wood") +register_stairsplus_alias("moreblocks", "circlestonebrick", "circle_stone_bricks") +register_stairsplus_alias("moreblocks", "ironstone", "iron_stone") +register_stairsplus_alias("moreblocks", "coalglass", "coal_glass") +register_stairsplus_alias("moreblocks", "ironglass", "iron_glass") +register_stairsplus_alias("moreblocks", "glowglass", "glow_glass") +register_stairsplus_alias("moreblocks", "superglowglass", "super_glow_glass") +register_stairsplus_alias("moreblocks", "coalchecker", "coal_checker") +register_stairsplus_alias("moreblocks", "ironchecker", "iron_checker") +register_stairsplus_alias("moreblocks", "cactuschecker", "cactus_checker") +register_stairsplus_alias("moreblocks", "ironstonebrick", "iron_stone_bricks") +register_stairsplus_alias("moreblocks", "stonesquare", "stone_tile") +register_stairsplus_alias("moreblocks", "splitstonesquare", "split_stone_tile") +register_stairsplus_alias("moreblocks", "woodtile", "wood_tile") +register_stairsplus_alias("moreblocks", "woodtile_centered", "wood_tile_centered") +register_stairsplus_alias("moreblocks", "woodtile_full", "wood_tile_full") diff --git a/mods/moreblocks/stairsplus/microblocks.lua b/mods/moreblocks/stairsplus/microblocks.lua new file mode 100644 index 0000000..30a95ea --- /dev/null +++ b/mods/moreblocks/stairsplus/microblocks.lua @@ -0,0 +1,143 @@ +-- Load translation library if intllib is installed + +local S +if (minetest.get_modpath("intllib")) then + dofile(minetest.get_modpath("intllib").."/intllib.lua") + S = intllib.Getter(minetest.get_current_modname()) + else + S = function ( s ) return s end +end + +-- Node will be called micro_ + +function register_micro(modname, subname, recipeitem, groups, images, description, drop, light) + + minetest.register_node(":"..modname .. ":micro_" .. subname, { + description = S("%s Microblock"):format(S(description)), + drawtype = "nodebox", + tiles = images, + light_source = light, + drop = modname .. ":micro_" .. drop, + paramtype = "light", + paramtype2 = "facedir", + sunlight_propagates = true, + groups = groups, + node_box = { + type = "fixed", + fixed = {-0.5, -0.5, 0, 0, 0, 0.5}, + }, + sounds = default.node_sound_stone_defaults(), + on_place = stairsplus_rotate_and_place + }) + + minetest.register_node(":"..modname .. ":micro_" .. subname .. "_1", { + description = S("%s Microblock"):format(S(description)), + drawtype = "nodebox", + tiles = images, + light_source = light, + drop = modname .. ":micro_" .. drop .. "_1", + paramtype = "light", + paramtype2 = "facedir", + sunlight_propagates = true, + groups = groups, + node_box = { + type = "fixed", + fixed = {-0.5, -0.5, 0, 0, -0.4375, 0.5}, + }, + sounds = default.node_sound_stone_defaults(), + on_place = stairsplus_rotate_and_place + }) + + minetest.register_node(":"..modname .. ":micro_" .. subname .. "_2", { + description = S("%s Microblock"):format(S(description)), + drawtype = "nodebox", + tiles = images, + light_source = light, + drop = modname .. ":micro_" .. drop .. "_2", + paramtype = "light", + paramtype2 = "facedir", + sunlight_propagates = true, + groups = groups, + node_box = { + type = "fixed", + fixed = {-0.5, -0.5, 0, 0, -0.375, 0.5}, + }, + sounds = default.node_sound_stone_defaults(), + on_place = stairsplus_rotate_and_place + }) + + minetest.register_node(":"..modname .. ":micro_" .. subname .. "_4", { + description = S("%s Microblock"):format(S(description)), + drawtype = "nodebox", + tiles = images, + light_source = light, + drop = modname .. ":micro_" .. drop .. "_4", + paramtype = "light", + paramtype2 = "facedir", + sunlight_propagates = true, + groups = groups, + node_box = { + type = "fixed", + fixed = {-0.5, -0.5, 0, 0, -0.25, 0.5}, + }, + sounds = default.node_sound_stone_defaults(), + on_place = stairsplus_rotate_and_place + }) + + minetest.register_node(":"..modname .. ":micro_" .. subname .. "_12", { + description = S("%s Microblock"):format(S(description)), + drawtype = "nodebox", + tiles = images, + light_source = light, + drop = modname .. ":micro_" .. drop .. "_12", + paramtype = "light", + paramtype2 = "facedir", + sunlight_propagates = true, + groups = groups, + node_box = { + type = "fixed", + fixed = {-0.5, -0.5, 0, 0, 0.25, 0.5}, + }, + sounds = default.node_sound_stone_defaults(), + on_place = stairsplus_rotate_and_place + }) + + minetest.register_node(":"..modname .. ":micro_" .. subname .. "_14", { + description = S("%s Microblock"):format(S(description)), + drawtype = "nodebox", + tiles = images, + light_source = light, + drop = modname .. ":micro_" .. drop .. "_14", + paramtype = "light", + paramtype2 = "facedir", + sunlight_propagates = true, + groups = groups, + node_box = { + type = "fixed", + fixed = {-0.5, -0.5, 0, 0, 0.375, 0.5}, + }, + sounds = default.node_sound_stone_defaults(), + on_place = stairsplus_rotate_and_place + }) + + minetest.register_node(":"..modname .. ":micro_" .. subname .. "_15", { + description = S("%s Microblock"):format(S(description)), + drawtype = "nodebox", + tiles = images, + light_source = light, + drop = modname .. ":micro_" .. drop .. "_15", + paramtype = "light", + paramtype2 = "facedir", + sunlight_propagates = true, + groups = groups, + node_box = { + type = "fixed", + fixed = {-0.5, -0.5, 0, 0, 0.4375, 0.5}, + }, + sounds = default.node_sound_stone_defaults(), + on_place = stairsplus_rotate_and_place + }) + + minetest.register_alias(modname..":micro_"..subname.."_bottom", modname..":micro_"..subname) +end + diff --git a/mods/moreblocks/stairsplus/panels.lua b/mods/moreblocks/stairsplus/panels.lua new file mode 100644 index 0000000..f074d54 --- /dev/null +++ b/mods/moreblocks/stairsplus/panels.lua @@ -0,0 +1,136 @@ +-- Load translation library if intllib is installed + +local S +if (minetest.get_modpath("intllib")) then + dofile(minetest.get_modpath("intllib").."/intllib.lua") + S = intllib.Getter(minetest.get_current_modname()) + else + S = function ( s ) return s end +end + +-- Node will be called panel_ + +function register_panel(modname, subname, recipeitem, groups, images, description, drop, light) + + minetest.register_node(":" .. modname .. ":panel_" .. subname, { + description = S("%s Panel"):format(S(description)), + drawtype = "nodebox", + tiles = images, + light_source = light, + drop = modname .. ":panel_" .. drop, + paramtype = "light", + paramtype2 = "facedir", + sunlight_propagates = true, + groups = groups, + node_box = { + type = "fixed", + fixed = {-0.5, -0.5, 0, 0.5, 0, 0.5}, + }, + on_place = stairsplus_rotate_and_place + }) + + minetest.register_node(":" .. modname .. ":panel_" .. subname .. "_1", { + description = S("%s Panel"):format(S(description)), + drawtype = "nodebox", + tiles = images, + light_source = light, + drop = modname .. ":panel_" .. drop .. "_1", + paramtype = "light", + paramtype2 = "facedir", + sunlight_propagates = true, + groups = groups, + node_box = { + type = "fixed", + fixed = {-0.5, -0.5, 0, 0.5, -0.4375, 0.5}, + }, + on_place = stairsplus_rotate_and_place + }) + + minetest.register_node(":" .. modname .. ":panel_" .. subname .. "_2", { + description = S("%s Panel"):format(S(description)), + drawtype = "nodebox", + tiles = images, + light_source = light, + drop = modname .. ":panel_" .. drop .. "_2", + paramtype = "light", + paramtype2 = "facedir", + sunlight_propagates = true, + groups = groups, + node_box = { + type = "fixed", + fixed = {-0.5, -0.5, 0, 0.5, -0.375, 0.5}, + }, + on_place = stairsplus_rotate_and_place + }) + + minetest.register_node(":" .. modname .. ":panel_" .. subname .. "_4", { + description = S("%s Panel"):format(S(description)), + drawtype = "nodebox", + tiles = images, + light_source = light, + drop = modname .. ":panel_" .. drop .. "_4", + paramtype = "light", + paramtype2 = "facedir", + sunlight_propagates = true, + groups = groups, + node_box = { + type = "fixed", + fixed = {-0.5, -0.5, 0, 0.5, -0.25, 0.5}, + }, + on_place = stairsplus_rotate_and_place + }) + + minetest.register_node(":" .. modname .. ":panel_" .. subname .. "_12", { + description = S("%s Panel"):format(S(description)), + drawtype = "nodebox", + tiles = images, + light_source = light, + drop = modname .. ":panel_" .. drop .. "_12", + paramtype = "light", + paramtype2 = "facedir", + sunlight_propagates = true, + groups = groups, + node_box = { + type = "fixed", + fixed = {-0.5, -0.5, 0, 0.5, 0.25, 0.5}, + }, + on_place = stairsplus_rotate_and_place + }) + + minetest.register_node(":" .. modname .. ":panel_" .. subname .. "_14", { + description = S("%s Panel"):format(S(description)), + drawtype = "nodebox", + tiles = images, + light_source = light, + drop = modname .. ":panel_" .. drop .. "_14", + paramtype = "light", + paramtype2 = "facedir", + sunlight_propagates = true, + groups = groups, + node_box = { + type = "fixed", + fixed = {-0.5, -0.5, 0, 0.5, 0.375, 0.5}, + }, + on_place = stairsplus_rotate_and_place + }) + + minetest.register_node(":" .. modname .. ":panel_" .. subname .. "_15", { + description = S("%s Panel"):format(S(description)), + drawtype = "nodebox", + tiles = images, + light_source = light, + drop = modname .. ":panel_" .. drop .. "_15", + paramtype = "light", + paramtype2 = "facedir", + sunlight_propagates = true, + groups = groups, + node_box = { + type = "fixed", + fixed = {-0.5, -0.5, 0, 0.5, 0.4375, 0.5}, + }, + on_place = stairsplus_rotate_and_place + }) + + minetest.register_alias(modname..":panel_"..subname.."_bottom", modname..":panel_"..subname) +end + diff --git a/mods/moreblocks/stairsplus/slabs.lua b/mods/moreblocks/stairsplus/slabs.lua new file mode 100644 index 0000000..687dbee --- /dev/null +++ b/mods/moreblocks/stairsplus/slabs.lua @@ -0,0 +1,170 @@ +-- Load translation library if intllib is installed + +local S +if (minetest.get_modpath("intllib")) then + dofile(minetest.get_modpath("intllib").."/intllib.lua") + S = intllib.Getter(minetest.get_current_modname()) + else + S = function ( s ) return s end +end + +-- Node will be called slab_ + +function register_slab(modname, subname, recipeitem, groups, images, description, drop, light) + + minetest.register_node(":" .. modname .. ":slab_" .. subname, { + description = S("%s Slab"):format(S(description)), + drawtype = "nodebox", + tiles = images, + light_source = light, + drop = modname .. ":slab_" .. drop, + paramtype = "light", + paramtype2 = "facedir", + sunlight_propagates = true, + groups = groups, + node_box = { + type = "fixed", + fixed = {-0.5, -0.5, -0.5, 0.5, 0, 0.5}, + }, + sounds = default.node_sound_stone_defaults(), + on_place = stairsplus_rotate_and_place + }) + + minetest.register_node(":stairs:slab_" .. subname, { + description = S("%s Slab"):format(S(description)), + drawtype = "nodebox", + tiles = images, + drop = modname .. ":slab_" .. drop, + paramtype = "light", + paramtype2 = "facedir", + sunlight_propagates = true, + groups = groups, + node_box = { + type = "fixed", + fixed = {-0.5, -0.5, -0.5, 0.5, 0, 0.5}, + }, + sounds = default.node_sound_stone_defaults(), + on_place = stairsplus_rotate_and_place + }) + + minetest.register_node(":"..modname .. ":slab_" .. subname .. "_quarter", { + description = S("%s Slab"):format(S(description)), + drawtype = "nodebox", + tiles = images, + light_source = light, + drop = modname .. ":slab_" .. drop .. "_quarter", + paramtype = "light", + paramtype2 = "facedir", + sunlight_propagates = true, + groups = groups, + node_box = { + type = "fixed", + fixed = {-0.5, -0.5, -0.5, 0.5, -0.25, 0.5}, + }, + sounds = default.node_sound_stone_defaults(), + on_place = stairsplus_rotate_and_place + }) + + minetest.register_node(":"..modname .. ":slab_" .. subname .. "_three_quarter", { + description = S("%s Slab"):format(S(description)), + drawtype = "nodebox", + tiles = images, + light_source = light, + drop = modname .. ":slab_" .. drop .. "_three_quarter", + paramtype = "light", + paramtype2 = "facedir", + sunlight_propagates = true, + groups = groups, + node_box = { + type = "fixed", + fixed = {-0.5, -0.5, -0.5, 0.5, 0.25, 0.5}, + }, + sounds = default.node_sound_stone_defaults(), + on_place = stairsplus_rotate_and_place + }) + + minetest.register_node(":"..modname .. ":slab_" .. subname .. "_1", { + description = S("%s Slab"):format(S(description)), + drawtype = "nodebox", + tiles = images, + light_source = light, + drop = modname .. ":slab_" .. drop .. "_1", + paramtype = "light", + paramtype2 = "facedir", + sunlight_propagates = true, + groups = groups, + node_box = { + type = "fixed", + fixed = {-0.5, -0.5, -0.5, 0.5, -0.4375, 0.5}, + }, + sounds = default.node_sound_stone_defaults(), + on_place = stairsplus_rotate_and_place + }) + + minetest.register_node(":"..modname .. ":slab_" .. subname .. "_2", { + description = S("%s Slab"):format(S(description)), + drawtype = "nodebox", + tiles = images, + light_source = light, + drop = modname .. ":slab_" .. drop .. "_2", + paramtype = "light", + paramtype2 = "facedir", + sunlight_propagates = true, + groups = groups, + node_box = { + type = "fixed", + fixed = {-0.5, -0.5, -0.5, 0.5, -0.375, 0.5}, + }, + sounds = default.node_sound_stone_defaults(), + on_place = stairsplus_rotate_and_place + }) + + minetest.register_node(":"..modname .. ":slab_" .. subname .. "_14", { + description = S("%s Slab"):format(S(description)), + drawtype = "nodebox", + tiles = images, + light_source = light, + drop = modname .. ":slab_" .. drop .. "_14", + paramtype = "light", + paramtype2 = "facedir", + sunlight_propagates = true, + groups = groups, + node_box = { + type = "fixed", + fixed = {-0.5, -0.5, -0.5, 0.5, 0.375, 0.5}, + }, + sounds = default.node_sound_stone_defaults(), + on_place = stairsplus_rotate_and_place + }) + + minetest.register_node(":"..modname .. ":slab_" .. subname .. "_15", { + description = S("%s Slab"):format(S(description)), + drawtype = "nodebox", + tiles = images, + light_source = light, + drop = modname .. ":slab_" .. drop .. "_15", + paramtype = "light", + paramtype2 = "facedir", + sunlight_propagates = true, + groups = groups, + node_box = { + type = "fixed", + fixed = {-0.5, -0.5, -0.5, 0.5, 0.4375, 0.5}, + }, + sounds = default.node_sound_stone_defaults(), + on_place = stairsplus_rotate_and_place + }) + + -- Unregister default recipes, optional, see _config.txt + +if allow_stair_slab_crafting == false +then + minetest.register_craft({ + output = "moreblocks:nothing 1", + recipe = { + {recipeitem, recipeitem, recipeitem}, + }, + }) +end +end + diff --git a/mods/moreblocks/stairsplus/stairs.lua b/mods/moreblocks/stairsplus/stairs.lua new file mode 100644 index 0000000..b11fef9 --- /dev/null +++ b/mods/moreblocks/stairsplus/stairs.lua @@ -0,0 +1,240 @@ +-- Load translation library if intllib is installed + +local S +if (minetest.get_modpath("intllib")) then + dofile(minetest.get_modpath("intllib").."/intllib.lua") + S = intllib.Getter(minetest.get_current_modname()) + else + S = function ( s ) return s end +end + +-- Node will be called :stair_ + +function register_stair(modname, subname, recipeitem, groups, images, description, drop, light) + + minetest.register_node(":" .. modname .. ":stair_" .. subname, { + description = S("%s Stairs"):format(S(description)), + drawtype = "nodebox", + tiles = images, + light_source = light, + paramtype = "light", + paramtype2 = "facedir", + sunlight_propagates = true, + groups = groups, + node_box = { + type = "fixed", + fixed = { + {-0.5, -0.5, -0.5, 0.5, 0, 0.5}, + {-0.5, 0, 0, 0.5, 0.5, 0.5}, + }, + }, + sounds = default.node_sound_stone_defaults(), + on_place = stairsplus_rotate_and_place + }) + + minetest.register_node(":stairs:stair_" .. subname, { + description = S("%s Stairs"):format(S(description)), + drawtype = "nodebox", + tiles = images, + paramtype = "light", + paramtype2 = "facedir", + sunlight_propagates = true, + groups = {cracky=3, not_in_creative_inventory=1}, + node_box = { + type = "fixed", + fixed = { + {-0.5, -0.5, -0.5, 0.5, 0, 0.5}, + {-0.5, 0, 0, 0.5, 0.5, 0.5}, + }, + }, + sounds = default.node_sound_stone_defaults(), + on_place = stairsplus_rotate_and_place + }) + + minetest.register_node(":" .. modname .. ":stair_" .. subname .. "_half", { + description = S("%s Stairs"):format(S(description)), + drawtype = "nodebox", + tiles = images, + light_source = light, + paramtype = "light", + paramtype2 = "facedir", + sunlight_propagates = true, + groups = groups, + node_box = { + type = "fixed", + fixed = { + {-0.5, -0.5, -0.5, 0, 0, 0.5}, + {-0.5, 0, 0, 0, 0.5, 0.5}, + }, + }, + sounds = default.node_sound_stone_defaults(), + on_place = stairsplus_rotate_and_place + }) + + minetest.register_node(":"..modname .. ":stair_" .. subname .. "_right_half", { + description = S("%s Stairs"):format(S(description)), + drawtype = "nodebox", + tiles = images, + light_source = light, + paramtype = "light", + paramtype2 = "facedir", + sunlight_propagates = true, + groups = groups, + node_box = { + type = "fixed", + fixed = { + {0, -0.5, -0.5, 0.5, 0, 0.5}, + {0, 0, 0, 0.5, 0.5, 0.5}, + }, + }, + sounds = default.node_sound_stone_defaults(), + on_place = stairsplus_rotate_and_place + }) + + minetest.register_node(":"..modname .. ":stair_" .. subname .. "_inner", { + description = S("%s Stairs"):format(S(description)), + drawtype = "nodebox", + tiles = images, + light_source = light, + drop = modname .. ":stair_" .. drop .. "_inner", + paramtype = "light", + paramtype2 = "facedir", + sunlight_propagates = true, + groups = groups, + node_box = { + type = "fixed", + fixed = { + {-0.5, -0.5, -0.5, 0.5, 0, 0.5}, + {-0.5, 0, 0, 0.5, 0.5, 0.5}, + {-0.5, 0, -0.5, 0, 0.5, 0}, + }, + }, + sounds = default.node_sound_stone_defaults(), + on_place = stairsplus_rotate_and_place + }) + + minetest.register_node(":"..modname .. ":stair_" .. subname .. "_outer", { + description = S("%s Stairs"):format(S(description)), + drawtype = "nodebox", + tiles = images, + light_source = light, + drop = modname .. ":stair_" .. drop .. "_outer", + paramtype = "light", + paramtype2 = "facedir", + sunlight_propagates = true, + groups = groups, + node_box = { + type = "fixed", + fixed = { + {-0.5, -0.5, -0.5, 0.5, 0, 0.5}, + {-0.5, 0, 0, 0, 0.5, 0.5}, + }, + }, + sounds = default.node_sound_stone_defaults(), + on_place = stairsplus_rotate_and_place + }) + + minetest.register_node(":" .. modname .. ":stair_" .. subname .. "_alt", { + description = S("%s Stairs"):format(S(description)), + drawtype = "nodebox", + tiles = images, + light_source = light, + paramtype = "light", + paramtype2 = "facedir", + sunlight_propagates = true, + groups = groups, + node_box = { + type = "fixed", + fixed = { + {-0.5, -0.5, -0.5, 0.5, 0, 0}, + {-0.5, 0, 0, 0.5, 0.5, 0.5}, + }, + }, + sounds = default.node_sound_stone_defaults(), + on_place = stairsplus_rotate_and_place + }) + + minetest.register_node(":" .. modname .. ":stair_" .. subname .. "_alt_1", { + description = S("%s Stairs"):format(S(description)), + drawtype = "nodebox", + tiles = images, + light_source = light, + paramtype = "light", + paramtype2 = "facedir", + sunlight_propagates = true, + groups = groups, + node_box = { + type = "fixed", + fixed = { + {-0.5, -0.0625, -0.5, 0.5, 0, 0}, + {-0.5, 0.4375, 0, 0.5, 0.5, 0.5}, + }, + }, + sounds = default.node_sound_stone_defaults(), + on_place = stairsplus_rotate_and_place + }) + + minetest.register_node(":" .. modname .. ":stair_" .. subname .. "_alt_2", { + description = S("%s Stairs"):format(S(description)), + drawtype = "nodebox", + tiles = images, + light_source = light, + paramtype = "light", + paramtype2 = "facedir", + sunlight_propagates = true, + groups = groups, + node_box = { + type = "fixed", + fixed = { + {-0.5, -0.125, -0.5, 0.5, 0, 0}, + {-0.5, 0.375, 0, 0.5, 0.5, 0.5}, + }, + }, + sounds = default.node_sound_stone_defaults(), + on_place = stairsplus_rotate_and_place + }) + + minetest.register_node(":" .. modname .. ":stair_" .. subname .. "_alt_4", { + description = S("%s Stairs"):format(S(description)), + drawtype = "nodebox", + tiles = images, + light_source = light, + paramtype = "light", + paramtype2 = "facedir", + sunlight_propagates = true, + groups = groups, + node_box = { + type = "fixed", + fixed = { + {-0.5, -0.25, -0.5, 0.5, 0, 0}, + {-0.5, 0.25, 0, 0.5, 0.5, 0.5}, + }, + }, + sounds = default.node_sound_stone_defaults(), + on_place = stairsplus_rotate_and_place + }) + + -- Unregister default recipes, optional, see _config.txt + +if allow_stair_slab_crafting == false +then + minetest.register_craft({ + output = "moreblocks:nothing 1", + recipe = { + {recipeitem, "", ""}, + {recipeitem, recipeitem, ""}, + {recipeitem, recipeitem, recipeitem}, + }, + }) + + minetest.register_craft({ + output = "moreblocks:nothing 1", + recipe = { + {"", "", recipeitem}, + {"", recipeitem, recipeitem}, + {recipeitem, recipeitem, recipeitem}, + }, + }) +end +end + diff --git a/mods/moreblocks/stairsplus_convert.lua b/mods/moreblocks/stairsplus_convert.lua new file mode 100644 index 0000000..7d6b94b --- /dev/null +++ b/mods/moreblocks/stairsplus_convert.lua @@ -0,0 +1,133 @@ +-- Function to convert all stairs/slabs/etc nodes from +-- inverted, wall, etc to regular + 6d facedir + +local dirs1 = { 21, 20, 23, 22, 21 } +local dirs2 = { 15, 8, 17, 6, 15 } +local dirs3 = { 14, 11, 16, 5, 14 } + +function register_6dfacedir_conversion(modname, material) + --print("Register stairsplus 6d facedir conversion") + --print('ABM for '..modname..' "'..material..'"') + + local objects_list1 = { + modname..":slab_" .. material .. "_inverted", + modname..":slab_" .. material .. "_quarter_inverted", + modname..":slab_" .. material .. "_three_quarter_inverted", + modname..":stair_" .. material .. "_inverted", + modname..":stair_" .. material .. "_wall", + modname..":stair_" .. material .. "_wall_half", + modname..":stair_" .. material .. "_wall_half_inverted", + modname..":stair_" .. material .. "_half_inverted", + modname..":stair_" .. material .. "_right_half_inverted", + modname..":panel_" .. material .. "_vertical", + modname..":panel_" .. material .. "_top", + } + + local objects_list2 = { + modname..":slab_" .. material .. "_wall", + modname..":slab_" .. material .. "_quarter_wall", + modname..":slab_" .. material .. "_three_quarter_wall", + modname..":stair_" .. material .. "_inner_inverted", + modname..":stair_" .. material .. "_outer_inverted", + modname..":micro_" .. material .. "_top" + } + + for j in ipairs(objects_list1) do + local flip_upside_down = false + local flip_to_wall = false + + local object = objects_list1[j] + local dest_object = objects_list1[j] + + if string.find(dest_object, "_inverted") then + flip_upside_down = true + dest_object = string.gsub(dest_object, "_inverted", "") + end + + if string.find(dest_object, "_top") then + flip_upside_down = true + dest_object = string.gsub(dest_object, "_top", "") + end + + if string.find(dest_object, "_wall") then + flip_to_wall = true + dest_object = string.gsub(dest_object, "_wall", "") + end + + if string.find(dest_object, "_vertical") then + flip_to_wall = true + dest_object = string.gsub(dest_object, "_vertical", "") + end + + if string.find(dest_object, "_half") and not string.find(dest_object, "_right_half") then + dest_object = string.gsub(dest_object, "_half", "_right_half") + elseif string.find(dest_object, "_right_half") then + dest_object = string.gsub(dest_object, "_right_half", "_half") + end + + --print(" +---> convert "..object) + --print(" | to "..dest_object) + + minetest.register_abm({ + nodenames = { object }, + interval = 1, + chance = 1, + action = function(pos, node, active_object_count, active_object_count_wider) + local fdir = node.param2 or 0 + + if flip_upside_down and not flip_to_wall then + nfdir = dirs1[fdir+2] + elseif flip_to_wall and not flip_upside_down then + nfdir = dirs2[fdir+1] + elseif flip_to_wall and flip_upside_down then + nfdir = dirs3[fdir+2] + end + minetest.env:add_node(pos, {name = dest_object, param2 = nfdir}) + end + }) + end + + for j in ipairs(objects_list2) do + local flip_upside_down = false + local flip_to_wall = false + + local object = objects_list2[j] + local dest_object = objects_list2[j] + + if string.find(dest_object, "_inverted") then + flip_upside_down = true + dest_object = string.gsub(dest_object, "_inverted", "") + end + + if string.find(dest_object, "_top") then + flip_upside_down = true + dest_object = string.gsub(dest_object, "_top", "") + end + + if string.find(dest_object, "_wall") then + flip_to_wall = true + dest_object = string.gsub(dest_object, "_wall", "") + end + + --print(" +---> convert "..object) + --print(" | to "..dest_object) + + minetest.register_abm({ + nodenames = { object }, + interval = 1, + chance = 1, + action = function(pos, node, active_object_count, active_object_count_wider) + local fdir = node.param2 + local nfdir = 20 + + if flip_upside_down and not flip_to_wall then + nfdir = dirs1[fdir+1] + elseif flip_to_wall and not flip_upside_down then + nfdir = dirs2[fdir+2] + + end + minetest.env:add_node(pos, {name = dest_object, param2 = nfdir}) + end + }) + end +end diff --git a/mods/moreblocks/textures/invisible.png b/mods/moreblocks/textures/invisible.png new file mode 100644 index 0000000..c2e8752 Binary files /dev/null and b/mods/moreblocks/textures/invisible.png differ diff --git a/mods/moreblocks/textures/moreblocks_cactus_brick.png b/mods/moreblocks/textures/moreblocks_cactus_brick.png new file mode 100644 index 0000000..bdd4b92 Binary files /dev/null and b/mods/moreblocks/textures/moreblocks_cactus_brick.png differ diff --git a/mods/moreblocks/textures/moreblocks_cactus_checker.png b/mods/moreblocks/textures/moreblocks_cactus_checker.png new file mode 100644 index 0000000..0e55b0a Binary files /dev/null and b/mods/moreblocks/textures/moreblocks_cactus_checker.png differ diff --git a/mods/moreblocks/textures/moreblocks_circle_stone_bricks.png b/mods/moreblocks/textures/moreblocks_circle_stone_bricks.png new file mode 100644 index 0000000..03bbcbb Binary files /dev/null and b/mods/moreblocks/textures/moreblocks_circle_stone_bricks.png differ diff --git a/mods/moreblocks/textures/moreblocks_circular_saw_bottom.png b/mods/moreblocks/textures/moreblocks_circular_saw_bottom.png new file mode 100644 index 0000000..c472a8b Binary files /dev/null and b/mods/moreblocks/textures/moreblocks_circular_saw_bottom.png differ diff --git a/mods/moreblocks/textures/moreblocks_circular_saw_side.png b/mods/moreblocks/textures/moreblocks_circular_saw_side.png new file mode 100644 index 0000000..a557095 Binary files /dev/null and b/mods/moreblocks/textures/moreblocks_circular_saw_side.png differ diff --git a/mods/moreblocks/textures/moreblocks_circular_saw_top.png b/mods/moreblocks/textures/moreblocks_circular_saw_top.png new file mode 100644 index 0000000..cec4aaa Binary files /dev/null and b/mods/moreblocks/textures/moreblocks_circular_saw_top.png differ diff --git a/mods/moreblocks/textures/moreblocks_clean_glass.png b/mods/moreblocks/textures/moreblocks_clean_glass.png new file mode 100644 index 0000000..906a3c1 Binary files /dev/null and b/mods/moreblocks/textures/moreblocks_clean_glass.png differ diff --git a/mods/moreblocks/textures/moreblocks_coal_checker.png b/mods/moreblocks/textures/moreblocks_coal_checker.png new file mode 100644 index 0000000..4da7746 Binary files /dev/null and b/mods/moreblocks/textures/moreblocks_coal_checker.png differ diff --git a/mods/moreblocks/textures/moreblocks_coal_glass.png b/mods/moreblocks/textures/moreblocks_coal_glass.png new file mode 100644 index 0000000..d7c830d Binary files /dev/null and b/mods/moreblocks/textures/moreblocks_coal_glass.png differ diff --git a/mods/moreblocks/textures/moreblocks_coal_glass_stairsplus.png b/mods/moreblocks/textures/moreblocks_coal_glass_stairsplus.png new file mode 100644 index 0000000..0441cec Binary files /dev/null and b/mods/moreblocks/textures/moreblocks_coal_glass_stairsplus.png differ diff --git a/mods/moreblocks/textures/moreblocks_coal_stone.png b/mods/moreblocks/textures/moreblocks_coal_stone.png new file mode 100644 index 0000000..95db8fa Binary files /dev/null and b/mods/moreblocks/textures/moreblocks_coal_stone.png differ diff --git a/mods/moreblocks/textures/moreblocks_coal_stone_bricks.png b/mods/moreblocks/textures/moreblocks_coal_stone_bricks.png new file mode 100644 index 0000000..52c8ca8 Binary files /dev/null and b/mods/moreblocks/textures/moreblocks_coal_stone_bricks.png differ diff --git a/mods/moreblocks/textures/moreblocks_empty_bookshelf.png b/mods/moreblocks/textures/moreblocks_empty_bookshelf.png new file mode 100644 index 0000000..56fc713 Binary files /dev/null and b/mods/moreblocks/textures/moreblocks_empty_bookshelf.png differ diff --git a/mods/moreblocks/textures/moreblocks_fence_jungle_wood.png b/mods/moreblocks/textures/moreblocks_fence_jungle_wood.png new file mode 100644 index 0000000..63a39ee Binary files /dev/null and b/mods/moreblocks/textures/moreblocks_fence_jungle_wood.png differ diff --git a/mods/moreblocks/textures/moreblocks_fence_wood.png b/mods/moreblocks/textures/moreblocks_fence_wood.png new file mode 100644 index 0000000..0b99f0e Binary files /dev/null and b/mods/moreblocks/textures/moreblocks_fence_wood.png differ diff --git a/mods/moreblocks/textures/moreblocks_glass.png b/mods/moreblocks/textures/moreblocks_glass.png new file mode 100644 index 0000000..ade0196 Binary files /dev/null and b/mods/moreblocks/textures/moreblocks_glass.png differ diff --git a/mods/moreblocks/textures/moreblocks_glass_stairsplus.png b/mods/moreblocks/textures/moreblocks_glass_stairsplus.png new file mode 100644 index 0000000..d222b62 Binary files /dev/null and b/mods/moreblocks/textures/moreblocks_glass_stairsplus.png differ diff --git a/mods/moreblocks/textures/moreblocks_glow_glass.png b/mods/moreblocks/textures/moreblocks_glow_glass.png new file mode 100644 index 0000000..84991fa Binary files /dev/null and b/mods/moreblocks/textures/moreblocks_glow_glass.png differ diff --git a/mods/moreblocks/textures/moreblocks_glow_glass_stairsplus.png b/mods/moreblocks/textures/moreblocks_glow_glass_stairsplus.png new file mode 100644 index 0000000..235179c Binary files /dev/null and b/mods/moreblocks/textures/moreblocks_glow_glass_stairsplus.png differ diff --git a/mods/moreblocks/textures/moreblocks_iron_checker.png b/mods/moreblocks/textures/moreblocks_iron_checker.png new file mode 100644 index 0000000..f852884 Binary files /dev/null and b/mods/moreblocks/textures/moreblocks_iron_checker.png differ diff --git a/mods/moreblocks/textures/moreblocks_iron_glass.png b/mods/moreblocks/textures/moreblocks_iron_glass.png new file mode 100644 index 0000000..ad5cd1e Binary files /dev/null and b/mods/moreblocks/textures/moreblocks_iron_glass.png differ diff --git a/mods/moreblocks/textures/moreblocks_iron_glass_stairsplus.png b/mods/moreblocks/textures/moreblocks_iron_glass_stairsplus.png new file mode 100644 index 0000000..b41cba7 Binary files /dev/null and b/mods/moreblocks/textures/moreblocks_iron_glass_stairsplus.png differ diff --git a/mods/moreblocks/textures/moreblocks_iron_stone.png b/mods/moreblocks/textures/moreblocks_iron_stone.png new file mode 100644 index 0000000..657c4b2 Binary files /dev/null and b/mods/moreblocks/textures/moreblocks_iron_stone.png differ diff --git a/mods/moreblocks/textures/moreblocks_iron_stone_bricks.png b/mods/moreblocks/textures/moreblocks_iron_stone_bricks.png new file mode 100644 index 0000000..1b0ed5c Binary files /dev/null and b/mods/moreblocks/textures/moreblocks_iron_stone_bricks.png differ diff --git a/mods/moreblocks/textures/moreblocks_jungle_wood.png b/mods/moreblocks/textures/moreblocks_jungle_wood.png new file mode 100644 index 0000000..ebc6485 Binary files /dev/null and b/mods/moreblocks/textures/moreblocks_jungle_wood.png differ diff --git a/mods/moreblocks/textures/moreblocks_junglestick.png b/mods/moreblocks/textures/moreblocks_junglestick.png new file mode 100644 index 0000000..afe5892 Binary files /dev/null and b/mods/moreblocks/textures/moreblocks_junglestick.png differ diff --git a/mods/moreblocks/textures/moreblocks_obsidian_glass_stairsplus.png b/mods/moreblocks/textures/moreblocks_obsidian_glass_stairsplus.png new file mode 100644 index 0000000..eb758f1 Binary files /dev/null and b/mods/moreblocks/textures/moreblocks_obsidian_glass_stairsplus.png differ diff --git a/mods/moreblocks/textures/moreblocks_plankstone.png b/mods/moreblocks/textures/moreblocks_plankstone.png new file mode 100644 index 0000000..ac866b8 Binary files /dev/null and b/mods/moreblocks/textures/moreblocks_plankstone.png differ diff --git a/mods/moreblocks/textures/moreblocks_plankstone_2.png b/mods/moreblocks/textures/moreblocks_plankstone_2.png new file mode 100644 index 0000000..52656b0 Binary files /dev/null and b/mods/moreblocks/textures/moreblocks_plankstone_2.png differ diff --git a/mods/moreblocks/textures/moreblocks_rope.png b/mods/moreblocks/textures/moreblocks_rope.png new file mode 100644 index 0000000..55967a6 Binary files /dev/null and b/mods/moreblocks/textures/moreblocks_rope.png differ diff --git a/mods/moreblocks/textures/moreblocks_split_stone_tile.png b/mods/moreblocks/textures/moreblocks_split_stone_tile.png new file mode 100644 index 0000000..579e5ac Binary files /dev/null and b/mods/moreblocks/textures/moreblocks_split_stone_tile.png differ diff --git a/mods/moreblocks/textures/moreblocks_split_stone_tile_top.png b/mods/moreblocks/textures/moreblocks_split_stone_tile_top.png new file mode 100644 index 0000000..76e39df Binary files /dev/null and b/mods/moreblocks/textures/moreblocks_split_stone_tile_top.png differ diff --git a/mods/moreblocks/textures/moreblocks_stone_tile.png b/mods/moreblocks/textures/moreblocks_stone_tile.png new file mode 100644 index 0000000..20b070e Binary files /dev/null and b/mods/moreblocks/textures/moreblocks_stone_tile.png differ diff --git a/mods/moreblocks/textures/moreblocks_super_glow_glass.png b/mods/moreblocks/textures/moreblocks_super_glow_glass.png new file mode 100644 index 0000000..65e09f4 Binary files /dev/null and b/mods/moreblocks/textures/moreblocks_super_glow_glass.png differ diff --git a/mods/moreblocks/textures/moreblocks_super_glow_glass_stairsplus.png b/mods/moreblocks/textures/moreblocks_super_glow_glass_stairsplus.png new file mode 100644 index 0000000..b8a6657 Binary files /dev/null and b/mods/moreblocks/textures/moreblocks_super_glow_glass_stairsplus.png differ diff --git a/mods/moreblocks/textures/moreblocks_sweeper.png b/mods/moreblocks/textures/moreblocks_sweeper.png new file mode 100644 index 0000000..e901ef0 Binary files /dev/null and b/mods/moreblocks/textures/moreblocks_sweeper.png differ diff --git a/mods/moreblocks/textures/moreblocks_trap_glass.png b/mods/moreblocks/textures/moreblocks_trap_glass.png new file mode 100644 index 0000000..e0d1c26 Binary files /dev/null and b/mods/moreblocks/textures/moreblocks_trap_glass.png differ diff --git a/mods/moreblocks/textures/moreblocks_trap_stone.png b/mods/moreblocks/textures/moreblocks_trap_stone.png new file mode 100644 index 0000000..05a2531 Binary files /dev/null and b/mods/moreblocks/textures/moreblocks_trap_stone.png differ diff --git a/mods/moreblocks/textures/moreblocks_wood.png b/mods/moreblocks/textures/moreblocks_wood.png new file mode 100644 index 0000000..66f2b72 Binary files /dev/null and b/mods/moreblocks/textures/moreblocks_wood.png differ diff --git a/mods/moreblocks/textures/moreblocks_wood_tile.png b/mods/moreblocks/textures/moreblocks_wood_tile.png new file mode 100644 index 0000000..c05a56f Binary files /dev/null and b/mods/moreblocks/textures/moreblocks_wood_tile.png differ diff --git a/mods/moreblocks/textures/moreblocks_wood_tile_center.png b/mods/moreblocks/textures/moreblocks_wood_tile_center.png new file mode 100644 index 0000000..7b8f822 Binary files /dev/null and b/mods/moreblocks/textures/moreblocks_wood_tile_center.png differ diff --git a/mods/moreblocks/textures/moreblocks_wood_tile_down.png b/mods/moreblocks/textures/moreblocks_wood_tile_down.png new file mode 100644 index 0000000..aedddfb Binary files /dev/null and b/mods/moreblocks/textures/moreblocks_wood_tile_down.png differ diff --git a/mods/moreblocks/textures/moreblocks_wood_tile_flipped.png b/mods/moreblocks/textures/moreblocks_wood_tile_flipped.png new file mode 100644 index 0000000..66eb5a6 Binary files /dev/null and b/mods/moreblocks/textures/moreblocks_wood_tile_flipped.png differ diff --git a/mods/moreblocks/textures/moreblocks_wood_tile_full.png b/mods/moreblocks/textures/moreblocks_wood_tile_full.png new file mode 100644 index 0000000..0c28e92 Binary files /dev/null and b/mods/moreblocks/textures/moreblocks_wood_tile_full.png differ diff --git a/mods/moreblocks/textures/moreblocks_wood_tile_left.png b/mods/moreblocks/textures/moreblocks_wood_tile_left.png new file mode 100644 index 0000000..b84166f Binary files /dev/null and b/mods/moreblocks/textures/moreblocks_wood_tile_left.png differ diff --git a/mods/moreblocks/textures/moreblocks_wood_tile_right.png b/mods/moreblocks/textures/moreblocks_wood_tile_right.png new file mode 100644 index 0000000..883f44c Binary files /dev/null and b/mods/moreblocks/textures/moreblocks_wood_tile_right.png differ diff --git a/mods/moreblocks/textures/moreblocks_wood_tile_up.png b/mods/moreblocks/textures/moreblocks_wood_tile_up.png new file mode 100644 index 0000000..6221910 Binary files /dev/null and b/mods/moreblocks/textures/moreblocks_wood_tile_up.png differ diff --git a/mods/moreores/LICENSE.txt b/mods/moreores/LICENSE.txt new file mode 100644 index 0000000..2499ee9 --- /dev/null +++ b/mods/moreores/LICENSE.txt @@ -0,0 +1,17 @@ ++---- GNU GPL v3 ----+ + +More Ores -- a Minetest mod that adds ores. +Copyright (C) 2013 Calinou + +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 . diff --git a/mods/moreores/README.txt b/mods/moreores/README.txt new file mode 100644 index 0000000..4c15581 --- /dev/null +++ b/mods/moreores/README.txt @@ -0,0 +1,22 @@ +Calinou's Minetest Mods +===================== + +Calinou's Mods for Minetest [http://minetest.net], a free and opensource Minecraft-like game. + +This Git repository is mostly made for servers; it allows easy updating. + +To install, just clone this repository somewhere, then copy the "calinou_mods" folder in the "mods/minetest" folder of Minetest's installation folder. + + + +Misc stuff +===================== + +All these mods' source codes, except More Ores are under the zlib/libpng license. More Ores is under the GNU GPLv3; the mods' textures are under the CC BY-SA 3.0 Unported. + +Mods' forum threads: +More Blocks: http://minetest.net/forum/viewtopic.php?id=509 +More Ores: http://minetest.net/forum/viewtopic.php?id=549 +Map Tools: http://minetest.net/forum/viewtopic.php?id=1882 +Doors+: http://minetest.net/forum/viewtopic.php?id=2059 +Stairs+: http://minetest.net/forum/viewtopic.php?id=2092 diff --git a/mods/moreores/_config.txt b/mods/moreores/_config.txt new file mode 100644 index 0000000..68c6658 --- /dev/null +++ b/mods/moreores/_config.txt @@ -0,0 +1,35 @@ +------------------------------------------------------------------------------ +------------------------------ CONFIGURATION --------------------------------- +------------------------------------------------------------------------------ + +------------------------------------------------------------------------------ +-------- Change settings by changing the values after the "=". --------------- +------------------------------------------------------------------------------ + +-- Chunk sizes for ore generation (bigger = ore deposits are more scattered around) +moreores_copper_chunk_size = 8 +moreores_tin_chunk_size = 7 +moreores_silver_chunk_size = 11 +moreores_gold_chunk_size = 14 +moreores_mithril_chunk_size = 11 + +-- Amount of ore per chunk (higher = bigger ore deposits) +moreores_copper_ore_per_chunk = 8 +moreores_tin_ore_per_chunk = 3 +moreores_silver_ore_per_chunk = 4 +moreores_gold_ore_per_chunk = 4 +moreores_mithril_ore_per_chunk = 1 + +-- Minimal depths of ore generation (Y coordinate, 0 being sea level by default) +moreores_copper_min_depth = -31000 +moreores_tin_min_depth = -31000 +moreores_silver_min_depth = -31000 +moreores_gold_min_depth = -31000 +moreores_mithril_min_depth = -31000 + +-- Maximal depths of ore generation (Y coordinate, 0 being sea level by default) +moreores_copper_max_depth = 64 +moreores_tin_max_depth = 8 +moreores_silver_max_depth = -2 +moreores_gold_max_depth = -64 +moreores_mithril_max_depth = -512 diff --git a/mods/moreores/depends.txt b/mods/moreores/depends.txt new file mode 100644 index 0000000..0219052 --- /dev/null +++ b/mods/moreores/depends.txt @@ -0,0 +1,2 @@ +default +mg? diff --git a/mods/moreores/init.lua b/mods/moreores/init.lua new file mode 100644 index 0000000..32fb5ef --- /dev/null +++ b/mods/moreores/init.lua @@ -0,0 +1,368 @@ +-- Load translation library if intllib is installed + +local S +if (minetest.get_modpath("intllib")) then + dofile(minetest.get_modpath("intllib").."/intllib.lua") + S = intllib.Getter(minetest.get_current_modname()) + else + S = function ( s ) return s end +end + +moreores_modpath = minetest.get_modpath("moreores") +dofile(moreores_modpath.."/_config.txt") + +--[[ +**** +More Ores +by Calinou +with the help of Nore/Novatux +Licensed under the CC0 +**** +--]] + +-- Utility functions + +local default_stone_sounds = default.node_sound_stone_defaults() + +local function hoe_on_use(itemstack, user, pointed_thing, uses) + local pt = pointed_thing + -- check if pointing at a node + if not pt then + return + end + if pt.type ~= "node" then + return + end + + local under = minetest.get_node(pt.under) + local p = {x=pt.under.x, y=pt.under.y+1, z=pt.under.z} + local above = minetest.get_node(p) + + -- return if any of the nodes is not registered + if not minetest.registered_nodes[under.name] then + return + end + if not minetest.registered_nodes[above.name] then + return + end + + -- check if the node above the pointed thing is air + if above.name ~= "air" then + return + end + + -- check if pointing at dirt + if minetest.get_item_group(under.name, "soil") ~= 1 then + return + end + + -- turn the node into soil, wear out item and play sound + minetest.set_node(pt.under, {name="farming:soil"}) + minetest.sound_play("default_dig_crumbly", { + pos = pt.under, + gain = 0.5, + }) + itemstack:add_wear(65535/(uses-1)) + return itemstack +end + +local function get_recipe(c, name) + if name == "sword" then + return {{c},{c},{"default:stick"}} + end + if name == "shovel" then + return {{c},{"default:stick"},{"default:stick"}} + end + if name == "axe" then + return {{c,c},{c,"default:stick"},{"","default:stick"}} + end + if name == "pick" then + return {{c,c,c},{"","default:stick",""},{"","default:stick",""}} + end + if name == "hoe" then + return {{c,c},{"","default:stick"},{"","default:stick"}} + end + if name == "block" then + return {{c,c,c},{c,c,c},{c,c,c}} + end + if name == "lockedchest" then + return {{"default:wood","default:wood","default:wood"},{"default:wood",c,"default:wood"},{"default:wood","default:wood","default:wood"}} + end +end + +local function add_ore(modname, description, mineral_name, oredef) + local img_base = modname .. "_" .. mineral_name + local toolimg_base = modname .. "_tool_"..mineral_name + local tool_base = modname .. ":" + local tool_post = "_" .. mineral_name + local item_base = tool_base .. mineral_name + local ingot = item_base .. "_ingot" + local lumpitem = item_base .. "_lump" + local ingotcraft = ingot + + if oredef.makes.ore then + minetest.register_node(modname .. ":mineral_"..mineral_name, { + description = S("%s Ore"):format(S(description)), + tiles = {"default_stone.png^"..modname.."_mineral_"..mineral_name..".png"}, + groups = {cracky=3}, + sounds = default_stone_sounds, + drop = lumpitem + }) + end + + if oredef.makes.block then + local blockitem = item_base .. "_block" + minetest.register_node(blockitem, { + description = S("%s Block"):format(S(description)), + tiles = { img_base .. "_block.png" }, + groups = {snappy=1,bendy=2,cracky=1,melty=2,level=2}, + sounds = default_stone_sounds + }) + minetest.register_alias(mineral_name.."_block", blockitem) + if oredef.makes.ingot then + minetest.register_craft( { + output = blockitem, + recipe = get_recipe(ingot, "block") + }) + minetest.register_craft( { + output = ingot .. " 9", + recipe = { + { blockitem } + } + }) + end + end + + if oredef.makes.lump then + minetest.register_craftitem(lumpitem, { + description = S("%s Lump"):format(S(description)), + inventory_image = img_base .. "_lump.png", + }) + minetest.register_alias(mineral_name .. "_lump", lumpitem) + if oredef.makes.ingot then + minetest.register_craft({ + type = "cooking", + output = ingot, + recipe = lumpitem + }) + end + end + + if oredef.makes.ingot then + minetest.register_craftitem(ingot, { + description = S("%s Ingot"):format(S(description)), + inventory_image = img_base .. "_ingot.png", + }) + minetest.register_alias(mineral_name .. "_ingot", ingot) + end + + if oredef.makes.chest then + minetest.register_craft( { + output = "default:chest_locked 1", + recipe = { + { ingot }, + { "default:chest" } + } + }) + minetest.register_craft( { + output = "default:chest_locked 1", + recipe = get_recipe(ingot, "lockedchest") + }) + end + + oredef.oredef.ore_type = "scatter" + oredef.oredef.ore = modname..":mineral_"..mineral_name + oredef.oredef.wherein = "default:stone" + + minetest.register_ore(oredef.oredef) + + for toolname, tooldef in pairs(oredef.tools) do + local tdef = { + description = "", + inventory_image = toolimg_base .. toolname .. ".png", + tool_capabilities = { + max_drop_level=3, + groupcaps=tooldef + } + } + + if toolname == "sword" then + tdef.full_punch_interval = oredef.punchint + tdef.description = S("%s Sword"):format(S(description)) + end + + if toolname == "pick" then + tdef.description = S("%s Pickaxe"):format(S(description)) + end + + if toolname == "axe" then + tdef.description = S("%s Axe"):format(S(description)) + end + + if toolname == "shovel" then + tdef.description = S("%s Shovel"):format(S(description)) + end + + if toolname == "hoe" then + tdef.description = S("%s Hoe"):format(S(description)) + local uses = tooldef.uses + tooldef.uses = nil + tdef.on_use = function(itemstack, user, pointed_thing) + return hoe_on_use(itemstack, user, pointed_thing, uses) + end + end + + local fulltoolname = tool_base .. toolname .. tool_post + minetest.register_tool(fulltoolname, tdef) + minetest.register_alias(toolname .. tool_post, fulltoolname) + if oredef.makes.ingot then + minetest.register_craft({ + output = fulltoolname, + recipe = get_recipe(ingot, toolname) + }) + end + end +end + +-- Add everything (compact(ish)!) + +local modname = "moreores" + +local oredefs = { + silver = { + desc = "Silver", + makes = {ore=true, block=true, lump=true, ingot=true, chest=true}, + oredef = {clust_scarcity = moreores_silver_chunk_size * moreores_silver_chunk_size * moreores_silver_chunk_size, + clust_num_ores = moreores_silver_ore_per_chunk, + clust_size = moreores_silver_chunk_size, + height_min = moreores_silver_min_depth, + height_max = moreores_silver_max_depth + }, + tools = { + pick = { + cracky={times={[1]=2.60, [2]=1.00, [3]=0.60}, uses=100, maxlevel=1} + }, + hoe = { + uses = 300 + }, + shovel = { + crumbly={times={[1]=1.10, [2]=0.40, [3]=0.25}, uses=100, maxlevel=1} + }, + axe = { + choppy={times={[1]=2.50, [2]=0.80, [3]=0.50}, uses=100, maxlevel=1}, + fleshy={times={[2]=1.10, [3]=0.60}, uses=100, maxlevel=1} + }, + sword = { + fleshy={times={[2]=0.70, [3]=0.30}, uses=100, maxlevel=1}, + snappy={times={[2]=0.70, [3]=0.30}, uses=100, maxlevel=1}, + choppy={times={[3]=0.80}, uses=100, maxlevel=0} + } + }, + punchint = 1.0 + }, + tin = { + desc = "Tin", + makes = {ore=true, block=true, lump=true, ingot=true, chest=false}, + oredef = {clust_scarcity = moreores_tin_chunk_size * moreores_tin_chunk_size * moreores_tin_chunk_size, + clust_num_ores = moreores_tin_ore_per_chunk, + clust_size = moreores_tin_chunk_size, + height_min = moreores_tin_min_depth, + height_max = moreores_tin_max_depth + }, + tools = {} + }, + mithril = { + desc = "Mithril", + makes = {ore=true, block=true, lump=true, ingot=true, chest=false}, + oredef = {clust_scarcity = moreores_mithril_chunk_size * moreores_mithril_chunk_size * moreores_mithril_chunk_size, + clust_num_ores = moreores_mithril_ore_per_chunk, + clust_size = moreores_mithril_chunk_size, + height_min = moreores_mithril_min_depth, + height_max = moreores_mithril_max_depth + }, + tools = { + pick = { + cracky={times={[1]=2.25, [2]=0.55, [3]=0.35}, uses=200, maxlevel=1} + }, + hoe = { + uses = 1000 + }, + shovel = { + crumbly={times={[1]=0.70, [2]=0.35, [3]=0.20}, uses=200, maxlevel=1} + }, + axe = { + choppy={times={[1]=1.75, [2]=0.45, [3]=0.45}, uses=200, maxlevel=1}, + fleshy={times={[2]=0.95, [3]=0.30}, uses=200, maxlevel=1} + }, + sword = { + fleshy={times={[2]=0.65, [3]=0.25}, uses=200, maxlevel=1}, + snappy={times={[2]=0.70, [3]=0.25}, uses=200, maxlevel=1}, + choppy={times={[3]=0.65}, uses=200, maxlevel=0} + } + }, + punchint = 0.45 + } +} + +for orename,def in pairs(oredefs) do + add_ore(modname, def.desc, orename, def) +end + +-- Copper rail (special node) + +minetest.register_craft({ + output = "moreores:copper_rail 16", + recipe = { + {"default:copper_ingot", "", "default:copper_ingot"}, + {"default:copper_ingot", "default:stick", "default:copper_ingot"}, + {"default:copper_ingot", "", "default:copper_ingot"} + } +}) + +-- Bronze has some special cases, because it is made from copper and tin + +minetest.register_craft( { + type = "shapeless", + output = "default:bronze_ingot 3", + recipe = { + "moreores:tin_ingot", + "default:copper_ingot", + "default:copper_ingot", + } +}) + +-- Unique node + +minetest.register_node("moreores:copper_rail", { + description = S("Copper Rail"), + drawtype = "raillike", + tiles = {"moreores_copper_rail.png", "moreores_copper_rail_curved.png", "moreores_copper_rail_t_junction.png", "moreores_copper_rail_crossing.png"}, + inventory_image = "moreores_copper_rail.png", + wield_image = "moreores_copper_rail.png", + paramtype = "light", + sunlight_propagates = true, + walkable = false, + selection_box = { + type = "fixed", + fixed = {-1/2, -1/2, -1/2, 1/2, -1/2+1/16, 1/2}, + }, + groups = {bendy=2,snappy=1,dig_immediate=2,rail=1,connect_to_raillike=1}, + mesecons = { + effector = { + action_on = function(pos, node) + minetest.get_meta(pos):set_string("cart_acceleration", "0.5") + end, + + action_off = function(pos, node) + minetest.get_meta(pos):set_string("cart_acceleration", "0") + end, + }, + }, +}) + +-- mg suppport +if minetest.get_modpath("mg") then + dofile(moreores_modpath.."/mg.lua") +end + +print(S("[moreores] loaded.")) diff --git a/mods/moreores/locale/es.txt b/mods/moreores/locale/es.txt new file mode 100644 index 0000000..1344a5a --- /dev/null +++ b/mods/moreores/locale/es.txt @@ -0,0 +1,21 @@ +# Translation by kaeza + +[moreores] loaded. = [moreores] cargado. + +%s Ore = Mineral de %s +%s Lump = Pepita de %s +%s Ingot = Lingote de %s +%s Block = Bloque de %s +%s Pickaxe = Pico de %s +%s Shovel = Pala de %s +%s Axe = Hacha de %s +%s Sword = Espada de %s + +Copper = cobre +Tin = estaño +Bronze = bronce +Silver = plata +Gold = oro +Mithril = mitrilo + +Copper Rail = Riel de Cobre diff --git a/mods/moreores/locale/fr.txt b/mods/moreores/locale/fr.txt new file mode 100644 index 0000000..65687fa --- /dev/null +++ b/mods/moreores/locale/fr.txt @@ -0,0 +1,21 @@ +# Translation by Calinou + +[moreores] loaded. = [moreores] a été chargé. + +%s Ore = Minerai en %s +%s Lump = Roche en %s +%s Ingot = Lingot en %s +%s Block = Bloc en %s +%s Pickaxe = Pioche en %s +%s Shovel = Pelle en %s +%s Axe = Hache en %s +%s Sword = Épée en %s + +Copper = cuivre +Tin = étain +Bronze = bronze +Silver = argent +Gold = or +Mithril = mithril + +Copper Rail = Rail en cuivre diff --git a/mods/moreores/locale/it.txt b/mods/moreores/locale/it.txt new file mode 100644 index 0000000..dcd8c52 --- /dev/null +++ b/mods/moreores/locale/it.txt @@ -0,0 +1,21 @@ +# Translation by Pagliaccio + +[moreores] loaded. = [moreores] caricato. + +%s Ore = Minerale di %s +%s Lump = %s grezzo +%s Ingot = Lingotto di %s +%s Block = Blocco di %s +%s Pickaxe = Piccone di %s +%s Shovel = Badile di %s +%s Axe = Ascia di %s +%s Sword = Spada di %s + +Copper = Rame +Tin = Stagno +Bronze = Bronzo +Silver = Argento +Gold = Oro +Mithril = Mithril + +Copper Rail = Binario di rame \ No newline at end of file diff --git a/mods/moreores/mg.lua b/mods/moreores/mg.lua new file mode 100644 index 0000000..c950a4b --- /dev/null +++ b/mods/moreores/mg.lua @@ -0,0 +1,46 @@ +mg.register_ore({ + name = "moreores:mineral_tin", + wherein = "default:stone", + seeddiff = 8, + maxvdistance = 10.5, + maxheight = 8, + seglenghtn = 15, + seglenghtdev = 6, + segincln = 0, + segincldev = 0.6, + turnangle = 57, + forkturnangle = 57, + numperblock = 2 +}) + +mg.register_ore({ + name = "moreores:mineral_silver", + wherein = "default:stone", + seeddiff = 9, + maxvdistance = 10.5, + maxheight = -2, + seglenghtn = 15, + seglenghtdev = 6, + sizen = 60, + sizedev = 30, + segincln = 0, + segincldev = 0.6, + turnangle = 57, + forkturnangle = 57, + numperblock = 2 +}) + +mg.register_ore({ + name = "moreores:mineral_mithril", + wherein = "default:stone", + seeddiff = 10, + maxvdistance = 10.5, + maxheight = -512, + seglenghtn = 2, + seglenghtdev = 4, + sizen = 12, + sizedev = 5, + segincln = 0, + segincldev = 0.6, + turnangle = 57, +}) diff --git a/mods/moreores/old_init.lua b/mods/moreores/old_init.lua new file mode 100644 index 0000000..03be6bc --- /dev/null +++ b/mods/moreores/old_init.lua @@ -0,0 +1,745 @@ +--[[ +**** +More Ores +by Calinou +Old and "inefficient" version; use if the new version does not work for some reason. Outdated. +Licensed under the zlib/libpng license, see LICENSE.txt for info. +**** +--]] + +-- Blocks + +minetest.register_node( "moreores:mineral_gold", { + description = "Gold Ore", + tile_images = { "default_stone.png^moreores_mineral_gold.png" }, + is_ground_content = true, + groups = {cracky=3}, + sounds = default.node_sound_stone_defaults(), + drop = 'craft "moreores:gold_lump" 1', +}) + +minetest.register_node( "moreores:gold_block", { + description = "Gold Block", + tile_images = { "moreores_gold_block.png" }, + is_ground_content = true, + groups = {snappy=1,bendy=2,cracky=1,melty=2,level=2}, + sounds = default.node_sound_stone_defaults(), +}) + +minetest.register_node( "moreores:mineral_silver", { + description = "Silver Ore", + tile_images = { "default_stone.png^moreores_mineral_silver.png" }, + is_ground_content = true, + groups = {cracky=3}, + sounds = default.node_sound_stone_defaults(), + drop = 'craft "moreores:silver_lump" 1', +}) + +minetest.register_node( "moreores:silver_block", { + description = "Silver Block", + tile_images = { "moreores_silver_block.png" }, + is_ground_content = true, + groups = {snappy=1,bendy=2,cracky=1,melty=2,level=2}, + sounds = default.node_sound_stone_defaults(), +}) + +minetest.register_node( "moreores:mineral_copper", { + description = "Copper Ore", + tile_images = { "default_stone.png^moreores_mineral_copper.png" }, + is_ground_content = true, + groups = {cracky=3}, + sounds = default.node_sound_stone_defaults(), + drop = 'craft "moreores:copper_lump" 1', +}) + +minetest.register_node( "moreores:mineral_tin", { + description = "Tin Ore", + tile_images = { "default_stone.png^moreores_mineral_tin.png" }, + is_ground_content = true, + groups = {cracky=3}, + sounds = default.node_sound_stone_defaults(), + drop = 'craft "moreores:tin_lump" 1', +}) + +minetest.register_node( "moreores:bronze_block", { + description = "Bronze Block", + tile_images = { "moreores_bronze_block.png" }, + is_ground_content = true, + groups = {snappy=1,bendy=2,cracky=1,melty=2,level=2}, + sounds = default.node_sound_stone_defaults(), +}) + +minetest.register_node( "moreores:mineral_mithril", { + description = "Mithril Ore", + tile_images = { "default_stone.png^moreores_mineral_mithril.png" }, + is_ground_content = true, + groups = {cracky=3}, + sounds = default.node_sound_stone_defaults(), + drop = 'craft "moreores:mithril_lump" 1', +}) + +minetest.register_node( "moreores:mithril_block", { + description = "Mithril Block", + tile_images = { "moreores_mithril_block.png" }, + is_ground_content = true, + groups = {snappy=1,bendy=2,cracky=1,melty=2,level=2}, + sounds = default.node_sound_stone_defaults(), +}) + +minetest.register_node("moreores:copper_rail", { + description = "Copper Rail", + drawtype = "raillike", + tile_images = {"moreores_copper_rail.png", "moreores_copper_rail_curved.png", "moreores_copper_rail_t_junction.png", "moreores_copper_rail_crossing.png"}, + inventory_image = "moreores_copper_rail.png", + wield_image = "moreores_copper_rail.png", + paramtype = "light", + is_ground_content = true, + walkable = false, + selection_box = { + type = "fixed", + --fixed = + }, + groups = {bendy=2,snappy=1,dig_immediate=2}, +}) + +-- Items + +minetest.register_craftitem( "moreores:gold_lump", { + description = "Gold Lump", + inventory_image = "moreores_gold_lump.png", + on_place_on_ground = minetest.craftitem_place_item, +}) + +minetest.register_craftitem( "moreores:gold_ingot", { + description = "Gold Ingot", + inventory_image = "moreores_gold_ingot.png", + on_place_on_ground = minetest.craftitem_place_item, +}) + +minetest.register_craftitem( "moreores:silver_lump", { + description = "Silver Lump", + inventory_image = "moreores_silver_lump.png", + on_place_on_ground = minetest.craftitem_place_item, +}) + +minetest.register_craftitem( "moreores:silver_ingot", { + description = "Silver Ingot", + inventory_image = "moreores_silver_ingot.png", + on_place_on_ground = minetest.craftitem_place_item, +}) + +minetest.register_craftitem( "moreores:copper_lump", { + description = "Copper Lump", + inventory_image = "moreores_copper_lump.png", + on_place_on_ground = minetest.craftitem_place_item, +}) + +minetest.register_craftitem( "moreores:copper_ingot", { + description = "Copper Ingot", + inventory_image = "moreores_copper_ingot.png", + on_place_on_ground = minetest.craftitem_place_item, +}) + +minetest.register_craftitem( "moreores:tin_lump", { + description = "Tin Lump", + inventory_image = "moreores_tin_lump.png", + on_place_on_ground = minetest.craftitem_place_item, +}) + +minetest.register_craftitem( "moreores:tin_ingot", { + description = "Tin Ingot", + inventory_image = "moreores_tin_ingot.png", + on_place_on_ground = minetest.craftitem_place_item, +}) + +minetest.register_craftitem( "moreores:bronze_ingot", { + description = "Bronze Ingot", + inventory_image = "moreores_bronze_ingot.png", + on_place_on_ground = minetest.craftitem_place_item, +}) + +minetest.register_craftitem( "moreores:mithril_lump", { + description = "Mithril Lump", + inventory_image = "moreores_mithril_lump.png", + on_place_on_ground = minetest.craftitem_place_item, + on_use = minetest.item_eat(2), +}) + +minetest.register_craftitem( "moreores:mithril_ingot", { + description = "Mithril Ingot", + inventory_image = "moreores_mithril_ingot.png", + on_place_on_ground = minetest.craftitem_place_item, +}) + +-- Tools + +minetest.register_tool("moreores:pick_bronze", { + description = "Bronze Pickaxe", + inventory_image = "moreores_tool_bronzepick.png", + tool_capabilities = { + max_drop_level=3, + groupcaps={ + cracky={times={[1]=3.00, [2]=1.20, [3]=0.80}, uses=160, maxlevel=1} + } + }, +}) + +minetest.register_tool("moreores:shovel_bronze", { + description = "Bronze Shovel", + inventory_image = "moreores_tool_bronzeshovel.png", + tool_capabilities = { + max_drop_level=3, + groupcaps={ + crumbly={times={[1]=1.50, [2]=0.50, [3]=0.30}, uses=160, maxlevel=1} + } + }, +}) + +minetest.register_tool("moreores:axe_bronze", { + description = "Bronze Axe", + inventory_image = "moreores_tool_bronzeaxe.png", + tool_capabilities = { + max_drop_level=3, + groupcaps={ + choppy={times={[1]=3.00, [2]=1.00, [3]=0.60}, uses=160, maxlevel=1}, + fleshy={times={[2]=1.30, [3]=0.70}, uses=160, maxlevel=1} + } + }, +}) + +minetest.register_tool("moreores:sword_bronze", { + description = "Bronze Sword", + inventory_image = "moreores_tool_bronzesword.png", + tool_capabilities = { + full_punch_interval = 1.0, + max_drop_level=3, + groupcaps={ + fleshy={times={[2]=0.80, [3]=0.40}, uses=160, maxlevel=1}, + snappy={times={[2]=0.80, [3]=0.40}, uses=160, maxlevel=1}, + choppy={times={[3]=0.90}, uses=160, maxlevel=0} + } + } +}) + +minetest.register_tool("moreores:pick_silver", { + description = "Silver Pickaxe", + inventory_image = "moreores_tool_silverpick.png", + tool_capabilities = { + max_drop_level=3, + groupcaps={ + cracky={times={[1]=2.60, [2]=1.00, [3]=0.60}, uses=100, maxlevel=1} + } + }, +}) + +minetest.register_tool("moreores:shovel_silver", { + description = "Silver Shovel", + inventory_image = "moreores_tool_silvershovel.png", + tool_capabilities = { + max_drop_level=3, + groupcaps={ + crumbly={times={[1]=1.10, [2]=0.40, [3]=0.25}, uses=100, maxlevel=1} + } + }, +}) + +minetest.register_tool("moreores:axe_silver", { + description = "Silver Axe", + inventory_image = "moreores_tool_silveraxe.png", + tool_capabilities = { + max_drop_level=3, + groupcaps={ + choppy={times={[1]=2.50, [2]=0.80, [3]=0.50}, uses=100, maxlevel=1}, + fleshy={times={[2]=1.10, [3]=0.60}, uses=100, maxlevel=1} + } + }, +}) + +minetest.register_tool("moreores:sword_silver", { + description = "Silver Sword", + inventory_image = "moreores_tool_silversword.png", + tool_capabilities = { + full_punch_interval = 1.0, + max_drop_level=3, + groupcaps={ + fleshy={times={[2]=0.70, [3]=0.30}, uses=100, maxlevel=1}, + snappy={times={[2]=0.70, [3]=0.30}, uses=100, maxlevel=1}, + choppy={times={[3]=0.80}, uses=100, maxlevel=0} + } + } +}) + +minetest.register_tool("moreores:pick_gold", { + description = "Golden Pickaxe", + inventory_image = "moreores_tool_goldpick.png", + tool_capabilities = { + max_drop_level=3, + groupcaps={ + cracky={times={[1]=2.00, [2]=0.50, [3]=0.30}, uses=70, maxlevel=1} + } + }, +}) + +minetest.register_tool("moreores:shovel_gold", { + description = "Golden Shovel", + inventory_image = "moreores_tool_goldshovel.png", + tool_capabilities = { + max_drop_level=3, + groupcaps={ + crumbly={times={[1]=0.60, [2]=0.25, [3]=0.15}, uses=70, maxlevel=1} + } + }, +}) + +minetest.register_tool("moreores:axe_gold", { + description = "Golden Axe", + inventory_image = "moreores_tool_goldaxe.png", + tool_capabilities = { + max_drop_level=3, + groupcaps={ + choppy={times={[1]=1.70, [2]=0.40, [3]=0.35}, uses=70, maxlevel=1}, + fleshy={times={[2]=0.90, [3]=0.30}, uses=70, maxlevel=1} + } + }, +}) + +minetest.register_tool("moreores:sword_gold", { + description = "Golden Sword", + inventory_image = "moreores_tool_goldsword.png", + tool_capabilities = { + full_punch_interval = 0.85, + max_drop_level=3, + groupcaps={ + fleshy={times={[2]=0.60, [3]=0.20}, uses=70, maxlevel=1}, + snappy={times={[2]=0.60, [3]=0.20}, uses=70, maxlevel=1}, + choppy={times={[3]=0.65}, uses=70, maxlevel=0} + } + } +}) + +minetest.register_tool("moreores:pick_mithril", { + description = "Mithril Pickaxe", + inventory_image = "moreores_tool_mithrilpick.png", + tool_capabilities = { + max_drop_level=3, + groupcaps={ + cracky={times={[1]=2.25, [2]=0.55, [3]=0.35}, uses=200, maxlevel=1} + } + }, +}) + +minetest.register_tool("moreores:shovel_mithril", { + description = "Mithril Shovel", + inventory_image = "moreores_tool_mithrilshovel.png", + tool_capabilities = { + max_drop_level=3, + groupcaps={ + crumbly={times={[1]=0.70, [2]=0.35, [3]=0.20}, uses=200, maxlevel=1} + } + }, +}) + +minetest.register_tool("moreores:axe_mithril", { + description = "Mithril Axe", + inventory_image = "moreores_tool_mithrilaxe.png", + tool_capabilities = { + max_drop_level=3, + groupcaps={ + choppy={times={[1]=1.75, [2]=0.45, [3]=0.45}, uses=200, maxlevel=1}, + fleshy={times={[2]=0.95, [3]=0.30}, uses=200, maxlevel=1} + } + }, +}) + +minetest.register_tool("moreores:sword_mithril", { + description = "Mithril Sword", + inventory_image = "moreores_tool_mithrilsword.png", + tool_capabilities = { + full_punch_interval = 0.45, + max_drop_level=3, + groupcaps={ + fleshy={times={[2]=0.65, [3]=0.25}, uses=200, maxlevel=1}, + snappy={times={[2]=0.70, [3]=0.25}, uses=200, maxlevel=1}, + choppy={times={[3]=0.65}, uses=200, maxlevel=0} + } + } +}) + +-- Crafting + +minetest.register_craft({ + output = 'moreores:copper_rail 15', + recipe = { + {'moreores:copper_ingot', '', 'moreores:copper_ingot'}, + {'moreores:copper_ingot', 'default:stick', 'moreores:copper_ingot'}, + {'moreores:copper_ingot', '', 'moreores:copper_ingot'}, + } +}) + +minetest.register_craft( { + output = 'craft "moreores:pick_bronze" 1', + recipe = { + { 'craft "moreores:bronze_ingot"', 'craft "moreores:bronze_ingot"', 'craft "moreores:bronze_ingot"' }, + { '', 'craft "Stick"', '' }, + { '', 'craft "Stick"', '' }, + } +}) + +minetest.register_craft( { + output = 'craft "moreores:shovel_bronze" 1', + recipe = { + { '', 'craft "moreores:bronze_ingot"', '' }, + { '', 'craft "Stick"', '' }, + { '', 'craft "Stick"', '' }, + } +}) + +minetest.register_craft( { + output = 'craft "moreores:axe_bronze" 1', + recipe = { + { 'craft "moreores:bronze_ingot"', 'craft "moreores:bronze_ingot"', '' }, + { 'craft "moreores:bronze_ingot"', 'craft "Stick"', '' }, + { '', 'craft "Stick"', '' }, + } +}) + +minetest.register_craft( { + output = 'craft "moreores:sword_bronze" 1', + recipe = { + { '', 'craft "moreores:bronze_ingot"', '' }, + { '', 'craft "moreores:bronze_ingot"', '' }, + { '', 'craft "Stick"', '' }, + } +}) + +minetest.register_craft( { + output = 'craft "moreores:pick_silver" 1', + recipe = { + { 'craft "moreores:silver_ingot"', 'craft "moreores:silver_ingot"', 'craft "moreores:silver_ingot"' }, + { '', 'craft "Stick"', '' }, + { '', 'craft "Stick"', '' }, + } +}) + +minetest.register_craft( { + output = 'craft "moreores:shovel_silver" 1', + recipe = { + { '', 'craft "moreores:silver_ingot"', '' }, + { '', 'craft "Stick"', '' }, + { '', 'craft "Stick"', '' }, + } +}) + +minetest.register_craft( { + output = 'craft "moreores:axe_silver" 1', + recipe = { + { 'craft "moreores:silver_ingot"', 'craft "moreores:silver_ingot"', '' }, + { 'craft "moreores:silver_ingot"', 'craft "Stick"', '' }, + { '', 'craft "Stick"', '' }, + } +}) + +minetest.register_craft( { + output = 'craft "moreores:sword_silver" 1', + recipe = { + { '', 'craft "moreores:silver_ingot"', '' }, + { '', 'craft "moreores:silver_ingot"', '' }, + { '', 'craft "Stick"', '' }, + } +}) + +minetest.register_craft( { + output = 'craft "moreores:pick_gold" 1', + recipe = { + { 'craft "moreores:gold_ingot"', 'craft "moreores:gold_ingot"', 'craft "moreores:gold_ingot"' }, + { '', 'craft "Stick"', '' }, + { '', 'craft "Stick"', '' }, + } +}) + +minetest.register_craft( { + output = 'craft "moreores:shovel_gold" 1', + recipe = { + { '', 'craft "moreores:gold_ingot"', '' }, + { '', 'craft "Stick"', '' }, + { '', 'craft "Stick"', '' }, + } +}) + +minetest.register_craft( { + output = 'craft "moreores:axe_gold" 1', + recipe = { + { 'craft "moreores:gold_ingot"', 'craft "moreores:gold_ingot"', '' }, + { 'craft "moreores:gold_ingot"', 'craft "Stick"', '' }, + { '', 'craft "Stick"', '' }, + } +}) + +minetest.register_craft( { + output = 'craft "moreores:sword_gold" 1', + recipe = { + { '', 'craft "moreores:gold_ingot"', '' }, + { '', 'craft "moreores:gold_ingot"', '' }, + { '', 'craft "Stick"', '' }, + } +}) + +minetest.register_craft( { + output = 'craft "moreores:pick_mithril" 1', + recipe = { + { 'craft "moreores:mithril_ingot"', 'craft "moreores:mithril_ingot"', 'craft "moreores:mithril_ingot"' }, + { '', 'craft "Stick"', '' }, + { '', 'craft "Stick"', '' }, + } +}) + +minetest.register_craft( { + output = 'craft "moreores:shovel_mithril" 1', + recipe = { + { '', 'craft "moreores:mithril_ingot"', '' }, + { '', 'craft "Stick"', '' }, + { '', 'craft "Stick"', '' }, + } +}) + +minetest.register_craft( { + output = 'craft "moreores:axe_mithril" 1', + recipe = { + { 'craft "moreores:mithril_ingot"', 'craft "moreores:mithril_ingot"', '' }, + { 'craft "moreores:mithril_ingot"', 'craft "Stick"', '' }, + { '', 'craft "Stick"', '' }, + } +}) + +minetest.register_craft( { + output = 'craft "moreores:sword_mithril" 1', + recipe = { + { '', 'craft "moreores:mithril_ingot"', '' }, + { '', 'craft "moreores:mithril_ingot"', '' }, + { '', 'craft "Stick"', '' }, + } +}) + +minetest.register_craft( { + output = 'craft "moreores:bronze_ingot"', + recipe = { + { 'craft "moreores:tin_ingot"'}, + { 'craft "moreores:copper_ingot"'}, + } +}) + +minetest.register_craft( { + output = 'craft "moreores:bronze_ingot"', + recipe = { + { 'craft "moreores:copper_ingot"'}, + { 'craft "moreores:tin_ingot"'}, + } +}) + +minetest.register_craft( { + output = 'node "moreores:gold_block" 1', + recipe = { + { 'craft "moreores:gold_ingot"', 'craft "moreores:gold_ingot"', 'craft "moreores:gold_ingot"' }, + { 'craft "moreores:gold_ingot"', 'craft "moreores:gold_ingot"', 'craft "moreores:gold_ingot"' }, + { 'craft "moreores:gold_ingot"', 'craft "moreores:gold_ingot"', 'craft "moreores:gold_ingot"' }, + } +}) + +minetest.register_craft( { + output = 'craft "moreores:gold_ingot" 9', + recipe = { + { 'node "moreores:gold_block"' }, + } +}) + +minetest.register_craft( { + output = 'node "moreores:silver_block" 1', + recipe = { + { 'craft "moreores:silver_ingot"', 'craft "moreores:silver_ingot"', 'craft "moreores:silver_ingot"' }, + { 'craft "moreores:silver_ingot"', 'craft "moreores:silver_ingot"', 'craft "moreores:silver_ingot"' }, + { 'craft "moreores:silver_ingot"', 'craft "moreores:silver_ingot"', 'craft "moreores:silver_ingot"' }, + } +}) + +minetest.register_craft( { + output = 'craft "moreores:silver_ingot" 9', + recipe = { + { 'node "moreores:silver_block"' }, + } +}) + +minetest.register_craft( { + output = 'node "moreores:bronze_block" 1', + recipe = { + { 'craft "moreores:bronze_ingot"', 'craft "moreores:bronze_ingot"', 'craft "moreores:bronze_ingot"' }, + { 'craft "moreores:bronze_ingot"', 'craft "moreores:bronze_ingot"', 'craft "moreores:bronze_ingot"' }, + { 'craft "moreores:bronze_ingot"', 'craft "moreores:bronze_ingot"', 'craft "moreores:bronze_ingot"' }, + } +}) + +minetest.register_craft( { + output = 'craft "moreores:bronze_ingot" 9', + recipe = { + { 'node "moreores:bronze_block"' }, + } +}) + +minetest.register_craft( { + output = 'node "moreores:mithril_block" 1', + recipe = { + { 'craft "moreores:mithril_ingot"', 'craft "moreores:mithril_ingot"', 'craft "moreores:mithril_ingot"' }, + { 'craft "moreores:mithril_ingot"', 'craft "moreores:mithril_ingot"', 'craft "moreores:mithril_ingot"' }, + { 'craft "moreores:mithril_ingot"', 'craft "moreores:mithril_ingot"', 'craft "moreores:mithril_ingot"' }, + } +}) + +minetest.register_craft( { + output = 'craft "moreores:mithril_ingot" 9', + recipe = { + { 'node "moreores:mithril_block"' }, + } +}) + +-- Smelting + +minetest.register_craft({ + type = "cooking", + output = "moreores:gold_ingot", + recipe = "moreores:gold_lump", +}) + +minetest.register_craft({ + type = "cooking", + output = "moreores:silver_ingot", + recipe = "moreores:silver_lump", +}) + +minetest.register_craft({ + type = "cooking", + output = "moreores:tin_ingot", + recipe = "moreores:tin_lump", +}) + +minetest.register_craft({ + type = "cooking", + output = "moreores:copper_ingot", + recipe = "moreores:copper_lump", +}) + +minetest.register_craft({ + type = "cooking", + output = "moreores:mithril_ingot", + recipe = "moreores:mithril_lump", +}) + +minetest.register_craft( { + output = 'node "default:chest_locked" 1', + recipe = { + { 'craft "moreores:bronze_ingot"' }, + { 'node "default:chest"' }, + } +}) + +minetest.register_craft( { + output = 'node "default:chest_locked" 1', + recipe = { + { 'craft "moreores:silver_ingot"' }, + { 'node "default:chest"' }, + } +}) + +minetest.register_craft( { + output = 'node "default:chest_locked" 1', + recipe = { + { 'craft "moreores:gold_ingot"' }, + { 'node "default:chest"' }, + } +}) + +minetest.register_craft( { + output = 'node "default:chest_locked" 1', + recipe = { + { 'node "default:wood"', 'node "default:wood"', 'node "default:wood"' }, + { 'node "default:wood"', 'craft "moreores:bronze_ingot"', 'node "default:wood"' }, + { 'node "default:wood"', 'node "default:wood"', 'node "default:wood"' }, + } +}) + +minetest.register_craft( { + output = 'node "default:chest_locked" 1', + recipe = { + { 'node "default:wood"', 'node "default:wood"', 'node "default:wood"' }, + { 'node "default:wood"', 'craft "moreores:bronze_ingot"', 'node "default:wood"' }, + { 'node "default:wood"', 'node "default:wood"', 'node "default:wood"' }, + } +}) + +minetest.register_craft( { + output = 'node "default:chest_locked" 1', + recipe = { + { 'node "default:wood"', 'node "default:wood"', 'node "default:wood"' }, + { 'node "default:wood"', 'craft "moreores:silver_ingot"', 'node "default:wood"' }, + { 'node "default:wood"', 'node "default:wood"', 'node "default:wood"' }, + } +}) + +minetest.register_craft( { + output = 'node "default:chest_locked" 1', + recipe = { + { 'node "default:wood"', 'node "default:wood"', 'node "default:wood"' }, + { 'node "default:wood"', 'craft "moreores:gold_ingot"', 'node "default:wood"' }, + { 'node "default:wood"', 'node "default:wood"', 'node "default:wood"' }, + } +}) + +-- Ore generation + +local function generate_ore(name, wherein, minp, maxp, seed, chunks_per_volume, ore_per_chunk, height_min, height_max) + if maxp.y < height_min or minp.y > height_max then + return + end + local y_min = math.max(minp.y, height_min) + local y_max = math.min(maxp.y, height_max) + local volume = (maxp.x-minp.x+1)*(y_max-y_min+1)*(maxp.z-minp.z+1) + local pr = PseudoRandom(seed) + local num_chunks = math.floor(chunks_per_volume * volume) + local chunk_size = 3 + if ore_per_chunk <= 4 then + chunk_size = 2 + end + local inverse_chance = math.floor(chunk_size*chunk_size*chunk_size / ore_per_chunk) + --print("generate_ore num_chunks: "..dump(num_chunks)) + for i=1,num_chunks do + if (y_max-chunk_size+1 <= y_min) then return end + local y0 = pr:next(y_min, y_max-chunk_size+1) + if y0 >= height_min and y0 <= height_max then + local x0 = pr:next(minp.x, maxp.x-chunk_size+1) + local z0 = pr:next(minp.z, maxp.z-chunk_size+1) + local p0 = {x=x0, y=y0, z=z0} + for x1=0,chunk_size-1 do + for y1=0,chunk_size-1 do + for z1=0,chunk_size-1 do + if pr:next(1,inverse_chance) == 1 then + local x2 = x0+x1 + local y2 = y0+y1 + local z2 = z0+z1 + local p2 = {x=x2, y=y2, z=z2} + if minetest.env:get_node(p2).name == wherein then + minetest.env:set_node(p2, {name=name}) + end + end + end + end + end + end + end + --print("generate_ore done") +end + +minetest.register_on_generated(function(minp, maxp, seed) +generate_ore("moreores:mineral_copper", "default:stone", minp, maxp, seed+16, 1/11/11/11, 8, -31000, 64) +generate_ore("moreores:mineral_tin", "default:stone", minp, maxp, seed+17, 1/8/8/8, 2, -31000, 8) +generate_ore("moreores:mineral_silver", "default:stone", minp, maxp, seed+18, 1/10/10/10, 5, -31000, 2) +generate_ore("moreores:mineral_gold", "default:stone", minp, maxp, seed+19, 1/12/12/12, 5, -31000, -64) +generate_ore("moreores:mineral_mithril", "default:stone", minp, maxp, seed+20, 1/6/6/6, 1, -31000, -512) +end) \ No newline at end of file diff --git a/mods/moreores/textures/moreores_bronze_block.png b/mods/moreores/textures/moreores_bronze_block.png new file mode 100644 index 0000000..de6a34a Binary files /dev/null and b/mods/moreores/textures/moreores_bronze_block.png differ diff --git a/mods/moreores/textures/moreores_bronze_ingot.png b/mods/moreores/textures/moreores_bronze_ingot.png new file mode 100644 index 0000000..a7a7382 Binary files /dev/null and b/mods/moreores/textures/moreores_bronze_ingot.png differ diff --git a/mods/moreores/textures/moreores_copper_block.png b/mods/moreores/textures/moreores_copper_block.png new file mode 100644 index 0000000..c8cdeea Binary files /dev/null and b/mods/moreores/textures/moreores_copper_block.png differ diff --git a/mods/moreores/textures/moreores_copper_ingot.png b/mods/moreores/textures/moreores_copper_ingot.png new file mode 100644 index 0000000..0c8ba11 Binary files /dev/null and b/mods/moreores/textures/moreores_copper_ingot.png differ diff --git a/mods/moreores/textures/moreores_copper_lump.png b/mods/moreores/textures/moreores_copper_lump.png new file mode 100644 index 0000000..de03dcd Binary files /dev/null and b/mods/moreores/textures/moreores_copper_lump.png differ diff --git a/mods/moreores/textures/moreores_copper_rail.png b/mods/moreores/textures/moreores_copper_rail.png new file mode 100644 index 0000000..0a0b56f Binary files /dev/null and b/mods/moreores/textures/moreores_copper_rail.png differ diff --git a/mods/moreores/textures/moreores_copper_rail_crossing.png b/mods/moreores/textures/moreores_copper_rail_crossing.png new file mode 100644 index 0000000..b23058c Binary files /dev/null and b/mods/moreores/textures/moreores_copper_rail_crossing.png differ diff --git a/mods/moreores/textures/moreores_copper_rail_curved.png b/mods/moreores/textures/moreores_copper_rail_curved.png new file mode 100644 index 0000000..3bd4682 Binary files /dev/null and b/mods/moreores/textures/moreores_copper_rail_curved.png differ diff --git a/mods/moreores/textures/moreores_copper_rail_t_junction.png b/mods/moreores/textures/moreores_copper_rail_t_junction.png new file mode 100644 index 0000000..c8ecd91 Binary files /dev/null and b/mods/moreores/textures/moreores_copper_rail_t_junction.png differ diff --git a/mods/moreores/textures/moreores_gold_block.png b/mods/moreores/textures/moreores_gold_block.png new file mode 100644 index 0000000..84dec28 Binary files /dev/null and b/mods/moreores/textures/moreores_gold_block.png differ diff --git a/mods/moreores/textures/moreores_gold_ingot.png b/mods/moreores/textures/moreores_gold_ingot.png new file mode 100644 index 0000000..fa1de15 Binary files /dev/null and b/mods/moreores/textures/moreores_gold_ingot.png differ diff --git a/mods/moreores/textures/moreores_gold_lump.png b/mods/moreores/textures/moreores_gold_lump.png new file mode 100644 index 0000000..432ba8b Binary files /dev/null and b/mods/moreores/textures/moreores_gold_lump.png differ diff --git a/mods/moreores/textures/moreores_mineral_copper.png b/mods/moreores/textures/moreores_mineral_copper.png new file mode 100644 index 0000000..43cdb11 Binary files /dev/null and b/mods/moreores/textures/moreores_mineral_copper.png differ diff --git a/mods/moreores/textures/moreores_mineral_gold.png b/mods/moreores/textures/moreores_mineral_gold.png new file mode 100644 index 0000000..e110b43 Binary files /dev/null and b/mods/moreores/textures/moreores_mineral_gold.png differ diff --git a/mods/moreores/textures/moreores_mineral_mithril.png b/mods/moreores/textures/moreores_mineral_mithril.png new file mode 100644 index 0000000..dcc3822 Binary files /dev/null and b/mods/moreores/textures/moreores_mineral_mithril.png differ diff --git a/mods/moreores/textures/moreores_mineral_silver.png b/mods/moreores/textures/moreores_mineral_silver.png new file mode 100644 index 0000000..a81e73f Binary files /dev/null and b/mods/moreores/textures/moreores_mineral_silver.png differ diff --git a/mods/moreores/textures/moreores_mineral_tin.png b/mods/moreores/textures/moreores_mineral_tin.png new file mode 100644 index 0000000..591920c Binary files /dev/null and b/mods/moreores/textures/moreores_mineral_tin.png differ diff --git a/mods/moreores/textures/moreores_mithril_block.png b/mods/moreores/textures/moreores_mithril_block.png new file mode 100644 index 0000000..295af91 Binary files /dev/null and b/mods/moreores/textures/moreores_mithril_block.png differ diff --git a/mods/moreores/textures/moreores_mithril_ingot.png b/mods/moreores/textures/moreores_mithril_ingot.png new file mode 100644 index 0000000..9f0e1ba Binary files /dev/null and b/mods/moreores/textures/moreores_mithril_ingot.png differ diff --git a/mods/moreores/textures/moreores_mithril_lump.png b/mods/moreores/textures/moreores_mithril_lump.png new file mode 100644 index 0000000..9b527b4 Binary files /dev/null and b/mods/moreores/textures/moreores_mithril_lump.png differ diff --git a/mods/moreores/textures/moreores_silver_block.png b/mods/moreores/textures/moreores_silver_block.png new file mode 100644 index 0000000..e0ad5df Binary files /dev/null and b/mods/moreores/textures/moreores_silver_block.png differ diff --git a/mods/moreores/textures/moreores_silver_ingot.png b/mods/moreores/textures/moreores_silver_ingot.png new file mode 100644 index 0000000..d07fdaa Binary files /dev/null and b/mods/moreores/textures/moreores_silver_ingot.png differ diff --git a/mods/moreores/textures/moreores_silver_lump.png b/mods/moreores/textures/moreores_silver_lump.png new file mode 100644 index 0000000..5093d9f Binary files /dev/null and b/mods/moreores/textures/moreores_silver_lump.png differ diff --git a/mods/moreores/textures/moreores_tin_block.png b/mods/moreores/textures/moreores_tin_block.png new file mode 100644 index 0000000..e28c371 Binary files /dev/null and b/mods/moreores/textures/moreores_tin_block.png differ diff --git a/mods/moreores/textures/moreores_tin_ingot.png b/mods/moreores/textures/moreores_tin_ingot.png new file mode 100644 index 0000000..b56279f Binary files /dev/null and b/mods/moreores/textures/moreores_tin_ingot.png differ diff --git a/mods/moreores/textures/moreores_tin_lump.png b/mods/moreores/textures/moreores_tin_lump.png new file mode 100644 index 0000000..0d815aa Binary files /dev/null and b/mods/moreores/textures/moreores_tin_lump.png differ diff --git a/mods/moreores/textures/moreores_tool_bronzeaxe.png b/mods/moreores/textures/moreores_tool_bronzeaxe.png new file mode 100644 index 0000000..b6a4175 Binary files /dev/null and b/mods/moreores/textures/moreores_tool_bronzeaxe.png differ diff --git a/mods/moreores/textures/moreores_tool_bronzepick.png b/mods/moreores/textures/moreores_tool_bronzepick.png new file mode 100644 index 0000000..71aa983 Binary files /dev/null and b/mods/moreores/textures/moreores_tool_bronzepick.png differ diff --git a/mods/moreores/textures/moreores_tool_bronzeshovel.png b/mods/moreores/textures/moreores_tool_bronzeshovel.png new file mode 100644 index 0000000..8e71203 Binary files /dev/null and b/mods/moreores/textures/moreores_tool_bronzeshovel.png differ diff --git a/mods/moreores/textures/moreores_tool_bronzesword.png b/mods/moreores/textures/moreores_tool_bronzesword.png new file mode 100644 index 0000000..366b648 Binary files /dev/null and b/mods/moreores/textures/moreores_tool_bronzesword.png differ diff --git a/mods/moreores/textures/moreores_tool_goldaxe.png b/mods/moreores/textures/moreores_tool_goldaxe.png new file mode 100644 index 0000000..41d4896 Binary files /dev/null and b/mods/moreores/textures/moreores_tool_goldaxe.png differ diff --git a/mods/moreores/textures/moreores_tool_goldpick.png b/mods/moreores/textures/moreores_tool_goldpick.png new file mode 100644 index 0000000..1a65e8e Binary files /dev/null and b/mods/moreores/textures/moreores_tool_goldpick.png differ diff --git a/mods/moreores/textures/moreores_tool_goldshovel.png b/mods/moreores/textures/moreores_tool_goldshovel.png new file mode 100644 index 0000000..fc72a1e Binary files /dev/null and b/mods/moreores/textures/moreores_tool_goldshovel.png differ diff --git a/mods/moreores/textures/moreores_tool_goldsword.png b/mods/moreores/textures/moreores_tool_goldsword.png new file mode 100644 index 0000000..db26f47 Binary files /dev/null and b/mods/moreores/textures/moreores_tool_goldsword.png differ diff --git a/mods/moreores/textures/moreores_tool_mithrilaxe.png b/mods/moreores/textures/moreores_tool_mithrilaxe.png new file mode 100644 index 0000000..68ba36e Binary files /dev/null and b/mods/moreores/textures/moreores_tool_mithrilaxe.png differ diff --git a/mods/moreores/textures/moreores_tool_mithrilhoe.png b/mods/moreores/textures/moreores_tool_mithrilhoe.png new file mode 100644 index 0000000..6977042 Binary files /dev/null and b/mods/moreores/textures/moreores_tool_mithrilhoe.png differ diff --git a/mods/moreores/textures/moreores_tool_mithrilpick.png b/mods/moreores/textures/moreores_tool_mithrilpick.png new file mode 100644 index 0000000..6efb469 Binary files /dev/null and b/mods/moreores/textures/moreores_tool_mithrilpick.png differ diff --git a/mods/moreores/textures/moreores_tool_mithrilshovel.png b/mods/moreores/textures/moreores_tool_mithrilshovel.png new file mode 100644 index 0000000..66916da Binary files /dev/null and b/mods/moreores/textures/moreores_tool_mithrilshovel.png differ diff --git a/mods/moreores/textures/moreores_tool_mithrilsword.png b/mods/moreores/textures/moreores_tool_mithrilsword.png new file mode 100644 index 0000000..b9396d9 Binary files /dev/null and b/mods/moreores/textures/moreores_tool_mithrilsword.png differ diff --git a/mods/moreores/textures/moreores_tool_silveraxe.png b/mods/moreores/textures/moreores_tool_silveraxe.png new file mode 100644 index 0000000..e49fc75 Binary files /dev/null and b/mods/moreores/textures/moreores_tool_silveraxe.png differ diff --git a/mods/moreores/textures/moreores_tool_silverhoe.png b/mods/moreores/textures/moreores_tool_silverhoe.png new file mode 100644 index 0000000..992c91d Binary files /dev/null and b/mods/moreores/textures/moreores_tool_silverhoe.png differ diff --git a/mods/moreores/textures/moreores_tool_silverpick.png b/mods/moreores/textures/moreores_tool_silverpick.png new file mode 100644 index 0000000..d58e783 Binary files /dev/null and b/mods/moreores/textures/moreores_tool_silverpick.png differ diff --git a/mods/moreores/textures/moreores_tool_silvershovel.png b/mods/moreores/textures/moreores_tool_silvershovel.png new file mode 100644 index 0000000..614c0a9 Binary files /dev/null and b/mods/moreores/textures/moreores_tool_silvershovel.png differ diff --git a/mods/moreores/textures/moreores_tool_silversword.png b/mods/moreores/textures/moreores_tool_silversword.png new file mode 100644 index 0000000..5344f46 Binary files /dev/null and b/mods/moreores/textures/moreores_tool_silversword.png differ diff --git a/mods/pipeworks/.gitignore b/mods/pipeworks/.gitignore new file mode 100644 index 0000000..b25c15b --- /dev/null +++ b/mods/pipeworks/.gitignore @@ -0,0 +1 @@ +*~ diff --git a/mods/pipeworks/LICENSE b/mods/pipeworks/LICENSE new file mode 100644 index 0000000..eb930e9 --- /dev/null +++ b/mods/pipeworks/LICENSE @@ -0,0 +1,17 @@ + DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + Version 2, December 2004 + + Copyright (C) 2004 Sam Hocevar + + Everyone is permitted to copy and distribute verbatim or modified + copies of this license document, and changing it is allowed as long + as the name is changed. + + DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. You just DO WHAT THE FUCK YOU WANT TO. + +---------- + +This license is commonly known as "WTFPL". diff --git a/mods/pipeworks/README b/mods/pipeworks/README new file mode 100644 index 0000000..b9c68f9 --- /dev/null +++ b/mods/pipeworks/README @@ -0,0 +1,22 @@ +This mod uses nodeboxes to supply a complete set of 3D pipes and tubes, +along devices that work with them. + +See http://vanessae.github.io/pipeworks/ for detailed information about usage of this mod. + +Unlike the previous version of this mod, these pipes are rounded, and when +placed, they'll automatically join together as needed. Pipes can go vertically +or horizontally, and there are enough nodes defined to allow for all possible +connections. Valves and pumps can only be placed horizontally, and will +automatically rotate and join with neighboring pipes as objects are added, as +well as joining with each other under certain circumstances. + +Pipes come in two variants: one type bears one or more dark windows on each +pipe, suggesting they're empty, while the other type bears green-tinted +windows, as if full (the two colors should also be easy to select if you want +to change them in a paint program). These windows only appear on straight +lengths and on certain junctions. + +This mod is a work in progress. + +Please note that owing to the nature of this mod, I have opted to use 64px +textures. Anything less just looks terrible. diff --git a/mods/pipeworks/autocrafter.lua b/mods/pipeworks/autocrafter.lua new file mode 100644 index 0000000..b2e50c1 --- /dev/null +++ b/mods/pipeworks/autocrafter.lua @@ -0,0 +1,131 @@ +local autocrafterCache = {} -- caches some recipe data to avoid to call the slow function minetest.get_craft_result() every second + +local function make_inventory_cache(invlist) + local l = {} + for _, stack in ipairs(invlist) do + l[stack:get_name()] = (l[stack:get_name()] or 0) + stack:get_count() + end + return l +end + +local function autocraft(inventory, pos) + local recipe = inventory:get_list("recipe") + local recipe_last + local result + local new + + if autocrafterCache[minetest.hash_node_position(pos)] == nil then + recipe_last = {} + for i = 1, 9 do + recipe_last[i] = recipe[i] + recipe[i] = ItemStack({name = recipe[i]:get_name(), count = 1}) + end + result, new = minetest.get_craft_result({method = "normal", width = 3, items = recipe}) + autocrafterCache[minetest.hash_node_position(pos)] = {["recipe"] = recipe, ["result"] = result, ["new"] = new} + else + local autocrafterCacheEntry = autocrafterCache[minetest.hash_node_position(pos)] + recipe_last = autocrafterCacheEntry["recipe"] + result = autocrafterCacheEntry["result"] + new = autocrafterCacheEntry["new"] + local recipeUnchanged = true + for i = 1, 9 do + if recipe[i]:get_name() ~= recipe_last[i]:get_name() then + recipeUnchanged = false + break + end + if recipe[i]:get_count() ~= recipe_last[i]:get_count() then + recipeUnchanged = false + break + end + end + if recipeUnchanged then + else + for i = 1, 9 do + recipe_last[i] = recipe[i] + recipe[i] = ItemStack({name = recipe[i]:get_name(), count = 1}) + end + result, new = minetest.get_craft_result({method = "normal", width = 3, items = recipe}) + autocrafterCache[minetest.hash_node_position(pos)] = {["recipe"] = recipe, ["result"] = result, ["new"] = new} + end + end + + if result.item:is_empty() then return end + result = result.item + if not inventory:room_for_item("dst", result) then return end + local to_use = {} + for _, item in ipairs(recipe) do + if item~= nil and not item:is_empty() then + if to_use[item:get_name()] == nil then + to_use[item:get_name()] = 1 + else + to_use[item:get_name()] = to_use[item:get_name()]+1 + end + end + end + local invcache = make_inventory_cache(inventory:get_list("src")) + for itemname, number in pairs(to_use) do + if (not invcache[itemname]) or invcache[itemname] < number then return end + end + for itemname, number in pairs(to_use) do + for i = 1, number do -- We have to do that since remove_item does not work if count > stack_max + inventory:remove_item("src", ItemStack(itemname)) + end + end + inventory:add_item("dst", result) + for i = 1, 9 do + inventory:add_item("dst", new.items[i]) + end +end + +minetest.register_node("pipeworks:autocrafter", { + description = "Autocrafter", + drawtype = "normal", + tiles = {"pipeworks_autocrafter.png"}, + groups = {snappy = 3, tubedevice = 1, tubedevice_receiver = 1}, + tube = {insert_object = function(pos, node, stack, direction) + local meta = minetest.get_meta(pos) + local inv = meta:get_inventory() + return inv:add_item("src", stack) + end, + can_insert = function(pos, node, stack, direction) + local meta = minetest.get_meta(pos) + local inv = meta:get_inventory() + return inv:room_for_item("src", stack) + end, + input_inventory = "dst", + connect_sides = {left = 1, right = 1, front = 1, back = 1, top = 1, bottom = 1}}, + on_construct = function(pos) + local meta = minetest.get_meta(pos) + meta:set_string("formspec", + "size[8,11]".. + "list[current_name;recipe;0,0;3,3;]".. + "list[current_name;src;0,3.5;8,3;]".. + "list[current_name;dst;4,0;4,3;]".. + "list[current_player;main;0,7;8,4;]") + meta:set_string("infotext", "Autocrafter") + local inv = meta:get_inventory() + inv:set_size("src", 3*8) + inv:set_size("recipe", 3*3) + inv:set_size("dst", 4*3) + end, + can_dig = function(pos, player) + local meta = minetest.get_meta(pos); + local inv = meta:get_inventory() + return (inv:is_empty("src") and inv:is_empty("recipe") and inv:is_empty("dst")) + end, + after_place_node = function(pos) + pipeworks.scan_for_tube_objects(pos) + end, + after_dig_node = function(pos) + pipeworks.scan_for_tube_objects(pos) + autocrafterCache[minetest.hash_node_position(pos)] = nil + end +}) + +minetest.register_abm({nodenames = {"pipeworks:autocrafter"}, interval = 1, chance = 1, + action = function(pos, node) + local meta = minetest.get_meta(pos) + local inv = meta:get_inventory() + autocraft(inv, pos) + end +}) diff --git a/mods/pipeworks/autoplace_pipes.lua b/mods/pipeworks/autoplace_pipes.lua new file mode 100644 index 0000000..69bd90e --- /dev/null +++ b/mods/pipeworks/autoplace_pipes.lua @@ -0,0 +1,200 @@ +-- autorouting for pipes +local tube_table = {[0] = 1, 2, 2, 4, 2, 4, 4, 5, 2, 3, 4, 6, 4, 6, 5, 7, 2, 4, 3, 6, 4, 5, 6, 7, 4, 6, 6, 8, 5, 7, 7, 9, 2, 4, 4, 5, 3, 6, 6, 7, 4, 6, 5, 7, 6, 8, 7, 9, 4, 5, 6, 7, 6, 7, 8, 9, 5, 7, 7, 9, 7, 9, 9, 10} +local tube_table_facedirs = {[0] = 0, 0, 5, 0, 3, 4, 3, 0, 2, 0, 2, 0, 6, 4, 3, 0, 7, 12, 5, 12, 7, 4, 5, 5, 18, 20, 16, 0, 7, 4, 7, 0, 1, 8, 1, 1, 1, 13, 1, 1, 10, 8, 2, 2, 17, 4, 3, 6, 9, 9, 9, 9, 21, 13, 1, 1, 10, 10, 11, 2, 19, 4, 3, 0} +local function autoroute_pipes(pos) + local nctr = minetest.get_node(pos) + local state = "_empty" + if (string.find(nctr.name, "pipeworks:pipe_") == nil) then return end + if (string.find(nctr.name, "_loaded") ~= nil) then state = "_loaded" end + local nsurround = pipeworks.scan_pipe_surroundings(pos) + + if nsurround == 0 then nsurround = 9 end + minetest.add_node(pos, {name = "pipeworks:pipe_"..tube_table[nsurround]..state, + param2 = tube_table_facedirs[nsurround]}) +end + +function pipeworks.scan_for_pipe_objects(pos) + autoroute_pipes({ x=pos.x-1, y=pos.y , z=pos.z }) + autoroute_pipes({ x=pos.x+1, y=pos.y , z=pos.z }) + autoroute_pipes({ x=pos.x , y=pos.y-1, z=pos.z }) + autoroute_pipes({ x=pos.x , y=pos.y+1, z=pos.z }) + autoroute_pipes({ x=pos.x , y=pos.y , z=pos.z-1 }) + autoroute_pipes({ x=pos.x , y=pos.y , z=pos.z+1 }) + autoroute_pipes(pos) +end + +-- auto-rotation code for various devices the tubes attach to + +function pipeworks.scan_pipe_surroundings(pos) + local pxm=0 + local pxp=0 + local pym=0 + local pyp=0 + local pzm=0 + local pzp=0 + + local nxm = minetest.get_node({ x=pos.x-1, y=pos.y , z=pos.z }) + local nxp = minetest.get_node({ x=pos.x+1, y=pos.y , z=pos.z }) + local nym = minetest.get_node({ x=pos.x , y=pos.y-1, z=pos.z }) + local nyp = minetest.get_node({ x=pos.x , y=pos.y+1, z=pos.z }) + local nzm = minetest.get_node({ x=pos.x , y=pos.y , z=pos.z-1 }) + local nzp = minetest.get_node({ x=pos.x , y=pos.y , z=pos.z+1 }) + + if (string.find(nxm.name, "pipeworks:pipe_") ~= nil) then pxm=1 end + if (string.find(nxp.name, "pipeworks:pipe_") ~= nil) then pxp=1 end + if (string.find(nym.name, "pipeworks:pipe_") ~= nil) then pym=1 end + if (string.find(nyp.name, "pipeworks:pipe_") ~= nil) then pyp=1 end + if (string.find(nzm.name, "pipeworks:pipe_") ~= nil) then pzm=1 end + if (string.find(nzp.name, "pipeworks:pipe_") ~= nil) then pzp=1 end + +-- Special handling for valves... + + if (string.find(nxm.name, "pipeworks:valve") ~= nil) + and (nxm.param2 == 0 or nxm.param2 == 2) then + pxm=1 + end + + if (string.find(nxp.name, "pipeworks:valve") ~= nil) + and (nxp.param2 == 0 or nxp.param2 == 2) then + pxp=1 + end + + if (string.find(nzm.name, "pipeworks:valve") ~= nil) + and (nzm.param2 == 1 or nzm.param2 == 3) then + pzm=1 + end + + if (string.find(nzp.name, "pipeworks:valve") ~= nil) + and (nzp.param2 == 1 or nzp.param2 == 3) then + pzp=1 + end + +-- ...flow sensors... + + if (string.find(nxm.name, "pipeworks:flow_sensor") ~= nil) + and (nxm.param2 == 0 or nxm.param2 == 2) then + pxm=1 + end + + if (string.find(nxp.name, "pipeworks:flow_sensor") ~= nil) + and (nxp.param2 == 0 or nxp.param2 == 2) then + pxp=1 + end + + if (string.find(nzm.name, "pipeworks:flow_sensor") ~= nil) + and (nzm.param2 == 1 or nzm.param2 == 3) then + pzm=1 + end + + if (string.find(nzp.name, "pipeworks:flow_sensor") ~= nil) + and (nzp.param2 == 1 or nzp.param2 == 3) then + pzp=1 + end + +-- ...spigots... + + if (string.find(nxm.name, "pipeworks:spigot") ~= nil) + and nxm.param2 == 1 then + pxm=1 + end + + if (string.find(nxp.name, "pipeworks:spigot") ~= nil) + and nxp.param2 == 3 then + pxp=1 + end + + if (string.find(nzm.name, "pipeworks:spigot") ~= nil) + and nzm.param2 == 0 then + pzm=1 + end + + if (string.find(nzp.name, "pipeworks:spigot") ~= nil) + and nzp.param2 == 2 then + pzp=1 + end + +-- ...sealed pipe entry/exit... + + if (string.find(nxm.name, "pipeworks:entry_panel") ~= nil) + and (nxm.param2 == 1 or nxm.param2 == 3) then + pxm=1 + end + + if (string.find(nxp.name, "pipeworks:entry_panel") ~= nil) + and (nxp.param2 == 1 or nxp.param2 == 3) then + pxp=1 + end + + if (string.find(nzm.name, "pipeworks:entry_panel") ~= nil) + and (nzm.param2 == 0 or nzm.param2 == 2) then + pzm=1 + end + + if (string.find(nzp.name, "pipeworks:entry_panel") ~= nil) + and (nzp.param2 == 0 or nzp.param2 == 2) then + pzp=1 + end + + if (string.find(nym.name, "pipeworks:entry_panel") ~= nil) + and nym.param2 == 13 then + pym=1 + end + + if (string.find(nyp.name, "pipeworks:entry_panel") ~= nil) + and nyp.param2 == 13 then + pyp=1 + end + + +-- ...pumps, grates... + + if (string.find(nym.name, "pipeworks:grating") ~= nil) or + (string.find(nym.name, "pipeworks:pump") ~= nil) then + pym=1 + end + +-- ...fountainheads... + + if (string.find(nyp.name, "pipeworks:fountainhead") ~= nil) then + pyp=1 + end + +-- ... and storage tanks. + + if (string.find(nym.name, "pipeworks:storage_tank_") ~= nil) then + pym=1 + end + + if (string.find(nyp.name, "pipeworks:storage_tank_") ~= nil) then + pyp=1 + end + +-- ...extra devices specified via the function's parameters +-- ...except that this part is not implemented yet +-- +-- xxx = nxm, nxp, nym, nyp, nzm, or nzp depending on the direction to check +-- yyy = pxm, pxp, pym, pyp, pzm, or pzp accordingly. +-- +-- if string.find(xxx.name, "modname:nodename") ~= nil then +-- yyy = 1 +-- end +-- +-- for example: +-- +-- if string.find(nym.name, "aero:outlet") ~= nil then +-- pym = 1 +-- end +-- + + return pxm+8*pxp+2*pym+16*pyp+4*pzm+32*pzp +end + +function pipeworks.look_for_stackable_tanks(pos) + local tym = minetest.get_node({ x=pos.x , y=pos.y-1, z=pos.z }) + + if string.find(tym.name, "pipeworks:storage_tank_") ~= nil or + string.find(tym.name, "pipeworks:expansion_tank_") ~= nil then + minetest.add_node(pos, { name = "pipeworks:expansion_tank_0", param2 = tym.param2}) + end +end + diff --git a/mods/pipeworks/autoplace_tubes.lua b/mods/pipeworks/autoplace_tubes.lua new file mode 100644 index 0000000..385458c --- /dev/null +++ b/mods/pipeworks/autoplace_tubes.lua @@ -0,0 +1,168 @@ +-- autorouting for pneumatic tubes + +local function in_table(table,element) + for _,el in ipairs(table) do + if el==element then return true end + end + return false +end + +local function is_tube(nodename) + return in_table(pipeworks.tubenodes,nodename) +end + +if pipeworks == nil then + pipeworks = {} +end + +--a function for determining which side of the node we are on +local function nodeside(node, tubedir) + if node and (node.param2 < 0 or node.param2 > 23) then node.param2 = 0 end + + --get a vector pointing back + local backdir = minetest.facedir_to_dir(node.param2) + + --check whether the vector is equivalent to the tube direction; if it is, the tube's on the backside + if backdir.x == tubedir.x and backdir.y == tubedir.y and backdir.z == tubedir.z then + return "back" + end + + --check whether the vector is antiparallel with the tube direction; that indicates the front + if backdir.x == -tubedir.x and backdir.y == -tubedir.y and backdir.z == -tubedir.z then + return "front" + end + + --facedir is defined in terms of the top-bottom axis of the node; we'll take advantage of that + local topdir = ({[0]={x=0, y=1, z=0}, + {x=0, y=0, z=1}, + {x=0, y=0, z=-1}, + {x=1, y=0, z=0}, + {x=-1, y=0, z=0}, + {x=0, y=-1, z=0}})[math.floor(node.param2/4)] + + --is this the top? + if topdir.x == tubedir.x and topdir.y == tubedir.y and topdir.z == tubedir.z then + return "top" + end + + --or the bottom? + if topdir.x == -tubedir.x and topdir.y == -tubedir.y and topdir.z == -tubedir.z then + return "bottom" + end + + --we shall apply some maths to obtain the right-facing vector + local rightdir = {x=topdir.y*backdir.z - backdir.y*topdir.z, + y=topdir.z*backdir.x - backdir.z*topdir.x, + z=topdir.x*backdir.y - backdir.x*topdir.y} + + --is this the right side? + if rightdir.x == tubedir.x and rightdir.y == tubedir.y and rightdir.z == tubedir.z then + return "right" + end + + --or the left? + if rightdir.x == -tubedir.x and rightdir.y == -tubedir.y and rightdir.z == -tubedir.z then + return "left" + end + + --we should be done by now; initiate panic mode + minetest.log("error", "nodeside has been confused by its parameters; see pipeworks autoplace_tubes.lua, line 78") +end + +local vts = {0, 3, 1, 4, 2, 5} +local tube_table = {[0] = 1, 2, 2, 4, 2, 4, 4, 5, 2, 3, 4, 6, 4, 6, 5, 7, 2, 4, 3, 6, 4, 5, 6, 7, 4, 6, 6, 8, 5, 7, 7, 9, 2, 4, 4, 5, 3, 6, 6, 7, 4, 6, 5, 7, 6, 8, 7, 9, 4, 5, 6, 7, 6, 7, 8, 9, 5, 7, 7, 9, 7, 9, 9, 10} +local tube_table_facedirs = {[0] = 0, 0, 5, 0, 3, 4, 3, 0, 2, 0, 2, 0, 6, 4, 3, 0, 7, 12, 5, 12, 7, 4, 5, 5, 18, 20, 16, 0, 7, 4, 7, 0, 1, 8, 1, 1, 1, 13, 1, 1, 10, 8, 2, 2, 17, 4, 3, 6, 9, 9, 9, 9, 21, 13, 1, 1, 10, 10, 11, 2, 19, 4, 3, 0} +local function tube_autoroute(pos) + local active = {0, 0, 0, 0, 0, 0} + local nctr = minetest.get_node(pos) + if not is_tube(nctr.name) then return end + + local adjustments = { + { x=-1, y=0, z=0 }, + { x=1, y=0, z=0 }, + { x=0, y=-1, z=0 }, + { x=0, y=1, z=0 }, + { x=0, y=0, z=-1 }, + { x=0, y=0, z=1 } + } + -- xm = 1, xp = 2, ym = 3, yp = 4, zm = 5, zp = 6 + + local positions = {} + local nodes = {} + for i,adj in ipairs(adjustments) do + positions[i] = {x=pos.x+adj.x, y=pos.y+adj.y, z=pos.z+adj.z} + nodes[i] = minetest.get_node(positions[i]) + end + + for i,node in ipairs(nodes) do + local idef = minetest.registered_nodes[node.name] + -- handle the tubes themselves + if is_tube(node.name) then + active[i] = 1 + -- handle new style connectors + elseif idef and idef.tube and idef.tube.connect_sides then + local dir = adjustments[i] + if idef.tube.connect_sides[nodeside(node, {x=-dir.x, y=-dir.y, z=-dir.z})] then active[i] = 1 end + end + end + + -- all sides checked, now figure which tube to use. + + local nodedef = minetest.registered_nodes[nctr.name] + local basename = nodedef.basename + local newname + if nodedef.style == "old" then + local nsurround = "" + for i,n in ipairs(active) do + nsurround = nsurround .. n + end + nctr.name = basename.."_"..nsurround + elseif nodedef.style == "6d" then + local s = 0 + for i,n in ipairs(active) do + if n == 1 then + s = s+2^vts[i] + end + end + nctr.name = basename.."_"..tube_table[s] + nctr.param2 = tube_table_facedirs[s] + end + minetest.swap_node(pos, nctr) +end + +function pipeworks.scan_for_tube_objects(pos) + if pos == nil then return end + tube_autoroute({ x=pos.x-1, y=pos.y , z=pos.z }) + tube_autoroute({ x=pos.x+1, y=pos.y , z=pos.z }) + tube_autoroute({ x=pos.x , y=pos.y-1, z=pos.z }) + tube_autoroute({ x=pos.x , y=pos.y+1, z=pos.z }) + tube_autoroute({ x=pos.x , y=pos.y , z=pos.z-1 }) + tube_autoroute({ x=pos.x , y=pos.y , z=pos.z+1 }) + tube_autoroute(pos) +end + +minetest.register_on_placenode(function(pos, newnode, placer, oldnode, itemstack) + if minetest.registered_items[newnode.name] + and minetest.registered_items[newnode.name].tube + and minetest.registered_items[newnode.name].tube.connect_sides then + pipeworks.scan_for_tube_objects(pos) + end +end) + +minetest.register_on_dignode(function(pos, oldnode, digger) + if minetest.registered_items[oldnode.name] + and minetest.registered_items[oldnode.name].tube + and minetest.registered_items[oldnode.name].tube.connect_sides then + pipeworks.scan_for_tube_objects(pos) + end +end) + +if minetest.get_modpath("mesecons_mvps") ~= nil then + mesecon:register_on_mvps_move(function(moved_nodes) + for _, n in ipairs(moved_nodes) do + pipeworks.scan_for_tube_objects(n.pos) + pipeworks.scan_for_tube_objects(n.oldpos) + end + end) +end + diff --git a/mods/pipeworks/changelog.txt b/mods/pipeworks/changelog.txt new file mode 100644 index 0000000..251df29 --- /dev/null +++ b/mods/pipeworks/changelog.txt @@ -0,0 +1,93 @@ +Changelog +--------- + +2013-01-13: Tubes can transport items now! Namely, I added Novatux/Nore's item +transport mod as a default part of this mod, to make tubes do something useful! +Thanks to Nore and RealBadAngel for the code contributions! + +2013-01-05: made storage tanks connect from top/bottom, made storage tank and +pipe textures use the ^ combine operator so they can show the actual liquid +going through the pipes/tanks. + +2013-01-04 (a bit later): Made pipes able to carry water! It was just a minor +logic error resulting from moving the water flowing code into it's own file +when I originally imported it. Many thanks to Mauvebic for writing it! + +2013-01-04: First stage of integrating Mauvebic's water flowing code. This is +experimental and doesn't move water yet - but at least it doesn't break +anything :-) + +2013-01-01: Various minor tweaks to textures, facedir settings, some other +stuff. Changed crafting recipes to account for revamped pumps, valves, etc. +Now requires the moreores mod and most recent git (for mese crystal fragments) +to craft a pump. Added a "sealed" entry/exit panel (really just a horizontal +pipe with a metal panel overlayed into the middle). Also, tweaked pipes to +always drop the empty ones. Revamped pumps so that now they should sit in/on +liquid and be connected only from the top, relegated grates to decorational- +only, added outlet spigot. Got rid of a few obsolete textures. Got rid of +that whole _x and _z naming thing - now all directional devices (pumps, valves, +spigots, tanks) use facedir. Valves, spigots no longer auto-rotate to find +nearby pipes. + +2012-09-17: Added test object for pneumatic tube autorouting code, made tubes +connect to it and any object that bears groups={tubedevice=1} (connects to any +side) + +2012-09-05: All recipes doubled except for junglegrass -> plastic sheet (since +that is derived from home decor) + +2012-09-02: Fixed plastic sheeting recipe. Added crafting recipes for various +objects, with options: If homedecor is installed, use the plastic sheeting +therein. If not, we define it manually. If the Technic mod is installed, +don't define any recipes at all. Also removed the extra "loaded!" messages and +tweaked the default pipe alias to point to something that is actually visible +:-) + +2012-09-01: flattened wielded pipe segment. + +2012-08-24: Added square-ish pneumatic tubes with their own autoplace code +(does not connect to steel pipes or pipe-oriented devices), then revised their +textures shortly after. Fixed a recursion bug that sometimes caused a stack +overflow. Old pipes were overriding the pipeworks:pipe defintion that belongs +with the new pipes. + +2012-08-22: Added outlet grate, made it participate in autoplace algorithm. +Extended storage tank to show fill level in 10% steps (0% to 100%). Added +"expansion tank" that appears if the user stacks tanks upwards. (Downwards is +not checked). + +2012-08-21: Made storage tank participate in autoplace algorithm. Tuned API a +little to allow for more flexible placement. Re-organized code a bit to allow +for some upcoming rules changes. Made storage tanks' upper/lower fittins and +intake grate participate in autoplace algorithm. + +2012-08-20: Added temporary nodes for storage tank and intake grating, but +without autoplace. + +2012-08-19: Pumps and valves now fully participate in the +auto-rotate/auto-place algorithm. + +2012-08-18: Total rewrite again. All pipes are now nice and round-looking, and +they auto-connect! Also added temporary nodes for pump and valve (each with an +on/off setting - punch to change). No crafting recipes yet and the pipes still +don't do anything useful yet. Soon. + +2012-08-06: Moved this changelog off the forum post and into a separate file. + +2012-08-05 (multiple updates): Rewrote pipeworks to use loops and tables to +create the nodes. Requires far less code now. Added -X, +X, -Y, +Y, -Z, +Z +capped stubs and a short centered horizontal segment. Changed node definitions +so that the aforementioned "short centered" segment is given on dig/drop. +Renamed it to just "pipeworks:pipe" (and pipe_loaded). Added empty/loaded +indicator images to the capped ends, removed some redundant comments. Made the +empty/loaded indication at the capped end more prominent. + +2012-07-21: Added screenshot showing pipes as they look now that nodebox +texture rotation is fixed. + +2012-07-18: Changed the mod name and all internals to 'pipeworks' instead of +'pipes'... after a couple of mistakes :-) + +2012-07-12: moved project to github. + +2012-06-23: Initial release, followed by reworking the textures a bit. diff --git a/mods/pipeworks/compat.lua b/mods/pipeworks/compat.lua new file mode 100644 index 0000000..e80fa62 --- /dev/null +++ b/mods/pipeworks/compat.lua @@ -0,0 +1,158 @@ +-- this bit of code modifies the default chests and furnaces to be compatible +-- with pipeworks. + +function pipeworks.clone_node(name) + local node2 = {} + local node = minetest.registered_nodes[name] + for k, v in pairs(node) do + node2[k] = v + end + return node2 +end + +local furnace = pipeworks.clone_node("default:furnace") + furnace.tiles[1] = "default_furnace_top.png^pipeworks_tube_connection_stony.png" + furnace.tiles[2] = "default_furnace_bottom.png^pipeworks_tube_connection_stony.png" + furnace.tiles[3] = "default_furnace_side.png^pipeworks_tube_connection_stony.png" + furnace.tiles[4] = "default_furnace_side.png^pipeworks_tube_connection_stony.png" + furnace.tiles[5] = "default_furnace_side.png^pipeworks_tube_connection_stony.png" + -- note we don't redefine entry 6 ( front) + furnace.groups.tubedevice = 1 + furnace.groups.tubedevice_receiver = 1 + furnace.tube = { + insert_object = function(pos, node, stack, direction) + local meta = minetest.get_meta(pos) + local inv = meta:get_inventory() + if direction.y == 1 then + return inv:add_item("fuel",stack) + else + return inv:add_item("src",stack) + end + end, + can_insert = function(pos,node,stack,direction) + local meta = minetest.get_meta(pos) + local inv = meta:get_inventory() + if direction.y == 1 then + return inv:room_for_item("fuel", stack) + else + return inv:room_for_item("src", stack) + end + end, + input_inventory = "dst", + connect_sides = {left=1, right=1, back=1, front=1, bottom=1, top=1} + } + furnace.after_place_node = function(pos) + pipeworks.scan_for_tube_objects(pos) + end + furnace.after_dig_node = function(pos) + pipeworks.scan_for_tube_objects(pos) + end + +minetest.register_node(":default:furnace", furnace) + +local furnace_active = pipeworks.clone_node("default:furnace_active") + furnace_active.tiles[1] = "default_furnace_top.png^pipeworks_tube_connection_stony.png" + furnace_active.tiles[2] = "default_furnace_bottom.png^pipeworks_tube_connection_stony.png" + furnace_active.tiles[3] = "default_furnace_side.png^pipeworks_tube_connection_stony.png" + furnace_active.tiles[4] = "default_furnace_side.png^pipeworks_tube_connection_stony.png" + furnace_active.tiles[5] = "default_furnace_side.png^pipeworks_tube_connection_stony.png" + -- note we don't redefine entry 6 (front) + furnace_active.groups.tubedevice = 1 + furnace_active.groups.tubedevice_receiver = 1 + furnace_active.tube = { + insert_object = function(pos,node,stack,direction) + local meta = minetest.get_meta(pos) + local inv = meta:get_inventory() + if direction.y == 1 then + return inv:add_item("fuel", stack) + else + return inv:add_item("src", stack) + end + end, + can_insert = function(pos, node, stack, direction) + local meta = minetest.get_meta(pos) + local inv = meta:get_inventory() + if direction.y == 1 then + return inv:room_for_item("fuel", stack) + else + return inv:room_for_item("src", stack) + end + end, + input_inventory = "dst", + connect_sides = {left=1, right=1, back=1, front=1, bottom=1, top=1} + } + furnace_active.after_place_node= function(pos) + pipeworks.scan_for_tube_objects(pos) + end + furnace_active.after_dig_node = function(pos) + pipeworks.scan_for_tube_objects(pos) + end + +minetest.register_node(":default:furnace_active", furnace_active) + + +local chest = pipeworks.clone_node("default:chest") + chest.tiles[1] = "default_chest_top.png^pipeworks_tube_connection_wooden.png" + chest.tiles[2] = "default_chest_top.png^pipeworks_tube_connection_wooden.png" + chest.tiles[3] = "default_chest_side.png^pipeworks_tube_connection_wooden.png" + chest.tiles[4] = "default_chest_side.png^pipeworks_tube_connection_wooden.png" + chest.tiles[5] = "default_chest_side.png^pipeworks_tube_connection_wooden.png" + -- note we don't redefine entry 6 (front). + chest.groups.tubedevice = 1 + chest.groups.tubedevice_receiver = 1 + chest.tube = { + insert_object = function(pos, node, stack, direction) + local meta = minetest.get_meta(pos) + local inv = meta:get_inventory() + return inv:add_item("main", stack) + end, + can_insert = function(pos, node, stack, direction) + local meta = minetest.get_meta(pos) + local inv = meta:get_inventory() + return inv:room_for_item("main", stack) + end, + input_inventory = "main", + connect_sides = {left=1, right=1, back=1, front=1, bottom=1, top=1} + } + chest.after_place_node = function(pos) + pipeworks.scan_for_tube_objects(pos) + end + chest.after_dig_node = function(pos) + pipeworks.scan_for_tube_objects(pos) + end + +minetest.register_node(":default:chest", chest) + + +local chest_locked = pipeworks.clone_node("default:chest_locked") + chest_locked.tiles[1] = "default_chest_top.png^pipeworks_tube_connection_wooden.png" + chest_locked.tiles[2] = "default_chest_top.png^pipeworks_tube_connection_wooden.png" + chest_locked.tiles[3] = "default_chest_side.png^pipeworks_tube_connection_wooden.png" + chest_locked.tiles[4] = "default_chest_side.png^pipeworks_tube_connection_wooden.png" + chest_locked.tiles[5] = "default_chest_side.png^pipeworks_tube_connection_wooden.png" + -- note we don't redefine entry 6 (front). + chest_locked.groups.tubedevice = 1 + chest_locked.groups.tubedevice_receiver = 1 + chest_locked.tube = { + insert_object = function(pos, node, stack, direction) + local meta = minetest.env:get_meta(pos) + local inv = meta:get_inventory() + return inv:add_item("main", stack) + end, + can_insert = function(pos, node, stack, direction) + local meta = minetest.env:get_meta(pos) + local inv = meta:get_inventory() + return inv:room_for_item("main", stack) + end, + connect_sides = {left=1, right=1, back=1, front=1, bottom=1, top=1} + } + local old_after_place = minetest.registered_nodes["default:chest_locked"].after_place_node + chest_locked.after_place_node = function(pos, placer) + pipeworks.scan_for_tube_objects(pos) + old_after_place(pos, placer) + end + chest_locked.after_dig_node = function(pos) + pipeworks.scan_for_tube_objects(pos) + end + +minetest.register_node(":default:chest_locked", chest_locked) diff --git a/mods/pipeworks/crafts.lua b/mods/pipeworks/crafts.lua new file mode 100644 index 0000000..8a38daf --- /dev/null +++ b/mods/pipeworks/crafts.lua @@ -0,0 +1,303 @@ +-- Crafting recipes for pipes + +minetest.register_craft( { + output = "pipeworks:pipe_1_empty 12", + recipe = { + { "default:steel_ingot", "default:steel_ingot", "default:steel_ingot" }, + { "", "", "" }, + { "default:steel_ingot", "default:steel_ingot", "default:steel_ingot" } + }, +}) + +minetest.register_craft( { + output = "pipeworks:spigot 3", + recipe = { + { "pipeworks:pipe_1_empty", "" }, + { "", "pipeworks:pipe_1_empty" }, + }, +}) + +minetest.register_craft( { + output = "pipeworks:entry_panel_empty 2", + recipe = { + { "", "default:steel_ingot", "" }, + { "", "pipeworks:pipe_1_empty", "" }, + { "", "default:steel_ingot", "" }, + }, +}) + +-- Various ancillary pipe devices + +minetest.register_craft( { + output = "pipeworks:pump_off 2", + recipe = { + { "default:stone", "default:steel_ingot", "default:stone" }, + { "moreores:copper_ingot", "default:mese_crystal_fragment", "moreores:copper_ingot" }, + { "default:steel_ingot", "default:steel_ingot", "default:steel_ingot" } + }, +}) + +minetest.register_craft( { + output = "pipeworks:valve_off 2", + recipe = { + { "", "default:stick", "" }, + { "default:steel_ingot", "default:steel_ingot", "default:steel_ingot" }, + { "", "default:steel_ingot", "" } + }, +}) + +minetest.register_craft( { + output = "pipeworks:storage_tank_0 2", + recipe = { + { "", "default:steel_ingot", "default:steel_ingot" }, + { "default:steel_ingot", "default:glass", "default:steel_ingot" }, + { "default:steel_ingot", "default:steel_ingot", "" } + }, +}) + +minetest.register_craft( { + output = "pipeworks:grating 2", + recipe = { + { "default:steel_ingot", "", "default:steel_ingot" }, + { "", "default:steel_ingot", "" }, + { "default:steel_ingot", "", "default:steel_ingot" } + }, +}) + +minetest.register_craft( { + output = "pipeworks:flow_sensor_empty 2", + recipe = { + { "pipeworks:pipe_1_empty", "mesecons:mesecon", "pipeworks:pipe_1_empty" }, + }, +}) + +minetest.register_craft( { + output = "pipeworks:fountainhead 2", + recipe = { + { "pipeworks:pipe_1_empty" }, + { "pipeworks:pipe_1_empty" } + }, +}) + + +-- Crafting recipes for pneumatic tubes + +-- If homedecor is not installed, we need to register its crafting chain for +-- plastic sheeting so that pipeworks remains compatible with it. + +if minetest.get_modpath("homedecor") == nil then + + minetest.register_craftitem(":homedecor:plastic_sheeting", { + description = "Plastic sheet", + inventory_image = "homedecor_plastic_sheeting.png", + }) + + minetest.register_craftitem(":homedecor:plastic_base", { + description = "Unprocessed Plastic base", + wield_image = "homedecor_plastic_base.png", + inventory_image = "homedecor_plastic_base_inv.png", + }) + + minetest.register_craft({ + type = "shapeless", + output = 'homedecor:plastic_base 4', + recipe = { "default:leaves", + "group:leaves", + "group:leaves", + "group:leaves", + "group:leaves", + "group:leaves" + } + }) + + minetest.register_craft({ + type = "cooking", + output = "homedecor:plastic_sheeting", + recipe = "homedecor:plastic_base", + }) + + minetest.register_craft({ + type = 'fuel', + recipe = 'homedecor:plastic_base', + burntime = 30, + }) + + minetest.register_craft({ + type = 'fuel', + recipe = 'homedecor:plastic_sheeting', + burntime = 30, + }) + +end + +minetest.register_craft( { + output = "pipeworks:one_way_tube 2", + recipe = { + { "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" }, + { "default:stick", "default:mese_crystal", "homedecor:plastic_sheeting" }, + { "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" } + }, +}) + + +minetest.register_craft( { + output = "pipeworks:tube_1 6", + recipe = { + { "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" }, + { "", "", "" }, + { "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" } + }, +}) + +minetest.register_craft( { + output = "pipeworks:mese_tube_1 2", + recipe = { + { "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" }, + { "", "default:mese_crystal", "" }, + { "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" } + }, +}) + +minetest.register_craft( { + type = "shapeless", + output = "pipeworks:mese_tube_000000", + recipe = { + "pipeworks:tube_1", + "default:mese_crystal_fragment", + "default:mese_crystal_fragment", + "default:mese_crystal_fragment", + "default:mese_crystal_fragment" + }, +}) + +minetest.register_craft( { + output = "pipeworks:conductor_tube_off_1 6", + recipe = { + { "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" }, + { "mesecons:mesecon", "mesecons:mesecon", "mesecons:mesecon" }, + { "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" } + }, +}) + +minetest.register_craft( { + output = "pipeworks:detector_tube_off_1 2", + recipe = { + { "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" }, + { "mesecons:mesecon", "mesecons_materials:silicon", "mesecons:mesecon" }, + { "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" } + }, +}) + +minetest.register_craft( { + output = "pipeworks:accelerator_tube_1 2", + recipe = { + { "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" }, + { "default:mese_crystal_fragment", "default:steel_ingot", "default:mese_crystal_fragment" }, + { "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" } + }, +}) + +minetest.register_craft( { + output = "pipeworks:teleport_tube_1 2", + recipe = { + { "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" }, + { "default:desert_stone", "default:mese_block", "default:desert_stone" }, + { "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" } + }, +}) + +minetest.register_craft( { + output = "pipeworks:sand_tube_1 2", + recipe = { + { "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" }, + { "default:sand", "default:sand", "default:sand" }, + { "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" } + }, +}) + +minetest.register_craft( { + output = "pipeworks:sand_tube_1 2", + recipe = { + { "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" }, + { "default:desert_sand", "default:desert_sand", "default:desert_sand" }, + { "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" } + }, +}) + +minetest.register_craft( { + output = "pipeworks:sand_tube_1", + recipe = { + { "default:desert_sand", "pipeworks:tube_1", "default:desert_sand" }, + }, +}) + +minetest.register_craft( { + output = "pipeworks:mese_sand_tube_1 2", + recipe = { + { "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" }, + { "default:sand", "default:mese_crystal", "default:sand" }, + { "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" } + }, +}) + +minetest.register_craft( { + output = "pipeworks:mese_sand_tube_1 2", + recipe = { + { "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" }, + { "default:desert_sand", "default:mese_crystal", "default:desert_sand" }, + { "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" } + }, +}) + +minetest.register_craft( { + output = "pipeworks:crossing_tube_1 5", + recipe = { + { "", "pipeworks:tube_1", "" }, + { "pipeworks:tube_1", "pipeworks:tube_1", "pipeworks:tube_1" }, + { "", "pipeworks:tube_1", "" } + }, +}) + + +minetest.register_craft( { + type = "shapeless", + output = "pipeworks:mese_sand_tube_1", + recipe = { + "pipeworks:sand_tube_1", + "default:mese_crystal_fragment", + "default:mese_crystal_fragment", + "default:mese_crystal_fragment", + "default:mese_crystal_fragment" + }, +}) + +-- Various ancillary tube devices + +minetest.register_craft( { + output = "pipeworks:filter 2", + recipe = { + { "default:steel_ingot", "default:steel_ingot", "homedecor:plastic_sheeting" }, + { "default:stick", "default:mese_crystal", "homedecor:plastic_sheeting" }, + { "default:steel_ingot", "default:steel_ingot", "homedecor:plastic_sheeting" } + }, +}) + +minetest.register_craft( { + output = "pipeworks:mese_filter 2", + recipe = { + { "default:steel_ingot", "default:steel_ingot", "homedecor:plastic_sheeting" }, + { "default:stick", "default:mese", "homedecor:plastic_sheeting" }, + { "default:steel_ingot", "default:steel_ingot", "homedecor:plastic_sheeting" } + }, +}) + +minetest.register_craft( { + output = "pipeworks:autocrafter 2", + recipe = { + { "default:steel_ingot", "default:mese_crystal", "default:steel_ingot" }, + { "homedecor:plastic_sheeting", "default:steel_ingot", "homedecor:plastic_sheeting" }, + { "default:steel_ingot", "default:mese_crystal", "default:steel_ingot" } + }, +}) + + diff --git a/mods/pipeworks/default_settings.txt b/mods/pipeworks/default_settings.txt new file mode 100644 index 0000000..f594a16 --- /dev/null +++ b/mods/pipeworks/default_settings.txt @@ -0,0 +1,18 @@ +-- Various settings + +pipeworks.enable_pipes = true +pipeworks.enable_autocrafter = true +pipeworks.enable_deployer = true +pipeworks.enable_node_breaker = true +pipeworks.enable_teleport_tube = true +pipeworks.enable_pipe_devices = true +pipeworks.enable_redefines = true +pipeworks.enable_mese_tube = true +pipeworks.enable_detector_tube = true +pipeworks.enable_conductor_tube = true +pipeworks.enable_accelerator_tube = true +pipeworks.enable_crossing_tube = true +pipeworks.enable_sand_tube = true +pipeworks.enable_mese_sand_tube = true +pipeworks.enable_one_way_tube = true +pipeworks.enable_cyclic_mode = true diff --git a/mods/pipeworks/depends.txt b/mods/pipeworks/depends.txt new file mode 100644 index 0000000..02a542c --- /dev/null +++ b/mods/pipeworks/depends.txt @@ -0,0 +1,3 @@ +default +mesecons? +mesecons_mvps? diff --git a/mods/pipeworks/deployer.lua b/mods/pipeworks/deployer.lua new file mode 100644 index 0000000..e67250c --- /dev/null +++ b/mods/pipeworks/deployer.lua @@ -0,0 +1,286 @@ + +--register aliases for when someone had technic installed, but then uninstalled it but not pipeworks +minetest.register_alias("technic:deployer_off", "pipeworks:deployer_off") +minetest.register_alias("technic:deployer_on", "pipeworks:deployer_on") + +--define the functions from https://github.com/minetest/minetest/pull/834 while waiting for the devs to notice it +local function dir_to_facedir(dir, is6d) + --account for y if requested + if is6d and math.abs(dir.y) > math.abs(dir.x) and math.abs(dir.y) > math.abs(dir.z) then + + --from above + if dir.y < 0 then + if math.abs(dir.x) > math.abs(dir.z) then + if dir.x < 0 then + return 19 + else + return 13 + end + else + if dir.z < 0 then + return 10 + else + return 4 + end + end + + --from below + else + if math.abs(dir.x) > math.abs(dir.z) then + if dir.x < 0 then + return 15 + else + return 17 + end + else + if dir.z < 0 then + return 6 + else + return 8 + end + end + end + + --otherwise, place horizontally + elseif math.abs(dir.x) > math.abs(dir.z) then + if dir.x < 0 then + return 3 + else + return 1 + end + else + if dir.z < 0 then + return 2 + else + return 0 + end + end +end + +minetest.register_craft({ + output = 'pipeworks:deployer_off 1', + recipe = { + {'group:wood', 'default:chest','group:wood'}, + {'default:stone', 'mesecons:piston','default:stone'}, + {'default:stone', 'mesecons:mesecon','default:stone'}, + } +}) + +local function swap_node(pos, name) + local node = minetest.get_node(pos) + if node.name == name then + return + end + node.name = name + minetest.swap_node(pos, node) +end + +local function delay(x) + return (function() return x end) +end + +local function deployer_on(pos, node) + if node.name ~= "pipeworks:deployer_off" then + return + end + + --locate the above and under positions + local dir = minetest.facedir_to_dir(node.param2) + local pos_under, pos_above = {x = pos.x - dir.x, y = pos.y - dir.y, z = pos.z - dir.z}, {x = pos.x - 2*dir.x, y = pos.y - 2*dir.y, z = pos.z - 2*dir.z} + + swap_node(pos, "pipeworks:deployer_on") + nodeupdate(pos) + + local meta = minetest.get_meta(pos) + local inv = meta:get_inventory() + local invlist = inv:get_list("main") + for i, stack in ipairs(invlist) do + if stack:get_name() ~= nil and stack:get_name() ~= "" and minetest.get_node(pos_under).name == "air" then --obtain the first non-empty item slot + local pitch + local yaw + if dir.z < 0 then + yaw = 0 + pitch = 0 + elseif dir.z > 0 then + yaw = math.pi + pitch = 0 + elseif dir.x < 0 then + yaw = 3*math.pi/2 + pitch = 0 + elseif dir.x > 0 then + yaw = math.pi/2 + pitch = 0 + elseif dir.y > 0 then + yaw = 0 + pitch = -math.pi/2 + else + yaw = 0 + pitch = math.pi/2 + end + local placer = { + get_inventory_formspec = delay(meta:get_string("formspec")), + get_look_dir = delay({x = -dir.x, y = -dir.y, z = -dir.z}), + get_look_pitch = delay(pitch), + get_look_yaw = delay(yaw), + get_player_control = delay({jump=false, right=false, left=false, LMB=false, RMB=false, sneak=false, aux1=false, down=false, up=false}), + get_player_control_bits = delay(0), + get_player_name = delay("deployer"), + is_player = delay(true), + set_inventory_formspec = delay(), + getpos = delay({x = pos.x, y = pos.y - 1.5, z = pos.z}), -- Player height + get_hp = delay(20), + get_inventory = delay(inv), + get_wielded_item = delay(stack), + get_wield_index = delay(i), + get_wield_list = delay("main"), + moveto = delay(), + punch = delay(), + remove = delay(), + right_click = delay(), + setpos = delay(), + set_hp = delay(), + set_properties = delay(), + set_wielded_item = function(self, item) inv:set_stack("main", i, item) end, + set_animation = delay(), + set_attach = delay(), + set_detach = delay(), + set_bone_position = delay(), + } + local stack2 = minetest.item_place(stack, placer, {type="node", under=pos_under, above=pos_above}) + if minetest.setting_getbool("creative_mode") and not minetest.get_modpath("unified_inventory") then --infinite stacks ahoy! + stack2:take_item() + end + invlist[i] = stack2 + inv:set_list("main", invlist) + return + end + end +end + +local deployer_off = function(pos, node) + if node.name == "pipeworks:deployer_on" then + swap_node(pos, "pipeworks:deployer_off") + nodeupdate(pos) + end +end + +minetest.register_node("pipeworks:deployer_off", { + description = "Deployer", + tile_images = {"pipeworks_deployer_top.png","pipeworks_deployer_bottom.png","pipeworks_deployer_side2.png","pipeworks_deployer_side1.png", + "pipeworks_deployer_back.png","pipeworks_deployer_front_off.png"}, + mesecons = {effector={rules=pipeworks.rules_all,action_on=deployer_on,action_off=deployer_off}}, + tube={insert_object=function(pos,node,stack,direction) + local meta=minetest.get_meta(pos) + local inv=meta:get_inventory() + return inv:add_item("main",stack) + end, + can_insert=function(pos,node,stack,direction) + local meta=minetest.get_meta(pos) + local inv=meta:get_inventory() + return inv:room_for_item("main",stack) + end, + input_inventory="main", + connect_sides={back=1}}, + is_ground_content = true, + paramtype2 = "facedir", + groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2, mesecon = 2,tubedevice=1, tubedevice_receiver=1}, + sounds = default.node_sound_stone_defaults(), + on_construct = function(pos) + local meta = minetest.get_meta(pos) + meta:set_string("formspec", + "invsize[8,9;]".. + "label[0,0;Deployer]".. + "list[current_name;main;4,1;3,3;]".. + "list[current_player;main;0,5;8,4;]") + meta:set_string("infotext", "Deployer") + local inv = meta:get_inventory() + inv:set_size("main", 3*3) + end, + can_dig = function(pos,player) + local meta = minetest.get_meta(pos); + local inv = meta:get_inventory() + return inv:is_empty("main") + end, + after_place_node = function (pos, placer) + pipeworks.scan_for_tube_objects(pos, placer) + local placer_pos = placer:getpos() + + --correct for the player's height + if placer:is_player() then placer_pos.y = placer_pos.y + 1.5 end + + --correct for 6d facedir + if placer_pos then + local dir = { + x = pos.x - placer_pos.x, + y = pos.y - placer_pos.y, + z = pos.z - placer_pos.z + } + local node = minetest.get_node(pos) + node.param2 = dir_to_facedir(dir, true) + minetest.set_node(pos, node) + minetest.log("action", "real (6d) facedir: " .. node.param2) + end + end, + after_dig_node = pipeworks.scan_for_tube_objects, +}) + +minetest.register_node("pipeworks:deployer_on", { + description = "Deployer", + tile_images = {"pipeworks_deployer_top.png","pipeworks_deployer_bottom.png","pipeworks_deployer_side2.png","pipeworks_deployer_side1.png", + "pipeworks_deployer_back.png","pipeworks_deployer_front_on.png"}, + mesecons = {effector={rules=pipeworks.rules_all,action_on=deployer_on,action_off=deployer_off}}, + tube={insert_object=function(pos,node,stack,direction) + local meta=minetest.get_meta(pos) + local inv=meta:get_inventory() + return inv:add_item("main",stack) + end, + can_insert=function(pos,node,stack,direction) + local meta=minetest.get_meta(pos) + local inv=meta:get_inventory() + return inv:room_for_item("main",stack) + end, + input_inventory="main", + connect_sides={back=1}}, + is_ground_content = true, + paramtype2 = "facedir", + tubelike=1, + groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2, mesecon = 2,tubedevice=1, tubedevice_receiver=1,not_in_creative_inventory=1}, + sounds = default.node_sound_stone_defaults(), + on_construct = function(pos) + local meta = minetest.get_meta(pos) + meta:set_string("formspec", + "invsize[8,9;]".. + "label[0,0;Deployer]".. + "list[current_name;main;4,1;3,3;]".. + "list[current_player;main;0,5;8,4;]") + meta:set_string("infotext", "Deployer") + local inv = meta:get_inventory() + inv:set_size("main", 3*3) + end, + can_dig = function(pos,player) + local meta = minetest.get_meta(pos); + local inv = meta:get_inventory() + return inv:is_empty("main") + end, + after_place_node = function (pos, placer) + pipeworks.scan_for_tube_objects(pos, placer) + local placer_pos = placer:getpos() + + --correct for the player's height + if placer:is_player() then placer_pos.y = placer_pos.y + 1.5 end + + --correct for 6d facedir + if placer_pos then + local dir = { + x = pos.x - placer_pos.x, + y = pos.y - placer_pos.y, + z = pos.z - placer_pos.z + } + local node = minetest.get_node(pos) + node.param2 = dir_to_facedir(dir, true) + minetest.set_node(pos, node) + minetest.log("action", "real (6d) facedir: " .. node.param2) + end + end, + after_dig_node = pipeworks.scan_for_tube_objects, +}) diff --git a/mods/pipeworks/devices.lua b/mods/pipeworks/devices.lua new file mode 100644 index 0000000..ab14a2d --- /dev/null +++ b/mods/pipeworks/devices.lua @@ -0,0 +1,701 @@ +-- List of devices that should participate in the autoplace algorithm + +local pipereceptor_on = nil +local pipereceptor_off = nil + +if mesecon then + pipereceptor_on = { + receptor = { + state = mesecon.state.on, + rules = pipeworks.mesecons_rules + } + } + + pipereceptor_off = { + receptor = { + state = mesecon.state.off, + rules = pipeworks.mesecons_rules + } + } +end + +local pipes_devicelist = { + "pump", + "valve", + "storage_tank_0", + "storage_tank_1", + "storage_tank_2", + "storage_tank_3", + "storage_tank_4", + "storage_tank_5", + "storage_tank_6", + "storage_tank_7", + "storage_tank_8", + "storage_tank_9", + "storage_tank_10" +} + +-- Now define the nodes. + +local states = { "on", "off" } +local dgroups = "" +local pumpboxes = {} + +for s in ipairs(states) do + + if states[s] == "off" then + dgroups = {snappy=3, pipe=1} + else + dgroups = {snappy=3, pipe=1, not_in_creative_inventory=1} + end + + pumpboxes = {} + + pipeworks.add_node_box(pumpboxes, pipeworks.pipe_pumpbody) + pipeworks.add_node_box(pumpboxes, pipeworks.pipe_topstub) + + minetest.register_node("pipeworks:pump_"..states[s], { + description = "Pump/Intake Module", + drawtype = "nodebox", + tiles = { + "pipeworks_pump_top.png", + "pipeworks_pump_bottom.png", + "pipeworks_pump_sides.png", + "pipeworks_pump_sides.png", + "pipeworks_pump_sides.png", + "pipeworks_pump_"..states[s]..".png" + }, + paramtype = "light", + paramtype2 = "facedir", + selection_box = { + type = "fixed", + fixed = { -0.5, -0.5, -0.5, 0.5, 0.5, 0.5 } + }, + node_box = { + type = "fixed", + fixed = pumpboxes + }, + groups = dgroups, + sounds = default.node_sound_wood_defaults(), + walkable = true, + after_place_node = function(pos) + pipeworks.scan_for_pipe_objects(pos) + end, + after_dig_node = function(pos) + pipeworks.scan_for_pipe_objects(pos) + end, + drop = "pipeworks:pump_off", + mesecons = {effector = { + action_on = function (pos, node) + minetest.add_node(pos,{name="pipeworks:pump_on", param2 = node.param2}) + end, + action_off = function (pos, node) + minetest.add_node(pos,{name="pipeworks:pump_off", param2 = node.param2}) + end + }}, + on_punch = function(pos, node, puncher) + local fdir = minetest.get_node(pos).param2 + minetest.add_node(pos, { name = "pipeworks:pump_"..states[3-s], param2 = fdir }) + end + }) + + local valveboxes = {} + pipeworks.add_node_box(valveboxes, pipeworks.pipe_leftstub) + pipeworks.add_node_box(valveboxes, pipeworks.pipe_valvebody) + if states[s] == "off" then + pipeworks.add_node_box(valveboxes, pipeworks.pipe_valvehandle_off) + else + pipeworks.add_node_box(valveboxes, pipeworks.pipe_valvehandle_on) + end + pipeworks.add_node_box(valveboxes, pipeworks.pipe_rightstub) + local tilex = "pipeworks_valvebody_ends.png" + local tilez = "pipeworks_valvebody_sides.png" + + minetest.register_node("pipeworks:valve_"..states[s].."_empty", { + description = "Valve", + drawtype = "nodebox", + tiles = { + "pipeworks_valvebody_top_"..states[s]..".png", + "pipeworks_valvebody_bottom.png", + tilex, + tilex, + tilez, + tilez, + }, + sunlight_propagates = true, + paramtype = "light", + paramtype2 = "facedir", + selection_box = { + type = "fixed", + fixed = { -8/16, -4/16, -5/16, 8/16, 5/16, 5/16 } + }, + node_box = { + type = "fixed", + fixed = valveboxes + }, + groups = dgroups, + sounds = default.node_sound_wood_defaults(), + walkable = true, + after_place_node = function(pos) + pipeworks.scan_for_pipe_objects(pos) + end, + after_dig_node = function(pos) + pipeworks.scan_for_pipe_objects(pos) + end, + drop = "pipeworks:valve_off_empty", + mesecons = {effector = { + action_on = function (pos, node) + minetest.add_node(pos,{name="pipeworks:valve_on_empty", param2 = node.param2}) + end, + action_off = function (pos, node) + minetest.add_node(pos,{name="pipeworks:valve_off_empty", param2 = node.param2}) + end + }}, + on_punch = function(pos, node, puncher) + local fdir = minetest.get_node(pos).param2 + minetest.add_node(pos, { name = "pipeworks:valve_"..states[3-s].."_empty", param2 = fdir }) + end + }) +end + +local valveboxes = {} +pipeworks.add_node_box(valveboxes, pipeworks.pipe_leftstub) +pipeworks.add_node_box(valveboxes, pipeworks.pipe_valvebody) +pipeworks.add_node_box(valveboxes, pipeworks.pipe_rightstub) +pipeworks.add_node_box(valveboxes, pipeworks.pipe_valvehandle_on) + +minetest.register_node("pipeworks:valve_on_loaded", { + description = "Valve", + drawtype = "nodebox", + tiles = { + "pipeworks_valvebody_top_on.png", + "pipeworks_valvebody_bottom.png", + "pipeworks_valvebody_ends.png", + "pipeworks_valvebody_ends.png", + "pipeworks_valvebody_sides.png", + "pipeworks_valvebody_sides.png", + }, + sunlight_propagates = true, + paramtype = "light", + paramtype2 = "facedir", + selection_box = { + type = "fixed", + fixed = { -8/16, -4/16, -5/16, 8/16, 5/16, 5/16 } + }, + node_box = { + type = "fixed", + fixed = valveboxes + }, + groups = {snappy=3, pipe=1, not_in_creative_inventory=1}, + sounds = default.node_sound_wood_defaults(), + walkable = true, + after_place_node = function(pos) + pipeworks.scan_for_pipe_objects(pos) + end, + after_dig_node = function(pos) + pipeworks.scan_for_pipe_objects(pos) + end, + drop = "pipeworks:valve_off_empty", + mesecons = {effector = { + action_on = function (pos, node) + minetest.add_node(pos,{name="pipeworks:valve_on_empty", param2 = node.param2}) + end, + action_off = function (pos, node) + minetest.add_node(pos,{name="pipeworks:valve_off_empty", param2 = node.param2}) + end + }}, + on_punch = function(pos, node, puncher) + local fdir = minetest.get_node(pos).param2 + minetest.add_node(pos, { name = "pipeworks:valve_off_empty", param2 = fdir }) + end +}) + +-- grating + +minetest.register_node("pipeworks:grating", { + description = "Decorative grating", + tiles = { + "pipeworks_grating_top.png", + "pipeworks_grating_sides.png", + "pipeworks_grating_sides.png", + "pipeworks_grating_sides.png", + "pipeworks_grating_sides.png", + "pipeworks_grating_sides.png" + }, + sunlight_propagates = true, + paramtype = "light", + groups = {snappy=3, pipe=1}, + sounds = default.node_sound_wood_defaults(), + walkable = true, + after_place_node = function(pos) + pipeworks.scan_for_pipe_objects(pos) + end, + after_dig_node = function(pos) + pipeworks.scan_for_pipe_objects(pos) + end, +}) + +-- outlet spigot + + local spigotboxes = {} + pipeworks.add_node_box(spigotboxes, pipeworks.pipe_backstub) + pipeworks.add_node_box(spigotboxes, pipeworks.spigot_bottomstub) + pipeworks.add_node_box(spigotboxes, pipeworks.pipe_bendsphere) + + local spigotboxes_pouring = {} + pipeworks.add_node_box(spigotboxes_pouring, pipeworks.spigot_stream) + pipeworks.add_node_box(spigotboxes_pouring, pipeworks.pipe_backstub) + pipeworks.add_node_box(spigotboxes_pouring, pipeworks.spigot_bottomstub) + pipeworks.add_node_box(spigotboxes_pouring, pipeworks.pipe_bendsphere) + +minetest.register_node("pipeworks:spigot", { + description = "Spigot outlet", + drawtype = "nodebox", + tiles = { + "pipeworks_spigot_sides.png", + "pipeworks_pipe_end_empty.png", + "pipeworks_spigot_sides.png", + "pipeworks_spigot_sides.png", + "pipeworks_pipe_end_empty.png", + "pipeworks_spigot_sides.png" + }, + sunlight_propagates = true, + paramtype = "light", + paramtype2 = "facedir", + groups = {snappy=3, pipe=1}, + sounds = default.node_sound_wood_defaults(), + walkable = true, + after_place_node = function(pos) + pipeworks.scan_for_pipe_objects(pos) + end, + after_dig_node = function(pos) + pipeworks.scan_for_pipe_objects(pos) + end, + node_box = { + type = "fixed", + fixed = spigotboxes, + }, + selection_box = { + type = "fixed", + fixed = { -2/16, -6/16, -2/16, 2/16, 2/16, 8/16 } + } +}) + +minetest.register_node("pipeworks:spigot_pouring", { + description = "Spigot outlet", + drawtype = "nodebox", + tiles = { + "pipeworks_spigot_sides.png", + "default_water.png^pipeworks_spigot_bottom2.png", + { name = "default_water_flowing_animated.png^pipeworks_spigot_sides2.png", + animation = { + type = "vertical_frames", + aspect_w=16, + aspect_h=16, + length=0.8 + } + }, + { name = "default_water_flowing_animated.png^pipeworks_spigot_sides2.png", + animation = { + type = "vertical_frames", + aspect_w=16, + aspect_h=16, + length=0.8 + } + }, + { name = "default_water_flowing_animated.png^pipeworks_spigot_sides2.png", + animation = { + type = "vertical_frames", + aspect_w=16, + aspect_h=16, + length=0.8 + } + }, + { name = "default_water_flowing_animated.png^pipeworks_spigot_sides2.png", + animation = { + type = "vertical_frames", + aspect_w=16, + aspect_h=16, + length=0.8 + } + }, + }, + sunlight_propagates = true, + paramtype = "light", + paramtype2 = "facedir", + groups = {snappy=3, pipe=1, not_in_creative_inventory=1}, + sounds = default.node_sound_wood_defaults(), + walkable = true, + after_place_node = function(pos) + pipeworks.scan_for_pipe_objects(pos) + end, + after_dig_node = function(pos) + pipeworks.scan_for_pipe_objects(pos) + end, + node_box = { + type = "fixed", + fixed = spigotboxes_pouring, + }, + selection_box = { + type = "fixed", + fixed = { -2/16, -6/16, -2/16, 2/16, 2/16, 8/16 } + }, + drop = "pipeworks:spigot", +}) + +-- sealed pipe entry/exit (horizontal pipe passing through a metal +-- wall, for use in places where walls should look like they're airtight) + +local airtightboxes = {} +pipeworks.add_node_box(airtightboxes, pipeworks.pipe_frontstub) +pipeworks.add_node_box(airtightboxes, pipeworks.pipe_backstub) +pipeworks.add_node_box(airtightboxes, pipeworks.entry_panel) + +minetest.register_node("pipeworks:entry_panel_empty", { + description = "Airtight Pipe entry/exit", + drawtype = "nodebox", + tiles = { + "pipeworks_plain.png", + "pipeworks_plain.png", + "pipeworks_plain.png", + "pipeworks_plain.png", + "pipeworks_pipe_end_empty.png", + "pipeworks_pipe_end_empty.png" + }, + paramtype = "light", + paramtype2 = "facedir", + groups = {snappy=3, pipe=1}, + sounds = default.node_sound_wood_defaults(), + walkable = true, + after_place_node = function(pos) + pipeworks.scan_for_pipe_objects(pos) + end, + after_dig_node = function(pos) + pipeworks.scan_for_pipe_objects(pos) + end, + node_box = { + type = "fixed", + fixed = airtightboxes, + }, + selection_box = { + type = "fixed", + fixed = { + { -2/16, -2/16, -8/16, 2/16, 2/16, 8/16 }, + { -8/16, -8/16, -1/16, 8/16, 8/16, 1/16 } + } + }, + on_place = function(itemstack, placer, pointed_thing) + if not pipeworks.node_is_owned(pointed_thing.under, placer) + and not pipeworks.node_is_owned(pointed_thing.above, placer) then + local node = minetest.get_node(pointed_thing.under) + + if not minetest.registered_nodes[node.name] + or not minetest.registered_nodes[node.name].on_rightclick then + local pitch = placer:get_look_pitch() + local above = pointed_thing.above + local under = pointed_thing.under + local fdir = minetest.dir_to_facedir(placer:get_look_dir()) + local undernode = minetest.get_node(under) + local abovenode = minetest.get_node(above) + local uname = undernode.name + local aname = abovenode.name + local isabove = (above.x == under.x) and (above.z == under.z) and (pitch > 0) + local pos1 = above + + if above.x == under.x + and above.z == under.z + and ( string.find(uname, "pipeworks:pipe_") + or string.find(uname, "pipeworks:storage_") + or string.find(uname, "pipeworks:expansion_") + or ( string.find(uname, "pipeworks:grating") and not isabove ) + or ( string.find(uname, "pipeworks:pump_") and not isabove ) + or ( string.find(uname, "pipeworks:entry_panel") + and undernode.param2 == 13 ) + ) + then + fdir = 13 + end + + if minetest.registered_nodes[uname]["buildable_to"] then + pos1 = under + end + + if not minetest.registered_nodes[minetest.get_node(pos1).name]["buildable_to"] then return end + + minetest.add_node(pos1, {name = "pipeworks:entry_panel_empty", param2 = fdir }) + pipeworks.scan_for_pipe_objects(pos1) + + if not pipeworks.expect_infinite_stacks then + itemstack:take_item() + end + + else + minetest.registered_nodes[node.name].on_rightclick(pointed_thing.under, node, placer, itemstack) + end + end + return itemstack + end +}) + +minetest.register_node("pipeworks:entry_panel_loaded", { + description = "Airtight Pipe entry/exit", + drawtype = "nodebox", + tiles = { + "pipeworks_plain.png", + "pipeworks_plain.png", + "pipeworks_plain.png", + "pipeworks_plain.png", + "pipeworks_pipe_end_empty.png", + "pipeworks_pipe_end_empty.png" + }, + paramtype = "light", + paramtype2 = "facedir", + groups = {snappy=3, pipe=1, not_in_creative_inventory=1}, + sounds = default.node_sound_wood_defaults(), + walkable = true, + after_place_node = function(pos) + pipeworks.scan_for_pipe_objects(pos) + end, + after_dig_node = function(pos) + pipeworks.scan_for_pipe_objects(pos) + end, + node_box = { + type = "fixed", + fixed = airtightboxes, + }, + selection_box = { + type = "fixed", + fixed = { + { -2/16, -2/16, -8/16, 2/16, 2/16, 8/16 }, + { -8/16, -8/16, -1/16, 8/16, 8/16, 1/16 } + } + }, + drop = "pipeworks:entry_panel_empty" +}) + +local sensorboxes = {} +pipeworks.add_node_box(sensorboxes, pipeworks.pipe_leftstub) +pipeworks.add_node_box(sensorboxes, pipeworks.pipe_sensorbody) +pipeworks.add_node_box(sensorboxes, pipeworks.pipe_rightstub) + +minetest.register_node("pipeworks:flow_sensor_empty", { + description = "Flow Sensor", + drawtype = "nodebox", + tiles = { + "pipeworks_plain.png", + "pipeworks_plain.png", + "pipeworks_plain.png", + "pipeworks_plain.png", + "pipeworks_windowed_empty.png", + "pipeworks_windowed_empty.png" + }, + sunlight_propagates = true, + paramtype = "light", + paramtype2 = "facedir", + groups = {snappy=3, pipe=1}, + sounds = default.node_sound_wood_defaults(), + walkable = true, + after_place_node = function(pos) + pipeworks.scan_for_pipe_objects(pos) + end, + after_dig_node = function(pos) + pipeworks.scan_for_pipe_objects(pos) + end, + on_construct = function(pos) + if mesecon then + mesecon:receptor_off(pos, rules) + end + end, + node_box = { + type = "fixed", + fixed = sensorboxes, + }, + selection_box = { + type = "fixed", + fixed = { + { -8/16, -2/16, -2/16, 8/16, 2/16, 2/16 }, + } + }, + mesecons = pipereceptor_off +}) + +minetest.register_node("pipeworks:flow_sensor_loaded", { + description = "Flow sensor (on)", + drawtype = "nodebox", + tiles = { + "pipeworks_plain.png", + "pipeworks_plain.png", + "pipeworks_plain.png", + "pipeworks_plain.png", + "pipeworks_sensor_sides_on.png", + "pipeworks_sensor_sides_on.png" + }, + sunlight_propagates = true, + paramtype = "light", + paramtype2 = "facedir", + groups = {snappy=3, pipe=1, not_in_creative_inventory=1}, + sounds = default.node_sound_wood_defaults(), + walkable = true, + after_place_node = function(pos) + pipeworks.scan_for_pipe_objects(pos) + end, + after_dig_node = function(pos) + pipeworks.scan_for_pipe_objects(pos) + end, + on_construct = function(pos) + if mesecon then + mesecon:receptor_on(pos, rules) + end + end, + node_box = { + type = "fixed", + fixed = sensorboxes, + }, + selection_box = { + type = "fixed", + fixed = { + { -8/16, -2/16, -2/16, 8/16, 2/16, 2/16 }, + } + }, + drop = "pipeworks:flow_sensor_empty", + mesecons = pipereceptor_on +}) + +-- tanks + +for fill = 0, 10 do + local filldesc="empty" + local sgroups = {snappy=3, pipe=1, tankfill=fill+1} + local image = nil + + if fill ~= 0 then + filldesc=fill.."0% full" + sgroups = {snappy=3, pipe=1, tankfill=fill+1, not_in_creative_inventory=1} + image = "pipeworks_storage_tank_fittings.png" + end + + minetest.register_node("pipeworks:expansion_tank_"..fill, { + description = "Expansion Tank ("..filldesc..")... You hacker, you.", + tiles = { + "pipeworks_storage_tank_fittings.png", + "pipeworks_storage_tank_fittings.png", + "pipeworks_storage_tank_back.png", + "pipeworks_storage_tank_back.png", + "pipeworks_storage_tank_back.png", + pipeworks.liquid_texture.."^pipeworks_storage_tank_front_"..fill..".png" + }, + inventory_image = image, + paramtype = "light", + paramtype2 = "facedir", + groups = {snappy=3, pipe=1, tankfill=fill+1, not_in_creative_inventory=1}, + sounds = default.node_sound_wood_defaults(), + walkable = true, + drop = "pipeworks:storage_tank_"..fill, + after_place_node = function(pos) + pipeworks.look_for_stackable_tanks(pos) + pipeworks.scan_for_pipe_objects(pos) + end, + after_dig_node = function(pos) + pipeworks.scan_for_pipe_objects(pos) + end, + }) + + minetest.register_node("pipeworks:storage_tank_"..fill, { + description = "Fluid Storage Tank ("..filldesc..")", + tiles = { + "pipeworks_storage_tank_fittings.png", + "pipeworks_storage_tank_fittings.png", + "pipeworks_storage_tank_back.png", + "pipeworks_storage_tank_back.png", + "pipeworks_storage_tank_back.png", + pipeworks.liquid_texture.."^pipeworks_storage_tank_front_"..fill..".png" + }, + inventory_image = image, + paramtype = "light", + paramtype2 = "facedir", + groups = sgroups, + sounds = default.node_sound_wood_defaults(), + walkable = true, + after_place_node = function(pos) + pipeworks.look_for_stackable_tanks(pos) + pipeworks.scan_for_pipe_objects(pos) + end, + after_dig_node = function(pos) + pipeworks.scan_for_pipe_objects(pos) + end, + }) +end + +-- fountainhead + +minetest.register_node("pipeworks:fountainhead", { + description = "Fountainhead", + drawtype = "nodebox", + tiles = { + "pipeworks_fountainhead_top.png", + "pipeworks_pipe_end.png", + "pipeworks_plain.png", + }, + sunlight_propagates = true, + paramtype = "light", + groups = {snappy=3, pipe=1}, + sounds = default.node_sound_wood_defaults(), + walkable = true, + after_place_node = function(pos) + pipeworks.scan_for_pipe_objects(pos) + end, + after_dig_node = function(pos) + pipeworks.scan_for_pipe_objects(pos) + end, + on_construct = function(pos) + if mesecon then + mesecon:receptor_on(pos, rules) + end + end, + node_box = { + type = "fixed", + fixed = pipeworks.fountainhead_model , + }, + selection_box = { + type = "fixed", + fixed = { -2/16, -8/16, -2/16, 2/16, 8/16, 2/16 } + }, +}) + +minetest.register_node("pipeworks:fountainhead_pouring", { + description = "Fountainhead", + drawtype = "nodebox", + tiles = { + "pipeworks_fountainhead_top.png", + "pipeworks_pipe_end.png", + "pipeworks_plain.png", + }, + sunlight_propagates = true, + paramtype = "light", + groups = {snappy=3, pipe=1, not_in_creative_inventory=1}, + sounds = default.node_sound_wood_defaults(), + walkable = true, + after_place_node = function(pos) + pipeworks.scan_for_pipe_objects(pos) + end, + after_dig_node = function(pos) + pipeworks.scan_for_pipe_objects(pos) + end, + on_construct = function(pos) + if mesecon then + mesecon:receptor_on(pos, rules) + end + end, + node_box = { + type = "fixed", + fixed = pipeworks.fountainhead_model, + }, + selection_box = { + type = "fixed", + fixed = { -2/16, -8/16, -2/16, 2/16, 8/16, 2/16 }, + }, + drop = "pipeworks:fountainhead" +}) + +minetest.register_alias("pipeworks:valve_off_loaded", "pipeworks:valve_off_empty") + diff --git a/mods/pipeworks/flowing_logic.lua b/mods/pipeworks/flowing_logic.lua new file mode 100644 index 0000000..e0a6236 --- /dev/null +++ b/mods/pipeworks/flowing_logic.lua @@ -0,0 +1,121 @@ +-- This file provides the actual flow and pathfinding logic that makes water +-- move through the pipes. +-- +-- Contributed by mauvebic, 2013-01-03, rewritten a bit by Vanessa Ezekowitz +-- + +local finitewater = minetest.setting_getbool("liquid_finite") + +pipeworks.check_for_liquids = function(pos) + local coords = { + {x=pos.x,y=pos.y-1,z=pos.z}, + {x=pos.x,y=pos.y+1,z=pos.z}, + {x=pos.x-1,y=pos.y,z=pos.z}, + {x=pos.x+1,y=pos.y,z=pos.z}, + {x=pos.x,y=pos.y,z=pos.z-1}, + {x=pos.x,y=pos.y,z=pos.z+1}, } + for i =1,6 do + local name = minetest.get_node(coords[i]).name + if name and string.find(name,"water") then + if finitewater then minetest.remove_node(coords[i]) end + return true + end + end + return false +end + +pipeworks.check_for_inflows = function(pos,node) + local coords = { + {x=pos.x,y=pos.y-1,z=pos.z}, + {x=pos.x,y=pos.y+1,z=pos.z}, + {x=pos.x-1,y=pos.y,z=pos.z}, + {x=pos.x+1,y=pos.y,z=pos.z}, + {x=pos.x,y=pos.y,z=pos.z-1}, + {x=pos.x,y=pos.y,z=pos.z+1}, } + local newnode = false + local source = false + for i =1,6 do + if newnode then break end + local name = minetest.get_node(coords[i]).name + if name and (name == "pipeworks:pump_on" and pipeworks.check_for_liquids(coords[i])) or string.find(name,"_loaded") then + if string.find(name,"_loaded") then + source = minetest.get_meta(coords[i]):get_string("source") + if source == minetest.pos_to_string(pos) then break end + end + newnode = string.gsub(node.name,"empty","loaded") + source = {x=coords[i].x,y=coords[i].y,z=coords[i].z} + end + end + if newnode then + minetest.add_node(pos,{name=newnode, param2 = node.param2}) + minetest.get_meta(pos):set_string("source",minetest.pos_to_string(source)) + end +end + +pipeworks.check_sources = function(pos,node) + local sourcepos = minetest.string_to_pos(minetest.get_meta(pos):get_string("source")) + if not sourcepos then return end + local source = minetest.get_node(sourcepos).name + local newnode = false + if source and not ((source == "pipeworks:pump_on" and pipeworks.check_for_liquids(sourcepos)) or string.find(source,"_loaded") or source == "ignore" ) then + newnode = string.gsub(node.name,"loaded","empty") + end + + if newnode then + minetest.add_node(pos,{name=newnode, param2 = node.param2}) + minetest.get_meta(pos):set_string("source","") + end +end + +pipeworks.spigot_check = function(pos, node) + local belowname = minetest.get_node({x=pos.x,y=pos.y-1,z=pos.z}).name + if belowname and (belowname == "air" or belowname == "default:water_flowing" or belowname == "default:water_source") then + local spigotname = minetest.get_node(pos).name + local fdir=node.param2 + local check = { + {x=pos.x,y=pos.y,z=pos.z+1}, + {x=pos.x+1,y=pos.y,z=pos.z}, + {x=pos.x,y=pos.y,z=pos.z-1}, + {x=pos.x-1,y=pos.y,z=pos.z} + } + local near_node = minetest.get_node(check[fdir+1]) + if near_node and string.find(near_node.name, "_loaded") then + if spigotname and spigotname == "pipeworks:spigot" then + minetest.add_node(pos,{name = "pipeworks:spigot_pouring", param2 = fdir}) + if finitewater or belowname ~= "default:water_source" then + minetest.add_node({x=pos.x,y=pos.y-1,z=pos.z},{name = "default:water_source"}) + end + end + else + if spigotname == "pipeworks:spigot_pouring" then + minetest.add_node({x=pos.x,y=pos.y,z=pos.z},{name = "pipeworks:spigot", param2 = fdir}) + if belowname == "default:water_source" and not finitewater then + minetest.remove_node({x=pos.x,y=pos.y-1,z=pos.z}) + end + end + end + end +end + +pipeworks.fountainhead_check = function(pos, node) + local abovename = minetest.get_node({x=pos.x,y=pos.y+1,z=pos.z}).name + if abovename and (abovename == "air" or abovename == "default:water_flowing" or abovename == "default:water_source") then + local fountainhead_name = minetest.get_node(pos).name + local near_node = minetest.get_node({x=pos.x,y=pos.y-1,z=pos.z}) + if near_node and string.find(near_node.name, "_loaded") then + if fountainhead_name and fountainhead_name == "pipeworks:fountainhead" then + minetest.add_node(pos,{name = "pipeworks:fountainhead_pouring"}) + if finitewater or abovename ~= "default:water_source" then + minetest.add_node({x=pos.x,y=pos.y+1,z=pos.z},{name = "default:water_source"}) + end + end + else + if fountainhead_name == "pipeworks:fountainhead_pouring" then + minetest.add_node({x=pos.x,y=pos.y,z=pos.z},{name = "pipeworks:fountainhead"}) + if abovename == "default:water_source" and not finitewater then + minetest.remove_node({x=pos.x,y=pos.y+1,z=pos.z}) + end + end + end + end +end diff --git a/mods/pipeworks/init.lua b/mods/pipeworks/init.lua new file mode 100644 index 0000000..6964abc --- /dev/null +++ b/mods/pipeworks/init.lua @@ -0,0 +1,128 @@ +-- Pipeworks mod by Vanessa Ezekowitz - 2013-07-13 +-- +-- This mod supplies various steel pipes and plastic pneumatic tubes +-- and devices that they can connect to. +-- +-- License: WTFPL +-- + +pipeworks = {} + +local DEBUG = false + +pipeworks.worldpath = minetest.get_worldpath() +pipeworks.modpath = minetest.get_modpath("pipeworks") + +dofile(pipeworks.modpath.."/default_settings.txt") + +-- Read the external config file if it exists. +if io.open(pipeworks.worldpath.."/pipeworks_settings.txt","r") then + dofile(pipeworks.worldpath.."/pipeworks_settings.txt") + io.close() +end + +-- Random variables + +pipeworks.expect_infinite_stacks = true +if minetest.get_modpath("unified_inventory") or not minetest.setting_getbool("creative_mode") then + pipeworks.expect_infinite_stacks = false +end + +pipeworks.meseadjlist={{x=0,y=0,z=1},{x=0,y=0,z=-1},{x=0,y=1,z=0},{x=0,y=-1,z=0},{x=1,y=0,z=0},{x=-1,y=0,z=0}} + +pipeworks.rules_all = {{x=0, y=0, z=1},{x=0, y=0, z=-1},{x=1, y=0, z=0},{x=-1, y=0, z=0}, + {x=0, y=1, z=1},{x=0, y=1, z=-1},{x=1, y=1, z=0},{x=-1, y=1, z=0}, + {x=0, y=-1, z=1},{x=0, y=-1, z=-1},{x=1, y=-1, z=0},{x=-1, y=-1, z=0}, + {x=0, y=1, z=0}, {x=0, y=-1, z=0}} + +pipeworks.mesecons_rules={{x=0,y=0,z=1},{x=0,y=0,z=-1},{x=1,y=0,z=0},{x=-1,y=0,z=0},{x=0,y=1,z=0},{x=0,y=-1,z=0}} + +pipeworks.liquid_texture = "default_water.png" + +-- Helper functions + +function pipeworks.fix_image_names(table, replacement) + local outtable={} + for i in ipairs(table) do + outtable[i]=string.gsub(table[i], "_XXXXX", replacement) + end + + return outtable +end + +function pipeworks.add_node_box(t, b) + for i in ipairs(b) + do table.insert(t, b[i]) + end +end + +function pipeworks.node_is_owned(pos, placer) + local ownername = false + if type(IsPlayerNodeOwner) == "function" then -- node_ownership mod + if HasOwner(pos, placer) then -- returns true if the node is owned + if not IsPlayerNodeOwner(pos, placer:get_player_name()) then + if type(getLastOwner) == "function" then -- ...is an old version + ownername = getLastOwner(pos) + elseif type(GetNodeOwnerName) == "function" then -- ...is a recent version + ownername = GetNodeOwnerName(pos) + else + ownername = S("someone") + end + end + end + + elseif type(isprotect)=="function" then -- glomie's protection mod + if not isprotect(5, pos, placer) then + ownername = S("someone") + end + elseif type(protector)=="table" and type(protector.can_dig)=="function" then -- Zeg9's protection mod + if not protector.can_dig(5, pos, placer) then + ownername = S("someone") + end + end + + if ownername ~= false then + minetest.chat_send_player( placer:get_player_name(), S("Sorry, %s owns that spot."):format(ownername) ) + return true + else + return false + end +end + +function pipeworks.replace_name(tbl,tr,name) + local ntbl={} + for key,i in pairs(tbl) do + if type(i)=="string" then + ntbl[key]=string.gsub(i,tr,name) + elseif type(i)=="table" then + ntbl[key]=pipeworks.replace_name(i,tr,name) + else + ntbl[key]=i + end + end + return ntbl +end + +------------------------------------------- +-- Load the various other parts of the mod + +dofile(pipeworks.modpath.."/models.lua") +dofile(pipeworks.modpath.."/autoplace_pipes.lua") +dofile(pipeworks.modpath.."/autoplace_tubes.lua") +dofile(pipeworks.modpath.."/item_transport.lua") +dofile(pipeworks.modpath.."/flowing_logic.lua") +dofile(pipeworks.modpath.."/crafts.lua") +dofile(pipeworks.modpath.."/tubes.lua") + +if pipeworks.enable_pipes then dofile(pipeworks.modpath.."/pipes.lua") end +if pipeworks.enable_teleport_tube then dofile(pipeworks.modpath.."/teleport_tube.lua") end +if pipeworks.enable_pipe_devices then dofile(pipeworks.modpath.."/devices.lua") end +if pipeworks.enable_redefines then dofile(pipeworks.modpath.."/compat.lua") end +if pipeworks.enable_autocrafter then dofile(pipeworks.modpath.."/autocrafter.lua") end +if pipeworks.enable_deployer then dofile(pipeworks.modpath.."/deployer.lua") end +if pipeworks.enable_node_breaker then dofile(pipeworks.modpath.."/node_breaker.lua") end + +minetest.register_alias("pipeworks:pipe", "pipeworks:pipe_110000_empty") + +print("Pipeworks loaded!") + diff --git a/mods/pipeworks/item_transport.lua b/mods/pipeworks/item_transport.lua new file mode 100644 index 0000000..b97d5bb --- /dev/null +++ b/mods/pipeworks/item_transport.lua @@ -0,0 +1,492 @@ +dofile(pipeworks.modpath.."/compat.lua") + +--and an extra function for getting the right-facing vector +local function facedir_to_right_dir(facedir) + + --find the other directions + local backdir = minetest.facedir_to_dir(facedir) + local topdir = ({[0]={x=0, y=1, z=0}, + {x=0, y=0, z=1}, + {x=0, y=0, z=-1}, + {x=1, y=0, z=0}, + {x=-1, y=0, z=0}, + {x=0, y=-1, z=0}})[math.floor(facedir/4)] + + --return a cross product + return {x=topdir.y*backdir.z - backdir.y*topdir.z, + y=topdir.z*backdir.x - backdir.z*topdir.x, + z=topdir.x*backdir.y - backdir.x*topdir.y} +end + +minetest.register_craftitem("pipeworks:filter", { + description = "Filter", + stack_max = 99, +}) + +local fakePlayer = { + get_player_name = function() return ":pipeworks" end, + -- any other player functions called by allow_metadata_inventory_take anywhere... + -- perhaps a custom metaclass that errors specially when fakePlayer. is not found? +} + +function pipeworks.tube_item(pos, item) + -- Take item in any format + local stack = ItemStack(item) + local obj = minetest.add_entity(pos, "pipeworks:tubed_item") + obj:get_luaentity():set_item(stack:to_string()) + return obj +end + +-- adding two tube functions +-- can_remove(pos,node,stack,dir) returns the maximum number of items of that stack that can be removed +-- remove_items(pos,node,stack,dir,count) removes count items and returns them +-- both optional w/ sensible defaults and fallback to normal allow_* function +-- XXX: possibly change insert_object to insert_item + +-- sname = the current name to allow for, or nil if it allows anything + +local function grabAndFire(frominv,frominvname,frompos,fromnode,sname,tube,idef,dir,all) + for spos,stack in ipairs(frominv:get_list(frominvname)) do + if (sname == nil and stack:get_name() ~= "") or stack:get_name() == sname then + local doRemove = stack:get_count() + if tube.can_remove then + doRemove = tube.can_remove(frompos, fromnode, stack, dir) + elseif idef.allow_metadata_inventory_take then + doRemove = idef.allow_metadata_inventory_take(frompos,"main",spos, stack, fakePlayer) + end + -- stupid lack of continue statements grumble + if doRemove > 0 then + local item + local count + if all then + count = math.min(stack:get_count(), doRemove) + else + count = 1 + end + if tube.remove_items then + -- it could be the entire stack... + item = tube.remove_items(frompos, fromnode, stack, dir, count) + else + item = stack:take_item(count) + frominv:set_stack(frominvname, spos, stack) + if idef.on_metadata_inventory_take then + idef.on_metadata_inventory_take(frompos, "main", spos, item, fakePlayer) + end + end + local item1 = pipeworks.tube_item(vector.add(frompos, vector.multiply(dir, 1.4)), item) + item1:get_luaentity().start_pos = vector.add(frompos, dir) + item1:setvelocity(dir) + item1:setacceleration({x=0, y=0, z=0}) + return true-- only fire one item, please + end + end + end + return false +end + +minetest.register_node("pipeworks:filter", { + description = "Filter", + tiles = {"pipeworks_filter_top.png", "pipeworks_filter_top.png", "pipeworks_filter_output.png", + "pipeworks_filter_input.png", "pipeworks_filter_side.png", "pipeworks_filter_top.png"}, + paramtype2 = "facedir", + groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2,tubedevice=1,mesecon=2}, + legacy_facedir_simple = true, + sounds = default.node_sound_wood_defaults(), + on_construct = function(pos) + local meta = minetest.get_meta(pos) + meta:set_string("formspec", + "invsize[8,6.5;]".. + "list[current_name;main;0,0;8,2;]".. + "list[current_player;main;0,2.5;8,4;]") + meta:set_string("infotext", "Filter") + local inv = meta:get_inventory() + inv:set_size("main", 8*4) + end, + can_dig = function(pos,player) + local meta = minetest.get_meta(pos); + local inv = meta:get_inventory() + return inv:is_empty("main") + end, + after_place_node = function(pos) + pipeworks.scan_for_tube_objects(pos) + end, + after_dig_node = function(pos) + pipeworks.scan_for_tube_objects(pos) + end, + mesecons={effector={action_on=function(pos,node) + minetest.registered_nodes[node.name].on_punch(pos,node,nil) + end}}, + tube={connect_sides={right=1}}, + on_punch = function (pos, node, puncher) + local meta = minetest.get_meta(pos); + local inv = meta:get_inventory() + local dir = facedir_to_right_dir(node.param2) + local frompos = {x=pos.x - dir.x, y=pos.y - dir.y, z=pos.z - dir.z} + local fromnode=minetest.get_node(frompos) + if not fromnode then return end + local idef = minetest.registered_nodes[fromnode.name] + -- assert(idef) + local tube = idef.tube + if not (tube and tube.input_inventory) then + return + end + local frommeta = minetest.get_meta(frompos) + local frominvname = tube.input_inventory + local frominv = frommeta:get_inventory() + local sname + for _,filter in ipairs(inv:get_list("main")) do + sname = filter:get_name() + if sname ~= "" then + -- XXX: that's a lot of parameters + if grabAndFire(frominv, frominvname, frompos, fromnode, sname, tube, idef, dir) then return end + end + end + if inv:is_empty("main") then + grabAndFire(frominv,frominvname,frompos,fromnode,nil,tube,idef,dir) + end + end, +}) + +minetest.register_craftitem("pipeworks:mese_filter", { + description = "Mese filter", + stack_max = 99, +}) + +minetest.register_node("pipeworks:mese_filter", { + description = "Mese filter", + tiles = {"pipeworks_mese_filter_top.png", "pipeworks_mese_filter_top.png", "pipeworks_mese_filter_output.png", + "pipeworks_mese_filter_input.png", "pipeworks_mese_filter_side.png", "pipeworks_mese_filter_top.png"}, + paramtype2 = "facedir", + groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2,tubedevice=1,mesecon=2}, + legacy_facedir_simple = true, + sounds = default.node_sound_wood_defaults(), + on_construct = function(pos) + local meta = minetest.get_meta(pos) + meta:set_string("formspec", + "invsize[8,6.5;]".. + "list[current_name;main;0,0;8,2;]".. + "list[current_player;main;0,2.5;8,4;]") + meta:set_string("infotext", "Mese filter") + local inv = meta:get_inventory() + inv:set_size("main", 8*4) + end, + can_dig = function(pos,player) + local meta = minetest.get_meta(pos); + local inv = meta:get_inventory() + return inv:is_empty("main") + end, + after_place_node = function(pos) + pipeworks.scan_for_tube_objects(pos) + end, + after_dig_node = function(pos) + pipeworks.scan_for_tube_objects(pos) + end, + mesecons={effector={action_on=function(pos,node) + minetest.registered_nodes[node.name].on_punch(pos,node,nil) + end}}, + tube={connect_sides={right=1}}, + on_punch = function (pos, node, puncher) + local meta = minetest.get_meta(pos); + local inv = meta:get_inventory() + local dir = facedir_to_right_dir(node.param2) + local frompos = {x=pos.x - dir.x, y=pos.y - dir.y, z=pos.z - dir.z} + local fromnode=minetest.get_node(frompos) + local idef = minetest.registered_nodes[fromnode.name] + -- assert(idef) + local tube = idef.tube + if not (tube and tube.input_inventory) then + return + end + local frommeta = minetest.get_meta(frompos) + local frominvname = minetest.registered_nodes[fromnode.name].tube.input_inventory + local frominv = frommeta:get_inventory() + local sname + for _,filter in ipairs(inv:get_list("main")) do + sname = filter:get_name() + if sname ~= "" then + if grabAndFire(frominv, frominvname, frompos, fromnode, sname, tube, idef, dir, true) then return end + end + end + if inv:is_empty("main") then + grabAndFire(frominv, frominvname, frompos, fromnode, nil, tube, idef, dir, true) + end + end, +}) + +local function roundpos(pos) + return {x=math.floor(pos.x+0.5),y=math.floor(pos.y+0.5),z=math.floor(pos.z+0.5)} +end + +local function addVect(pos,vect) + return {x=pos.x+vect.x,y=pos.y+vect.y,z=pos.z+vect.z} +end + +local adjlist={{x=0,y=0,z=1},{x=0,y=0,z=-1},{x=0,y=1,z=0},{x=0,y=-1,z=0},{x=1,y=0,z=0},{x=-1,y=0,z=0}} + +function pipeworks.notvel(tbl, vel) + local tbl2={} + for _,val in ipairs(tbl) do + if val.x ~= -vel.x or val.y ~= -vel.y or val.z ~= -vel.z then table.insert(tbl2, val) end + end + return tbl2 +end + +local function go_next(pos, velocity, stack) + local chests = {} + local tubes = {} + local cnode = minetest.get_node(pos) + local cmeta = minetest.get_meta(pos) + local n + local can_go + local speed = math.abs(velocity.x + velocity.y + velocity.z) + local vel = {x = velocity.x/speed, y = velocity.y/speed, z = velocity.z/speed,speed=speed} + if speed >= 4.1 then + speed = 4 + elseif speed >= 1.1 then + speed = speed-0.1 + else + speed = 1 + end + vel.speed=speed + if minetest.registered_nodes[cnode.name] and minetest.registered_nodes[cnode.name].tube and minetest.registered_nodes[cnode.name].tube.can_go then + can_go = minetest.registered_nodes[cnode.name].tube.can_go(pos, cnode, vel, stack) + else + can_go = pipeworks.notvel(adjlist, vel) + end + local meta = nil + for _,vect in ipairs(can_go) do + local npos = addVect(pos,vect) + local node = minetest.get_node(npos) + local tube_receiver = minetest.get_item_group(node.name,"tubedevice_receiver") + meta = minetest.get_meta(npos) + local tubelike = meta:get_int("tubelike") + if tube_receiver == 1 then + if minetest.registered_nodes[node.name].tube and + minetest.registered_nodes[node.name].tube.can_insert and + minetest.registered_nodes[node.name].tube.can_insert(npos, node, stack, vect) then + local i = #chests + 1 + chests[i] = {} + chests[i].pos = npos + chests[i].vect = vect + end + elseif tubelike == 1 then + local i = #tubes + 1 + tubes[i] = {} + tubes[i].pos = npos + tubes[i].vect = vect + end + end + if chests[1] == nil then--no chests found + if tubes[1] == nil then + return 0 + else + n = (cmeta:get_int("tubedir")%(#tubes)) + 1 + if pipeworks.enable_cyclic_mode then + cmeta:set_int("tubedir",n) + end + velocity.x = tubes[n].vect.x*vel.speed + velocity.y = tubes[n].vect.y*vel.speed + velocity.z = tubes[n].vect.z*vel.speed + end + else + n = (cmeta:get_int("tubedir")%(#chests))+1 + if pipeworks.enable_cyclic_mode then + cmeta:set_int("tubedir",n) + end + velocity.x = chests[n].vect.x*speed + velocity.y = chests[n].vect.y*speed + velocity.z = chests[n].vect.z*speed + end + return 1 +end + +minetest.register_entity("pipeworks:tubed_item", { + initial_properties = { + hp_max = 1, + physical = false, +-- collisionbox = {0,0,0,0,0,0}, + collisionbox = {0.1,0.1,0.1,0.1,0.1,0.1}, + visual = "sprite", + visual_size = {x=0.5, y=0.5}, + textures = {""}, + spritediv = {x=1, y=1}, + initial_sprite_basepos = {x=0, y=0}, + is_visible = false, + start_pos={}, + route={} + }, + + itemstring = '', + physical_state = false, + + set_item = function(self, itemstring) + self.itemstring = itemstring + local stack = ItemStack(itemstring) + local itemtable = stack:to_table() + local itemname = nil + if itemtable then + itemname = stack:to_table().name + 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 + end + prop = { + is_visible = true, + visual = "sprite", + textures = {"unknown_item.png"} + } + if item_texture and item_texture ~= "" then + prop.visual = "sprite" + prop.textures = {item_texture} + prop.visual_size = {x=0.3, y=0.3} + else + prop.visual = "wielditem" + prop.textures = {itemname} + prop.visual_size = {x=0.15, y=0.15} + end + self.object:set_properties(prop) + end, + + get_staticdata = function(self) + if self.start_pos==nil then return end + local velocity=self.object:getvelocity() + --self.object:setvelocity({x=0,y=0,z=0}) + self.object:setpos(self.start_pos) + return minetest.serialize({ + itemstring=self.itemstring, + velocity=velocity, + start_pos=self.start_pos + }) + end, + + on_activate = function(self, staticdata) + if staticdata=="" or staticdata==nil then return end + local item = minetest.deserialize(staticdata) + local stack = ItemStack(item.itemstring) + local itemtable = stack:to_table() + local itemname = nil + if itemtable then + itemname = stack:to_table().name + end + + if itemname then + self.start_pos=item.start_pos + self.object:setvelocity(item.velocity) + self.object:setacceleration({x=0, y=0, z=0}) + self.object:setpos(item.start_pos) + end + self:set_item(item.itemstring) + end, + + on_step = function(self, dtime) + if self.start_pos==nil then + local pos = self.object:getpos() + self.start_pos=roundpos(pos) + end + local pos = self.object:getpos() + local node = minetest.get_node(pos) + local meta = minetest.get_meta(pos) + tubelike=meta:get_int("tubelike") + local stack = ItemStack(self.itemstring) + local drop_pos=nil + + local velocity=self.object:getvelocity() + + if velocity==nil then return end + + local velocitycopy={x=velocity.x,y=velocity.y,z=velocity.z} + + local moved=false + local speed=math.abs(velocity.x+velocity.y+velocity.z) + local vel={x=velocity.x/speed,y=velocity.y/speed,z=velocity.z/speed, speed=speed} + + if math.abs(vel.x)==1 then + local next_node=math.abs(pos.x-self.start_pos.x) + if next_node >= 1 then + self.start_pos.x=self.start_pos.x+vel.x + moved=true + end + elseif math.abs(vel.y)==1 then + local next_node=math.abs(pos.y-self.start_pos.y) + if next_node >= 1 then + self.start_pos.y=self.start_pos.y+vel.y + moved=true + end + elseif math.abs(vel.z)==1 then + local next_node=math.abs(pos.z-self.start_pos.z) + if next_node >= 1 then + self.start_pos.z=self.start_pos.z+vel.z + moved=true + end + end + + local sposcopy={x=self.start_pos.x,y=self.start_pos.y,z=self.start_pos.z} + + node = minetest.get_node(self.start_pos) + if moved and minetest.get_item_group(node.name,"tubedevice_receiver")==1 then + local leftover = nil + if minetest.registered_nodes[node.name].tube and minetest.registered_nodes[node.name].tube.insert_object then + leftover = minetest.registered_nodes[node.name].tube.insert_object(self.start_pos,node,stack,vel) + else + leftover = stack + end + --drop_pos=minetest.find_node_near(self.start_pos,1,"air") + --if drop_pos and not leftover:is_empty() then minetest.item_drop(leftover,"",drop_pos) end + --self.object:remove() + if leftover:is_empty() then + self.object:remove() + return + end + velocity.x=-velocity.x + velocity.y=-velocity.y + velocity.z=-velocity.z + self.object:setvelocity(velocity) + self:set_item(leftover:to_string()) + return + end + + if moved then + if go_next (self.start_pos, velocity, stack) == 0 then + drop_pos=minetest.find_node_near({x=self.start_pos.x+velocity.x,y=self.start_pos.y+velocity.y,z=self.start_pos.z+velocity.z}, 1, "air") + if drop_pos then + minetest.item_drop(stack, "", drop_pos) + self.object:remove() + end + end + end + + if velocity.x~=velocitycopy.x or velocity.y~=velocitycopy.y or velocity.z~=velocitycopy.z or + self.start_pos.x~=sposcopy.x or self.start_pos.y~=sposcopy.y or self.start_pos.z~=sposcopy.z then + self.object:setpos(self.start_pos) + self.object:setvelocity(velocity) + end + +end +}) + +if minetest.get_modpath("mesecons_mvps") ~= nil then + mesecon:register_mvps_unmov("pipeworks:tubed_item") + mesecon:register_on_mvps_move(function(moved_nodes) + local objects_to_move = {} + for _, n in ipairs(moved_nodes) do + local objects = minetest.get_objects_inside_radius(n.oldpos, 1) + for _, obj in ipairs(objects) do + local entity = obj:get_luaentity() + if entity and entity.name == "pipeworks:tubed_item" then + objects_to_move[#objects_to_move+1] = obj + end + end + end + if #objects_to_move > 0 then + local dir = vector.subtract(moved_nodes[1].pos, moved_nodes[1].oldpos) + for _, obj in ipairs(objects_to_move) do + local entity = obj:get_luaentity() + obj:setpos(vector.add(obj:getpos(), dir)) + entity.start_pos = vector.add(entity.start_pos, dir) + end + end + end) +end diff --git a/mods/pipeworks/models.lua b/mods/pipeworks/models.lua new file mode 100644 index 0000000..6a841d3 --- /dev/null +++ b/mods/pipeworks/models.lua @@ -0,0 +1,202 @@ +--------------------- +-- The various models + +-- Pipe models + +pipeworks.pipe_leftstub = { + { -32/64, -2/64, -6/64, 1/64, 2/64, 6/64 }, -- pipe segment against -X face + { -32/64, -4/64, -5/64, 1/64, 4/64, 5/64 }, + { -32/64, -5/64, -4/64, 1/64, 5/64, 4/64 }, + { -32/64, -6/64, -2/64, 1/64, 6/64, 2/64 }, + + { -32/64, -3/64, -8/64, -30/64, 3/64, 8/64 }, -- (the flange for it) + { -32/64, -5/64, -7/64, -30/64, 5/64, 7/64 }, + { -32/64, -6/64, -6/64, -30/64, 6/64, 6/64 }, + { -32/64, -7/64, -5/64, -30/64, 7/64, 5/64 }, + { -32/64, -8/64, -3/64, -30/64, 8/64, 3/64 } +} + +pipeworks.pipe_rightstub = { + { -1/64, -2/64, -6/64, 32/64, 2/64, 6/64 }, -- pipe segment against +X face + { -1/64, -4/64, -5/64, 32/64, 4/64, 5/64 }, + { -1/64, -5/64, -4/64, 32/64, 5/64, 4/64 }, + { -1/64, -6/64, -2/64, 32/64, 6/64, 2/64 }, + + { 30/64, -3/64, -8/64, 32/64, 3/64, 8/64 }, -- (the flange for it) + { 30/64, -5/64, -7/64, 32/64, 5/64, 7/64 }, + { 30/64, -6/64, -6/64, 32/64, 6/64, 6/64 }, + { 30/64, -7/64, -5/64, 32/64, 7/64, 5/64 }, + { 30/64, -8/64, -3/64, 32/64, 8/64, 3/64 } +} + +pipeworks.pipe_bottomstub = { + { -2/64, -32/64, -6/64, 2/64, 1/64, 6/64 }, -- pipe segment against -Y face + { -4/64, -32/64, -5/64, 4/64, 1/64, 5/64 }, + { -5/64, -32/64, -4/64, 5/64, 1/64, 4/64 }, + { -6/64, -32/64, -2/64, 6/64, 1/64, 2/64 }, + + { -3/64, -32/64, -8/64, 3/64, -30/64, 8/64 }, -- (the flange for it) + { -5/64, -32/64, -7/64, 5/64, -30/64, 7/64 }, + { -6/64, -32/64, -6/64, 6/64, -30/64, 6/64 }, + { -7/64, -32/64, -5/64, 7/64, -30/64, 5/64 }, + { -8/64, -32/64, -3/64, 8/64, -30/64, 3/64 } +} + +pipeworks.pipe_topstub = { + { -2/64, -1/64, -6/64, 2/64, 32/64, 6/64 }, -- pipe segment against +Y face + { -4/64, -1/64, -5/64, 4/64, 32/64, 5/64 }, + { -5/64, -1/64, -4/64, 5/64, 32/64, 4/64 }, + { -6/64, -1/64, -2/64, 6/64, 32/64, 2/64 }, + + { -3/64, 30/64, -8/64, 3/64, 32/64, 8/64 }, -- (the flange for it) + { -5/64, 30/64, -7/64, 5/64, 32/64, 7/64 }, + { -6/64, 30/64, -6/64, 6/64, 32/64, 6/64 }, + { -7/64, 30/64, -5/64, 7/64, 32/64, 5/64 }, + { -8/64, 30/64, -3/64, 8/64, 32/64, 3/64 } +} + +pipeworks.pipe_frontstub = { + { -6/64, -2/64, -32/64, 6/64, 2/64, 1/64 }, -- pipe segment against -Z face + { -5/64, -4/64, -32/64, 5/64, 4/64, 1/64 }, + { -4/64, -5/64, -32/64, 4/64, 5/64, 1/64 }, + { -2/64, -6/64, -32/64, 2/64, 6/64, 1/64 }, + + { -8/64, -3/64, -32/64, 8/64, 3/64, -30/64 }, -- (the flange for it) + { -7/64, -5/64, -32/64, 7/64, 5/64, -30/64 }, + { -6/64, -6/64, -32/64, 6/64, 6/64, -30/64 }, + { -5/64, -7/64, -32/64, 5/64, 7/64, -30/64 }, + { -3/64, -8/64, -32/64, 3/64, 8/64, -30/64 } +} + +pipeworks.pipe_backstub = { + { -6/64, -2/64, -1/64, 6/64, 2/64, 32/64 }, -- pipe segment against -Z face + { -5/64, -4/64, -1/64, 5/64, 4/64, 32/64 }, + { -4/64, -5/64, -1/64, 4/64, 5/64, 32/64 }, + { -2/64, -6/64, -1/64, 2/64, 6/64, 32/64 }, + + { -8/64, -3/64, 30/64, 8/64, 3/64, 32/64 }, -- (the flange for it) + { -7/64, -5/64, 30/64, 7/64, 5/64, 32/64 }, + { -6/64, -6/64, 30/64, 6/64, 6/64, 32/64 }, + { -5/64, -7/64, 30/64, 5/64, 7/64, 32/64 }, + { -3/64, -8/64, 30/64, 3/64, 8/64, 32/64 } +} + +pipeworks.pipe_boxes = {pipeworks.pipe_leftstub, pipeworks.pipe_rightstub, pipeworks.pipe_bottomstub, pipeworks.pipe_topstub, pipeworks.pipe_frontstub, pipeworks.pipe_backstub} + +pipeworks.pipe_selectboxes = { + { -32/64, -8/64, -8/64, 8/64, 8/64, 8/64 }, + { -8/64 , -8/64, -8/64, 32/64, 8/64, 8/64 }, + { -8/64 , -32/64, -8/64, 8/64, 8/64, 8/64 }, + { -8/64 , -8/64, -8/64, 8/64, 32/64, 8/64 }, + { -8/64 , -8/64, -32/64, 8/64, 8/64, 8/64 }, + { -8/64 , -8/64, -8/64, 8/64, 8/64, 32/64 } +} + +pipeworks.pipe_bendsphere = { + { -4/64, -4/64, -4/64, 4/64, 4/64, 4/64 }, + { -5/64, -3/64, -3/64, 5/64, 3/64, 3/64 }, + { -3/64, -5/64, -3/64, 3/64, 5/64, 3/64 }, + { -3/64, -3/64, -5/64, 3/64, 3/64, 5/64 } +} + +-- Tube models + +pipeworks.tube_leftstub = { + { -32/64, -9/64, -9/64, 9/64, 9/64, 9/64 }, -- tube segment against -X face +} + +pipeworks.tube_rightstub = { + { -9/64, -9/64, -9/64, 32/64, 9/64, 9/64 }, -- tube segment against +X face +} + +pipeworks.tube_bottomstub = { + { -9/64, -32/64, -9/64, 9/64, 9/64, 9/64 }, -- tube segment against -Y face +} + +pipeworks.tube_topstub = { + { -9/64, -9/64, -9/64, 9/64, 32/64, 9/64 }, -- tube segment against +Y face +} + +pipeworks.tube_frontstub = { + { -9/64, -9/64, -32/64, 9/64, 9/64, 9/64 }, -- tube segment against -Z face +} + +pipeworks.tube_backstub = { + { -9/64, -9/64, -9/64, 9/64, 9/64, 32/64 }, -- tube segment against -Z face +} + +pipeworks.tube_boxes = {pipeworks.tube_leftstub, pipeworks.tube_rightstub, pipeworks.tube_bottomstub, pipeworks.tube_topstub, pipeworks.tube_frontstub, pipeworks.tube_backstub} + +pipeworks.tube_selectboxes = { + { -32/64, -10/64, -10/64, 10/64, 10/64, 10/64 }, + { -10/64 , -10/64, -10/64, 32/64, 10/64, 10/64 }, + { -10/64 , -32/64, -10/64, 10/64, 10/64, 10/64 }, + { -10/64 , -10/64, -10/64, 10/64, 32/64, 10/64 }, + { -10/64 , -10/64, -32/64, 10/64, 10/64, 10/64 }, + { -10/64 , -10/64, -10/64, 10/64, 10/64, 32/64 } +} + +-- Device models + +pipeworks.pipe_pumpbody = { + { -7/16, -6/16, -7/16, 7/16, 5/16, 7/16 }, + { -8/16, -8/16, -8/16, 8/16, -6/16, 8/16 } +} + +pipeworks.pipe_valvebody = { + { -4/16, -4/16, -4/16, 4/16, 4/16, 4/16 } +} + +pipeworks.pipe_valvehandle_on = { + { -5/16, 4/16, -1/16, 0, 5/16, 1/16 } +} + +pipeworks.pipe_valvehandle_off = { + { -1/16, 4/16, -5/16, 1/16, 5/16, 0 } +} + +pipeworks.pipe_sensorbody = { + { -3/16, -2/16, -2/16, 3/16, 2/16, 2/16 } +} + +pipeworks.spigot_bottomstub = { + { -2/64, -16/64, -6/64, 2/64, 1/64, 6/64 }, -- pipe segment against -Y face + { -4/64, -16/64, -5/64, 4/64, 1/64, 5/64 }, + { -5/64, -16/64, -4/64, 5/64, 1/64, 4/64 }, + { -6/64, -16/64, -2/64, 6/64, 1/64, 2/64 }, + + { -3/64, -16/64, -8/64, 3/64, -14/64, 8/64 }, -- (the flange for it) + { -5/64, -16/64, -7/64, 5/64, -14/64, 7/64 }, + { -6/64, -16/64, -6/64, 6/64, -14/64, 6/64 }, + { -7/64, -16/64, -5/64, 7/64, -14/64, 5/64 }, + { -8/64, -16/64, -3/64, 8/64, -14/64, 3/64 } +} + +pipeworks.spigot_stream = { + { -3/64, (-41/64)-0.01, -5/64, 3/64, -16/64, 5/64 }, + { -4/64, (-41/64)-0.01, -4/64, 4/64, -16/64, 4/64 }, + { -5/64, (-41/64)-0.01, -3/64, 5/64, -16/64, 3/64 } +} + +pipeworks.entry_panel = { + { -8/16, -8/16, -1/16, 8/16, 8/16, 1/16 } +} + +pipeworks.fountainhead_model = { + { -2/64, -32/64, -6/64, 2/64, 21/64, 6/64 }, -- main segment + { -4/64, -32/64, -5/64, 4/64, 21/64, 5/64 }, + { -5/64, -32/64, -4/64, 5/64, 21/64, 4/64 }, + { -6/64, -32/64, -2/64, 6/64, 21/64, 2/64 }, + + { -3/64, -32/64, -8/64, 3/64, -30/64, 8/64 }, -- bottom flange + { -5/64, -32/64, -7/64, 5/64, -30/64, 7/64 }, + { -6/64, -32/64, -6/64, 6/64, -30/64, 6/64 }, + { -7/64, -32/64, -5/64, 7/64, -30/64, 5/64 }, + { -8/64, -32/64, -3/64, 8/64, -30/64, 3/64 }, + + { -3/64, 20/64, -8/64, 3/64, 32/64, 8/64 }, -- top flange/outlet + { -5/64, 20/64, -7/64, 5/64, 32/64, 7/64 }, + { -6/64, 20/64, -6/64, 6/64, 32/64, 6/64 }, + { -7/64, 20/64, -5/64, 7/64, 32/64, 5/64 }, + { -8/64, 20/64, -3/64, 8/64, 32/64, 3/64 } +} diff --git a/mods/pipeworks/node_breaker.lua b/mods/pipeworks/node_breaker.lua new file mode 100644 index 0000000..17e0475 --- /dev/null +++ b/mods/pipeworks/node_breaker.lua @@ -0,0 +1,281 @@ + +--register aliases for when someone had technic installed, but then uninstalled it but not pipeworks +minetest.register_alias("technic:nodebreaker_off", "pipeworks:nodebreaker_off") +minetest.register_alias("technic:nodebreaker_on", "pipeworks:nodebreaker_on") +minetest.register_alias("technic:node_breaker_off", "pipeworks:nodebreaker_off") --old name +minetest.register_alias("technic:node_breaker_on", "pipeworks:nodebreaker_on") --old name + +minetest.register_craft({ + output = 'pipeworks:nodebreaker_off 1', + recipe = { + {'group:wood', 'default:pick_mese','group:wood'}, + {'default:stone', 'mesecons:piston','default:stone'}, + {'default:stone', 'mesecons:mesecon','default:stone'}, + } +}) + +local function swap_node(pos, name) + local node = minetest.get_node(pos) + if node.name == name then + return + end + node.name = name + minetest.swap_node(pos, node) +end + +--define the functions from https://github.com/minetest/minetest/pull/834 while waiting for the devs to notice it +local function dir_to_facedir(dir, is6d) + --account for y if requested + if is6d and math.abs(dir.y) > math.abs(dir.x) and math.abs(dir.y) > math.abs(dir.z) then + + --from above + if dir.y < 0 then + if math.abs(dir.x) > math.abs(dir.z) then + if dir.x < 0 then + return 19 + else + return 13 + end + else + if dir.z < 0 then + return 10 + else + return 4 + end + end + + --from below + else + if math.abs(dir.x) > math.abs(dir.z) then + if dir.x < 0 then + return 15 + else + return 17 + end + else + if dir.z < 0 then + return 6 + else + return 8 + end + end + end + + --otherwise, place horizontally + elseif math.abs(dir.x) > math.abs(dir.z) then + if dir.x < 0 then + return 3 + else + return 1 + end + else + if dir.z < 0 then + return 2 + else + return 0 + end + end +end + +local function delay(x) + return (function() return x end) +end + +local function break_node (pos, facedir) + --locate the outgoing velocity, front, and back of the node via facedir_to_dir + if type(facedir) ~= "number" or facedir < 0 or facedir > 23 then return end + + local vel = minetest.facedir_to_dir(facedir); + local front = {x=pos.x - vel.x, y=pos.y - vel.y, z=pos.z - vel.z} + + local node = minetest.get_node(front) + if node.name == "air" or node.name == "ignore" then + return nil + elseif minetest.registered_nodes[node.name] and minetest.registered_nodes[node.name].liquidtype ~= "none" then + return nil + end + local meta = minetest.get_meta(pos) + local inv = meta:get_inventory() + inv:set_stack("pick", 1, ItemStack("default:pick_mese")) + local pitch + local yaw + if vel.z < 0 then + yaw = 0 + pitch = 0 + elseif vel.z > 0 then + yaw = math.pi + pitch = 0 + elseif vel.x < 0 then + yaw = 3*math.pi/2 + pitch = 0 + elseif vel.x > 0 then + yaw = math.pi/2 + pitch = 0 + elseif vel.y > 0 then + yaw = 0 + pitch = -math.pi/2 + else + yaw = 0 + pitch = math.pi/2 + end + local digger = { + get_inventory_formspec = delay(""), + get_look_dir = delay({x = -vel.x, y = -vel.y, z = -vel.z}), + get_look_pitch = delay(pitch), + get_look_yaw = delay(yaw), + get_player_control = delay({jump=false, right=false, left=false, LMB=false, RMB=false, sneak=false, aux1=false, down=false, up=false}), + get_player_control_bits = delay(0), + get_player_name = delay("node_breaker"), + is_player = delay(true), + set_inventory_formspec = delay(), + getpos = delay({x = pos.x, y = pos.y - 1.5, z = pos.z}), -- Player height + get_hp = delay(20), + get_inventory = delay(inv), + get_wielded_item = delay(ItemStack("default:pick_mese")), + get_wield_index = delay(1), + get_wield_list = delay("pick"), + moveto = delay(), + punch = delay(), + remove = delay(), + right_click = delay(), + setpos = delay(), + set_hp = delay(), + set_properties = delay(), + set_wielded_item = delay(), + set_animation = delay(), + set_attach = delay(), + set_detach = delay(), + set_bone_position = delay(), + } + + --check node to make sure it is diggable + local def = ItemStack({name=node.name}):get_definition() + if #def ~= 0 and not def.diggable or (def.can_dig and not def.can_dig(front, digger)) then --node is not diggable + return + end + + --handle node drops + local drops = minetest.get_node_drops(node.name, "default:pick_mese") + for _, dropped_item in ipairs(drops) do + local item1 = pipeworks.tube_item({x=pos.x, y=pos.y, z=pos.z}, dropped_item) + item1:get_luaentity().start_pos = {x=pos.x, y=pos.y, z=pos.z} + item1:setvelocity(vel) + item1:setacceleration({x=0, y=0, z=0}) + end + + local oldmetadata = nil + if def.after_dig_node then + oldmetadata = minetest.get_meta(front):to_table() + end + + minetest.remove_node(front) + + --handle post-digging callback + if def.after_dig_node then + -- Copy pos and node because callback can modify them + local pos_copy = {x=front.x, y=front.y, z=front.z} + local node_copy = {name=node.name, param1=node.param1, param2=node.param2} + def.after_dig_node(pos_copy, node_copy, oldmetadata, digger) + end + + --run digging event callbacks + for _, callback in ipairs(minetest.registered_on_dignodes) do + -- Copy pos and node because callback can modify them + local pos_copy = {x=front.x, y=front.y, z=front.z} + local node_copy = {name=node.name, param1=node.param1, param2=node.param2} + callback(pos_copy, node_copy, digger) + end +end + +local node_breaker_on = function(pos, node) + if node.name == "pipeworks:nodebreaker_off" then + swap_node(pos, "pipeworks:nodebreaker_on") + break_node(pos, node.param2) + nodeupdate(pos) + end +end + +local node_breaker_off = function(pos, node) + if node.name == "pipeworks:nodebreaker_on" then + swap_node(pos, "pipeworks:nodebreaker_off") + nodeupdate(pos) + end +end + +minetest.register_node("pipeworks:nodebreaker_off", { + description = "Node Breaker", + tile_images = {"pipeworks_nodebreaker_top_off.png","pipeworks_nodebreaker_bottom_off.png","pipeworks_nodebreaker_side2_off.png","pipeworks_nodebreaker_side1_off.png", + "pipeworks_nodebreaker_back.png","pipeworks_nodebreaker_front_off.png"}, + is_ground_content = true, + paramtype2 = "facedir", + groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2, mesecon = 2,tubedevice=1}, + mesecons= {effector={rules=pipeworks.rules_all,action_on=node_breaker_on, action_off=node_breaker_off}}, + sounds = default.node_sound_stone_defaults(), + tube = {connect_sides={back=1}}, + on_construct = function(pos) + local meta = minetest.get_meta(pos) + local inv = meta:get_inventory() + inv:set_size("pick", 1) + inv:set_stack("pick", 1, ItemStack("default:pick_mese")) + end, + after_place_node = function (pos, placer) + pipeworks.scan_for_tube_objects(pos, placer) + local placer_pos = placer:getpos() + + --correct for the player's height + if placer:is_player() then placer_pos.y = placer_pos.y + 1.5 end + + --correct for 6d facedir + if placer_pos then + local dir = { + x = pos.x - placer_pos.x, + y = pos.y - placer_pos.y, + z = pos.z - placer_pos.z + } + local node = minetest.get_node(pos) + node.param2 = dir_to_facedir(dir, true) + minetest.set_node(pos, node) + minetest.log("action", "real (6d) facedir: " .. node.param2) + end + end, + after_dig_node = pipeworks.scan_for_tube_objects, +}) + +minetest.register_node("pipeworks:nodebreaker_on", { + description = "Node Breaker", + tile_images = {"pipeworks_nodebreaker_top_on.png","pipeworks_nodebreaker_bottom_on.png","pipeworks_nodebreaker_side2_on.png","pipeworks_nodebreaker_side1_on.png", + "pipeworks_nodebreaker_back.png","pipeworks_nodebreaker_front_on.png"}, + mesecons= {effector={rules=pipeworks.rules_all,action_on=node_breaker_on, action_off=node_breaker_off}}, + is_ground_content = true, + paramtype2 = "facedir", + groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2, mesecon = 2,tubedevice=1,not_in_creative_inventory=1}, + sounds = default.node_sound_stone_defaults(), + tube = {connect_sides={back=1}}, + on_construct = function(pos) + local meta = minetest.get_meta(pos) + local inv = meta:get_inventory() + inv:set_size("pick", 1) + inv:set_stack("pick", 1, ItemStack("default:pick_mese")) + end, + after_place_node = function (pos, placer) + pipeworks.scan_for_tube_objects(pos, placer) + local placer_pos = placer:getpos() + + --correct for the player's height + if placer:is_player() then placer_pos.y = placer_pos.y + 1.5 end + + --correct for 6d facedir + if placer_pos then + local dir = { + x = pos.x - placer_pos.x, + y = pos.y - placer_pos.y, + z = pos.z - placer_pos.z + } + local node = minetest.get_node(pos) + node.param2 = dir_to_facedir(dir, true) + minetest.set_node(pos, node) + minetest.log("action", "real (6d) facedir: " .. node.param2) + end + end, + after_dig_node = pipeworks.scan_for_tube_objects, +}) diff --git a/mods/pipeworks/pipes.lua b/mods/pipeworks/pipes.lua new file mode 100644 index 0000000..ad79a3e --- /dev/null +++ b/mods/pipeworks/pipes.lua @@ -0,0 +1,226 @@ +-- This file supplies the steel pipes + +local REGISTER_COMPATIBILITY = true + +local pipes_empty_nodenames = {} +local pipes_full_nodenames = {} + +local vti = {4, 3, 2, 1, 6, 5} +local cconnects = {{}, {1}, {1, 2}, {1, 3}, {1, 3, 5}, {1, 2, 3}, {1, 2, 3, 5}, {1, 2, 3, 4}, {1, 2, 3, 4, 5}, {1, 2, 3, 4, 5, 6}} +for index, connects in ipairs(cconnects) do + local outboxes = {} + local outsel = {} + local outimgs = {} + + for i = 1, 6 do + outimgs[vti[i]] = "pipeworks_plain.png" + end + + local jx = 0 + local jy = 0 + local jz = 0 + for _, v in ipairs(connects) do + if v == 1 or v == 2 then + jx = jx + 1 + elseif v == 3 or v == 4 then + jy = jy + 1 + else + jz = jz + 1 + end + pipeworks.add_node_box(outboxes, pipeworks.pipe_boxes[v]) + table.insert(outsel, pipeworks.pipe_selectboxes[v]) + outimgs[vti[v]] = "pipeworks_pipe_end.png" + end + + if #connects == 1 then + local v = connects[1] + v = v-1 + 2*(v%2) -- Opposite side + outimgs[vti[v]] = "^pipeworks_plain.png" + end + + if #connects >= 2 then + pipeworks.add_node_box(outboxes, pipeworks.pipe_bendsphere) + end + + if jx == 2 and jy ~= 2 and jz ~= 2 then + outimgs[5] = pipeworks.liquid_texture.."^pipeworks_windowed_XXXXX.png" + outimgs[6] = outimgs[5] + end + + local pgroups = {snappy = 3, pipe = 1, not_in_creative_inventory = 1} + local pipedesc = "Pipe segement".." "..dump(connects).."... You hacker, you." + local image = nil + + if #connects == 0 then + pgroups = {snappy = 3, tube = 1} + pipedesc = "Pipe segment" + image = "pipeworks_pipe_inv.png" + end + + --table.insert(pipeworks.tubenodes, name.."_"..tname) + + minetest.register_node("pipeworks:pipe_"..index.."_empty", { + description = pipedesc, + drawtype = "nodebox", + tiles = pipeworks.fix_image_names(outimgs, "_empty"), + sunlight_propagates = true, + inventory_image = image, + wield_image = image, + paramtype = "light", + paramtype2 = "facedir", + selection_box = { + type = "fixed", + fixed = outsel + }, + node_box = { + type = "fixed", + fixed = outboxes + }, + groups = pgroups, + sounds = default.node_sound_wood_defaults(), + walkable = true, + drop = "pipeworks:pipe_1_empty", + after_place_node = function(pos) + pipeworks.scan_for_pipe_objects(pos) + end, + after_dig_node = function(pos) + pipeworks.scan_for_pipe_objects(pos) + end + }) + + local pgroups = {snappy = 3, pipe = 1, not_in_creative_inventory = 1} + + minetest.register_node("pipeworks:pipe_"..index.."_loaded", { + description = pipedesc, + drawtype = "nodebox", + tiles = pipeworks.fix_image_names(outimgs, "_loaded"), + sunlight_propagates = true, + paramtype = "light", + paramtype2 = "facedir", + selection_box = { + type = "fixed", + fixed = outsel + }, + node_box = { + type = "fixed", + fixed = outboxes + }, + groups = pgroups, + sounds = default.node_sound_wood_defaults(), + walkable = true, + drop = "pipeworks:pipe_1_empty", + after_place_node = function(pos) + pipeworks.scan_for_pipe_objects(pos) + end, + after_dig_node = function(pos) + pipeworks.scan_for_pipe_objects(pos) + end + }) + + table.insert(pipes_empty_nodenames, "pipeworks:pipe_"..index.."_empty") + table.insert(pipes_full_nodenames, "pipeworks:pipe_"..index.."_loaded") +end + + + +if REGISTER_COMPATIBILITY then + local cempty = "pipeworks:pipe_compatibility_empty" + local cloaded = "pipeworks:pipe_compatibility_loaded" + minetest.register_node(cempty, { + drawtype = "airlike", + sunlight_propagates = true, + paramtype = "light", + inventory_image = "pipeworks_pipe_inv.png", + wield_image = "pipeworks_pipe_inv.png", + description = "Pipe Segment (legacy)", + groups = {not_in_creative_inventory = 1, pipe_to_update = 1}, + drop = "pipeworks:pipe_1_empty", + after_place_node = function(pos) + pipeworks.scan_for_pipe_objects(pos) + end, + }) + minetest.register_node(cloaded, { + drawtype = "airlike", + sunlight_propagates = true, + paramtype = "light", + inventory_image = "pipeworks_pipe_inv.png", + groups = {not_in_creative_inventory = 1, pipe_to_update = 1}, + drop = "pipeworks:pipe_1_empty", + after_place_node = function(pos) + pipeworks.scan_for_pipe_objects(pos) + end, + }) + for xm = 0, 1 do + for xp = 0, 1 do + for ym = 0, 1 do + for yp = 0, 1 do + for zm = 0, 1 do + for zp = 0, 1 do + local pname = xm..xp..ym..yp..zm..zp + minetest.register_alias("pipeworks:pipe_"..pname.."_empty", cempty) + minetest.register_alias("pipeworks:pipe_"..pname.."_loaded", cloaded) + end + end + end + end + end + end + minetest.register_abm({ + nodenames = {"group:pipe_to_update"}, + interval = 1, + chance = 1, + action = function(pos, node, active_object_count, active_object_count_wider) + local minp = {x = pos.x-1, y = pos.y-1, z = pos.z-1} + local maxp = {x = pos.x+1, y = pos.y+1, z = pos.z+1} + if table.getn(minetest.find_nodes_in_area(minp, maxp, "ignore")) == 0 then + pipeworks.scan_for_pipe_objects(pos) + end + end + }) +end + +table.insert(pipes_empty_nodenames,"pipeworks:valve_on_empty") +table.insert(pipes_empty_nodenames,"pipeworks:valve_off_empty") +table.insert(pipes_empty_nodenames,"pipeworks:entry_panel_empty") +table.insert(pipes_empty_nodenames,"pipeworks:flow_sensor_empty") + +table.insert(pipes_full_nodenames,"pipeworks:valve_on_loaded") +table.insert(pipes_full_nodenames,"pipeworks:entry_panel_loaded") +table.insert(pipes_full_nodenames,"pipeworks:flow_sensor_loaded") + +minetest.register_abm({ + nodenames = pipes_empty_nodenames, + interval = 1, + chance = 1, + action = function(pos, node, active_object_count, active_object_count_wider) + pipeworks.check_for_inflows(pos,node) + end +}) + +minetest.register_abm({ + nodenames = pipes_full_nodenames, + interval = 1, + chance = 1, + action = function(pos, node, active_object_count, active_object_count_wider) + pipeworks.check_sources(pos,node) + end +}) + +minetest.register_abm({ + nodenames = {"pipeworks:spigot","pipeworks:spigot_pouring"}, + interval = 1, + chance = 1, + action = function(pos, node, active_object_count, active_object_count_wider) + pipeworks.spigot_check(pos,node) + end +}) + +minetest.register_abm({ + nodenames = {"pipeworks:fountainhead","pipeworks:fountainhead_pouring"}, + interval = 1, + chance = 1, + action = function(pos, node, active_object_count, active_object_count_wider) + pipeworks.fountainhead_check(pos,node) + end +}) + diff --git a/mods/pipeworks/teleport_tube.lua b/mods/pipeworks/teleport_tube.lua new file mode 100644 index 0000000..f57f55a --- /dev/null +++ b/mods/pipeworks/teleport_tube.lua @@ -0,0 +1,162 @@ + +local filename=minetest.get_worldpath() .. "/teleport_tubes" + +local function read_file() + local f = io.open(filename, "r") + if f==nil then return {} end + local t = f:read("*all") + f:close() + if t=="" or t==nil then return {} end + return minetest.deserialize(t) +end + +local function write_file(tbl) + local f = io.open(filename, "w") + f:write(minetest.serialize(tbl)) + f:close() +end + +local function update_pos_in_file(pos) + local tbl=read_file() + for _,val in ipairs(tbl) do + if val.x==pos.x and val.y==pos.y and val.z==pos.z then + local meta = minetest.get_meta(val) + val.channel = meta:get_string("channel") + val.cr = meta:get_int("can_receive") + end + end + write_file(tbl) +end + +local function add_tube_in_file(pos,channel, cr) + local tbl=read_file() + for _,val in ipairs(tbl) do + if val.x==pos.x and val.y==pos.y and val.z==pos.z then + return + end + end + table.insert(tbl,{x=pos.x,y=pos.y,z=pos.z,channel=channel,cr=cr}) + write_file(tbl) +end + +local function remove_tube_in_file(pos) + local tbl=read_file() + local newtbl={} + for _,val in ipairs(tbl) do + if val.x~=pos.x or val.y~=pos.y or val.z~=pos.z then + table.insert(newtbl,val) + end + end + write_file(newtbl) +end + +local function get_tubes_in_file(pos,channel) + local tbl=read_file() + local newtbl={} + local changed=false + for _,val in ipairs(tbl) do + local node = minetest.get_node(val) + local meta = minetest.get_meta(val) + -- That shouldn't be needed anymore since the mvps callback, but we leave it nevertheless + if node.name~="ignore" and (val.channel~=meta:get_string("channel") or val.cr~=meta:get_int("can_receive")) then + val.channel=meta:get_string("channel") + val.cr=meta:get_int("can_receive") + changed=true + end + if val.cr==1 and val.channel==channel and (val.x~=pos.x or val.y~=pos.y or val.z~=pos.z) then + table.insert(newtbl,val) + end + end + if changed then write_file(tbl) end + return newtbl +end + +local teleport_noctr_textures={"pipeworks_teleport_tube_noctr.png","pipeworks_teleport_tube_noctr.png","pipeworks_teleport_tube_noctr.png", + "pipeworks_teleport_tube_noctr.png","pipeworks_teleport_tube_noctr.png","pipeworks_teleport_tube_noctr.png"} +local teleport_plain_textures={"pipeworks_teleport_tube_plain.png","pipeworks_teleport_tube_plain.png","pipeworks_teleport_tube_plain.png", + "pipeworks_teleport_tube_plain.png","pipeworks_teleport_tube_plain.png","pipeworks_teleport_tube_plain.png"} +local teleport_end_textures={"pipeworks_teleport_tube_end.png","pipeworks_teleport_tube_end.png","pipeworks_teleport_tube_end.png", + "pipeworks_teleport_tube_end.png","pipeworks_teleport_tube_end.png","pipeworks_teleport_tube_end.png"} +local teleport_short_texture="pipeworks_teleport_tube_short.png" +local teleport_inv_texture="pipeworks_teleport_tube_inv.png" + +pipeworks.register_tube("pipeworks:teleport_tube","Teleporter pneumatic tube segment",teleport_plain_textures, + teleport_noctr_textures,teleport_end_textures,teleport_short_texture,teleport_inv_texture, { + tube = { + can_go = function(pos,node,velocity,stack) + velocity.x = 0 + velocity.y = 0 + velocity.z = 0 + local meta = minetest.get_meta(pos) + local channel = meta:get_string("channel") + local target = get_tubes_in_file(pos,channel) + if target[1] == nil then return {} end + local d = math.random(1,#target) + pos.x = target[d].x + pos.y = target[d].y + pos.z = target[d].z + return pipeworks.meseadjlist + end + }, + on_construct = function(pos) + local meta = minetest.get_meta(pos) + meta:set_string("channel","") + meta:set_int("can_receive",1) + meta:set_string("formspec","size[9,1;]".. + "field[0,0.5;7,1;channel;Channel:;${channel}]".. + "button[8,0;1,1;bt;On]") + add_tube_in_file(pos,"") + end, + on_receive_fields = function(pos,formname,fields,sender) + local meta = minetest.get_meta(pos) + + --check for private channels + if fields.channel ~= nil then + local name, mode = fields.channel:match("^([^:;]+)([:;])") + if name and mode and name ~= sender:get_player_name() then + + --channels starting with '[name]:' can only be used by the named player + if mode == ":" then + minetest.chat_send_player(sender:get_player_name(), "Sorry, channel '"..fields.channel.."' is reserved for exclusive use by "..name) + return + + --channels starting with '[name];' can be used by other players, but cannot be received from + elseif mode == ";" and (meta:get_int("can_receive") ~= 0) == (fields["bt"] == nil) then + minetest.chat_send_player(sender:get_player_name(), "Sorry, receiving from channel '"..fields.channel.."' is reserved for "..name) + return + end + end + end + + if fields.channel==nil then fields.channel=meta:get_string("channel") end + meta:set_string("channel",fields.channel) + remove_tube_in_file(pos) + local cr = meta:get_int("can_receive") + if fields["bt"] then + cr=1-cr + meta:set_int("can_receive",cr) + if cr==1 then + meta:set_string("formspec","size[9,1;]".. + "field[0,0.5;7,1;channel;Channel:;${channel}]".. + "button[8,0;1,1;bt;On]") + else + meta:set_string("formspec","size[9,1;]".. + "field[0,0.5;7,1;channel;Channel:;${channel}]".. + "button[8,0;1,1;bt;Off]") + end + end + add_tube_in_file(pos,fields.channel, cr) + end, + on_destruct = function(pos) + remove_tube_in_file(pos) + end}) + +if minetest.get_modpath("mesecons_mvps") ~= nil then + mesecon:register_on_mvps_move(function(moved_nodes) + for _, n in ipairs(moved_nodes) do + if string.find(n.node.name, "pipeworks:teleport_tube") ~= nil then + update_pos_in_file(n.pos) + end + end + end) +end diff --git a/mods/pipeworks/textures/homedecor_plastic_base.png b/mods/pipeworks/textures/homedecor_plastic_base.png new file mode 100644 index 0000000..0175da3 Binary files /dev/null and b/mods/pipeworks/textures/homedecor_plastic_base.png differ diff --git a/mods/pipeworks/textures/homedecor_plastic_base_inv.png b/mods/pipeworks/textures/homedecor_plastic_base_inv.png new file mode 100644 index 0000000..1a01709 Binary files /dev/null and b/mods/pipeworks/textures/homedecor_plastic_base_inv.png differ diff --git a/mods/pipeworks/textures/homedecor_plastic_sheeting.png b/mods/pipeworks/textures/homedecor_plastic_sheeting.png new file mode 100644 index 0000000..1386b19 Binary files /dev/null and b/mods/pipeworks/textures/homedecor_plastic_sheeting.png differ diff --git a/mods/pipeworks/textures/pipeworks_accelerator_tube_end.png b/mods/pipeworks/textures/pipeworks_accelerator_tube_end.png new file mode 100644 index 0000000..a3dd09a Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_accelerator_tube_end.png differ diff --git a/mods/pipeworks/textures/pipeworks_accelerator_tube_inv.png b/mods/pipeworks/textures/pipeworks_accelerator_tube_inv.png new file mode 100644 index 0000000..6cc2937 Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_accelerator_tube_inv.png differ diff --git a/mods/pipeworks/textures/pipeworks_accelerator_tube_noctr.png b/mods/pipeworks/textures/pipeworks_accelerator_tube_noctr.png new file mode 100644 index 0000000..61a46a3 Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_accelerator_tube_noctr.png differ diff --git a/mods/pipeworks/textures/pipeworks_accelerator_tube_plain.png b/mods/pipeworks/textures/pipeworks_accelerator_tube_plain.png new file mode 100644 index 0000000..0baa541 Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_accelerator_tube_plain.png differ diff --git a/mods/pipeworks/textures/pipeworks_accelerator_tube_short.png b/mods/pipeworks/textures/pipeworks_accelerator_tube_short.png new file mode 100644 index 0000000..4f389d9 Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_accelerator_tube_short.png differ diff --git a/mods/pipeworks/textures/pipeworks_autocrafter.png b/mods/pipeworks/textures/pipeworks_autocrafter.png new file mode 100644 index 0000000..6c7c84d Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_autocrafter.png differ diff --git a/mods/pipeworks/textures/pipeworks_black.png b/mods/pipeworks/textures/pipeworks_black.png new file mode 100644 index 0000000..ada83a4 Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_black.png differ diff --git a/mods/pipeworks/textures/pipeworks_blue.png b/mods/pipeworks/textures/pipeworks_blue.png new file mode 100644 index 0000000..c063ae1 Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_blue.png differ diff --git a/mods/pipeworks/textures/pipeworks_conductor_tube_end.png b/mods/pipeworks/textures/pipeworks_conductor_tube_end.png new file mode 100644 index 0000000..a0d6915 Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_conductor_tube_end.png differ diff --git a/mods/pipeworks/textures/pipeworks_conductor_tube_inv.png b/mods/pipeworks/textures/pipeworks_conductor_tube_inv.png new file mode 100644 index 0000000..5db1153 Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_conductor_tube_inv.png differ diff --git a/mods/pipeworks/textures/pipeworks_conductor_tube_noctr.png b/mods/pipeworks/textures/pipeworks_conductor_tube_noctr.png new file mode 100644 index 0000000..cc03245 Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_conductor_tube_noctr.png differ diff --git a/mods/pipeworks/textures/pipeworks_conductor_tube_on_end.png b/mods/pipeworks/textures/pipeworks_conductor_tube_on_end.png new file mode 100644 index 0000000..a70d988 Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_conductor_tube_on_end.png differ diff --git a/mods/pipeworks/textures/pipeworks_conductor_tube_on_noctr.png b/mods/pipeworks/textures/pipeworks_conductor_tube_on_noctr.png new file mode 100644 index 0000000..30edb60 Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_conductor_tube_on_noctr.png differ diff --git a/mods/pipeworks/textures/pipeworks_conductor_tube_on_plain.png b/mods/pipeworks/textures/pipeworks_conductor_tube_on_plain.png new file mode 100644 index 0000000..1aaa15b Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_conductor_tube_on_plain.png differ diff --git a/mods/pipeworks/textures/pipeworks_conductor_tube_plain.png b/mods/pipeworks/textures/pipeworks_conductor_tube_plain.png new file mode 100644 index 0000000..b432dc4 Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_conductor_tube_plain.png differ diff --git a/mods/pipeworks/textures/pipeworks_conductor_tube_short.png b/mods/pipeworks/textures/pipeworks_conductor_tube_short.png new file mode 100644 index 0000000..0c4b1d2 Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_conductor_tube_short.png differ diff --git a/mods/pipeworks/textures/pipeworks_crossing_tube_end.png b/mods/pipeworks/textures/pipeworks_crossing_tube_end.png new file mode 100644 index 0000000..f708b05 Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_crossing_tube_end.png differ diff --git a/mods/pipeworks/textures/pipeworks_crossing_tube_inv.png b/mods/pipeworks/textures/pipeworks_crossing_tube_inv.png new file mode 100644 index 0000000..8f24d1a Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_crossing_tube_inv.png differ diff --git a/mods/pipeworks/textures/pipeworks_crossing_tube_noctr.png b/mods/pipeworks/textures/pipeworks_crossing_tube_noctr.png new file mode 100644 index 0000000..f4a75c9 Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_crossing_tube_noctr.png differ diff --git a/mods/pipeworks/textures/pipeworks_crossing_tube_plain.png b/mods/pipeworks/textures/pipeworks_crossing_tube_plain.png new file mode 100644 index 0000000..68d1fc8 Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_crossing_tube_plain.png differ diff --git a/mods/pipeworks/textures/pipeworks_crossing_tube_short.png b/mods/pipeworks/textures/pipeworks_crossing_tube_short.png new file mode 100644 index 0000000..1c5e39f Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_crossing_tube_short.png differ diff --git a/mods/pipeworks/textures/pipeworks_deployer_back.png b/mods/pipeworks/textures/pipeworks_deployer_back.png new file mode 100644 index 0000000..2bac175 Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_deployer_back.png differ diff --git a/mods/pipeworks/textures/pipeworks_deployer_bottom.png b/mods/pipeworks/textures/pipeworks_deployer_bottom.png new file mode 100644 index 0000000..763a7bd Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_deployer_bottom.png differ diff --git a/mods/pipeworks/textures/pipeworks_deployer_front_off.png b/mods/pipeworks/textures/pipeworks_deployer_front_off.png new file mode 100644 index 0000000..323cdaa Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_deployer_front_off.png differ diff --git a/mods/pipeworks/textures/pipeworks_deployer_front_on.png b/mods/pipeworks/textures/pipeworks_deployer_front_on.png new file mode 100644 index 0000000..38caed6 Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_deployer_front_on.png differ diff --git a/mods/pipeworks/textures/pipeworks_deployer_side.png b/mods/pipeworks/textures/pipeworks_deployer_side.png new file mode 100644 index 0000000..f3ede41 Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_deployer_side.png differ diff --git a/mods/pipeworks/textures/pipeworks_deployer_side1.png b/mods/pipeworks/textures/pipeworks_deployer_side1.png new file mode 100644 index 0000000..f3ede41 Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_deployer_side1.png differ diff --git a/mods/pipeworks/textures/pipeworks_deployer_side2.png b/mods/pipeworks/textures/pipeworks_deployer_side2.png new file mode 100644 index 0000000..0b31eec Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_deployer_side2.png differ diff --git a/mods/pipeworks/textures/pipeworks_deployer_top.png b/mods/pipeworks/textures/pipeworks_deployer_top.png new file mode 100644 index 0000000..1a78cc9 Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_deployer_top.png differ diff --git a/mods/pipeworks/textures/pipeworks_detector_tube_end.png b/mods/pipeworks/textures/pipeworks_detector_tube_end.png new file mode 100644 index 0000000..ef0d5fe Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_detector_tube_end.png differ diff --git a/mods/pipeworks/textures/pipeworks_detector_tube_inv.png b/mods/pipeworks/textures/pipeworks_detector_tube_inv.png new file mode 100644 index 0000000..b6cadb9 Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_detector_tube_inv.png differ diff --git a/mods/pipeworks/textures/pipeworks_detector_tube_noctr.png b/mods/pipeworks/textures/pipeworks_detector_tube_noctr.png new file mode 100644 index 0000000..c415d77 Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_detector_tube_noctr.png differ diff --git a/mods/pipeworks/textures/pipeworks_detector_tube_plain.png b/mods/pipeworks/textures/pipeworks_detector_tube_plain.png new file mode 100644 index 0000000..d99cddc Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_detector_tube_plain.png differ diff --git a/mods/pipeworks/textures/pipeworks_detector_tube_short.png b/mods/pipeworks/textures/pipeworks_detector_tube_short.png new file mode 100644 index 0000000..ad5e034 Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_detector_tube_short.png differ diff --git a/mods/pipeworks/textures/pipeworks_filter_input.png b/mods/pipeworks/textures/pipeworks_filter_input.png new file mode 100644 index 0000000..e57a5ec Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_filter_input.png differ diff --git a/mods/pipeworks/textures/pipeworks_filter_output.png b/mods/pipeworks/textures/pipeworks_filter_output.png new file mode 100644 index 0000000..e0ae622 Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_filter_output.png differ diff --git a/mods/pipeworks/textures/pipeworks_filter_side.png b/mods/pipeworks/textures/pipeworks_filter_side.png new file mode 100644 index 0000000..6645948 Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_filter_side.png differ diff --git a/mods/pipeworks/textures/pipeworks_filter_top.png b/mods/pipeworks/textures/pipeworks_filter_top.png new file mode 100644 index 0000000..c1c130c Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_filter_top.png differ diff --git a/mods/pipeworks/textures/pipeworks_fountainhead_top.png b/mods/pipeworks/textures/pipeworks_fountainhead_top.png new file mode 100644 index 0000000..503d051 Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_fountainhead_top.png differ diff --git a/mods/pipeworks/textures/pipeworks_grating_sides.png b/mods/pipeworks/textures/pipeworks_grating_sides.png new file mode 100644 index 0000000..615965b Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_grating_sides.png differ diff --git a/mods/pipeworks/textures/pipeworks_grating_top.png b/mods/pipeworks/textures/pipeworks_grating_top.png new file mode 100644 index 0000000..7219861 Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_grating_top.png differ diff --git a/mods/pipeworks/textures/pipeworks_green.png b/mods/pipeworks/textures/pipeworks_green.png new file mode 100644 index 0000000..2e4939d Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_green.png differ diff --git a/mods/pipeworks/textures/pipeworks_mese_filter_input.png b/mods/pipeworks/textures/pipeworks_mese_filter_input.png new file mode 100644 index 0000000..d0353a7 Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_mese_filter_input.png differ diff --git a/mods/pipeworks/textures/pipeworks_mese_filter_output.png b/mods/pipeworks/textures/pipeworks_mese_filter_output.png new file mode 100644 index 0000000..35db0fe Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_mese_filter_output.png differ diff --git a/mods/pipeworks/textures/pipeworks_mese_filter_side.png b/mods/pipeworks/textures/pipeworks_mese_filter_side.png new file mode 100644 index 0000000..f2793b1 Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_mese_filter_side.png differ diff --git a/mods/pipeworks/textures/pipeworks_mese_filter_top.png b/mods/pipeworks/textures/pipeworks_mese_filter_top.png new file mode 100644 index 0000000..7b8e2b1 Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_mese_filter_top.png differ diff --git a/mods/pipeworks/textures/pipeworks_mese_sand_tube_end.png b/mods/pipeworks/textures/pipeworks_mese_sand_tube_end.png new file mode 100644 index 0000000..b044d73 Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_mese_sand_tube_end.png differ diff --git a/mods/pipeworks/textures/pipeworks_mese_sand_tube_inv.png b/mods/pipeworks/textures/pipeworks_mese_sand_tube_inv.png new file mode 100644 index 0000000..8829422 Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_mese_sand_tube_inv.png differ diff --git a/mods/pipeworks/textures/pipeworks_mese_sand_tube_noctr.png b/mods/pipeworks/textures/pipeworks_mese_sand_tube_noctr.png new file mode 100644 index 0000000..9e41bc8 Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_mese_sand_tube_noctr.png differ diff --git a/mods/pipeworks/textures/pipeworks_mese_sand_tube_plain.png b/mods/pipeworks/textures/pipeworks_mese_sand_tube_plain.png new file mode 100644 index 0000000..ff0a107 Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_mese_sand_tube_plain.png differ diff --git a/mods/pipeworks/textures/pipeworks_mese_sand_tube_short.png b/mods/pipeworks/textures/pipeworks_mese_sand_tube_short.png new file mode 100644 index 0000000..2defd5d Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_mese_sand_tube_short.png differ diff --git a/mods/pipeworks/textures/pipeworks_mese_tube_end.png b/mods/pipeworks/textures/pipeworks_mese_tube_end.png new file mode 100644 index 0000000..e4b677d Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_mese_tube_end.png differ diff --git a/mods/pipeworks/textures/pipeworks_mese_tube_inv.png b/mods/pipeworks/textures/pipeworks_mese_tube_inv.png new file mode 100644 index 0000000..123d9f7 Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_mese_tube_inv.png differ diff --git a/mods/pipeworks/textures/pipeworks_mese_tube_noctr_1.png b/mods/pipeworks/textures/pipeworks_mese_tube_noctr_1.png new file mode 100644 index 0000000..da29b06 Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_mese_tube_noctr_1.png differ diff --git a/mods/pipeworks/textures/pipeworks_mese_tube_noctr_2.png b/mods/pipeworks/textures/pipeworks_mese_tube_noctr_2.png new file mode 100644 index 0000000..1f37163 Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_mese_tube_noctr_2.png differ diff --git a/mods/pipeworks/textures/pipeworks_mese_tube_noctr_3.png b/mods/pipeworks/textures/pipeworks_mese_tube_noctr_3.png new file mode 100644 index 0000000..1371ce7 Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_mese_tube_noctr_3.png differ diff --git a/mods/pipeworks/textures/pipeworks_mese_tube_noctr_4.png b/mods/pipeworks/textures/pipeworks_mese_tube_noctr_4.png new file mode 100644 index 0000000..bca7439 Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_mese_tube_noctr_4.png differ diff --git a/mods/pipeworks/textures/pipeworks_mese_tube_noctr_5.png b/mods/pipeworks/textures/pipeworks_mese_tube_noctr_5.png new file mode 100644 index 0000000..2cc44d4 Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_mese_tube_noctr_5.png differ diff --git a/mods/pipeworks/textures/pipeworks_mese_tube_noctr_6.png b/mods/pipeworks/textures/pipeworks_mese_tube_noctr_6.png new file mode 100644 index 0000000..d93213d Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_mese_tube_noctr_6.png differ diff --git a/mods/pipeworks/textures/pipeworks_mese_tube_plain_1.png b/mods/pipeworks/textures/pipeworks_mese_tube_plain_1.png new file mode 100644 index 0000000..517f5a4 Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_mese_tube_plain_1.png differ diff --git a/mods/pipeworks/textures/pipeworks_mese_tube_plain_2.png b/mods/pipeworks/textures/pipeworks_mese_tube_plain_2.png new file mode 100644 index 0000000..6323492 Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_mese_tube_plain_2.png differ diff --git a/mods/pipeworks/textures/pipeworks_mese_tube_plain_3.png b/mods/pipeworks/textures/pipeworks_mese_tube_plain_3.png new file mode 100644 index 0000000..c7af0cf Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_mese_tube_plain_3.png differ diff --git a/mods/pipeworks/textures/pipeworks_mese_tube_plain_4.png b/mods/pipeworks/textures/pipeworks_mese_tube_plain_4.png new file mode 100644 index 0000000..bc19da2 Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_mese_tube_plain_4.png differ diff --git a/mods/pipeworks/textures/pipeworks_mese_tube_plain_5.png b/mods/pipeworks/textures/pipeworks_mese_tube_plain_5.png new file mode 100644 index 0000000..f781787 Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_mese_tube_plain_5.png differ diff --git a/mods/pipeworks/textures/pipeworks_mese_tube_plain_6.png b/mods/pipeworks/textures/pipeworks_mese_tube_plain_6.png new file mode 100644 index 0000000..efd85a5 Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_mese_tube_plain_6.png differ diff --git a/mods/pipeworks/textures/pipeworks_mese_tube_short.png b/mods/pipeworks/textures/pipeworks_mese_tube_short.png new file mode 100644 index 0000000..fae64c4 Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_mese_tube_short.png differ diff --git a/mods/pipeworks/textures/pipeworks_nodebreaker_back.png b/mods/pipeworks/textures/pipeworks_nodebreaker_back.png new file mode 100644 index 0000000..6337d40 Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_nodebreaker_back.png differ diff --git a/mods/pipeworks/textures/pipeworks_nodebreaker_bottom_off.png b/mods/pipeworks/textures/pipeworks_nodebreaker_bottom_off.png new file mode 100644 index 0000000..133be48 Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_nodebreaker_bottom_off.png differ diff --git a/mods/pipeworks/textures/pipeworks_nodebreaker_bottom_on.png b/mods/pipeworks/textures/pipeworks_nodebreaker_bottom_on.png new file mode 100644 index 0000000..b21c261 Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_nodebreaker_bottom_on.png differ diff --git a/mods/pipeworks/textures/pipeworks_nodebreaker_front_off.png b/mods/pipeworks/textures/pipeworks_nodebreaker_front_off.png new file mode 100644 index 0000000..cab8bf9 Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_nodebreaker_front_off.png differ diff --git a/mods/pipeworks/textures/pipeworks_nodebreaker_front_on.png b/mods/pipeworks/textures/pipeworks_nodebreaker_front_on.png new file mode 100644 index 0000000..82ebd3a Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_nodebreaker_front_on.png differ diff --git a/mods/pipeworks/textures/pipeworks_nodebreaker_side1_off.png b/mods/pipeworks/textures/pipeworks_nodebreaker_side1_off.png new file mode 100644 index 0000000..ec0a00f Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_nodebreaker_side1_off.png differ diff --git a/mods/pipeworks/textures/pipeworks_nodebreaker_side1_on.png b/mods/pipeworks/textures/pipeworks_nodebreaker_side1_on.png new file mode 100644 index 0000000..9dace63 Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_nodebreaker_side1_on.png differ diff --git a/mods/pipeworks/textures/pipeworks_nodebreaker_side2_off.png b/mods/pipeworks/textures/pipeworks_nodebreaker_side2_off.png new file mode 100644 index 0000000..8320646 Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_nodebreaker_side2_off.png differ diff --git a/mods/pipeworks/textures/pipeworks_nodebreaker_side2_on.png b/mods/pipeworks/textures/pipeworks_nodebreaker_side2_on.png new file mode 100644 index 0000000..467a1fc Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_nodebreaker_side2_on.png differ diff --git a/mods/pipeworks/textures/pipeworks_nodebreaker_top_off.png b/mods/pipeworks/textures/pipeworks_nodebreaker_top_off.png new file mode 100644 index 0000000..8e5a1cd Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_nodebreaker_top_off.png differ diff --git a/mods/pipeworks/textures/pipeworks_nodebreaker_top_on.png b/mods/pipeworks/textures/pipeworks_nodebreaker_top_on.png new file mode 100644 index 0000000..8fca471 Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_nodebreaker_top_on.png differ diff --git a/mods/pipeworks/textures/pipeworks_one_way_tube_input.png b/mods/pipeworks/textures/pipeworks_one_way_tube_input.png new file mode 100644 index 0000000..3968c0d Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_one_way_tube_input.png differ diff --git a/mods/pipeworks/textures/pipeworks_one_way_tube_output.png b/mods/pipeworks/textures/pipeworks_one_way_tube_output.png new file mode 100644 index 0000000..7dc5910 Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_one_way_tube_output.png differ diff --git a/mods/pipeworks/textures/pipeworks_one_way_tube_side.png b/mods/pipeworks/textures/pipeworks_one_way_tube_side.png new file mode 100644 index 0000000..044e4f4 Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_one_way_tube_side.png differ diff --git a/mods/pipeworks/textures/pipeworks_one_way_tube_top.png b/mods/pipeworks/textures/pipeworks_one_way_tube_top.png new file mode 100644 index 0000000..bb54e45 Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_one_way_tube_top.png differ diff --git a/mods/pipeworks/textures/pipeworks_pipe_end.png b/mods/pipeworks/textures/pipeworks_pipe_end.png new file mode 100644 index 0000000..3b64478 Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_pipe_end.png differ diff --git a/mods/pipeworks/textures/pipeworks_pipe_end_empty.png b/mods/pipeworks/textures/pipeworks_pipe_end_empty.png new file mode 100644 index 0000000..0e647be Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_pipe_end_empty.png differ diff --git a/mods/pipeworks/textures/pipeworks_pipe_end_loaded.png b/mods/pipeworks/textures/pipeworks_pipe_end_loaded.png new file mode 100644 index 0000000..0a5bece Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_pipe_end_loaded.png differ diff --git a/mods/pipeworks/textures/pipeworks_pipe_inv.png b/mods/pipeworks/textures/pipeworks_pipe_inv.png new file mode 100644 index 0000000..567b771 Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_pipe_inv.png differ diff --git a/mods/pipeworks/textures/pipeworks_plain.png b/mods/pipeworks/textures/pipeworks_plain.png new file mode 100644 index 0000000..48af08f Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_plain.png differ diff --git a/mods/pipeworks/textures/pipeworks_plastic_sheeting.png b/mods/pipeworks/textures/pipeworks_plastic_sheeting.png new file mode 100644 index 0000000..1386b19 Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_plastic_sheeting.png differ diff --git a/mods/pipeworks/textures/pipeworks_pump_bottom.png b/mods/pipeworks/textures/pipeworks_pump_bottom.png new file mode 100644 index 0000000..615965b Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_pump_bottom.png differ diff --git a/mods/pipeworks/textures/pipeworks_pump_off.png b/mods/pipeworks/textures/pipeworks_pump_off.png new file mode 100644 index 0000000..0b640c9 Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_pump_off.png differ diff --git a/mods/pipeworks/textures/pipeworks_pump_on.png b/mods/pipeworks/textures/pipeworks_pump_on.png new file mode 100644 index 0000000..5cdca6b Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_pump_on.png differ diff --git a/mods/pipeworks/textures/pipeworks_pump_sides.png b/mods/pipeworks/textures/pipeworks_pump_sides.png new file mode 100644 index 0000000..11b6c64 Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_pump_sides.png differ diff --git a/mods/pipeworks/textures/pipeworks_pump_top.png b/mods/pipeworks/textures/pipeworks_pump_top.png new file mode 100644 index 0000000..0271e8f Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_pump_top.png differ diff --git a/mods/pipeworks/textures/pipeworks_red.png b/mods/pipeworks/textures/pipeworks_red.png new file mode 100644 index 0000000..05ccc05 Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_red.png differ diff --git a/mods/pipeworks/textures/pipeworks_sand_tube_end.png b/mods/pipeworks/textures/pipeworks_sand_tube_end.png new file mode 100644 index 0000000..3c4db02 Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_sand_tube_end.png differ diff --git a/mods/pipeworks/textures/pipeworks_sand_tube_inv.png b/mods/pipeworks/textures/pipeworks_sand_tube_inv.png new file mode 100644 index 0000000..e1c46b9 Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_sand_tube_inv.png differ diff --git a/mods/pipeworks/textures/pipeworks_sand_tube_noctr.png b/mods/pipeworks/textures/pipeworks_sand_tube_noctr.png new file mode 100644 index 0000000..cbb3a09 Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_sand_tube_noctr.png differ diff --git a/mods/pipeworks/textures/pipeworks_sand_tube_plain.png b/mods/pipeworks/textures/pipeworks_sand_tube_plain.png new file mode 100644 index 0000000..71deecc Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_sand_tube_plain.png differ diff --git a/mods/pipeworks/textures/pipeworks_sand_tube_short.png b/mods/pipeworks/textures/pipeworks_sand_tube_short.png new file mode 100644 index 0000000..9cfc124 Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_sand_tube_short.png differ diff --git a/mods/pipeworks/textures/pipeworks_sensor_sides_on.png b/mods/pipeworks/textures/pipeworks_sensor_sides_on.png new file mode 100644 index 0000000..3551191 Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_sensor_sides_on.png differ diff --git a/mods/pipeworks/textures/pipeworks_spigot_bottom2.png b/mods/pipeworks/textures/pipeworks_spigot_bottom2.png new file mode 100644 index 0000000..86b9696 Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_spigot_bottom2.png differ diff --git a/mods/pipeworks/textures/pipeworks_spigot_sides.png b/mods/pipeworks/textures/pipeworks_spigot_sides.png new file mode 100644 index 0000000..f9898e6 Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_spigot_sides.png differ diff --git a/mods/pipeworks/textures/pipeworks_spigot_sides2.png b/mods/pipeworks/textures/pipeworks_spigot_sides2.png new file mode 100644 index 0000000..e385700 Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_spigot_sides2.png differ diff --git a/mods/pipeworks/textures/pipeworks_storage_tank_back.png b/mods/pipeworks/textures/pipeworks_storage_tank_back.png new file mode 100644 index 0000000..cf7f245 Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_storage_tank_back.png differ diff --git a/mods/pipeworks/textures/pipeworks_storage_tank_fittings.png b/mods/pipeworks/textures/pipeworks_storage_tank_fittings.png new file mode 100644 index 0000000..d694fad Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_storage_tank_fittings.png differ diff --git a/mods/pipeworks/textures/pipeworks_storage_tank_front_0.png b/mods/pipeworks/textures/pipeworks_storage_tank_front_0.png new file mode 100644 index 0000000..c91466f Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_storage_tank_front_0.png differ diff --git a/mods/pipeworks/textures/pipeworks_storage_tank_front_1.png b/mods/pipeworks/textures/pipeworks_storage_tank_front_1.png new file mode 100644 index 0000000..6656834 Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_storage_tank_front_1.png differ diff --git a/mods/pipeworks/textures/pipeworks_storage_tank_front_10.png b/mods/pipeworks/textures/pipeworks_storage_tank_front_10.png new file mode 100644 index 0000000..6456afe Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_storage_tank_front_10.png differ diff --git a/mods/pipeworks/textures/pipeworks_storage_tank_front_2.png b/mods/pipeworks/textures/pipeworks_storage_tank_front_2.png new file mode 100644 index 0000000..89a4412 Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_storage_tank_front_2.png differ diff --git a/mods/pipeworks/textures/pipeworks_storage_tank_front_3.png b/mods/pipeworks/textures/pipeworks_storage_tank_front_3.png new file mode 100644 index 0000000..d237dd5 Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_storage_tank_front_3.png differ diff --git a/mods/pipeworks/textures/pipeworks_storage_tank_front_4.png b/mods/pipeworks/textures/pipeworks_storage_tank_front_4.png new file mode 100644 index 0000000..25e43d3 Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_storage_tank_front_4.png differ diff --git a/mods/pipeworks/textures/pipeworks_storage_tank_front_5.png b/mods/pipeworks/textures/pipeworks_storage_tank_front_5.png new file mode 100644 index 0000000..f51d113 Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_storage_tank_front_5.png differ diff --git a/mods/pipeworks/textures/pipeworks_storage_tank_front_6.png b/mods/pipeworks/textures/pipeworks_storage_tank_front_6.png new file mode 100644 index 0000000..c21115e Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_storage_tank_front_6.png differ diff --git a/mods/pipeworks/textures/pipeworks_storage_tank_front_7.png b/mods/pipeworks/textures/pipeworks_storage_tank_front_7.png new file mode 100644 index 0000000..aa7c665 Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_storage_tank_front_7.png differ diff --git a/mods/pipeworks/textures/pipeworks_storage_tank_front_8.png b/mods/pipeworks/textures/pipeworks_storage_tank_front_8.png new file mode 100644 index 0000000..5598e59 Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_storage_tank_front_8.png differ diff --git a/mods/pipeworks/textures/pipeworks_storage_tank_front_9.png b/mods/pipeworks/textures/pipeworks_storage_tank_front_9.png new file mode 100644 index 0000000..b0f750d Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_storage_tank_front_9.png differ diff --git a/mods/pipeworks/textures/pipeworks_teleport_tube_end.png b/mods/pipeworks/textures/pipeworks_teleport_tube_end.png new file mode 100644 index 0000000..d3df799 Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_teleport_tube_end.png differ diff --git a/mods/pipeworks/textures/pipeworks_teleport_tube_inv.png b/mods/pipeworks/textures/pipeworks_teleport_tube_inv.png new file mode 100644 index 0000000..653afbb Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_teleport_tube_inv.png differ diff --git a/mods/pipeworks/textures/pipeworks_teleport_tube_noctr.png b/mods/pipeworks/textures/pipeworks_teleport_tube_noctr.png new file mode 100644 index 0000000..3d10b41 Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_teleport_tube_noctr.png differ diff --git a/mods/pipeworks/textures/pipeworks_teleport_tube_plain.png b/mods/pipeworks/textures/pipeworks_teleport_tube_plain.png new file mode 100644 index 0000000..23a793d Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_teleport_tube_plain.png differ diff --git a/mods/pipeworks/textures/pipeworks_teleport_tube_short.png b/mods/pipeworks/textures/pipeworks_teleport_tube_short.png new file mode 100644 index 0000000..e0a15b9 Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_teleport_tube_short.png differ diff --git a/mods/pipeworks/textures/pipeworks_testobject.png b/mods/pipeworks/textures/pipeworks_testobject.png new file mode 100644 index 0000000..2c67561 Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_testobject.png differ diff --git a/mods/pipeworks/textures/pipeworks_tube_connection_metallic.png b/mods/pipeworks/textures/pipeworks_tube_connection_metallic.png new file mode 100644 index 0000000..86a74c6 Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_tube_connection_metallic.png differ diff --git a/mods/pipeworks/textures/pipeworks_tube_connection_stony.png b/mods/pipeworks/textures/pipeworks_tube_connection_stony.png new file mode 100644 index 0000000..1e72d81 Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_tube_connection_stony.png differ diff --git a/mods/pipeworks/textures/pipeworks_tube_connection_wooden.png b/mods/pipeworks/textures/pipeworks_tube_connection_wooden.png new file mode 100644 index 0000000..c20cd7d Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_tube_connection_wooden.png differ diff --git a/mods/pipeworks/textures/pipeworks_tube_end.png b/mods/pipeworks/textures/pipeworks_tube_end.png new file mode 100644 index 0000000..ef0d5fe Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_tube_end.png differ diff --git a/mods/pipeworks/textures/pipeworks_tube_inv.png b/mods/pipeworks/textures/pipeworks_tube_inv.png new file mode 100644 index 0000000..d24d61c Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_tube_inv.png differ diff --git a/mods/pipeworks/textures/pipeworks_tube_noctr.png b/mods/pipeworks/textures/pipeworks_tube_noctr.png new file mode 100644 index 0000000..c415d77 Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_tube_noctr.png differ diff --git a/mods/pipeworks/textures/pipeworks_tube_plain.png b/mods/pipeworks/textures/pipeworks_tube_plain.png new file mode 100644 index 0000000..a5022d8 Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_tube_plain.png differ diff --git a/mods/pipeworks/textures/pipeworks_tube_short.png b/mods/pipeworks/textures/pipeworks_tube_short.png new file mode 100644 index 0000000..ad5e034 Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_tube_short.png differ diff --git a/mods/pipeworks/textures/pipeworks_tube_transparent.png b/mods/pipeworks/textures/pipeworks_tube_transparent.png new file mode 100644 index 0000000..10e8907 Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_tube_transparent.png differ diff --git a/mods/pipeworks/textures/pipeworks_valvebody_bottom.png b/mods/pipeworks/textures/pipeworks_valvebody_bottom.png new file mode 100644 index 0000000..43d30d5 Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_valvebody_bottom.png differ diff --git a/mods/pipeworks/textures/pipeworks_valvebody_ends.png b/mods/pipeworks/textures/pipeworks_valvebody_ends.png new file mode 100644 index 0000000..69a615f Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_valvebody_ends.png differ diff --git a/mods/pipeworks/textures/pipeworks_valvebody_sides.png b/mods/pipeworks/textures/pipeworks_valvebody_sides.png new file mode 100644 index 0000000..47e80ea Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_valvebody_sides.png differ diff --git a/mods/pipeworks/textures/pipeworks_valvebody_top_off.png b/mods/pipeworks/textures/pipeworks_valvebody_top_off.png new file mode 100644 index 0000000..0587e79 Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_valvebody_top_off.png differ diff --git a/mods/pipeworks/textures/pipeworks_valvebody_top_on.png b/mods/pipeworks/textures/pipeworks_valvebody_top_on.png new file mode 100644 index 0000000..320c7e4 Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_valvebody_top_on.png differ diff --git a/mods/pipeworks/textures/pipeworks_white.png b/mods/pipeworks/textures/pipeworks_white.png new file mode 100644 index 0000000..64386eb Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_white.png differ diff --git a/mods/pipeworks/textures/pipeworks_windowed_empty.png b/mods/pipeworks/textures/pipeworks_windowed_empty.png new file mode 100644 index 0000000..3b64478 Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_windowed_empty.png differ diff --git a/mods/pipeworks/textures/pipeworks_windowed_loaded.png b/mods/pipeworks/textures/pipeworks_windowed_loaded.png new file mode 100644 index 0000000..0a5bece Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_windowed_loaded.png differ diff --git a/mods/pipeworks/textures/pipeworks_yellow.png b/mods/pipeworks/textures/pipeworks_yellow.png new file mode 100644 index 0000000..44ea445 Binary files /dev/null and b/mods/pipeworks/textures/pipeworks_yellow.png differ diff --git a/mods/pipeworks/tubes.lua b/mods/pipeworks/tubes.lua new file mode 100644 index 0000000..5e6ca4f --- /dev/null +++ b/mods/pipeworks/tubes.lua @@ -0,0 +1,634 @@ +-- This file supplies the various kinds of pneumatic tubes + +pipeworks.tubenodes = {} + +minetest.register_alias("pipeworks:tube", "pipeworks:tube_000000") + +-- now, a function to define the tubes + +local REGISTER_COMPATIBILITY = true + +local vti = {4, 3, 2, 1, 6, 5} + +local register_one_tube = function(name, tname, dropname, desc, plain, noctrs, ends, short, inv, special, connects, style) + local outboxes = {} + local outsel = {} + local outimgs = {} + + for i = 1, 6 do + outimgs[vti[i]] = plain[i] + end + + for _, v in ipairs(connects) do + pipeworks.add_node_box(outboxes, pipeworks.tube_boxes[v]) + table.insert(outsel, pipeworks.tube_selectboxes[v]) + outimgs[vti[v]] = noctrs[v] + end + + if #connects == 1 then + local v = connects[1] + v = v-1 + 2*(v%2) -- Opposite side + outimgs[vti[v]] = ends[v] + end + + local tgroups = {snappy = 3, tube = 1, not_in_creative_inventory = 1} + local tubedesc = desc.." "..dump(connects).."... You hacker, you." + local iimg = plain[1] + local wscale = {x = 1, y = 1, z = 1} + + if #connects == 0 then + tgroups = {snappy = 3, tube = 1} + tubedesc = desc + iimg=inv + outimgs = { + short, short, + ends[3],ends[4], + short, short + } + outboxes = { -24/64, -9/64, -9/64, 24/64, 9/64, 9/64 } + outsel = { -24/64, -10/64, -10/64, 24/64, 10/64, 10/64 } + wscale = {x = 1, y = 1, z = 0.01} + end + + table.insert(pipeworks.tubenodes, name.."_"..tname) + + local nodedef = { + description = tubedesc, + drawtype = "nodebox", + tiles = outimgs, + sunlight_propagates = true, + inventory_image = iimg, + wield_image = iimg, + wield_scale = wscale, + paramtype = "light", + selection_box = { + type = "fixed", + fixed = outsel + }, + node_box = { + type = "fixed", + fixed = outboxes + }, + groups = tgroups, + sounds = default.node_sound_wood_defaults(), + walkable = true, + stack_max = 99, + basename = name, + style = style, + drop = name.."_"..dropname, + tubelike = 1, + tube = {connect_sides = {front = 1, back = 1, left = 1, right = 1, top = 1, bottom = 1}}, + on_construct = function(pos) + local meta = minetest.get_meta(pos) + meta:set_int("tubelike", 1) + if minetest.registered_nodes[name.."_"..tname].on_construct_ then + minetest.registered_nodes[name.."_"..tname].on_construct_(pos) + end + end, + after_place_node = function(pos) + pipeworks.scan_for_tube_objects(pos) + if minetest.registered_nodes[name.."_"..tname].after_place_node_ then + minetest.registered_nodes[name.."_"..tname].after_place_node_(pos) + end + end, + after_dig_node = function(pos) + pipeworks.scan_for_tube_objects(pos) + if minetest.registered_nodes[name.."_"..tname].after_dig_node_ then + minetest.registered_nodes[name.."_"..tname].after_dig_node_(pos) + end + end + } + if style == "6d" then + nodedef.paramtype2 = "facedir" + end + + if special == nil then special = {} end + + for key, value in pairs(special) do + if key == "on_construct" or key == "after_dig_node" or key == "after_place_node" then + nodedef[key.."_"] = value + elseif key == "groups" then + for group, val in pairs(value) do + nodedef.groups[group] = val + end + elseif key == "tube" then + for key, val in pairs(value) do + nodedef.tube[key] = val + end + elseif type(value) == "table" then + nodedef[key] = pipeworks.replace_name(value, "#id", tname) + elseif type(value) == "string" then + nodedef[key] = string.gsub(value, "#id", tname) + else + nodedef[key] = value + end + end + + local prefix = ":" + if string.find(name, "pipeworks:") then prefix = "" end + + minetest.register_node(prefix..name.."_"..tname, nodedef) +end + +pipeworks.register_tube = function(name, desc, plain, noctrs, ends, short, inv, special, old_registration) + if old_registration then + for xm = 0, 1 do + for xp = 0, 1 do + for ym = 0, 1 do + for yp = 0, 1 do + for zm = 0, 1 do + for zp = 0, 1 do + local connects = {} + if xm == 1 then + connects[#connects+1] = 1 + end + if xp == 1 then + connects[#connects+1] = 2 + end + if ym == 1 then + connects[#connects+1] = 3 + end + if yp == 1 then + connects[#connects+1] = 4 + end + if zm == 1 then + connects[#connects+1] = 5 + end + if zp == 1 then + connects[#connects+1] = 6 + end + local tname = xm..xp..ym..yp..zm..zp + register_one_tube(name, tname, "000000", desc, plain, noctrs, ends, short, inv, special, connects, "old") + end + end + end + end + end + end + else + -- 6d tubes: uses only 10 nodes instead of 64, but the textures must be rotated + local cconnects = {{}, {1}, {1, 2}, {1, 3}, {1, 3, 5}, {1, 2, 3}, {1, 2, 3, 5}, {1, 2, 3, 4}, {1, 2, 3, 4, 5}, {1, 2, 3, 4, 5, 6}} + for index, connects in ipairs(cconnects) do + register_one_tube(name, tostring(index), "1", desc, plain, noctrs, ends, short, inv, special, connects, "6d") + end + if REGISTER_COMPATIBILITY then + local cname = name.."_compatibility" + minetest.register_node(cname, { + drawtype = "airlike", + style = "6d", + basename = name, + inventory_image = inv, + wield_image = inv, + paramtype = "light", + sunlight_propagates = true, + description = "Pneumatic tube segment (legacy)", + on_construct = function(pos) + local meta = minetest.get_meta(pos) + meta:set_int("tubelike", 1) + end, + after_place_node = function(pos) + pipeworks.scan_for_tube_objects(pos) + if minetest.registered_nodes[name.."_1"].after_place_node_ then + minetest.registered_nodes[name.."_1"].after_place_node_(pos) + end + end, + groups = {not_in_creative_inventory = 1, tube_to_update = 1}, + tube = {connect_sides = {front = 1, back = 1, left = 1, right = 1, top = 1, bottom = 1}}, + drop = name.."_1", + }) + table.insert(pipeworks.tubenodes,cname) + for xm = 0, 1 do + for xp = 0, 1 do + for ym = 0, 1 do + for yp = 0, 1 do + for zm = 0, 1 do + for zp = 0, 1 do + local tname = xm..xp..ym..yp..zm..zp + minetest.register_alias(name.."_"..tname, cname) + end + end + end + end + end + end + end + end +end + +if REGISTER_COMPATIBILITY then + minetest.register_abm({ + nodenames = {"group:tube_to_update"}, + interval = 1, + chance = 1, + action = function(pos, node, active_object_count, active_object_count_wider) + local minp = {x = pos.x-1, y = pos.y-1, z = pos.z-1} + local maxp = {x = pos.x+1, y = pos.y+1, z = pos.z+1} + if table.getn(minetest.find_nodes_in_area(minp, maxp, "ignore")) == 0 then + pipeworks.scan_for_tube_objects(pos) + end + end + }) +end + +-- now let's actually call that function to get the real work done! + +local noctr_textures = {"pipeworks_tube_noctr.png", "pipeworks_tube_noctr.png", "pipeworks_tube_noctr.png", + "pipeworks_tube_noctr.png", "pipeworks_tube_noctr.png", "pipeworks_tube_noctr.png"} +local plain_textures = {"pipeworks_tube_plain.png", "pipeworks_tube_plain.png", "pipeworks_tube_plain.png", + "pipeworks_tube_plain.png", "pipeworks_tube_plain.png", "pipeworks_tube_plain.png"} +local end_textures = {"pipeworks_tube_end.png", "pipeworks_tube_end.png", "pipeworks_tube_end.png", + "pipeworks_tube_end.png", "pipeworks_tube_end.png", "pipeworks_tube_end.png"} +local short_texture = "pipeworks_tube_short.png" +local inv_texture = "pipeworks_tube_inv.png" + +pipeworks.register_tube("pipeworks:tube", "Pneumatic tube segment", plain_textures, noctr_textures, end_textures, short_texture, inv_texture) + +if pipeworks.enable_mese_tube then + local mese_noctr_textures = {"pipeworks_mese_tube_noctr_1.png", "pipeworks_mese_tube_noctr_2.png", "pipeworks_mese_tube_noctr_3.png", + "pipeworks_mese_tube_noctr_4.png", "pipeworks_mese_tube_noctr_5.png", "pipeworks_mese_tube_noctr_6.png"} + local mese_plain_textures = {"pipeworks_mese_tube_plain_1.png", "pipeworks_mese_tube_plain_2.png", "pipeworks_mese_tube_plain_3.png", + "pipeworks_mese_tube_plain_4.png", "pipeworks_mese_tube_plain_5.png", "pipeworks_mese_tube_plain_6.png"} + local mese_end_textures = {"pipeworks_mese_tube_end.png", "pipeworks_mese_tube_end.png", "pipeworks_mese_tube_end.png", + "pipeworks_mese_tube_end.png", "pipeworks_mese_tube_end.png", "pipeworks_mese_tube_end.png"} + local mese_short_texture = "pipeworks_mese_tube_short.png" + local mese_inv_texture = "pipeworks_mese_tube_inv.png" + pipeworks.register_tube("pipeworks:mese_tube", "Mese pneumatic tube segment", mese_plain_textures, mese_noctr_textures, + mese_end_textures, mese_short_texture, mese_inv_texture, + {tube = {can_go = function(pos, node, velocity, stack) + local tbl = {} + local meta = minetest.get_meta(pos) + local inv = meta:get_inventory() + local found = false + local name = stack:get_name() + for i, vect in ipairs(pipeworks.meseadjlist) do + if meta:get_int("l"..tostring(i).."s") == 1 then + for _, st in ipairs(inv:get_list("line"..tostring(i))) do + if st:get_name() == name then + found = true + table.insert(tbl, vect) + end + end + end + end + if found == false then + for i, vect in ipairs(pipeworks.meseadjlist) do + if meta:get_int("l"..tostring(i).."s") == 1 then + if inv:is_empty("line"..tostring(i)) then + table.insert(tbl, vect) + end + end + end + end + return tbl + end}, + on_construct = function(pos) + local meta = minetest.get_meta(pos) + local inv = meta:get_inventory() + for i = 1, 6 do + meta:set_int("l"..tostring(i).."s", 1) + inv:set_size("line"..tostring(i), 6*1) + end + meta:set_string("formspec", + "size[8,11]".. + "list[current_name;line1;1,0;6,1;]".. + "list[current_name;line2;1,1;6,1;]".. + "list[current_name;line3;1,2;6,1;]".. + "list[current_name;line4;1,3;6,1;]".. + "list[current_name;line5;1,4;6,1;]".. + "list[current_name;line6;1,5;6,1;]".. + "image[0,0;1,1;pipeworks_white.png]".. + "image[0,1;1,1;pipeworks_black.png]".. + "image[0,2;1,1;pipeworks_green.png]".. + "image[0,3;1,1;pipeworks_yellow.png]".. + "image[0,4;1,1;pipeworks_blue.png]".. + "image[0,5;1,1;pipeworks_red.png]".. + "button[7,0;1,1;button1;On]".. + "button[7,1;1,1;button2;On]".. + "button[7,2;1,1;button3;On]".. + "button[7,3;1,1;button4;On]".. + "button[7,4;1,1;button5;On]".. + "button[7,5;1,1;button6;On]".. + "list[current_player;main;0,7;8,4;]") + meta:set_string("infotext", "Mese pneumatic tube") + end, + on_receive_fields = function(pos, formname, fields, sender) + local meta = minetest.get_meta(pos) + local i + if fields.quit then return end + for key, _ in pairs(fields) do i = key end + if i == nil then return end + i = string.sub(i,-1) + newstate = 1 - meta:get_int("l"..i.."s") + meta:set_int("l"..i.."s",newstate) + local frm = "size[8,11]".. + "list[current_name;line1;1,0;6,1;]".. + "list[current_name;line2;1,1;6,1;]".. + "list[current_name;line3;1,2;6,1;]".. + "list[current_name;line4;1,3;6,1;]".. + "list[current_name;line5;1,4;6,1;]".. + "list[current_name;line6;1,5;6,1;]".. + "image[0,0;1,1;pipeworks_white.png]".. + "image[0,1;1,1;pipeworks_black.png]".. + "image[0,2;1,1;pipeworks_green.png]".. + "image[0,3;1,1;pipeworks_yellow.png]".. + "image[0,4;1,1;pipeworks_blue.png]".. + "image[0,5;1,1;pipeworks_red.png]" + for i = 1, 6 do + local st = meta:get_int("l"..tostring(i).."s") + if st == 0 then + frm = frm.."button[7,"..tostring(i-1)..";1,1;button"..tostring(i)..";Off]" + else + frm = frm.."button[7,"..tostring(i-1)..";1,1;button"..tostring(i)..";On]" + end + end + frm = frm.."list[current_player;main;0,7;8,4;]" + meta:set_string("formspec", frm) + end, + can_dig = function(pos, player) + local meta = minetest.get_meta(pos) + local inv = meta:get_inventory() + return (inv:is_empty("line1") and inv:is_empty("line2") and inv:is_empty("line3") and + inv:is_empty("line4") and inv:is_empty("line5") and inv:is_empty("line6")) + end + }, true) -- Must use old tubes, since the textures are rotated with 6d ones +end + +if pipeworks.enable_detector_tube then + local detector_plain_textures = {"pipeworks_detector_tube_plain.png", "pipeworks_detector_tube_plain.png", "pipeworks_detector_tube_plain.png", + "pipeworks_detector_tube_plain.png", "pipeworks_detector_tube_plain.png", "pipeworks_detector_tube_plain.png"} + local detector_inv_texture = "pipeworks_detector_tube_inv.png" + pipeworks.register_tube("pipeworks:detector_tube_on", "Detector tube segment on (you hacker you)", detector_plain_textures, noctr_textures, + end_textures, short_texture, detector_inv_texture, + {tube = {can_go = function(pos, node, velocity, stack) + local meta = minetest.get_meta(pos) + local name = minetest.get_node(pos).name + local nitems = meta:get_int("nitems")+1 + meta:set_int("nitems", nitems) + minetest.after(0.1, minetest.registered_nodes[name].item_exit, pos) + return pipeworks.notvel(pipeworks.meseadjlist,velocity) + end}, + groups = {mesecon = 2, not_in_creative_inventory = 1}, + drop = "pipeworks:detector_tube_off_1", + mesecons = {receptor = {state = "on", + rules = pipeworks.mesecons_rules}}, + item_exit = function(pos) + local meta = minetest.get_meta(pos) + local nitems = meta:get_int("nitems")-1 + local node = minetest.get_node(pos) + local name = node.name + local fdir = node.param2 + if nitems == 0 then + minetest.set_node(pos, {name = string.gsub(name, "on", "off"), param2 = fdir}) + mesecon:receptor_off(pos, pipeworks.mesecons_rules) + else + meta:set_int("nitems", nitems) + end + end, + on_construct = function(pos) + local meta = minetest.get_meta(pos) + meta:set_int("nitems", 1) + local name = minetest.get_node(pos).name + minetest.after(0.1, minetest.registered_nodes[name].item_exit,pos) + end}) + pipeworks.register_tube("pipeworks:detector_tube_off", "Detector tube segment", detector_plain_textures, noctr_textures, + end_textures, short_texture, detector_inv_texture, + {tube = {can_go = function(pos, node, velocity, stack) + local node = minetest.get_node(pos) + local name = node.name + local fdir = node.param2 + minetest.set_node(pos,{name = string.gsub(name, "off", "on"), param2 = fdir}) + mesecon:receptor_on(pos, pipeworks.mesecons_rules) + return pipeworks.notvel(pipeworks.meseadjlist, velocity) + end}, + groups = {mesecon = 2}, + mesecons = {receptor = {state = "off", + rules = pipeworks.mesecons_rules}} + }) +end + +if pipeworks.enable_conductor_tube then + local conductor_plain_textures = {"pipeworks_conductor_tube_plain.png", "pipeworks_conductor_tube_plain.png", "pipeworks_conductor_tube_plain.png", + "pipeworks_conductor_tube_plain.png", "pipeworks_conductor_tube_plain.png", "pipeworks_conductor_tube_plain.png"} + local conductor_noctr_textures = {"pipeworks_conductor_tube_noctr.png", "pipeworks_conductor_tube_noctr.png", "pipeworks_conductor_tube_noctr.png", + "pipeworks_conductor_tube_noctr.png", "pipeworks_conductor_tube_noctr.png", "pipeworks_conductor_tube_noctr.png"} + local conductor_end_textures = {"pipeworks_conductor_tube_end.png", "pipeworks_conductor_tube_end.png", "pipeworks_conductor_tube_end.png", + "pipeworks_conductor_tube_end.png", "pipeworks_conductor_tube_end.png", "pipeworks_conductor_tube_end.png"} + local conductor_short_texture = "pipeworks_conductor_tube_short.png" + local conductor_inv_texture = "pipeworks_conductor_tube_inv.png" + + local conductor_on_plain_textures = {"pipeworks_conductor_tube_on_plain.png", "pipeworks_conductor_tube_on_plain.png", "pipeworks_conductor_tube_on_plain.png", + "pipeworks_conductor_tube_on_plain.png", "pipeworks_conductor_tube_on_plain.png", "pipeworks_conductor_tube_on_plain.png"} + local conductor_on_noctr_textures = {"pipeworks_conductor_tube_on_noctr.png", "pipeworks_conductor_tube_on_noctr.png", "pipeworks_conductor_tube_on_noctr.png", + "pipeworks_conductor_tube_on_noctr.png", "pipeworks_conductor_tube_on_noctr.png", "pipeworks_conductor_tube_on_noctr.png"} + local conductor_on_end_textures = {"pipeworks_conductor_tube_on_end.png", "pipeworks_conductor_tube_on_end.png", "pipeworks_conductor_tube_on_end.png", + "pipeworks_conductor_tube_on_end.png", "pipeworks_conductor_tube_on_end.png", "pipeworks_conductor_tube_on_end.png"} + + pipeworks.register_tube("pipeworks:conductor_tube_off", "Conductor tube segment", conductor_plain_textures, conductor_noctr_textures, + conductor_end_textures, conductor_short_texture, conductor_inv_texture, + {groups = {mesecon = 2}, + mesecons = {conductor = {state = "off", + rules = pipeworks.mesecons_rules, + onstate = "pipeworks:conductor_tube_on_#id"}} + }) + + pipeworks.register_tube("pipeworks:conductor_tube_on", "Conductor tube segment on (you hacker you)", conductor_on_plain_textures, conductor_on_noctr_textures, + conductor_on_end_textures, conductor_short_texture, conductor_inv_texture, + {groups = {mesecon = 2, not_in_creative_inventory = 1}, + drop = "pipeworks:conductor_tube_off_1", + mesecons = {conductor = {state = "on", + rules = pipeworks.mesecons_rules, + offstate = "pipeworks:conductor_tube_off_#id"}} + }) +end + +if pipeworks.enable_accelerator_tube then + local accelerator_noctr_textures = {"pipeworks_accelerator_tube_noctr.png", "pipeworks_accelerator_tube_noctr.png", "pipeworks_accelerator_tube_noctr.png", + "pipeworks_accelerator_tube_noctr.png", "pipeworks_accelerator_tube_noctr.png", "pipeworks_accelerator_tube_noctr.png"} + local accelerator_plain_textures = {"pipeworks_accelerator_tube_plain.png" ,"pipeworks_accelerator_tube_plain.png", "pipeworks_accelerator_tube_plain.png", + "pipeworks_accelerator_tube_plain.png", "pipeworks_accelerator_tube_plain.png", "pipeworks_accelerator_tube_plain.png"} + local accelerator_end_textures = {"pipeworks_accelerator_tube_end.png", "pipeworks_accelerator_tube_end.png", "pipeworks_accelerator_tube_end.png", + "pipeworks_accelerator_tube_end.png", "pipeworks_accelerator_tube_end.png", "pipeworks_accelerator_tube_end.png"} + local accelerator_short_texture = "pipeworks_accelerator_tube_short.png" + local accelerator_inv_texture = "pipeworks_accelerator_tube_inv.png" + + pipeworks.register_tube("pipeworks:accelerator_tube", "Accelerator pneumatic tube segment", accelerator_plain_textures, + accelerator_noctr_textures, accelerator_end_textures, accelerator_short_texture, accelerator_inv_texture, + {tube = {can_go = function(pos, node, velocity, stack) + velocity.speed = velocity.speed+1 + return pipeworks.notvel(pipeworks.meseadjlist, velocity) + end} + }) +end + +if pipeworks.enable_crossing_tube then + -- FIXME: The textures are not the correct ones + local crossing_noctr_textures = {"pipeworks_crossing_tube_noctr.png", "pipeworks_crossing_tube_noctr.png", "pipeworks_crossing_tube_noctr.png", + "pipeworks_crossing_tube_noctr.png", "pipeworks_crossing_tube_noctr.png", "pipeworks_crossing_tube_noctr.png"} + local crossing_plain_textures = {"pipeworks_crossing_tube_plain.png" ,"pipeworks_crossing_tube_plain.png", "pipeworks_crossing_tube_plain.png", + "pipeworks_crossing_tube_plain.png", "pipeworks_crossing_tube_plain.png", "pipeworks_crossing_tube_plain.png"} + local crossing_end_textures = {"pipeworks_crossing_tube_end.png", "pipeworks_crossing_tube_end.png", "pipeworks_crossing_tube_end.png", + "pipeworks_crossing_tube_end.png", "pipeworks_crossing_tube_end.png", "pipeworks_crossing_tube_end.png"} + local crossing_short_texture = "pipeworks_crossing_tube_short.png" + local crossing_inv_texture = "pipeworks_crossing_tube_inv.png" + + pipeworks.register_tube("pipeworks:crossing_tube", "Crossing tube segment", crossing_plain_textures, + crossing_noctr_textures, crossing_end_textures, crossing_short_texture, crossing_inv_texture, + {tube = {can_go = function(pos, node, velocity, stack) + return {velocity} + end} + }) +end + +if pipeworks.enable_sand_tube then + local sand_noctr_textures = {"pipeworks_sand_tube_noctr.png", "pipeworks_sand_tube_noctr.png", "pipeworks_sand_tube_noctr.png", + "pipeworks_sand_tube_noctr.png", "pipeworks_sand_tube_noctr.png", "pipeworks_sand_tube_noctr.png"} + local sand_plain_textures = {"pipeworks_sand_tube_plain.png", "pipeworks_sand_tube_plain.png", "pipeworks_sand_tube_plain.png", + "pipeworks_sand_tube_plain.png", "pipeworks_sand_tube_plain.png", "pipeworks_sand_tube_plain.png"} + local sand_end_textures = {"pipeworks_sand_tube_end.png", "pipeworks_sand_tube_end.png", "pipeworks_sand_tube_end.png", + "pipeworks_sand_tube_end.png", "pipeworks_sand_tube_end.png", "pipeworks_sand_tube_end.png"} + local sand_short_texture = "pipeworks_sand_tube_short.png" + local sand_inv_texture = "pipeworks_sand_tube_inv.png" + + pipeworks.register_tube("pipeworks:sand_tube", "Sand pneumatic tube segment", sand_plain_textures, sand_noctr_textures, sand_end_textures, + sand_short_texture, sand_inv_texture, + {groups = {sand_tube = 1}}) + + minetest.register_abm({nodenames = {"group:sand_tube"}, + interval = 1, + chance = 1, + action = function(pos, node, active_object_count, active_object_count_wider) + for _, object in ipairs(minetest.get_objects_inside_radius(pos, 2)) do + if not object:is_player() and object:get_luaentity() and object:get_luaentity().name == "__builtin:item" then + if object:get_luaentity().itemstring ~= "" then + local titem = pipeworks.tube_item(pos,object:get_luaentity().itemstring) + titem:get_luaentity().start_pos = {x = pos.x, y = pos.y-1, z = pos.z} + titem:setvelocity({x = 0.01, y = 1, z = -0.01}) + titem:setacceleration({x = 0, y = 0, z = 0}) + end + object:get_luaentity().itemstring = "" + object:remove() + end + end + end + }) +end + +if pipeworks.enable_mese_sand_tube then + local mese_sand_noctr_textures = {"pipeworks_mese_sand_tube_noctr.png", "pipeworks_mese_sand_tube_noctr.png", "pipeworks_mese_sand_tube_noctr.png", + "pipeworks_mese_sand_tube_noctr.png", "pipeworks_mese_sand_tube_noctr.png", "pipeworks_mese_sand_tube_noctr.png"} + local mese_sand_plain_textures = {"pipeworks_mese_sand_tube_plain.png", "pipeworks_mese_sand_tube_plain.png", "pipeworks_mese_sand_tube_plain.png", + "pipeworks_mese_sand_tube_plain.png", "pipeworks_mese_sand_tube_plain.png", "pipeworks_mese_sand_tube_plain.png"} + local mese_sand_end_textures = {"pipeworks_mese_sand_tube_end.png", "pipeworks_mese_sand_tube_end.png", "pipeworks_mese_sand_tube_end.png", + "pipeworks_mese_sand_tube_end.png", "pipeworks_mese_sand_tube_end.png", "pipeworks_mese_sand_tube_end.png"} + local mese_sand_short_texture = "pipeworks_mese_sand_tube_short.png" + local mese_sand_inv_texture = "pipeworks_mese_sand_tube_inv.png" + + pipeworks.register_tube("pipeworks:mese_sand_tube", "Mese sand pneumatic tube segment", mese_sand_plain_textures, mese_sand_noctr_textures, + mese_sand_end_textures, mese_sand_short_texture,mese_sand_inv_texture, + {groups = {mese_sand_tube = 1}, + on_construct = function(pos) + local meta = minetest.env:get_meta(pos) + meta:set_int("dist", 0) + meta:set_string("formspec", + "size[2,1]".. + "field[.5,.5;1.5,1;dist;distance;${dist}]") + meta:set_string("infotext", "Mese sand pneumatic tube") + end, + on_receive_fields = function(pos,formname,fields,sender) + local meta = minetest.env:get_meta(pos) + local dist + _, dist = pcall(tonumber, fields.dist) + if dist and 0 <= dist and dist <= 8 then meta:set_int("dist", dist) end + end, + }) + + local function get_objects_with_square_radius(pos, rad) + rad = rad + .5; + local objs = {} + for _,object in ipairs(minetest.env:get_objects_inside_radius(pos, math.sqrt(3)*rad)) do + if not object:is_player() and object:get_luaentity() and object:get_luaentity().name == "__builtin:item" then + local opos = object:getpos() + if pos.x - rad <= opos.x and opos.x <= pos.x + rad and pos.y - rad <= opos.y and opos.y <= pos.y + rad and pos.z - rad <= opos.z and opos.z <= pos.z + rad then + objs[#objs + 1] = object + end + end + end + return objs + end + + minetest.register_abm({nodenames = {"group:mese_sand_tube"}, + interval = 1, + chance = 1, + action = function(pos, node, active_object_count, active_object_count_wider) + for _,object in ipairs(get_objects_with_square_radius(pos, minetest.env:get_meta(pos):get_int("dist"))) do + if not object:is_player() and object:get_luaentity() and object:get_luaentity().name == "__builtin:item" then + if object:get_luaentity().itemstring ~= "" then + local titem = pipeworks.tube_item(pos, object:get_luaentity().itemstring) + titem:get_luaentity().start_pos = {x = pos.x, y = pos.y-1, z = pos.z} + titem:setvelocity({x = 0.01, y = 1, z = -0.01}) + titem:setacceleration({x = 0, y = 0, z = 0}) + end + object:get_luaentity().itemstring = "" + object:remove() + end + end + end + }) +end + +local function facedir_to_right_dir(facedir) + + --find the other directions + local backdir = minetest.facedir_to_dir(facedir) + local topdir = ({[0] = {x = 0, y = 1, z = 0}, + {x = 0, y = 0, z = 1}, + {x = 0, y = 0, z = -1}, + {x = 1, y = 0, z = 0}, + {x = -1, y = 0, z = 0}, + {x = 0, y = -1, z = 0}})[math.floor(facedir/4)] + + --return a cross product + return {x = topdir.y*backdir.z - backdir.y*topdir.z, + y = topdir.z*backdir.x - backdir.z*topdir.x, + z = topdir.x*backdir.y - backdir.x*topdir.y} +end + +if pipeworks.enable_one_way_tube then + minetest.register_node("pipeworks:one_way_tube", { + description = "One way tube", + tiles = {"pipeworks_one_way_tube_top.png", "pipeworks_one_way_tube_top.png", "pipeworks_one_way_tube_output.png", + "pipeworks_one_way_tube_input.png", "pipeworks_one_way_tube_side.png", "pipeworks_one_way_tube_top.png"}, + paramtype2 = "facedir", + drawtype = "nodebox", + paramtype = "light", + node_box = {type = "fixed", + fixed = {{-1/2, -9/64, -9/64, 1/2, 9/64, 9/64}}}, + groups = {snappy = 2, choppy = 2, oddly_breakable_by_hand = 2, tubedevice = 1, tubedevice_receiver = 1}, + legacy_facedir_simple = true, + sounds = default.node_sound_wood_defaults(), + after_place_node = function(pos) + pipeworks.scan_for_tube_objects(pos) + end, + after_dig_node = function(pos) + pipeworks.scan_for_tube_objects(pos) + end, + tube = {connect_sides = {left = 1, right = 1}, + can_go = function(pos, node, velocity, stack) + return velocity + end, + insert_object = function(pos, node, stack, direction) + item1 = pipeworks.tube_item(pos, stack) + item1:get_luaentity().start_pos = pos + item1:setvelocity({x = direction.x*direction.speed, y = direction.y*direction.speed, z = direction.z*direction.speed}) + item1:setacceleration({x = 0, y = 0, z = 0}) + return ItemStack("") + end, + can_insert = function(pos, node, stack, direction) + local dir = facedir_to_right_dir(node.param2) + if dir.x == direction.x and dir.y == direction.y and dir.z == direction.z then + return true + end + return false + end}, + }) +end diff --git a/mods/screwdriver/depends.txt b/mods/screwdriver/depends.txt new file mode 100644 index 0000000..4ad96d5 --- /dev/null +++ b/mods/screwdriver/depends.txt @@ -0,0 +1 @@ +default diff --git a/mods/screwdriver/init.lua b/mods/screwdriver/init.lua new file mode 100644 index 0000000..6f99aa5 --- /dev/null +++ b/mods/screwdriver/init.lua @@ -0,0 +1,162 @@ + +local mode_text = { + {"Change rotation, Don't change axisdir."}, + {"Keep choosen face in front then rotate it."}, + {"Change axis dir, Reset rotation."}, + {"Bring top in front then rotate it."}, +} + +local opposite_faces = { + [0] = 5, + [1] = 2, + [2] = 1, + [3] = 4, + [4] = 3, + [5] = 0, +} + +local function screwdriver_setmode(user,itemstack) + local player_name = user:get_player_name() + local item = itemstack:to_table() + local mode = tonumber(itemstack:get_metadata()) + if not mode then + minetest.chat_send_player(player_name, "Hold shift and use to change screwdriwer modes.") + mode = 0 + end + mode = mode + 1 + if mode == 5 then + mode = 1 + end + minetest.chat_send_player(player_name, "Screwdriver mode : "..mode.." - "..mode_text[mode][1] ) + itemstack:set_name("screwdriver:screwdriver"..mode) + itemstack:set_metadata(mode) + return itemstack +end + +local function get_node_face(pointed_thing) + local ax, ay, az = pointed_thing.above.x, pointed_thing.above.y, pointed_thing.above.z + local ux, uy, uz = pointed_thing.under.x, pointed_thing.under.y, pointed_thing.under.z + if ay > uy then return 0 -- Top + elseif az > uz then return 1 -- Z+ side + elseif az < uz then return 2 -- Z- side + elseif ax > ux then return 3 -- X+ side + elseif ax < ux then return 4 -- X- side + elseif ay < uy then return 5 -- Bottom + else + error("pointed_thing.above and under are the same!") + end +end + +local function nextrange(x, max) + x = x + 1 + if x > max then + x = 0 + end + return x +end + +local function screwdriver_handler(itemstack, user, pointed_thing) + if pointed_thing.type ~= "node" then + return + end + local pos = pointed_thing.under + local keys = user:get_player_control() + local player_name = user:get_player_name() + local mode = tonumber(itemstack:get_metadata()) + if not mode or keys["sneak"] == true then + return screwdriver_setmode(user, itemstack) + end + if minetest.is_protected(pos, user:get_player_name()) then + minetest.record_protection_violation(pos, user:get_player_name()) + return + end + local node = minetest.get_node(pos) + local node_name = node.name + local ndef = minetest.registered_nodes[node.name] + if ndef.paramtype2 == "facedir" then + if ndef.drawtype == "nodebox" and ndef.node_box.type ~= "fixed" then + return + end + if node.param2 == nil then + return + end + -- Get ready to set the param2 + local n = node.param2 + local axisdir = math.floor(n / 4) + local rotation = n - axisdir * 4 + if mode == 1 then + n = axisdir * 4 + nextrange(rotation, 3) + elseif mode == 2 then + -- If you are pointing at the axisdir face or the + -- opposite one then you can just rotate the node. + -- Otherwise change the axisdir, avoiding the facing + -- and opposite axes. + local face = get_node_face(pointed_thing) + if axisdir == face or axisdir == opposite_faces[face] then + n = axisdir * 4 + nextrange(rotation, 3) + else + axisdir = nextrange(axisdir, 5) + -- This is repeated because switching from the face + -- can move to to the opposite and vice-versa + if axisdir == face or axisdir == opposite_faces[face] then + axisdir = nextrange(axisdir, 5) + end + if axisdir == face or axisdir == opposite_faces[face] then + axisdir = nextrange(axisdir, 5) + end + n = axisdir * 4 + end + elseif mode == 3 then + n = nextrange(axisdir, 5) * 4 + elseif mode == 4 then + local face = get_node_face(pointed_thing) + if axisdir == face then + n = axisdir * 4 + nextrange(rotation, 3) + else + n = face * 4 + end + end + --print (dump(axisdir..", "..rotation)) + node.param2 = n + minetest.swap_node(pos, node) + local item_wear = tonumber(itemstack:get_wear()) + item_wear = item_wear + 327 + if item_wear > 65535 then + itemstack:clear() + return itemstack + end + itemstack:set_wear(item_wear) + return itemstack + end +end + +minetest.register_craft({ + output = "screwdriver:screwdriver", + recipe = { + {"default:steel_ingot"}, + {"group:stick"} + } +}) + +minetest.register_tool("screwdriver:screwdriver", { + description = "Screwdriver", + inventory_image = "screwdriver.png", + on_use = function(itemstack, user, pointed_thing) + screwdriver_handler(itemstack, user, pointed_thing) + return itemstack + end, +}) + +for i = 1, 4 do + minetest.register_tool("screwdriver:screwdriver"..i, { + description = "Screwdriver in Mode "..i, + inventory_image = "screwdriver.png^tool_mode"..i..".png", + wield_image = "screwdriver.png", + groups = {not_in_creative_inventory=1}, + on_use = function(itemstack, user, pointed_thing) + screwdriver_handler(itemstack, user, pointed_thing) + return itemstack + end, + }) +end + diff --git a/mods/screwdriver/readme.txt b/mods/screwdriver/readme.txt new file mode 100644 index 0000000..d0b10e0 --- /dev/null +++ b/mods/screwdriver/readme.txt @@ -0,0 +1,18 @@ +Minetest mod: screwdriver +========================= + +License of source code: +----------------------- +Copyright (C) 2013 RealBadAngel, Maciej Kasatkin + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU Lesser General Public License as published by +the Free Software Foundation; either version 2 of the License, or +(at your option) any later version. + +http://www.gnu.org/licenses/lgpl-2.1.html + +License of media (textures and sounds) +-------------------------------------- +Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0) +http://creativecommons.org/licenses/by-sa/3.0/ diff --git a/mods/screwdriver/textures/screwdriver.png b/mods/screwdriver/textures/screwdriver.png new file mode 100644 index 0000000..1f2cb87 Binary files /dev/null and b/mods/screwdriver/textures/screwdriver.png differ diff --git a/mods/screwdriver/textures/tool_mode1.png b/mods/screwdriver/textures/tool_mode1.png new file mode 100644 index 0000000..bef8637 Binary files /dev/null and b/mods/screwdriver/textures/tool_mode1.png differ diff --git a/mods/screwdriver/textures/tool_mode2.png b/mods/screwdriver/textures/tool_mode2.png new file mode 100644 index 0000000..4429a5d Binary files /dev/null and b/mods/screwdriver/textures/tool_mode2.png differ diff --git a/mods/screwdriver/textures/tool_mode3.png b/mods/screwdriver/textures/tool_mode3.png new file mode 100644 index 0000000..5635e41 Binary files /dev/null and b/mods/screwdriver/textures/tool_mode3.png differ diff --git a/mods/screwdriver/textures/tool_mode4.png b/mods/screwdriver/textures/tool_mode4.png new file mode 100644 index 0000000..da21e05 Binary files /dev/null and b/mods/screwdriver/textures/tool_mode4.png differ diff --git a/mods/skylands/README.md b/mods/skylands/README.md new file mode 100644 index 0000000..e2b0934 --- /dev/null +++ b/mods/skylands/README.md @@ -0,0 +1,3 @@ +skylands-master +=============== +See forum post at https://forum.minetest.net/viewtopic.php?f=11&t=9152 for full details on the capabilities of this mod. diff --git a/mods/skylands/depends.txt b/mods/skylands/depends.txt new file mode 100644 index 0000000..c9104d6 --- /dev/null +++ b/mods/skylands/depends.txt @@ -0,0 +1,5 @@ +default + +fire +moreblocks? +moreores? diff --git a/mods/skylands/init.lua b/mods/skylands/init.lua new file mode 100644 index 0000000..3ee8ec7 --- /dev/null +++ b/mods/skylands/init.lua @@ -0,0 +1,1047 @@ +-- skylands 2.0 by HeroOfTheWinds, based on floatindev 0.2.0 by paramat +-- For latest stable Minetest and back to 0.4.8 +-- Depends default, fire, moreblocks?, moreores? +-- License: code WTFPL + +-- Parameters + +local YMIN = -33000 -- Approximate realm limits. +local YMAX = 33000 +local XMIN = -33000 +local XMAX = 33000 +local ZMIN = -33000 +local ZMAX = 33000 + +local FLOW = 256 --for pools + +local CHUINT = 1 -- Chunk interval for floatland layers +local WAVAMP = 16 -- Structure wave amplitude +local HISCAL = 24 -- Upper structure vertical scale +local LOSCAL = 24 -- Lower structure vertical scale +local HIEXP = 0.5 -- Upper structure density gradient exponent +local LOEXP = 0.5 -- Lower structure density gradient exponent +local CLUSAV = -0.4 -- Large scale variation average +local CLUSAM = 0.5 -- Large scale variation amplitude +local DIRTHR = 0.04 -- Dirt density threshold +local STOTHR = 0.08 -- Stone density threshold +local STABLE = 2 -- Minimum number of stacked stone nodes in column for dirt / sand on top + +local APPCHA = 0.02 -- Appletree chance +local FLOCHA = 0.02 -- Flower chance +local GRACHA = 0.11 -- Grass chance +local CACCHA = 0.02 -- Cactus chance +local FIRCHA = 0.03 -- Fire chance +local LAKCHA = 0.002 +local ORECHA = 1 / (6 * 6 * 6) + +-- 3D noise for floatlands + +local np_float = { + offset = 0, + scale = 1, + spread = {x=256, y=256, z=256}, + seed = 277777979, + octaves = 6, + persist = 0.6 +} + +-- 3D noise for caves + +local np_caves = { + offset = 0, + scale = 1, + spread = {x=8, y=8, z=8}, + seed = -89000, + octaves = 2, + persist = 0.5 +} + +-- 3D noise for large scale floatland size/density variation + +local np_cluster = { + offset = 0, + scale = 1, + spread = {x=2048, y=2048, z=2048}, + seed = 23, + octaves = 1, + persist = 0.5 +} + +-- 2D noise for wave + +local np_wave = { + offset = 0, + scale = 1, + spread = {x=256, y=256, z=256}, + seed = -400000000089, + octaves = 3, + persist = 0.5 +} + +-- 2D noise for biome + +local np_biome = { + offset = 0, + scale = 1, + spread = {x=250, y=250, z=250}, + seed = 9130, + octaves = 3, + persist = 0.5 +} + +-- Stuff + +skylands = {} + +-- Nodes + +minetest.register_node("skylands:stone", { + description = "FLI Stone", + tiles = {"default_stone.png"}, + is_ground_content = false, -- stops cavegen removing this node + groups = {cracky=3}, + drop = "default:cobble", + sounds = default.node_sound_stone_defaults(), +}) + +minetest.register_node("skylands:desertstone", { + description = "FLI Desert Stone", + tiles = {"default_desert_stone.png"}, + is_ground_content = false, -- stops cavegen removing this node + groups = {cracky=3}, + drop = "default:desert_stone", + sounds = default.node_sound_stone_defaults(), +}) + +minetest.register_node("skylands:obsidian", { + description = "FLI Obsidian", + tiles = {"default_obsidian.png"}, + is_ground_content = false, + sounds = default.node_sound_stone_defaults(), + groups = {cracky=1,level=2}, + drop = "default:obsidian", +}) +--NEW! Cinder for volcanic biomes +minetest.register_node("skylands:cinder", { + description = "Cinder", + tiles = {"skylands_cinder.png"}, + is_ground_content = true, + groups = {crumbly=2, falling_node=1}, + sounds = default.node_sound_dirt_defaults({ + footstep = {name="default_gravel_footstep", gain=0.5}, + dug = {name="default_gravel_footstep", gain=1.0}, + }), +}) +--NEW! Cinder block crafted from cinder +minetest.register_node("skylands:cinder_block", { + description = "Cinder Block", + tiles = {"skylands_cinder_block.png"}, + groups = {cracky=3, crumbly=1}, + sounds = default.node_sound_stone_defaults(), +}) +--Craft to create cinder blocks from 4 cinders +minetest.register_craft({ + output = "skylands:cinder_block", + recipe = { + {"skylands:cinder", "skylands:cinder"}, + {"skylands:cinder", "skylands:cinder"} + } +}) + +--vars for it moreblocks and moreores are installed +local mblocks = false +local mores = false + +--moreblocks nodes - iron_stone redefined so that cavegen doesn't destroy +minetest.register_node("skylands:coal_stone", { + description = "FLI Coal Stone", + tiles = {"moreblocks_coal_stone.png"}, + --is_ground_content = false, + groups = {cracky=3}, + drop = "moreblocks:coal_stone", +}) + +minetest.register_node("skylands:iron_stone", { + description = "FLI Iron Stone", + tiles = {"moreblocks_iron_stone.png"}, + is_ground_content = false, + groups = {cracky=3}, + drop = "moreblocks:iron_stone", +}) +--define special flame so that it does not expire +minetest.register_node("skylands:constant_flame", { + description = "Fire", + drawtype = "plantlike", + tiles = {{ + name="fire_basic_flame_animated.png", + animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=1}, + }}, + inventory_image = "fire_basic_flame.png", + light_source = 14, + groups = {igniter=2,dig_immediate=3,hot=3}, + drop = '', + walkable = false, + buildable_to = true, + damage_per_second = 4, + + after_place_node = function(pos, placer) + fire.on_flame_add_at(pos) + end, + + after_dig_node = function(pos, oldnode, oldmetadata, digger) + fire.on_flame_remove_at(pos) + end, +}) + +--Define the ores so that they propagate with the abm +minetest.register_node("skylands:stone_with_coal", { + description = "Coal Ore", + tiles = {"default_stone.png^default_mineral_coal.png"}, + is_ground_content = true, + groups = {cracky=3, skyores=1}, + drop = 'default:coal_lump', + sounds = default.node_sound_stone_defaults(), +}) + +minetest.register_node("skylands:stone_with_iron", { + description = "Iron Ore", + tiles = {"default_stone.png^default_mineral_iron.png"}, + is_ground_content = true, + groups = {cracky=2, skyores=1}, + drop = 'default:iron_lump', + sounds = default.node_sound_stone_defaults(), +}) + +minetest.register_node("skylands:stone_with_copper", { + description = "Copper Ore", + tiles = {"default_stone.png^default_mineral_copper.png"}, + is_ground_content = true, + groups = {cracky=2, skyores=1}, + drop = 'default:copper_lump', + sounds = default.node_sound_stone_defaults(), +}) + +minetest.register_node("skylands:stone_with_mese", { + description = "Mese Ore", + tiles = {"default_stone.png^default_mineral_mese.png"}, + is_ground_content = true, + groups = {cracky=1, skyores=1}, + drop = "default:mese_crystal", + sounds = default.node_sound_stone_defaults(), +}) + +minetest.register_node("skylands:stone_with_gold", { + description = "Gold Ore", + tiles = {"default_stone.png^default_mineral_gold.png"}, + is_ground_content = true, + groups = {cracky=2, skyores=1}, + drop = "default:gold_lump", + sounds = default.node_sound_stone_defaults(), +}) + +minetest.register_node("skylands:stone_with_diamond", { + description = "Diamond Ore", + tiles = {"default_stone.png^default_mineral_diamond.png"}, + is_ground_content = true, + groups = {cracky=1, skyores=1}, + drop = "default:diamond", + sounds = default.node_sound_stone_defaults(), +}) +minetest.register_node("skylands:mineral_tin", { + description = "Tin Ore", + tiles = {"default_stone.png^moreores_mineral_tin.png"}, + groups = {cracky=3, skyores=1}, + sounds = default_stone_sounds, + drop = "moreores:tin_lump" +}) +minetest.register_node("skylands:mineral_silver", { + description = "Silver Ore", + tiles = {"default_stone.png^moreores_mineral_silver.png"}, + groups = {cracky=3, skyores=1}, + sounds = default_stone_sounds, + drop = "moreores:silver_lump" +}) +minetest.register_node("skylands:mineral_mithril", { + description = "Mithril Ore", + tiles = {"default_stone.png^moreores_mineral_mithril.png"}, + groups = {cracky=3, skyores=1}, + sounds = default_stone_sounds, + drop = "moreores:mithril_lump" +}) + + +-- Functions + +local function skylands_appletree(x, y, z, area, data) + + local c_tree = minetest.get_content_id("default:tree") + local c_apple = minetest.get_content_id("default:apple") + local c_leaves = minetest.get_content_id("default:leaves") + for j = -2, 4 do + if j >= 1 then + for i = -2, 2 do + for k = -2, 2 do + local vi = area:index(x + i, y + j + 1, z + k) + if math.random(48) == 2 then + data[vi] = c_apple + elseif math.random(3) ~= 2 then + data[vi] = c_leaves + end + end + end + end + local vi = area:index(x, y + j, z) + data[vi] = c_tree + end +end + +local function skylands_grass(data, vi) + local c_grass1 = minetest.get_content_id("default:grass_1") + local c_grass2 = minetest.get_content_id("default:grass_2") + local c_grass3 = minetest.get_content_id("default:grass_3") + local c_grass4 = minetest.get_content_id("default:grass_4") + local c_grass5 = minetest.get_content_id("default:grass_5") + local rand = math.random(5) + if rand == 1 then + data[vi] = c_grass1 + elseif rand == 2 then + data[vi] = c_grass2 + elseif rand == 3 then + data[vi] = c_grass3 + elseif rand == 4 then + data[vi] = c_grass4 + else + data[vi] = c_grass5 + end +end + +local function skylands_flower(data, vi) + local c_danwhi = minetest.get_content_id("flowers:dandelion_white") + local c_danyel = minetest.get_content_id("flowers:dandelion_yellow") + local c_rose = minetest.get_content_id("flowers:rose") + local c_tulip = minetest.get_content_id("flowers:tulip") + local c_geranium = minetest.get_content_id("flowers:geranium") + local c_viola = minetest.get_content_id("flowers:viola") + local rand = math.random(6) + if rand == 1 then + data[vi] = c_danwhi + elseif rand == 2 then + data[vi] = c_rose + elseif rand == 3 then + data[vi] = c_tulip + elseif rand == 4 then + data[vi] = c_danyel + elseif rand == 5 then + data[vi] = c_geranium + else + data[vi] = c_viola + end +end + +local function skylands_desertplant(data, vi) + local c_cactus = minetest.get_content_id("default:cactus") + local c_dry_shrub = minetest.get_content_id("default:dry_shrub") + local rand = math.random(2) + if rand == 1 then + data[vi] = c_dry_shrub + else + data[vi] = c_cactus + end +end + +--function from highlandpools mod +function highlandpools_remtree(x, y, z, area, data) + local c_tree = minetest.get_content_id("default:tree") + local c_apple = minetest.get_content_id("default:apple") + local c_leaves = minetest.get_content_id("default:leaves") + local c_air = minetest.get_content_id("air") + for j = 1, 7 do + for i = -2, 2 do + for k = -2, 2 do + local vi = area:index(x+i, y+j, z+k) + if data[vi] == c_tree + or data[vi] == c_apple + or data[vi] == c_leaves then + data[vi] = c_air + end + end + end + end + for j = 1, 7 do + for i = -2, 2 do + for k = -2, 2 do + local vi = area:index(x+i, y-j, z+k) + if data[vi] == c_tree + or data[vi] == c_apple + or data[vi] == c_leaves then + data[vi] = c_air + end + end + end + end +end + +--function to remove flowers and grass +function highlandpools_remplant(x, y, z, area, data) + local c_grass1 = minetest.get_content_id("default:grass_1") + local c_grass2 = minetest.get_content_id("default:grass_2") + local c_grass3 = minetest.get_content_id("default:grass_3") + local c_grass4 = minetest.get_content_id("default:grass_4") + local c_grass5 = minetest.get_content_id("default:grass_5") + local c_danwhi = minetest.get_content_id("flowers:dandelion_white") + local c_danyel = minetest.get_content_id("flowers:dandelion_yellow") + local c_rose = minetest.get_content_id("flowers:rose") + local c_tulip = minetest.get_content_id("flowers:tulip") + local c_geranium = minetest.get_content_id("flowers:geranium") + local c_viola = minetest.get_content_id("flowers:viola") + local c_cactus = minetest.get_content_id("default:cactus") + local c_dry_shrub = minetest.get_content_id("default:dry_shrub") + local c_air = minetest.get_content_id("air") + local c_water = minetest.get_content_id("default:water_source") + for j = 1, 7 do + for i = -2, 2 do + for k = -2, 2 do + local vi = area:index(x+i, y+j, z+k) + if data[vi] == c_grass1 + or data[vi] == c_grass2 + or data[vi] == c_grass3 + or data[vi] == c_grass4 + or data[vi] == c_grass5 + or data[vi] == c_danwhi + or data[vi] == c_danyel + or data[vi] == c_rose + or data[vi] == c_tulip + or data[vi] == c_geranium + or data[vi] == c_viola + or data[vi] == c_cactus + or data[vi] == c_dry_shrub then + data[vi] = c_air + end + end + end + end + for j = 1, 7 do + for i = -2, 2 do + for k = -2, 2 do + local vi = area:index(x+i, y-j, z+k) + if data[vi] == c_grass1 + or data[vi] == c_grass2 + or data[vi] == c_grass3 + or data[vi] == c_grass4 + or data[vi] == c_grass5 + or data[vi] == c_danwhi + or data[vi] == c_danyel + or data[vi] == c_rose + or data[vi] == c_tulip + or data[vi] == c_geranium + or data[vi] == c_viola + or data[vi] == c_cactus + or data[vi] == c_dry_shrub then + data[vi] = c_air + end + end + end + end +end + +-- On generated function + +minetest.register_on_generated(function(minp, maxp, seed) + +-- if (minetest.get_modpath("moreblocks")) then + --let the generator know it can use moreblocks + mblocks = minetest.get_modpath("moreblocks") +-- end +-- if (minetest.get_modpath("moreores")) then + mores = minetest.get_modpath("moreores") +-- end + + if minp.x < XMIN or maxp.x > XMAX + or minp.y < YMIN or maxp.y > YMAX + or minp.z < ZMIN or maxp.z > ZMAX then + return + end + local chulay = math.floor((minp.y + 32) / 80) -- chunk layer number, 0 = surface chunk + if math.fmod(chulay, CHUINT) ~= 0 then -- if chulay / CHUINT has a remainder + return + end + + local t1 = os.clock() + local x1 = maxp.x + local y1 = maxp.y + local z1 = maxp.z + local x0 = minp.x + local y0 = minp.y + local z0 = minp.z + + print ("[skylands] chunk minp ("..x0.." "..y0.." "..z0..")") + + local vm, emin, emax = minetest.get_mapgen_object("voxelmanip") + local area = VoxelArea:new{MinEdge=emin, MaxEdge=emax} + local data = vm:get_data() + + local c_air = minetest.get_content_id("air") + local c_stodiam = minetest.get_content_id("skylands:stone_with_diamond") + local c_stomese = minetest.get_content_id("skylands:stone_with_mese") + local c_stogold = minetest.get_content_id("skylands:stone_with_gold") + local c_stocopp = minetest.get_content_id("skylands:stone_with_copper") + local c_stoiron = minetest.get_content_id("skylands:stone_with_iron") + local c_stocoal = minetest.get_content_id("skylands:stone_with_coal") + local c_grass = minetest.get_content_id("default:dirt_with_grass") + local c_dirt = minetest.get_content_id("default:dirt") + local c_desand = minetest.get_content_id("default:desert_sand") + --Newly added + local c_snow = minetest.get_content_id("default:dirt_with_snow") + local c_fliobsidian = minetest.get_content_id("skylands:obsidian") + local c_mese = minetest.get_content_id("default:mese") + local c_gravel = minetest.get_content_id("default:gravel") + local c_cinder = minetest.get_content_id("skylands:cinder") + local c_cindblock = minetest.get_content_id("skylands:cinder_block") + local c_fire = minetest.get_content_id("skylands:constant_flame") + --moreblocks + local c_coalstone = minetest.get_content_id("skylands:coal_stone") + local c_ironstone = minetest.get_content_id("skylands:iron_stone") + --moreores + local c_stotin = minetest.get_content_id("skylands:mineral_tin") + local c_stomithril = minetest.get_content_id("skylands:mineral_mithril") + local c_stosilver = minetest.get_content_id("skylands:mineral_silver") + + local c_flistone = minetest.get_content_id("skylands:stone") + local c_flidestone = minetest.get_content_id("skylands:desertstone") + + local sidelen = x1 - x0 + 1 + local chulens = {x=sidelen, y=sidelen, z=sidelen} + local minposxyz = {x=x0, y=y0, z=z0} + local minposxz = {x=x0, y=z0} + + local nvals_float = minetest.get_perlin_map(np_float, chulens):get3dMap_flat(minposxyz) + local nvals_caves = minetest.get_perlin_map(np_caves, chulens):get3dMap_flat(minposxyz) + local nvals_cluster = minetest.get_perlin_map(np_cluster, chulens):get3dMap_flat(minposxyz) + + local nvals_wave = minetest.get_perlin_map(np_wave, chulens):get2dMap_flat(minposxz) + local nvals_biome = minetest.get_perlin_map(np_biome, chulens):get2dMap_flat({x=x0+150, y=z0+50}) + + local nixyz = 1 + local nixz = 1 + local stable = {} + local dirt = {} + local chumid = y0 + sidelen / 2 + for z = z0, z1 do -- for each xy plane progressing northwards + for x = x0, x1 do + local si = x - x0 + 1 + dirt[si] = 0 + local nodename = minetest.get_node({x=x,y=y0-1,z=z}).name + if nodename == "air" + or nodename == "default:water_source" + or nodename == "default:lava_source" then + stable[si] = 0 + else -- all else including ignore in ungenerated chunks + stable[si] = STABLE + end + end + for y = y0, y1 do -- for each x row progressing upwards + local vi = area:index(x0, y, z) + for x = x0, x1 do -- for each node do + local si = x - x0 + 1 + local flomid = chumid + nvals_wave[nixz] * WAVAMP + local grad + if y > flomid then + grad = ((y - flomid) / HISCAL) ^ HIEXP + else + grad = ((flomid - y) / LOSCAL) ^ LOEXP + end + local density = nvals_float[nixyz] - grad + CLUSAV + nvals_cluster[nixyz] * CLUSAM + if density > 0 and density < 0.7 then -- if floatland shell + if nvals_caves[nixyz] - density > -0.7 then -- if no cave + if y > flomid and density < STOTHR and stable[si] >= STABLE then + if nvals_biome[nixz] > 0.15 and nvals_biome[nixz] <= 0.65 then -- fine materials + data[vi] = c_desand + dirt[si] = dirt[si] + 1 + --volcano biome + elseif nvals_biome[nixz] > 0.65 then + if density < DIRTHR then + if nvals_biome[nixz] > 0.80 then + data[vi] = c_cinder + else + data[vi] = c_gravel + end + else + if nvals_biome[nixz] > 0.80 then + data[vi] = c_cindblock + else + if mblocks == true then + data[vi] = c_coalstone + else + data[vi] = c_flistone + end + end + end + dirt[si] = dirt[si] + 1 + --snow biome + elseif nvals_biome[nixz] < -0.45 then + if density < DIRTHR then + data[vi] = c_snow + else + data[vi] = c_dirt + end + dirt[si] = dirt[si] + 1 + else + if density < DIRTHR then + data[vi] = c_grass + else + data[vi] = c_dirt + end + dirt[si] = dirt[si] + 1 + end + else + if nvals_biome[nixz] > 0.15 and nvals_biome[nixz] <= 0.65 then -- stone + data[vi] = c_flidestone + elseif nvals_biome[nixz] > 0.65 then + data[vi] = c_fliobsidian + elseif nvals_biome[nixz] < -0.45 then + if mblocks then + data[vi] = c_ironstone + else + data[vi] = c_flistone + end + elseif math.random() < ORECHA then + local osel = math.random(35) + if osel >= 34 then + if mores then + if osel == 35 then + data[vi] = c_mese + else + data[vi] = c_stodiam + end + else + data[vi] = c_stodiam + end + elseif osel >= 31 then + data[vi] = c_stomese + elseif osel >= 28 then + if mores then + if osel == 30 then + data[vi] = c_stomithril + else + data[vi] = c_stogold + end + else + data[vi] = c_stogold + end + elseif osel >= 19 then + data[vi] = c_stocopp + elseif osel >= 10 then + if mores then + if osel >= 16 then + data[vi] = c_stotin + else + data[vi] = c_stoiron + end + else + data[vi] = c_stoiron + end + else + data[vi] = c_stocoal + end + else + data[vi] = c_flistone + end + stable[si] = stable[si] + 1 + end + else -- cave + stable[si] = 0 + end + elseif y > flomid and density < 0 and dirt[si] >= 1 then -- node above surface dirt + if nvals_biome[nixz] > 0.15 and nvals_biome[nixz] <= 0.65 then --desert + if math.random() < CACCHA then + skylands_desertplant(data, vi) + end + dirt[si] = 0 + elseif nvals_biome[nixz] > 0.65 then --volcano + if math.random() < FIRCHA then + data[vi] = c_fire + end + dirt[si] = 0 + elseif nvals_biome[nixz] <= 0.15 then --regular and snow + if dirt[si] >= 2 and math.random() < APPCHA then + skylands_appletree(x, y, z, area, data) + elseif nvals_biome[nixz] >= -0.45 then --not snow + if math.random() < FLOCHA then + skylands_flower(data, vi) + elseif math.random() < GRACHA then + skylands_grass(data, vi) + end + end + dirt[si] = 0 + end + else -- atmosphere + stable[si] = 0 + end + nixyz = nixyz + 1 + nixz = nixz + 1 + vi = vi + 1 + end + nixz = nixz - 80 + end + nixz = nixz + 80 + end + + --pools code + local y0 = minp.y + if y0 < YMIN or y0 > YMAX then + return + end + + local t1 = os.clock() + local x0 = minp.x + local z0 = minp.z + print ("[highlandpools] chunk ("..x0.." "..y0.." "..z0..")") + local x1 = maxp.x + local y1 = maxp.y + local z1 = maxp.z + local sidelen = x1 - x0 -- actually sidelen - 1 + + --local vm, emin, emax = minetest.get_mapgen_object("voxelmanip") + --local area = VoxelArea:new{MinEdge=emin, MaxEdge=emax} + --local data = vm:get_data() + + local c_ignore = minetest.get_content_id("ignore") + local c_watsour = minetest.get_content_id("default:water_source") + local c_lavasour = minetest.get_content_id("default:lava_source") + local c_ice = minetest.get_content_id("default:ice") + local c_tree = minetest.get_content_id("default:tree") + local c_apple = minetest.get_content_id("default:apple") + local c_leaves = minetest.get_content_id("default:leaves") + + for xcen = x0 + 8, x1 - 7, 8 do + for zcen = z0 + 8, z1 - 7, 8 do + local yasurf = false -- y of above surface node + local fluidtype = "water" --type of fluid to fill in + for y = y1, 2, -1 do + local vi = area:index(xcen, y, zcen) + local c_node = data[vi] + if y == y1 and c_node ~= c_air then -- if top node solid + break + elseif c_node == c_watsour then + break + elseif c_node == c_grass then + yasurf = y + 1 + fluidtype = "water" + break + elseif c_node == c_snow then + yasurf = y + 1 + fluidtype = "ice" + break + elseif c_node == c_cinder then + yasurf = y + 1 + fluidtype = "lava" + break + elseif c_node == c_gravel then + yasurf = y + 1 + fluidtype = "lava" + break + elseif c_node == c_obsidian then + yasurf = y + 1 + fluidtype = "lava" + break + end + end + if yasurf then + local abort = false + for ser = 1, 80 do + local vi = area:index(xcen + ser, yasurf, zcen) + local c_node = data[vi] + if xcen + ser == x1 then + abort = true + elseif c_node ~= c_air + and c_node ~= c_tree + and c_node ~= c_leaves + and c_node ~= c_apple then + break + end + end + for ser = 1, 80 do + local vi = area:index(xcen - ser, yasurf, zcen) + local c_node = data[vi] + if xcen - ser == x0 then + abort = true + elseif c_node ~= c_air + and c_node ~= c_tree + and c_node ~= c_leaves + and c_node ~= c_apple then + break + end + end + for ser = 1, 80 do + local vi = area:index(xcen, yasurf, zcen + ser) + local c_node = data[vi] + if zcen + ser == z1 then + abort = true + elseif c_node ~= c_air + and c_node ~= c_tree + and c_node ~= c_leaves + and c_node ~= c_apple then + break + end + end + for ser = 1, 80 do + local vi = area:index(xcen, yasurf, zcen - ser) + local c_node = data[vi] + if zcen - ser == z0 then + abort = true + elseif c_node ~= c_air + and c_node ~= c_tree + and c_node ~= c_leaves + and c_node ~= c_apple then + break + end + end + if abort then + break + end + + local vi = area:index(xcen, yasurf, zcen) + if fluidtype == "water" then + data[vi] = c_watsour + elseif fluidtype == "lava" then + data[vi] = c_lavasour + elseif fluidtype == "ice" then + data[vi] = c_ice + end + local flab = false -- flow abort + for flow = 1, FLOW do + for z = z0, z1 do + for x = x0, x1 do + local vif = area:index(x, yasurf, z) + if data[vif] == c_watsour or data[vif] == c_lavasour or data[vif] == c_ice then + if x == x0 or x == x1 or z == z0 or z == z1 then + flab = true -- if water at chunk edge abort flow + break + else -- flow water + local vie = area:index(x + 1, yasurf, z) + local viw = area:index(x - 1, yasurf, z) + local vin = area:index(x, yasurf, z + 1) + local vis = area:index(x, yasurf, z - 1) + if data[vie] == c_tree then + highlandpools_remtree(x + 1, yasurf, z, area, data) + if fluidtype == "water" then + data[vie] = c_watsour + elseif fluidtype == "lava" then + data[vie] = c_lavasour + elseif fluidtype == "ice" then + data[vie] = c_ice + end + elseif data[vie] == c_air + or data[vie] == c_apple + or data[vie] == c_fire + or data[vie] == c_leaves then + highlandpools_remplant(x + 1, yasurf, z, area, data) + if fluidtype == "water" then + data[vie] = c_watsour + elseif fluidtype == "lava" then + data[vie] = c_lavasour + elseif fluidtype == "ice" then + data[vie] = c_ice + end + end + if data[viw] == c_tree then + highlandpools_remtree(x - 1, yasurf, z, area, data) + if fluidtype == "water" then + data[viw] = c_watsour + elseif fluidtype == "lava" then + data[viw] = c_lavasour + elseif fluidtype == "ice" then + data[viw] = c_ice + end + elseif data[viw] == c_air + or data[viw] == c_apple + or data[viw] == c_fire + or data[viw] == c_leaves then + highlandpools_remplant(x + 1, yasurf, z, area, data) + if fluidtype == "water" then + data[viw] = c_watsour + elseif fluidtype == "lava" then + data[viw] = c_lavasour + elseif fluidtype == "ice" then + data[viw] = c_ice + end + end + if data[vin] == c_tree then + highlandpools_remtree(x, yasurf, z + 1, area, data) + if fluidtype == "water" then + data[vin] = c_watsour + elseif fluidtype == "lava" then + data[vin] = c_lavasour + elseif fluidtype == "ice" then + data[vin] = c_ice + end + elseif data[vin] == c_air + or data[vin] == c_apple + or data[vin] == c_fire + or data[vin] == c_leaves then + highlandpools_remplant(x + 1, yasurf, z, area, data) + if fluidtype == "water" then + data[vin] = c_watsour + elseif fluidtype == "lava" then + data[vin] = c_lavasour + elseif fluidtype == "ice" then + data[vin] = c_ice + end + end + if data[vis] == c_tree then + highlandpools_remtree(x, yasurf, z - 1, area, data) + if fluidtype == "water" then + data[vis] = c_watsour + elseif fluidtype == "lava" then + data[vis] = c_lavasour + elseif fluidtype == "ice" then + data[vis] = c_ice + end + elseif data[vis] == c_air + or data[vis] == c_apple + or data[vis] == c_fire + or data[vis] == c_leaves then + highlandpools_remplant(x + 1, yasurf, z, area, data) + if fluidtype == "water" then + data[vis] = c_watsour + elseif fluidtype == "lava" then + data[vis] = c_lavasour + elseif fluidtype == "ice" then + data[vis] = c_ice + end + end + end + end + end + if flab then + break + end + end + if flab then + break + end + end + if flab then -- erase water from this y level + for z = z0, z1 do + for x = x0, x1 do + local vi = area:index(x, yasurf, z) + if data[vi] == c_watsour then + data[vi] = c_air + end + if data[vi] == c_lavasour then + data[vi] = c_air + end + if data[vi] == c_ice then + data[vi] = c_air + end + end + end + else -- flow downwards add dirt + for z = z0, z1 do + for x = x0, x1 do + local vi = area:index(x, yasurf, z) + if data[vi] == c_watsour or data[vif] == c_lavasour then + for y = yasurf - 1, y0, -1 do + local viu = area:index(x, y, z) + if data[viu] == c_air then + if fluidtype == "water" or fluidtype == "ice" then + data[viu] = c_watsour + elseif fluidtype == "lava" then + data[viu] = c_lavasour + end + elseif data[viu] == c_grass or data[viu] == c_snow then + data[viu] = c_dirt + break + elseif data[viu] == c_cinder or data[viu] == c_gravel then + data[viu] = c_fliobsidian + break + else + highlandpools_remplant(x + 1, yasurf, z, area, data) + break + end + end + end + end + end + end + end + end + end + + vm:set_data(data) + vm:set_lighting({day=0, night=0}) + vm:calc_lighting() + vm:write_to_map(data) + local chugent = math.ceil((os.clock() - t1) * 1000) + print ("[skylands] "..chugent.." ms") +end) + +--generate ore clusters +minetest.register_abm({ + nodenames = {"group:skyores"}, + --neighbors = {"group:stone"}, + interval = 1.0, + chance = 1, + action = function(pos, node, active_object_count, active_object_count_wider) + --variable to store name of node to place + local orename = "" + --variable to determine how large of a cluster to create + local orerad = 1 + --determine above variables + if node.name == "skylands:stone_with_coal" then + orename = "default:stone_with_coal" + orerad = 2 + end + if node.name == "skylands:stone_with_iron" then + orename = "default:stone_with_iron" + orerad = 1 + end + if node.name == "skylands:stone_with_gold" then + orename = "default:stone_with_gold" + orerad = 1 + end + if node.name == "skylands:stone_with_mese" then + orename = "default:stone_with_mese" + orerad = 1 + end + if node.name == "skylands:stone_with_diamond" then + orename = "default:stone_with_diamond" + orerad = 1 + end + if node.name == "skylands:stone_with_copper" then + orename = "default:stone_with_copper" + orerad = 1 + end + if node.name == "skylands:mineral_tin" then + orename = "moreores:mineral_tin" + orerad = 1 + end + if node.name == "skylands:mineral_silver" then + orename = "moreores:mineral_silver" + orerad = 1 + end + if node.name == "skylands:mineral_mithril" then + orename = "moreores:mineral_mithril" + orerad = 1 + end + --in a cube of length orerad*2 + for x = -orerad, orerad do + for y = -orerad, orerad do + for z = -orerad, orerad do + --store new position + local np = {x=x+pos.x,y=y+pos.y,z=z+pos.z} + --on random chance, spread. + if math.random(6) == 1 then --needs balancing + --only affect stone nodes + targ = minetest.get_node(np) + if targ.name == "skylands:stone" then + minetest.set_node(np, {name=orename}) + end + end + end + end + end + --ensure this node dies so as to stop the abm + minetest.set_node(pos, {name=orename}) + end, +}) \ No newline at end of file diff --git a/mods/skylands/license.txt b/mods/skylands/license.txt new file mode 100644 index 0000000..c73f8ae --- /dev/null +++ b/mods/skylands/license.txt @@ -0,0 +1,14 @@ + DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + Version 2, December 2004 + + Copyright (C) 2004 Sam Hocevar + + Everyone is permitted to copy and distribute verbatim or modified + copies of this license document, and changing it is allowed as long + as the name is changed. + + DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. You just DO WHAT THE FUCK YOU WANT TO. + diff --git a/mods/skylands/textures/skylands_cinder.png b/mods/skylands/textures/skylands_cinder.png new file mode 100644 index 0000000..a7ec0c4 Binary files /dev/null and b/mods/skylands/textures/skylands_cinder.png differ diff --git a/mods/skylands/textures/skylands_cinder_block.png b/mods/skylands/textures/skylands_cinder_block.png new file mode 100644 index 0000000..c98d9e1 Binary files /dev/null and b/mods/skylands/textures/skylands_cinder_block.png differ diff --git a/mods/skytest_initialize/depends.txt b/mods/skytest_initialize/depends.txt new file mode 100644 index 0000000..e69de29 diff --git a/mods/skytest_initialize/init.lua b/mods/skytest_initialize/init.lua new file mode 100644 index 0000000..9e85560 --- /dev/null +++ b/mods/skytest_initialize/init.lua @@ -0,0 +1,117 @@ +mgparams = {mgname="singlenode"} +minetest.register_on_mapgen_init( minetest.set_mapgen_params(mgparams)) + +-- 2D noise for wave + +local np_wave = { + offset = 0, + scale = 1, + spread = {x=256, y=256, z=256}, + seed = -400000000089, + octaves = 3, + persist = 0.5 +} + +minetest.register_on_generated(function(minp, maxp, seed) + + if minp.x < -90 or maxp.x > 90 + or minp.y < -90 or maxp.y > 90 + or minp.z < -90 or maxp.z > 90 then + return + end + + local vm, emin, emax = minetest.get_mapgen_object("voxelmanip") + local area = VoxelArea:new{MinEdge=emin, MaxEdge=emax} + local data = vm:get_data() + local c_stone = minetest.get_content_id("skylands:stone") + local c_grass = minetest.get_content_id("default:dirt_with_grass") + local c_dirt = minetest.get_content_id("default:dirt") + local c_air = minetest.get_content_id("air") + local c_sand = minetest.get_content_id("default:sand") + local c_water = minetest.get_content_id("default:water_source") + + local HSIZE = 30 --radius of the island + local PEAK = 4 --height of the island + local TROUGH = 12 --how "deep" is the island? + + --local WAVAMP = 6 -- Structure wave amplitude + --local HISCAL = 9 -- Upper structure vertical scale + --local LOSCAL = 9 -- Lower structure vertical scale + --local HIEXP = 0.5 -- Upper structure density gradient exponent + --local LOEXP = 0.5 -- Lower structure density gradient exponent + + --local nvals_wave = minetest.get_perlin_map(np_wave, {x=80, y=80, z=80}):get2dMap_flat({x=0, y=0, z=0}) + + + --loop over all positions within island's bounding box + for y = -TROUGH, PEAK do + --determine radius for this 'level' + local rad = HSIZE - (math.abs(y)+1) + for z = -HSIZE, HSIZE do + for x = -HSIZE, HSIZE do + --idek + -- local flomid = -40 + nvals_wave[1] * WAVAMP + -- local grad + -- if y > flomid then + -- grad = ((y - flomid) / HISCAL) ^ HIEXP + -- else + -- grad = ((flomid - y) / LOSCAL) ^ LOEXP + -- end + --lol + -- y = math.floor(flomid) + -- local vi = area:index(x, y, z) + -- data[vi] = c_stone + + + --generate central lake + local l_rad = (HSIZE - (HSIZE * 1/2)) - (math.abs(y)+1) + local rad_max = (HSIZE - (HSIZE * 1/2)) + if z*z + x*x <= rad * rad then + if z*z + x*x <= l_rad * l_rad and y <= 0 then + local vi = area:index(x, y-10, z) + if y >= -TROUGH /2 then + data[vi] = c_water + else + data[vi] = c_stone + end + elseif y > 0 and z*z + x*x <= rad_max * rad_max then + local vi = area:index(x, y-10, z) + data[vi] = c_air + else + local vi = area:index(x, y-10, z) + if y > 0 then + data[vi] = c_grass + elseif y == 0 then + data[vi] = c_sand + elseif y > -TROUGH / 2 then + data[vi] = c_dirt + else + data[vi] = c_stone + end + end + end + for ny = 1, PEAK do + t_rad = rad_max + ny + if z*z + x*x <= t_rad * t_rad then + local vi = area:index(x, ny-10, z) + data[vi] = c_air + end + end + end + end + end + for y = -TROUGH-10, -TROUGH-9 do + for x = -1, 1 do + for z = -1, 1 do + local vi = area:index(x, y, z) + data[vi] = c_stone + end + end + end + + + vm:set_data(data) + vm:set_lighting({day=0, night=0}) + vm:calc_lighting() + vm:write_to_map(data) +end) \ No newline at end of file diff --git a/mods/stairs/README.txt b/mods/stairs/README.txt new file mode 100644 index 0000000..716a677 --- /dev/null +++ b/mods/stairs/README.txt @@ -0,0 +1,26 @@ +Minetest 0.4 mod: stairs +========================= + +License of source code: +----------------------- +Copyright (C) 2011-2012 Kahrl +Copyright (C) 2011-2012 celeron55, Perttu Ahola + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU Lesser General Public License as published by +the Free Software Foundation; either version 2 of the License, or +(at your option) any later version. + +http://www.gnu.org/licenses/lgpl-2.1.html + +License of media (textures and sounds) +-------------------------------------- +Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0) +http://creativecommons.org/licenses/by-sa/3.0/ + +Authors of media files +----------------------- +Everything not listed in here: +Copyright (C) 2010-2012 celeron55, Perttu Ahola + + diff --git a/mods/stairs/depends.txt b/mods/stairs/depends.txt new file mode 100644 index 0000000..4ad96d5 --- /dev/null +++ b/mods/stairs/depends.txt @@ -0,0 +1 @@ +default diff --git a/mods/stairs/init.lua b/mods/stairs/init.lua new file mode 100644 index 0000000..179cf15 --- /dev/null +++ b/mods/stairs/init.lua @@ -0,0 +1,262 @@ +-- Minetest 0.4 mod: stairs +-- See README.txt for licensing and other information. + +stairs = {} + +-- Node will be called stairs:stair_ +function stairs.register_stair(subname, recipeitem, groups, images, description, sounds) + minetest.register_node(":stairs:stair_" .. subname, { + description = description, + drawtype = "nodebox", + tiles = images, + paramtype = "light", + paramtype2 = "facedir", + is_ground_content = true, + groups = groups, + sounds = sounds, + node_box = { + type = "fixed", + fixed = { + {-0.5, -0.5, -0.5, 0.5, 0, 0.5}, + {-0.5, 0, 0, 0.5, 0.5, 0.5}, + }, + }, + on_place = function(itemstack, placer, pointed_thing) + if pointed_thing.type ~= "node" then + return itemstack + end + + local p0 = pointed_thing.under + local p1 = pointed_thing.above + local param2 = 0 + + local placer_pos = placer:getpos() + if placer_pos then + local dir = { + x = p1.x - placer_pos.x, + y = p1.y - placer_pos.y, + z = p1.z - placer_pos.z + } + param2 = minetest.dir_to_facedir(dir) + end + + if p0.y-1 == p1.y then + param2 = param2 + 20 + if param2 == 21 then + param2 = 23 + elseif param2 == 23 then + param2 = 21 + end + end + + return minetest.item_place(itemstack, placer, pointed_thing, param2) + end, + }) + + -- for replace ABM + minetest.register_node(":stairs:stair_" .. subname.."upside_down", { + replace_name = "stairs:stair_" .. subname, + groups = {slabs_replace=1}, + }) + + minetest.register_craft({ + output = 'stairs:stair_' .. subname .. ' 4', + recipe = { + {recipeitem, "", ""}, + {recipeitem, recipeitem, ""}, + {recipeitem, recipeitem, recipeitem}, + }, + }) + + -- Flipped recipe for the silly minecrafters + minetest.register_craft({ + output = 'stairs:stair_' .. subname .. ' 4', + recipe = { + {"", "", recipeitem}, + {"", recipeitem, recipeitem}, + {recipeitem, recipeitem, recipeitem}, + }, + }) +end + +-- Node will be called stairs:slab_ +function stairs.register_slab(subname, recipeitem, groups, images, description, sounds) + minetest.register_node(":stairs:slab_" .. subname, { + description = description, + drawtype = "nodebox", + tiles = images, + paramtype = "light", + paramtype2 = "facedir", + is_ground_content = true, + groups = groups, + sounds = sounds, + node_box = { + type = "fixed", + fixed = {-0.5, -0.5, -0.5, 0.5, 0, 0.5}, + }, + on_place = function(itemstack, placer, pointed_thing) + if pointed_thing.type ~= "node" then + return itemstack + end + + -- If it's being placed on an another similar one, replace it with + -- a full block + local slabpos = nil + local slabnode = nil + local p0 = pointed_thing.under + local p1 = pointed_thing.above + local n0 = minetest.get_node(p0) + local n1 = minetest.get_node(p1) + local param2 = 0 + + local n0_is_upside_down = (n0.name == "stairs:slab_" .. subname and + n0.param2 >= 20) + + if n0.name == "stairs:slab_" .. subname and not n0_is_upside_down and p0.y+1 == p1.y then + slabpos = p0 + slabnode = n0 + elseif n1.name == "stairs:slab_" .. subname then + slabpos = p1 + slabnode = n1 + end + if slabpos then + -- Remove the slab at slabpos + minetest.remove_node(slabpos) + -- Make a fake stack of a single item and try to place it + local fakestack = ItemStack(recipeitem) + fakestack:set_count(itemstack:get_count()) + + pointed_thing.above = slabpos + local success + fakestack, success = minetest.item_place(fakestack, placer, pointed_thing) + -- If the item was taken from the fake stack, decrement original + if success then + itemstack:set_count(fakestack:get_count()) + -- Else put old node back + else + minetest.set_node(slabpos, slabnode) + end + return itemstack + end + + -- Upside down slabs + if p0.y-1 == p1.y then + -- Turn into full block if pointing at a existing slab + if n0_is_upside_down then + -- Remove the slab at the position of the slab + minetest.remove_node(p0) + -- Make a fake stack of a single item and try to place it + local fakestack = ItemStack(recipeitem) + fakestack:set_count(itemstack:get_count()) + + pointed_thing.above = p0 + local success + fakestack, success = minetest.item_place(fakestack, placer, pointed_thing) + -- If the item was taken from the fake stack, decrement original + if success then + itemstack:set_count(fakestack:get_count()) + -- Else put old node back + else + minetest.set_node(p0, n0) + end + return itemstack + end + + -- Place upside down slab + param2 = 20 + end + + -- If pointing at the side of a upside down slab + if n0_is_upside_down and p0.y+1 ~= p1.y then + param2 = 20 + end + + return minetest.item_place(itemstack, placer, pointed_thing, param2) + end, + }) + + -- for replace ABM + minetest.register_node(":stairs:slab_" .. subname.."upside_down", { + replace_name = "stairs:slab_"..subname, + groups = {slabs_replace=1}, + }) + + minetest.register_craft({ + output = 'stairs:slab_' .. subname .. ' 6', + recipe = { + {recipeitem, recipeitem, recipeitem}, + }, + }) +end + +-- Replace old "upside_down" nodes with new param2 versions +minetest.register_abm({ + nodenames = {"group:slabs_replace"}, + interval = 1, + chance = 1, + action = function(pos, node) + node.name = minetest.registered_nodes[node.name].replace_name + node.param2 = node.param2 + 20 + if node.param2 == 21 then + node.param2 = 23 + elseif node.param2 == 23 then + node.param2 = 21 + end + minetest.set_node(pos, node) + end, +}) + +-- Nodes will be called stairs:{stair,slab}_ +function stairs.register_stair_and_slab(subname, recipeitem, groups, images, desc_stair, desc_slab, sounds) + stairs.register_stair(subname, recipeitem, groups, images, desc_stair, sounds) + stairs.register_slab(subname, recipeitem, groups, images, desc_slab, sounds) +end + +stairs.register_stair_and_slab("wood", "default:wood", + {snappy=2,choppy=2,oddly_breakable_by_hand=2,flammable=3}, + {"default_wood.png"}, + "Wooden Stair", + "Wooden Slab", + default.node_sound_wood_defaults()) + +stairs.register_stair_and_slab("stone", "default:stone", + {cracky=3}, + {"default_stone.png"}, + "Stone Stair", + "Stone Slab", + default.node_sound_stone_defaults()) + +stairs.register_stair_and_slab("cobble", "default:cobble", + {cracky=3}, + {"default_cobble.png"}, + "Cobble Stair", + "Cobble Slab", + default.node_sound_stone_defaults()) + +stairs.register_stair_and_slab("brick", "default:brick", + {cracky=3}, + {"default_brick.png"}, + "Brick Stair", + "Brick Slab", + default.node_sound_stone_defaults()) + +stairs.register_stair_and_slab("sandstone", "default:sandstone", + {crumbly=2,cracky=2}, + {"default_sandstone.png"}, + "Sandstone Stair", + "Sandstone Slab", + default.node_sound_stone_defaults()) + +stairs.register_stair_and_slab("junglewood", "default:junglewood", + {snappy=2,choppy=2,oddly_breakable_by_hand=2,flammable=3}, + {"default_junglewood.png"}, + "Junglewood Stair", + "Junglewood Slab", + default.node_sound_wood_defaults()) + +stairs.register_stair_and_slab("stonebrick", "default:stonebrick", + {cracky=3}, + {"default_stone_brick.png"}, + "Stone Brick Stair", + "Stone Brick Slab", + default.node_sound_stone_defaults()) diff --git a/mods/throwing/README.txt b/mods/throwing/README.txt new file mode 100644 index 0000000..e337042 --- /dev/null +++ b/mods/throwing/README.txt @@ -0,0 +1,47 @@ +=== THROWING-MOD for MINETEST-C55 === +by PilzAdam + +Inroduction: +This mod adds bows and arrows to Minetest. + +How to install: +Unzip the archive an place it in minetest-base-directory/mods/minetest/ +if you have a windows client or a linux run-in-place client. If you have +a linux system-wide instalation place it in ~/.minetest/mods/minetest/. +If you want to install this mod only in one world create the folder +worldmods/ in your worlddirectory. +For further information or help see: +http://wiki.minetest.com/wiki/Installing_Mods + +How to use the mod: +Craft a bow with the strings from the farming mod: +string wood +string wood +string wood +Craft arrows with: +stick stick steel +Select the bow and shoot with left mouse click. Every shoot will take 1 +arrow from your inventory and wears out the bow (you have around 50 +shoots). + +License: +This mod was originally published by Jeija. +Sourcecode: WTFPL (see below) +Grahpics: WTFPL (see below) + +See also: +http://minetest.net/ + + DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + Version 2, December 2004 + + Copyright (C) 2004 Sam Hocevar + + Everyone is permitted to copy and distribute verbatim or modified + copies of this license document, and changing it is allowed as long + as the name is changed. + + DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. You just DO WHAT THE FUCK YOU WANT TO. diff --git a/mods/throwing/arrow.lua b/mods/throwing/arrow.lua new file mode 100644 index 0000000..1b922d6 --- /dev/null +++ b/mods/throwing/arrow.lua @@ -0,0 +1,86 @@ +minetest.register_craftitem("throwing:arrow", { + description = "Arrow", + inventory_image = "throwing_arrow.png", +}) + +minetest.register_node("throwing:arrow_box", { + drawtype = "nodebox", + node_box = { + type = "fixed", + fixed = { + -- Shaft + {-6.5/17, -1.5/17, -1.5/17, 6.5/17, 1.5/17, 1.5/17}, + --Spitze + {-4.5/17, 2.5/17, 2.5/17, -3.5/17, -2.5/17, -2.5/17}, + {-8.5/17, 0.5/17, 0.5/17, -6.5/17, -0.5/17, -0.5/17}, + --Federn + {6.5/17, 1.5/17, 1.5/17, 7.5/17, 2.5/17, 2.5/17}, + {7.5/17, -2.5/17, 2.5/17, 6.5/17, -1.5/17, 1.5/17}, + {7.5/17, 2.5/17, -2.5/17, 6.5/17, 1.5/17, -1.5/17}, + {6.5/17, -1.5/17, -1.5/17, 7.5/17, -2.5/17, -2.5/17}, + + {7.5/17, 2.5/17, 2.5/17, 8.5/17, 3.5/17, 3.5/17}, + {8.5/17, -3.5/17, 3.5/17, 7.5/17, -2.5/17, 2.5/17}, + {8.5/17, 3.5/17, -3.5/17, 7.5/17, 2.5/17, -2.5/17}, + {7.5/17, -2.5/17, -2.5/17, 8.5/17, -3.5/17, -3.5/17}, + } + }, + tiles = {"throwing_arrow.png", "throwing_arrow.png", "throwing_arrow_back.png", "throwing_arrow_front.png", "throwing_arrow_2.png", "throwing_arrow.png"}, + groups = {not_in_creative_inventory=1}, +}) + +local THROWING_ARROW_ENTITY={ + physical = false, + timer=0, + visual = "wielditem", + visual_size = {x=0.1, y=0.1}, + textures = {"throwing:arrow_box"}, + lastpos={}, + collisionbox = {0,0,0,0,0,0}, +} + +THROWING_ARROW_ENTITY.on_step = function(self, dtime) + self.timer=self.timer+dtime + local pos = self.object:getpos() + local node = minetest.env:get_node(pos) + + if self.timer>0.2 then + local objs = minetest.env:get_objects_inside_radius({x=pos.x,y=pos.y,z=pos.z}, 2) + for k, obj in pairs(objs) do + if obj:get_luaentity() ~= nil then + if obj:get_luaentity().name ~= "throwing:arrow_entity" and obj:get_luaentity().name ~= "__builtin:item" then + local damage = 3 + obj:punch(self.object, 1.0, { + full_punch_interval=1.0, + damage_groups={fleshy=damage}, + }, nil) + self.object:remove() + end + else + local damage = 3 + obj:punch(self.object, 1.0, { + full_punch_interval=1.0, + damage_groups={fleshy=damage}, + }, nil) + self.object:remove() + end + end + end + + if self.lastpos.x~=nil then + if node.name ~= "air" then + minetest.env:add_item(self.lastpos, 'throwing:arrow') + self.object:remove() + end + end + self.lastpos={x=pos.x, y=pos.y, z=pos.z} +end + +minetest.register_entity("throwing:arrow_entity", THROWING_ARROW_ENTITY) + +minetest.register_craft({ + output = 'throwing:arrow 16', + recipe = { + {'default:stick', 'default:stick', 'default:steel_ingot'}, + } +}) diff --git a/mods/throwing/build_arrow.lua b/mods/throwing/build_arrow.lua new file mode 100644 index 0000000..2ea1bf6 --- /dev/null +++ b/mods/throwing/build_arrow.lua @@ -0,0 +1,85 @@ +minetest.register_craftitem("throwing:arrow_build", { + description = "Build Arrow", + inventory_image = "throwing_arrow_build.png", +}) + +minetest.register_node("throwing:arrow_build_box", { + drawtype = "nodebox", + node_box = { + type = "fixed", + fixed = { + -- Shaft + {-6.5/17, -1.5/17, -1.5/17, 6.5/17, 1.5/17, 1.5/17}, + --Spitze + {-4.5/17, 2.5/17, 2.5/17, -3.5/17, -2.5/17, -2.5/17}, + {-8.5/17, 0.5/17, 0.5/17, -6.5/17, -0.5/17, -0.5/17}, + --Federn + {6.5/17, 1.5/17, 1.5/17, 7.5/17, 2.5/17, 2.5/17}, + {7.5/17, -2.5/17, 2.5/17, 6.5/17, -1.5/17, 1.5/17}, + {7.5/17, 2.5/17, -2.5/17, 6.5/17, 1.5/17, -1.5/17}, + {6.5/17, -1.5/17, -1.5/17, 7.5/17, -2.5/17, -2.5/17}, + + {7.5/17, 2.5/17, 2.5/17, 8.5/17, 3.5/17, 3.5/17}, + {8.5/17, -3.5/17, 3.5/17, 7.5/17, -2.5/17, 2.5/17}, + {8.5/17, 3.5/17, -3.5/17, 7.5/17, 2.5/17, -2.5/17}, + {7.5/17, -2.5/17, -2.5/17, 8.5/17, -3.5/17, -3.5/17}, + } + }, + tiles = {"throwing_arrow_build.png", "throwing_arrow_build.png", "throwing_arrow_build_back.png", "throwing_arrow_build_front.png", "throwing_arrow_build_2.png", "throwing_arrow_build.png"}, + groups = {not_in_creative_inventory=1}, +}) + +local THROWING_ARROW_ENTITY={ + physical = false, + timer=0, + visual = "wielditem", + visual_size = {x=0.1, y=0.1}, + textures = {"throwing:arrow_build_box"}, + lastpos={}, + collisionbox = {0,0,0,0,0,0}, + node = "", +} + +THROWING_ARROW_ENTITY.on_step = function(self, dtime) + self.timer=self.timer+dtime + local pos = self.object:getpos() + local node = minetest.env:get_node(pos) + + if self.timer>0.2 then + local objs = minetest.env:get_objects_inside_radius({x=pos.x,y=pos.y,z=pos.z}, 1) + for k, obj in pairs(objs) do + if obj:get_luaentity() ~= nil then + if obj:get_luaentity().name ~= "throwing:arrow_build_entity" and obj:get_luaentity().name ~= "__builtin:item" then + if self.node ~= "" then + minetest.env:set_node(self.lastpos, {name=self.node}) + end + self.object:remove() + end + else + if self.node ~= "" then + minetest.env:set_node(self.lastpos, {name=self.node}) + end + self.object:remove() + end + end + end + + if self.lastpos.x~=nil then + if node.name ~= "air" then + if self.node ~= "" then + minetest.env:set_node(self.lastpos, {name=self.node}) + end + self.object:remove() + end + end + self.lastpos={x=pos.x, y=pos.y, z=pos.z} +end + +minetest.register_entity("throwing:arrow_build_entity", THROWING_ARROW_ENTITY) + +minetest.register_craft({ + output = 'throwing:arrow_build', + recipe = { + {'default:stick', 'default:stick', 'default:shovel_steel'}, + } +}) diff --git a/mods/throwing/depends.txt b/mods/throwing/depends.txt new file mode 100644 index 0000000..252d665 --- /dev/null +++ b/mods/throwing/depends.txt @@ -0,0 +1,4 @@ +default +bucket +fire +farming diff --git a/mods/throwing/dig_arrow.lua b/mods/throwing/dig_arrow.lua new file mode 100644 index 0000000..e756a34 --- /dev/null +++ b/mods/throwing/dig_arrow.lua @@ -0,0 +1,81 @@ +minetest.register_craftitem("throwing:arrow_dig", { + description = "Dig Arrow", + inventory_image = "throwing_arrow_dig.png", +}) + +minetest.register_node("throwing:arrow_dig_box", { + drawtype = "nodebox", + node_box = { + type = "fixed", + fixed = { + -- Shaft + {-6.5/17, -1.5/17, -1.5/17, 6.5/17, 1.5/17, 1.5/17}, + --Spitze + {-4.5/17, 2.5/17, 2.5/17, -3.5/17, -2.5/17, -2.5/17}, + {-8.5/17, 0.5/17, 0.5/17, -6.5/17, -0.5/17, -0.5/17}, + --Federn + {6.5/17, 1.5/17, 1.5/17, 7.5/17, 2.5/17, 2.5/17}, + {7.5/17, -2.5/17, 2.5/17, 6.5/17, -1.5/17, 1.5/17}, + {7.5/17, 2.5/17, -2.5/17, 6.5/17, 1.5/17, -1.5/17}, + {6.5/17, -1.5/17, -1.5/17, 7.5/17, -2.5/17, -2.5/17}, + + {7.5/17, 2.5/17, 2.5/17, 8.5/17, 3.5/17, 3.5/17}, + {8.5/17, -3.5/17, 3.5/17, 7.5/17, -2.5/17, 2.5/17}, + {8.5/17, 3.5/17, -3.5/17, 7.5/17, 2.5/17, -2.5/17}, + {7.5/17, -2.5/17, -2.5/17, 8.5/17, -3.5/17, -3.5/17}, + } + }, + tiles = {"throwing_arrow_dig.png", "throwing_arrow_dig.png", "throwing_arrow_dig_back.png", "throwing_arrow_dig_front.png", "throwing_arrow_dig_2.png", "throwing_arrow_dig.png"}, + groups = {not_in_creative_inventory=1}, +}) + +local THROWING_ARROW_ENTITY={ + physical = false, + timer=0, + visual = "wielditem", + visual_size = {x=0.1, y=0.1}, + textures = {"throwing:arrow_dig_box"}, + lastpos={}, + collisionbox = {0,0,0,0,0,0}, +} + +THROWING_ARROW_ENTITY.on_step = function(self, dtime) + self.timer=self.timer+dtime + local pos = self.object:getpos() + local node = minetest.env:get_node(pos) + + if self.timer>0.2 then + local objs = minetest.env:get_objects_inside_radius({x=pos.x,y=pos.y,z=pos.z}, 1) + for k, obj in pairs(objs) do + if obj:get_luaentity() ~= nil then + if obj:get_luaentity().name ~= "throwing:arrow_dig_entity" and obj:get_luaentity().name ~= "__builtin:item" then + minetest.env:add_item(pos, 'throwing:arrow_dig') + minetest.env:remove_node(pos) + self.object:remove() + end + else + minetest.env:add_item(pos, 'throwing:arrow_dig') + minetest.env:remove_node(pos) + self.object:remove() + end + end + end + + if self.lastpos.x~=nil then + if node.name ~= "air" then + minetest.env:add_item(self.lastpos, 'throwing:arrow_dig') + minetest.env:remove_node(pos) + self.object:remove() + end + end + self.lastpos={x=pos.x, y=pos.y, z=pos.z} +end + +minetest.register_entity("throwing:arrow_dig_entity", THROWING_ARROW_ENTITY) + +minetest.register_craft({ + output = 'throwing:arrow_dig', + recipe = { + {'default:stick', 'default:stick', 'default:pick_steel'}, + } +}) diff --git a/mods/throwing/fire_arrow.lua b/mods/throwing/fire_arrow.lua new file mode 100644 index 0000000..6100ddd --- /dev/null +++ b/mods/throwing/fire_arrow.lua @@ -0,0 +1,121 @@ +minetest.register_craftitem("throwing:arrow_fire", { + description = "Fire Arrow", + inventory_image = "throwing_arrow_fire.png", +}) + +minetest.register_node("throwing:arrow_fire_box", { + drawtype = "nodebox", + node_box = { + type = "fixed", + fixed = { + -- Shaft + {-6.5/17, -1.5/17, -1.5/17, 6.5/17, 1.5/17, 1.5/17}, + --Spitze + {-4.5/17, 2.5/17, 2.5/17, -3.5/17, -2.5/17, -2.5/17}, + {-8.5/17, 0.5/17, 0.5/17, -6.5/17, -0.5/17, -0.5/17}, + --Federn + {6.5/17, 1.5/17, 1.5/17, 7.5/17, 2.5/17, 2.5/17}, + {7.5/17, -2.5/17, 2.5/17, 6.5/17, -1.5/17, 1.5/17}, + {7.5/17, 2.5/17, -2.5/17, 6.5/17, 1.5/17, -1.5/17}, + {6.5/17, -1.5/17, -1.5/17, 7.5/17, -2.5/17, -2.5/17}, + + {7.5/17, 2.5/17, 2.5/17, 8.5/17, 3.5/17, 3.5/17}, + {8.5/17, -3.5/17, 3.5/17, 7.5/17, -2.5/17, 2.5/17}, + {8.5/17, 3.5/17, -3.5/17, 7.5/17, 2.5/17, -2.5/17}, + {7.5/17, -2.5/17, -2.5/17, 8.5/17, -3.5/17, -3.5/17}, + } + }, + tiles = {"throwing_arrow_fire.png", "throwing_arrow_fire.png", "throwing_arrow_fire_back.png", "throwing_arrow_fire_front.png", "throwing_arrow_fire_2.png", "throwing_arrow_fire.png"}, + groups = {not_in_creative_inventory=1}, +}) + +local THROWING_ARROW_ENTITY={ + physical = false, + timer=0, + visual = "wielditem", + visual_size = {x=0.1, y=0.1}, + textures = {"throwing:arrow_fire_box"}, + lastpos={}, + collisionbox = {0,0,0,0,0,0}, +} + +THROWING_ARROW_ENTITY.on_step = function(self, dtime) + self.timer=self.timer+dtime + local pos = self.object:getpos() + local node = minetest.env:get_node(pos) + + if self.timer>0.2 then + local objs = minetest.env:get_objects_inside_radius({x=pos.x,y=pos.y,z=pos.z}, 2) + for k, obj in pairs(objs) do + if obj:get_luaentity() ~= nil then + if obj:get_luaentity().name ~= "throwing:arrow_fire_entity" and obj:get_luaentity().name ~= "__builtin:item" then + local damage = 5 + obj:punch(self.object, 1.0, { + full_punch_interval=1.0, + damage_groups={fleshy=damage}, + }, nil) + self.object:remove() + end + else + local damage = 5 + obj:punch(self.object, 1.0, { + full_punch_interval=1.0, + damage_groups={fleshy=damage}, + }, nil) + self.object:remove() + end + end + end + + if self.lastpos.x~=nil then + if node.name ~= "air" and node.name ~= "throwing:light" then + minetest.env:set_node(self.lastpos, {name="fire:basic_flame"}) + self.object:remove() + end + if math.floor(self.lastpos.x+0.5) ~= math.floor(pos.x+0.5) or math.floor(self.lastpos.y+0.5) ~= math.floor(pos.y+0.5) or math.floor(self.lastpos.z+0.5) ~= math.floor(pos.z+0.5) then + if minetest.env:get_node(self.lastpos).name == "throwing:light" then + minetest.env:remove_node(self.lastpos) + end + if minetest.env:get_node(pos).name == "air" then + minetest.env:set_node(pos, {name="throwing:light"}) + end + end + end + self.lastpos={x=pos.x, y=pos.y, z=pos.z} +end + +minetest.register_entity("throwing:arrow_fire_entity", THROWING_ARROW_ENTITY) + +minetest.register_craft({ + output = 'throwing:arrow_fire 4', + recipe = { + {'default:stick', 'default:stick', 'bucket:bucket_lava'}, + }, + replacements = { + {"bucket:bucket_lava", "bucket:bucket_empty"} + } +}) + +minetest.register_node("throwing:light", { + drawtype = "airlike", + paramtype = "light", + sunlight_propagates = true, + tiles = {"throwing_empty.png"}, + light_source = LIGHT_MAX-4, + selection_box = { + type = "fixed", + fixed = { + {0,0,0,0,0,0} + } + }, + groups = {not_in_creative_inventory=1} +}) + +minetest.register_abm({ + nodenames = {"throwing:light"}, + interval = 10, + chance = 1, + action = function(pos, node) + minetest.env:remove_node(pos) + end +}) diff --git a/mods/throwing/init.lua b/mods/throwing/init.lua new file mode 100644 index 0000000..9f75b3f --- /dev/null +++ b/mods/throwing/init.lua @@ -0,0 +1,109 @@ +arrows = { + {"throwing:arrow", "throwing:arrow_entity"}, + {"throwing:arrow_fire", "throwing:arrow_fire_entity"}, + {"throwing:arrow_teleport", "throwing:arrow_teleport_entity"}, + {"throwing:arrow_dig", "throwing:arrow_dig_entity"}, + {"throwing:arrow_build", "throwing:arrow_build_entity"} +} + +local throwing_shoot_arrow = function(itemstack, player) + for _,arrow in ipairs(arrows) do + if player:get_inventory():get_stack("main", player:get_wield_index()+1):get_name() == arrow[1] then + if not minetest.setting_getbool("creative_mode") then + player:get_inventory():remove_item("main", arrow[1]) + end + local playerpos = player:getpos() + local obj = minetest.env:add_entity({x=playerpos.x,y=playerpos.y+1.5,z=playerpos.z}, arrow[2]) + local dir = player:get_look_dir() + obj:setvelocity({x=dir.x*19, y=dir.y*19, z=dir.z*19}) + obj:setacceleration({x=dir.x*-3, y=-10, z=dir.z*-3}) + obj:setyaw(player:get_look_yaw()+math.pi) + minetest.sound_play("throwing_sound", {pos=playerpos}) + if obj:get_luaentity().player == "" then + obj:get_luaentity().player = player + end + obj:get_luaentity().node = player:get_inventory():get_stack("main", 1):get_name() + return true + end + end + return false +end + +minetest.register_tool("throwing:bow_wood", { + description = "Wood Bow", + inventory_image = "throwing_bow_wood.png", + stack_max = 1, + on_use = function(itemstack, user, pointed_thing) + if throwing_shoot_arrow(itemstack, user, pointed_thing) then + if not minetest.setting_getbool("creative_mode") then + itemstack:add_wear(65535/50) + end + end + return itemstack + end, +}) + +minetest.register_craft({ + output = 'throwing:bow_wood', + recipe = { + {'farming:string', 'default:wood', ''}, + {'farming:string', '', 'default:wood'}, + {'farming:string', 'default:wood', ''}, + } +}) + +minetest.register_tool("throwing:bow_stone", { + description = "Stone Bow", + inventory_image = "throwing_bow_stone.png", + stack_max = 1, + on_use = function(itemstack, user, pointed_thing) + if throwing_shoot_arrow(item, user, pointed_thing) then + if not minetest.setting_getbool("creative_mode") then + itemstack:add_wear(65535/100) + end + end + return itemstack + end, +}) + +minetest.register_craft({ + output = 'throwing:bow_stone', + recipe = { + {'farming:string', 'default:cobble', ''}, + {'farming:string', '', 'default:cobble'}, + {'farming:string', 'default:cobble', ''}, + } +}) + +minetest.register_tool("throwing:bow_steel", { + description = "Steel Bow", + inventory_image = "throwing_bow_steel.png", + stack_max = 1, + on_use = function(itemstack, user, pointed_thing) + if throwing_shoot_arrow(item, user, pointed_thing) then + if not minetest.setting_getbool("creative_mode") then + itemstack:add_wear(65535/200) + end + end + return itemstack + end, +}) + +minetest.register_craft({ + output = 'throwing:bow_steel', + recipe = { + {'farming:string', 'default:steel_ingot', ''}, + {'farming:string', '', 'default:steel_ingot'}, + {'farming:string', 'default:steel_ingot', ''}, + } +}) + +dofile(minetest.get_modpath("throwing").."/arrow.lua") +dofile(minetest.get_modpath("throwing").."/fire_arrow.lua") +dofile(minetest.get_modpath("throwing").."/teleport_arrow.lua") +dofile(minetest.get_modpath("throwing").."/dig_arrow.lua") +dofile(minetest.get_modpath("throwing").."/build_arrow.lua") + +if minetest.setting_get("log_mods") then + minetest.log("action", "throwing loaded") +end diff --git a/mods/throwing/sounds/throwing_sound.ogg b/mods/throwing/sounds/throwing_sound.ogg new file mode 100644 index 0000000..c8911e5 Binary files /dev/null and b/mods/throwing/sounds/throwing_sound.ogg differ diff --git a/mods/throwing/teleport_arrow.lua b/mods/throwing/teleport_arrow.lua new file mode 100644 index 0000000..301cc5d --- /dev/null +++ b/mods/throwing/teleport_arrow.lua @@ -0,0 +1,88 @@ +minetest.register_craftitem("throwing:arrow_teleport", { + description = "Teleport Arrow", + inventory_image = "throwing_arrow_teleport.png", +}) + +minetest.register_node("throwing:arrow_teleport_box", { + drawtype = "nodebox", + node_box = { + type = "fixed", + fixed = { + -- Shaft + {-6.5/17, -1.5/17, -1.5/17, 6.5/17, 1.5/17, 1.5/17}, + --Spitze + {-4.5/17, 2.5/17, 2.5/17, -3.5/17, -2.5/17, -2.5/17}, + {-8.5/17, 0.5/17, 0.5/17, -6.5/17, -0.5/17, -0.5/17}, + --Federn + {6.5/17, 1.5/17, 1.5/17, 7.5/17, 2.5/17, 2.5/17}, + {7.5/17, -2.5/17, 2.5/17, 6.5/17, -1.5/17, 1.5/17}, + {7.5/17, 2.5/17, -2.5/17, 6.5/17, 1.5/17, -1.5/17}, + {6.5/17, -1.5/17, -1.5/17, 7.5/17, -2.5/17, -2.5/17}, + + {7.5/17, 2.5/17, 2.5/17, 8.5/17, 3.5/17, 3.5/17}, + {8.5/17, -3.5/17, 3.5/17, 7.5/17, -2.5/17, 2.5/17}, + {8.5/17, 3.5/17, -3.5/17, 7.5/17, 2.5/17, -2.5/17}, + {7.5/17, -2.5/17, -2.5/17, 8.5/17, -3.5/17, -3.5/17}, + } + }, + tiles = {"throwing_arrow_teleport.png", "throwing_arrow_teleport.png", "throwing_arrow_teleport_back.png", "throwing_arrow_teleport_front.png", "throwing_arrow_teleport_2.png", "throwing_arrow_teleport.png"}, + groups = {not_in_creative_inventory=1}, +}) + +local THROWING_ARROW_ENTITY={ + physical = false, + timer=0, + visual = "wielditem", + visual_size = {x=0.1, y=0.1}, + textures = {"throwing:arrow_teleport_box"}, + lastpos={}, + collisionbox = {0,0,0,0,0,0}, + player = "", +} + +THROWING_ARROW_ENTITY.on_step = function(self, dtime) + self.timer=self.timer+dtime + local pos = self.object:getpos() + local node = minetest.env:get_node(pos) + + if self.timer>0.2 then + local objs = minetest.env:get_objects_inside_radius({x=pos.x,y=pos.y,z=pos.z}, 2) + for k, obj in pairs(objs) do + if obj:get_luaentity() ~= nil then + if obj:get_luaentity().name ~= "throwing:arrow_teleport_entity" and obj:get_luaentity().name ~= "__builtin:item" then + if self.player ~= "" then + self.player:setpos(pos) + self.player:get_inventory():add_item("main", ItemStack("throwing:arrow_teleport")) + end + self.object:remove() + end + else + if self.player ~= "" then + self.player:setpos(pos) + self.player:get_inventory():add_item("main", ItemStack("throwing:arrow_teleport")) + end + self.object:remove() + end + end + end + + if self.lastpos.x~=nil then + if node.name ~= "air" then + if self.player ~= "" then + self.player:setpos(self.lastpos) + self.player:get_inventory():add_item("main", ItemStack("throwing:arrow_teleport")) + end + self.object:remove() + end + end + self.lastpos={x=pos.x, y=pos.y, z=pos.z} +end + +minetest.register_entity("throwing:arrow_teleport_entity", THROWING_ARROW_ENTITY) + +minetest.register_craft({ + output = 'throwing:arrow_teleport', + recipe = { + {'default:stick', 'default:stick', 'default:mese'}, + } +}) diff --git a/mods/throwing/textures/throwing_arrow.png b/mods/throwing/textures/throwing_arrow.png new file mode 100644 index 0000000..9b72ee9 Binary files /dev/null and b/mods/throwing/textures/throwing_arrow.png differ diff --git a/mods/throwing/textures/throwing_arrow_2.png b/mods/throwing/textures/throwing_arrow_2.png new file mode 100644 index 0000000..b5980d0 Binary files /dev/null and b/mods/throwing/textures/throwing_arrow_2.png differ diff --git a/mods/throwing/textures/throwing_arrow_back.png b/mods/throwing/textures/throwing_arrow_back.png new file mode 100644 index 0000000..d680d88 Binary files /dev/null and b/mods/throwing/textures/throwing_arrow_back.png differ diff --git a/mods/throwing/textures/throwing_arrow_build.png b/mods/throwing/textures/throwing_arrow_build.png new file mode 100644 index 0000000..02653e1 Binary files /dev/null and b/mods/throwing/textures/throwing_arrow_build.png differ diff --git a/mods/throwing/textures/throwing_arrow_build_2.png b/mods/throwing/textures/throwing_arrow_build_2.png new file mode 100644 index 0000000..fd576d4 Binary files /dev/null and b/mods/throwing/textures/throwing_arrow_build_2.png differ diff --git a/mods/throwing/textures/throwing_arrow_build_back.png b/mods/throwing/textures/throwing_arrow_build_back.png new file mode 100644 index 0000000..18c2f02 Binary files /dev/null and b/mods/throwing/textures/throwing_arrow_build_back.png differ diff --git a/mods/throwing/textures/throwing_arrow_build_front.png b/mods/throwing/textures/throwing_arrow_build_front.png new file mode 100644 index 0000000..b6b6967 Binary files /dev/null and b/mods/throwing/textures/throwing_arrow_build_front.png differ diff --git a/mods/throwing/textures/throwing_arrow_dig.png b/mods/throwing/textures/throwing_arrow_dig.png new file mode 100644 index 0000000..02f6a00 Binary files /dev/null and b/mods/throwing/textures/throwing_arrow_dig.png differ diff --git a/mods/throwing/textures/throwing_arrow_dig_2.png b/mods/throwing/textures/throwing_arrow_dig_2.png new file mode 100644 index 0000000..b514b5d Binary files /dev/null and b/mods/throwing/textures/throwing_arrow_dig_2.png differ diff --git a/mods/throwing/textures/throwing_arrow_dig_back.png b/mods/throwing/textures/throwing_arrow_dig_back.png new file mode 100644 index 0000000..9742257 Binary files /dev/null and b/mods/throwing/textures/throwing_arrow_dig_back.png differ diff --git a/mods/throwing/textures/throwing_arrow_dig_front.png b/mods/throwing/textures/throwing_arrow_dig_front.png new file mode 100644 index 0000000..6681c99 Binary files /dev/null and b/mods/throwing/textures/throwing_arrow_dig_front.png differ diff --git a/mods/throwing/textures/throwing_arrow_fire.png b/mods/throwing/textures/throwing_arrow_fire.png new file mode 100644 index 0000000..8f5075a Binary files /dev/null and b/mods/throwing/textures/throwing_arrow_fire.png differ diff --git a/mods/throwing/textures/throwing_arrow_fire_2.png b/mods/throwing/textures/throwing_arrow_fire_2.png new file mode 100644 index 0000000..ed0aa5f Binary files /dev/null and b/mods/throwing/textures/throwing_arrow_fire_2.png differ diff --git a/mods/throwing/textures/throwing_arrow_fire_back.png b/mods/throwing/textures/throwing_arrow_fire_back.png new file mode 100644 index 0000000..8a7d993 Binary files /dev/null and b/mods/throwing/textures/throwing_arrow_fire_back.png differ diff --git a/mods/throwing/textures/throwing_arrow_fire_front.png b/mods/throwing/textures/throwing_arrow_fire_front.png new file mode 100644 index 0000000..3994257 Binary files /dev/null and b/mods/throwing/textures/throwing_arrow_fire_front.png differ diff --git a/mods/throwing/textures/throwing_arrow_front.png b/mods/throwing/textures/throwing_arrow_front.png new file mode 100644 index 0000000..828a486 Binary files /dev/null and b/mods/throwing/textures/throwing_arrow_front.png differ diff --git a/mods/throwing/textures/throwing_arrow_teleport.png b/mods/throwing/textures/throwing_arrow_teleport.png new file mode 100644 index 0000000..f95d3e8 Binary files /dev/null and b/mods/throwing/textures/throwing_arrow_teleport.png differ diff --git a/mods/throwing/textures/throwing_arrow_teleport_2.png b/mods/throwing/textures/throwing_arrow_teleport_2.png new file mode 100644 index 0000000..6e8eaa9 Binary files /dev/null and b/mods/throwing/textures/throwing_arrow_teleport_2.png differ diff --git a/mods/throwing/textures/throwing_arrow_teleport_back.png b/mods/throwing/textures/throwing_arrow_teleport_back.png new file mode 100644 index 0000000..e0bba02 Binary files /dev/null and b/mods/throwing/textures/throwing_arrow_teleport_back.png differ diff --git a/mods/throwing/textures/throwing_arrow_teleport_front.png b/mods/throwing/textures/throwing_arrow_teleport_front.png new file mode 100644 index 0000000..80138c4 Binary files /dev/null and b/mods/throwing/textures/throwing_arrow_teleport_front.png differ diff --git a/mods/throwing/textures/throwing_bow_steel.png b/mods/throwing/textures/throwing_bow_steel.png new file mode 100644 index 0000000..e14c45c Binary files /dev/null and b/mods/throwing/textures/throwing_bow_steel.png differ diff --git a/mods/throwing/textures/throwing_bow_stone.png b/mods/throwing/textures/throwing_bow_stone.png new file mode 100644 index 0000000..93b86dd Binary files /dev/null and b/mods/throwing/textures/throwing_bow_stone.png differ diff --git a/mods/throwing/textures/throwing_bow_wood.png b/mods/throwing/textures/throwing_bow_wood.png new file mode 100644 index 0000000..07f303a Binary files /dev/null and b/mods/throwing/textures/throwing_bow_wood.png differ diff --git a/mods/throwing/textures/throwing_empty.png b/mods/throwing/textures/throwing_empty.png new file mode 100644 index 0000000..6bbd554 Binary files /dev/null and b/mods/throwing/textures/throwing_empty.png differ diff --git a/mods/unifieddyes/.gitignore b/mods/unifieddyes/.gitignore new file mode 100644 index 0000000..b25c15b --- /dev/null +++ b/mods/unifieddyes/.gitignore @@ -0,0 +1 @@ +*~ diff --git a/mods/unifieddyes/LICENSE b/mods/unifieddyes/LICENSE new file mode 100644 index 0000000..e01d231 --- /dev/null +++ b/mods/unifieddyes/LICENSE @@ -0,0 +1,614 @@ +LICENSING INFORMATION + +For everything but the bucket textures, GPL 2.0 + +----- + + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Lesser General Public License instead.) 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 +this service 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 make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. 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. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute 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 and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +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 +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the 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 a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, 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. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE 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. + + END OF TERMS AND CONDITIONS + +============================================================================== + +For the bucket textures, CC-BY-SA 3.0 + +----- + +CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE LEGAL +SERVICES. DISTRIBUTION OF THIS LICENSE DOES NOT CREATE AN ATTORNEY-CLIENT +RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS INFORMATION ON AN "AS-IS" BASIS. +CREATIVE COMMONS MAKES NO WARRANTIES REGARDING THE INFORMATION PROVIDED, AND +DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM ITS USE. + +License + +THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS CREATIVE +COMMONS PUBLIC LICENSE ("CCPL" OR "LICENSE"). THE WORK IS PROTECTED BY +COPYRIGHT AND/OR OTHER APPLICABLE LAW. ANY USE OF THE WORK OTHER THAN AS +AUTHORIZED UNDER THIS LICENSE OR COPYRIGHT LAW IS PROHIBITED. + +BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HERE, YOU ACCEPT AND AGREE TO BE +BOUND BY THE TERMS OF THIS LICENSE. TO THE EXTENT THIS LICENSE MAY BE +CONSIDERED TO BE A CONTRACT, THE LICENSOR GRANTS YOU THE RIGHTS CONTAINED HERE +IN CONSIDERATION OF YOUR ACCEPTANCE OF SUCH TERMS AND CONDITIONS. + +1. Definitions + + "Adaptation" means a work based upon the Work, or upon the Work and other +pre-existing works, such as a translation, adaptation, derivative work, +arrangement of music or other alterations of a literary or artistic work, or +phonogram or performance and includes cinematographic adaptations or any other +form in which the Work may be recast, transformed, or adapted including in any +form recognizably derived from the original, except that a work that +constitutes a Collection will not be considered an Adaptation for the purpose +of this License. For the avoidance of doubt, where the Work is a musical work, +performance or phonogram, the synchronization of the Work in timed-relation +with a moving image ("synching") will be considered an Adaptation for the +purpose of this License. + "Collection" means a collection of literary or artistic works, such as +encyclopedias and anthologies, or performances, phonograms or broadcasts, or +other works or subject matter other than works listed in Section 1(f) below, +which, by reason of the selection and arrangement of their contents, constitute +intellectual creations, in which the Work is included in its entirety in +unmodified form along with one or more other contributions, each constituting +separate and independent works in themselves, which together are assembled into +a collective whole. A work that constitutes a Collection will not be considered +an Adaptation (as defined below) for the purposes of this License. + "Creative Commons Compatible License" means a license that is listed at +http://creativecommons.org/compatiblelicenses that has been approved by +Creative Commons as being essentially equivalent to this License, including, at +a minimum, because that license: (i) contains terms that have the same purpose, +meaning and effect as the License Elements of this License; and, (ii) +explicitly permits the relicensing of adaptations of works made available under +that license under this License or a Creative Commons jurisdiction license with +the same License Elements as this License. + "Distribute" means to make available to the public the original and copies +of the Work or Adaptation, as appropriate, through sale or other transfer of +ownership. + "License Elements" means the following high-level license attributes as +selected by Licensor and indicated in the title of this License: Attribution, +ShareAlike. + "Licensor" means the individual, individuals, entity or entities that +offer(s) the Work under the terms of this License. + "Original Author" means, in the case of a literary or artistic work, the +individual, individuals, entity or entities who created the Work or if no +individual or entity can be identified, the publisher; and in addition (i) in +the case of a performance the actors, singers, musicians, dancers, and other +persons who act, sing, deliver, declaim, play in, interpret or otherwise +perform literary or artistic works or expressions of folklore; (ii) in the case +of a phonogram the producer being the person or legal entity who first fixes +the sounds of a performance or other sounds; and, (iii) in the case of +broadcasts, the organization that transmits the broadcast. + "Work" means the literary and/or artistic work offered under the terms of +this License including without limitation any production in the literary, +scientific and artistic domain, whatever may be the mode or form of its +expression including digital form, such as a book, pamphlet and other writing; +a lecture, address, sermon or other work of the same nature; a dramatic or +dramatico-musical work; a choreographic work or entertainment in dumb show; a +musical composition with or without words; a cinematographic work to which are +assimilated works expressed by a process analogous to cinematography; a work of +drawing, painting, architecture, sculpture, engraving or lithography; a +photographic work to which are assimilated works expressed by a process +analogous to photography; a work of applied art; an illustration, map, plan, +sketch or three-dimensional work relative to geography, topography, +architecture or science; a performance; a broadcast; a phonogram; a compilation +of data to the extent it is protected as a copyrightable work; or a work +performed by a variety or circus performer to the extent it is not otherwise +considered a literary or artistic work. + "You" means an individual or entity exercising rights under this License +who has not previously violated the terms of this License with respect to the +Work, or who has received express permission from the Licensor to exercise +rights under this License despite a previous violation. + "Publicly Perform" means to perform public recitations of the Work and to +communicate to the public those public recitations, by any means or process, +including by wire or wireless means or public digital performances; to make +available to the public Works in such a way that members of the public may +access these Works from a place and at a place individually chosen by them; to +perform the Work to the public by any means or process and the communication to +the public of the performances of the Work, including by public digital +performance; to broadcast and rebroadcast the Work by any means including +signs, sounds or images. + "Reproduce" means to make copies of the Work by any means including without +limitation by sound or visual recordings and the right of fixation and +reproducing fixations of the Work, including storage of a protected performance +or phonogram in digital form or other electronic medium. + +2. Fair Dealing Rights. Nothing in this License is intended to reduce, limit, +or restrict any uses free from copyright or rights arising from limitations or +exceptions that are provided for in connection with the copyright protection +under copyright law or other applicable laws. + +3. License Grant. Subject to the terms and conditions of this License, Licensor +hereby grants You a worldwide, royalty-free, non-exclusive, perpetual (for the +duration of the applicable copyright) license to exercise the rights in the +Work as stated below: + + to Reproduce the Work, to incorporate the Work into one or more +Collections, and to Reproduce the Work as incorporated in the Collections; + to create and Reproduce Adaptations provided that any such Adaptation, +including any translation in any medium, takes reasonable steps to clearly +label, demarcate or otherwise identify that changes were made to the original +Work. For example, a translation could be marked "The original work was +translated from English to Spanish," or a modification could indicate "The +original work has been modified."; + to Distribute and Publicly Perform the Work including as incorporated in +Collections; and, + to Distribute and Publicly Perform Adaptations. + + For the avoidance of doubt: + Non-waivable Compulsory License Schemes. In those jurisdictions in +which the right to collect royalties through any statutory or compulsory +licensing scheme cannot be waived, the Licensor reserves the exclusive right to +collect such royalties for any exercise by You of the rights granted under this +License; + Waivable Compulsory License Schemes. In those jurisdictions in which +the right to collect royalties through any statutory or compulsory licensing +scheme can be waived, the Licensor waives the exclusive right to collect such +royalties for any exercise by You of the rights granted under this License; +and, + Voluntary License Schemes. The Licensor waives the right to collect +royalties, whether individually or, in the event that the Licensor is a member +of a collecting society that administers voluntary licensing schemes, via that +society, from any exercise by You of the rights granted under this License. + +The above rights may be exercised in all media and formats whether now known or +hereafter devised. The above rights include the right to make such +modifications as are technically necessary to exercise the rights in other +media and formats. Subject to Section 8(f), all rights not expressly granted by +Licensor are hereby reserved. + +4. Restrictions. The license granted in Section 3 above is expressly made +subject to and limited by the following restrictions: + + You may Distribute or Publicly Perform the Work only under the terms of +this License. You must include a copy of, or the Uniform Resource Identifier +(URI) for, this License with every copy of the Work You Distribute or Publicly +Perform. You may not offer or impose any terms on the Work that restrict the +terms of this License or the ability of the recipient of the Work to exercise +the rights granted to that recipient under the terms of the License. You may +not sublicense the Work. You must keep intact all notices that refer to this +License and to the disclaimer of warranties with every copy of the Work You +Distribute or Publicly Perform. When You Distribute or Publicly Perform the +Work, You may not impose any effective technological measures on the Work that +restrict the ability of a recipient of the Work from You to exercise the rights +granted to that recipient under the terms of the License. This Section 4(a) +applies to the Work as incorporated in a Collection, but this does not require +the Collection apart from the Work itself to be made subject to the terms of +this License. If You create a Collection, upon notice from any Licensor You +must, to the extent practicable, remove from the Collection any credit as +required by Section 4(c), as requested. If You create an Adaptation, upon +notice from any Licensor You must, to the extent practicable, remove from the +Adaptation any credit as required by Section 4(c), as requested. + You may Distribute or Publicly Perform an Adaptation only under the terms +of: (i) this License; (ii) a later version of this License with the same +License Elements as this License; (iii) a Creative Commons jurisdiction license +(either this or a later license version) that contains the same License +Elements as this License (e.g., Attribution-ShareAlike 3.0 US)); (iv) a +Creative Commons Compatible License. If you license the Adaptation under one of +the licenses mentioned in (iv), you must comply with the terms of that license. +If you license the Adaptation under the terms of any of the licenses mentioned +in (i), (ii) or (iii) (the "Applicable License"), you must comply with the +terms of the Applicable License generally and the following provisions: (I) You +must include a copy of, or the URI for, the Applicable License with every copy +of each Adaptation You Distribute or Publicly Perform; (II) You may not offer +or impose any terms on the Adaptation that restrict the terms of the Applicable +License or the ability of the recipient of the Adaptation to exercise the +rights granted to that recipient under the terms of the Applicable License; +(III) You must keep intact all notices that refer to the Applicable License and +to the disclaimer of warranties with every copy of the Work as included in the +Adaptation You Distribute or Publicly Perform; (IV) when You Distribute or +Publicly Perform the Adaptation, You may not impose any effective technological +measures on the Adaptation that restrict the ability of a recipient of the +Adaptation from You to exercise the rights granted to that recipient under the +terms of the Applicable License. This Section 4(b) applies to the Adaptation as +incorporated in a Collection, but this does not require the Collection apart +from the Adaptation itself to be made subject to the terms of the Applicable +License. + If You Distribute, or Publicly Perform the Work or any Adaptations or +Collections, You must, unless a request has been made pursuant to Section 4(a), +keep intact all copyright notices for the Work and provide, reasonable to the +medium or means You are utilizing: (i) the name of the Original Author (or +pseudonym, if applicable) if supplied, and/or if the Original Author and/or +Licensor designate another party or parties (e.g., a sponsor institute, +publishing entity, journal) for attribution ("Attribution Parties") in +Licensor's copyright notice, terms of service or by other reasonable means, the +name of such party or parties; (ii) the title of the Work if supplied; (iii) to +the extent reasonably practicable, the URI, if any, that Licensor specifies to +be associated with the Work, unless such URI does not refer to the copyright +notice or licensing information for the Work; and (iv) , consistent with +Ssection 3(b), in the case of an Adaptation, a credit identifying the use of +the Work in the Adaptation (e.g., "French translation of the Work by Original +Author," or "Screenplay based on original Work by Original Author"). The credit +required by this Section 4(c) may be implemented in any reasonable manner; +provided, however, that in the case of a Adaptation or Collection, at a minimum +such credit will appear, if a credit for all contributing authors of the +Adaptation or Collection appears, then as part of these credits and in a manner +at least as prominent as the credits for the other contributing authors. For +the avoidance of doubt, You may only use the credit required by this Section +for the purpose of attribution in the manner set out above and, by exercising +Your rights under this License, You may not implicitly or explicitly assert or +imply any connection with, sponsorship or endorsement by the Original Author, +Licensor and/or Attribution Parties, as appropriate, of You or Your use of the +Work, without the separate, express prior written permission of the Original +Author, Licensor and/or Attribution Parties. + Except as otherwise agreed in writing by the Licensor or as may be +otherwise permitted by applicable law, if You Reproduce, Distribute or Publicly +Perform the Work either by itself or as part of any Adaptations or Collections, +You must not distort, mutilate, modify or take other derogatory action in +relation to the Work which would be prejudicial to the Original Author's honor +or reputation. Licensor agrees that in those jurisdictions (e.g. Japan), in +which any exercise of the right granted in Section 3(b) of this License (the +right to make Adaptations) would be deemed to be a distortion, mutilation, +modification or other derogatory action prejudicial to the Original Author's +honor and reputation, the Licensor will waive or not assert, as appropriate, +this Section, to the fullest extent permitted by the applicable national law, +to enable You to reasonably exercise Your right under Section 3(b) of this +License (right to make Adaptations) but not otherwise. + +5. Representations, Warranties and Disclaimer + +UNLESS OTHERWISE MUTUALLY AGREED TO BY THE PARTIES IN WRITING, LICENSOR OFFERS +THE WORK AS-IS AND MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND +CONCERNING THE WORK, EXPRESS, IMPLIED, STATUTORY OR OTHERWISE, INCLUDING, +WITHOUT LIMITATION, WARRANTIES OF TITLE, MERCHANTIBILITY, FITNESS FOR A +PARTICULAR PURPOSE, NONINFRINGEMENT, OR THE ABSENCE OF LATENT OR OTHER DEFECTS, +ACCURACY, OR THE PRESENCE OF ABSENCE OF ERRORS, WHETHER OR NOT DISCOVERABLE. +SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OF IMPLIED WARRANTIES, SO SUCH +EXCLUSION MAY NOT APPLY TO YOU. + +6. Limitation on Liability. EXCEPT TO THE EXTENT REQUIRED BY APPLICABLE LAW, IN +NO EVENT WILL LICENSOR BE LIABLE TO YOU ON ANY LEGAL THEORY FOR ANY SPECIAL, +INCIDENTAL, CONSEQUENTIAL, PUNITIVE OR EXEMPLARY DAMAGES ARISING OUT OF THIS +LICENSE OR THE USE OF THE WORK, EVEN IF LICENSOR HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + +7. Termination + + This License and the rights granted hereunder will terminate automatically +upon any breach by You of the terms of this License. Individuals or entities +who have received Adaptations or Collections from You under this License, +however, will not have their licenses terminated provided such individuals or +entities remain in full compliance with those licenses. Sections 1, 2, 5, 6, 7, +and 8 will survive any termination of this License. + Subject to the above terms and conditions, the license granted here is +perpetual (for the duration of the applicable copyright in the Work). +Notwithstanding the above, Licensor reserves the right to release the Work +under different license terms or to stop distributing the Work at any time; +provided, however that any such election will not serve to withdraw this +License (or any other license that has been, or is required to be, granted +under the terms of this License), and this License will continue in full force +and effect unless terminated as stated above. + +8. Miscellaneous + + Each time You Distribute or Publicly Perform the Work or a Collection, the +Licensor offers to the recipient a license to the Work on the same terms and +conditions as the license granted to You under this License. + Each time You Distribute or Publicly Perform an Adaptation, Licensor offers +to the recipient a license to the original Work on the same terms and +conditions as the license granted to You under this License. + If any provision of this License is invalid or unenforceable under +applicable law, it shall not affect the validity or enforceability of the +remainder of the terms of this License, and without further action by the +parties to this agreement, such provision shall be reformed to the minimum +extent necessary to make such provision valid and enforceable. + No term or provision of this License shall be deemed waived and no breach +consented to unless such waiver or consent shall be in writing and signed by +the party to be charged with such waiver or consent. + This License constitutes the entire agreement between the parties with +respect to the Work licensed here. There are no understandings, agreements or +representations with respect to the Work not specified here. Licensor shall not +be bound by any additional provisions that may appear in any communication from +You. This License may not be modified without the mutual written agreement of +the Licensor and You. + The rights granted under, and the subject matter referenced, in this +License were drafted utilizing the terminology of the Berne Convention for the +Protection of Literary and Artistic Works (as amended on September 28, 1979), +the Rome Convention of 1961, the WIPO Copyright Treaty of 1996, the WIPO +Performances and Phonograms Treaty of 1996 and the Universal Copyright +Convention (as revised on July 24, 1971). These rights and subject matter take +effect in the relevant jurisdiction in which the License terms are sought to be +enforced according to the corresponding provisions of the implementation of +those treaty provisions in the applicable national law. If the standard suite +of rights granted under applicable copyright law includes additional rights not +granted under this License, such additional rights are deemed to be included in +the License; this License is not intended to restrict the license of any rights +under applicable law. + + Creative Commons Notice + + Creative Commons is not a party to this License, and makes no warranty +whatsoever in connection with the Work. Creative Commons will not be liable to +You or any party on any legal theory for any damages whatsoever, including +without limitation any general, special, incidental or consequential damages +arising in connection to this license. Notwithstanding the foregoing two (2) +sentences, if Creative Commons has expressly identified itself as the Licensor +hereunder, it shall have all rights and obligations of Licensor. + + Except for the limited purpose of indicating to the public that the Work is +licensed under the CCPL, Creative Commons does not authorize the use by either +party of the trademark "Creative Commons" or any related trademark or logo of +Creative Commons without the prior written consent of Creative Commons. Any +permitted use will be in compliance with Creative Commons' then-current +trademark usage guidelines, as may be published on its website or otherwise +made available upon request from time to time. For the avoidance of doubt, this +trademark restriction does not form part of the License. + + Creative Commons may be contacted at http://creativecommons.org/. diff --git a/mods/unifieddyes/README b/mods/unifieddyes/README new file mode 100644 index 0000000..d9d9e68 --- /dev/null +++ b/mods/unifieddyes/README @@ -0,0 +1,248 @@ +VanessaE's Unified Dyes +======================= + +The purpose of this mod originally was to supply a complete set of colors for +Minetest mod authors to use in their recipes. Since the default dyes mod that +is supplied with Minetest "common" is now usable (via flowers, also included in +"common"), this mod has become more of an extension pack. + +Unified Dyes expands the standard dye set from 15 to 90 colors. + +IMPORTANT: This mod is not intended to suggest that you should use the entire +palette. Rather, I was hoping people would just choose maybe the dozen or so +most useful colors to use in their mods. + +Dependencies: default and dye from Minetest "common". This mod will NOT work +without these. This mod will NOT work without these. The default dye mod is +normally activated only in the standard "build" and "minetest_game" games, or perhaps if +someone has a modpack or game that includes them. + +Recommends: flowers from common. + +License: GPL 2.0 or higher for the code, CC-by-SA 3.0 for the textures. + +Install: Unzip the distribution file, rename the resultant +VanessaE-unifieddyes-blahblah folder to just "unifieddyes", and move it into +Minetest's mods folder. + +The Palette: + +[ http://digitalaudioconcepts.com/vanessa/hobbies/minetest/screenshots/color-swatches.png ] +[ The official palette, showing 84 colors and 5 greys. ] + +In the image above, the "50%" markings on the left next to each shade mean 50% +saturation for all hues in that shade line. Note that the "light" shades don't +have (or need) that variant. For the greys, the percentages shown are of +brightness relative to pure white. There are three special cases: Light red +has been aliased to default pink dye, and dark green has been aliased to +default dark greey dye. Brown dye also exists in the default set, it's just +not shown in the palette above. + + +Usage instructions, technical information +========================================= + +Getting Started +--------------- + +First thing's first: you're going to need to harvest some materials to make the +dyes from. For this, you need one or more of the following: roses (red), +tulips (orange), yellow dandelions (yellow), cactus (green), geraniums (blue), +violas (purple), coal (black), or white dandelions (white). Simply wander +around your world and collect whichever of the above you need to get your +colors. + +[ http://digitalaudioconcepts.com/vanessa/hobbies/minetest/screenshots/unifieddyes1.png ] +[ The 8 base colors directly obtainable from a material in the world. ] + +Simply place one of the above materials into the crafting grid to obtain four +portions of dye in that color From those initial 8 colors, you can directly +fashion another 11, for a total of 19 standard colors (including the various +greys): + +[ http://digitalaudioconcepts.com/vanessa/hobbies/minetest/screenshots/unifieddyes2.png ] +[ The complete 19-color standard set. ] + +The standardized colors and their crafting methods are as follows: + +* Red (0°): one rose +* Orange (30°): one tulip, or put one red dye and one yellow dye into the + crafting grid to mix them (yields 2) +* Yellow (60°): one yellow dandelion +* Lime (90°): mix yellow + green (yields 2) +* Green (120°): one cactus, or mix yellow + blue (yields 2) +* Aqua (150°): mix green + cyan (yields 2) +* Cyan (180°): mix green + blue (yields 2) +* Sky blue (210°): mix cyan + blue (yields 2) +* Blue (240°): one geranium +* Violet (270°): one viola, or mix blue + magenta (yields 2). +* Magenta (300°): mix blue + red (yields 2) +* Red-violet (330°): mix magenta + red (yields 2) + +* Black (7.5%): one piece of coal +* Dark grey (25%): mix one white + two black (yields 3) +* Medium grey (50%): mix one white and one black (yields 2) +* Light grey (75%): Mix two white and one black (yields 3) +* White (95%): one white dandelion. + +The degree figures are the colors' hues on a standard HSV color wheel, and are +what I used in the textures supplied with this mod. For the greys, the figures +in parenthesis indicate the intended brightness of the shade, relative to +white. Note that black and white don't go all the way to the bottom/top of the +scale, as doing so may crush some details in textures made in those shades (see +below, regarding semi-automatic texture generation). + + +Darker/Lighter colors +--------------------- + +To obtain a dark (33%) version of a given color, use two portions of black dye +along with the base color from the list above, which yields three portions of +the final color. + +To obtain a medium-brightness (66%) version of a given color, mix one portion +the base color with one portion of black dye (for example, medium lime = lime + +black). All such mixtures yield two portions of the final color. + +To obtain a light (150% over full) version of a given color, mix one portion of +the base color with one portion of white dye. Yields 2 portions of the final +color. + + +Low-saturation colors +--------------------- + +To get the low saturation (50%) version of one of the base colors, mix one or +more of white, black, or a shade of grey with the desired base color: + +Dark, low saturation: dark grey dye + color (yields 2), or two blacks + 1 white ++ color (yields 4). For example, dark, low-saturation red = red + dark grey, +or red + two black + one white. + +Medium brightness, low saturation: medium grey dye + color (yields 2), or black ++ white + color (yields 3). For example, medium, low-saturation green = green ++ medium grey, or green + black + white. + +Full, low saturation: light grey dye + color (yields 2), or 1 black + 2 whites ++ color (yields 4). For example, bright, low-saturation blue = blue + light +grey, or blue + black + 2 white. + +There is no low-saturation version of the "light" colors. + +Red + white always returns default pink dye, and black + green always returns +default dark green dye. + + +RGB values +---------- + +All RGB values and filenames for all colors and shades of grey are represented +in the file "colors.txt" (which was generated with the bash script +"listcolors.sh"), included in the distribution directory. Note that +listcolors.sh is an example only and was written for a different set of +textures than what Unified Dyes includes now. + + +Misc. Notes +----------- + +If you need to use /give commands, the item names for the standard set of 12 +regular "full" colors (plus pink, brown, and dark green) is simply "dye:color", +e.g. "dye:red", "dye:pink", or "dye:skyblue". Greys have a similar naming +convention: dye:white, dye:light_grey, dye:grey, dye:dark_grey, or dye:black. + +For everything beyond those initial 19 colors, the item names are of the +following format: + +unifieddyes:{"light_" or "medium_" or "dark_"}{color}{nothing or "_s50"}. + +For example, low saturation dark yellow is "unifieddyes:dark_yellow_s50", while +light normal-saturation red-violet would be "unifieddyes:light_redviolet". + +See the texture filenames in the textures/ folder for further hints - all of +the item names follow the same format as the corresponding filenames, save for +having a colon (:) instead of the first underscore (_). + + +Semi-automatic generation of textures +===================================== + +The texture generator script +---------------------------- + +Obviously, in order for this mod or the above template to be useful, you'll +need textures. If you plan to support the entire range of colors offered by +Unified Dyes, there is a BASH script included with this mod as well with the +above template named gentextures.sh, which will, with an appropriately- colored +and appropriately-named source texture, and possibly an overlay texture, +generate a complete set of colored and greyscale textures. + +The script requires bc (the calculator program) to handle some basic math +regarding the hue adjustments, and Imagemagick's "convert" program handles all +of the actual conversions. + +First thing's first though - you need source textures. Using your favorite +image editor, create a single version of your desired texture. Draw it in the +brightest, deepest shade of RED you can muster without losing any detail, and +save it out. Ideally, you will want the average color of the texture, when +taking into account all bright and dark areas, to be as close as possible to +the hex value #FF0000 (0 degrees, 100% saturation, pure red) without losing any +appreciable #detail. + +Save this source texture out as a PNG image, with a filename of +"whatever_base.png", where "whatever" is the one-word name of your mod - for +example, mymod_base.png. + +If you want to add an image on top of the colored blocks, such as a frame, +which you want to be the same color throughout all of the textures, create it +now. It should consist only of those parts of the textures that you want to +leave unchanged, with some level of alpha transparency everywhere else, +depending on how much of the image needs to remain unchanged. Save it out as a +PNG image, using any filename you want, for example myoverlay.png. + +Now, use chmod to make the script executable, if necessary, and run it. + +If you don't need the overlay, you just need to supply one command line +argument: the base name of your mod. The script will use that parameter as the +basis of its texture filenames. For example: + +./gentextures.sh mymod + +The script will then look for mymod_base.png and copy and convert it into +things like mymod_red.png, mymod_dark_blue.png, and so on. + +If you want to use an overlay also, skip the above step and run the script with +the base name as the first parameter, and the complete filename of your overlay +as the second instead. For example: + +./gentextures.sh mymod myoverlay.png + +Otherwise, the program will iterate through all of the hues and shades that are +supported by unifieddyes (though this is done manually, not by reading anything +from the mod), compositing your overlay image in after the recolor step, if +you're using that option. + +All of the output files will be placed in a new folder, generated-textures/ in +the current directory. Note that the script looks for the above files in the +current directory also. + +The script has a third mode as well: + +./gentextures.sh -t mymod myoverlay.png + +In this mode, the script will leave the base texture mymod_base.png unchanged, +and instead will rotate the colors of the overlay image and then composite that +onto the base texture. The same color changes will happen with the overlay in +this mode, so it's a good idea to make the overlay some fairly saturated shade +of red. Along with that, the base image should be some neutral color; any +color is fine as long as the result is what you wanted. + +The program attempts to verify that the files you've asked it to use will +actually work, and will exit immediately if the any are invalid, missing, etc. + +Use your favorite image browser or file manager to review the results in +generated-textures/, and if they're right, copy them over to the textures/ +folder in your mod. + +Note that this script does not generate brown and pink variations of your base +texture - you'll have to do those two manually. diff --git a/mods/unifieddyes/bottle_overlay.png b/mods/unifieddyes/bottle_overlay.png new file mode 100644 index 0000000..5888850 Binary files /dev/null and b/mods/unifieddyes/bottle_overlay.png differ diff --git a/mods/unifieddyes/changelog.txt b/mods/unifieddyes/changelog.txt new file mode 100644 index 0000000..f556fb9 --- /dev/null +++ b/mods/unifieddyes/changelog.txt @@ -0,0 +1,101 @@ +Changelog +--------- + +2013-04-30: Multiple changes + +* Refactored the code to use default "common" dyes +rather than directly from flowers. + +* This mod now depends on "default" and "dye" from the Minetest common +sub-game. Since the default dye mod uses default flowers, this mod no +longer checks for what version of flowers you're using, or even depends +on it. + +* Bottle-based textures have been replaced with piles of dye powder, based +on the default red dye texture. + +* All dyes are obtained by crafting, not cooking, for consistency with the +default dye mod. + +* The somewhat-complicated method using separate "pigment" powders, glass +bottles and "liquid dye base" has been done away with. Now it's just +dry dye powders, as with the default dye mod. + +* Also, got rid of the whole paint scheme, in favor of dry powders. + +* All old dyes, paints, and Unified Dyes pigment powders have been aliased +back to the standard dye powders. + +2012-07-26: Added a "version" check for the flowers dependency: If the +flowers mod defines "flowers:flower_geranium" (as is the case with my +update of 2012-08-01), then those will be used to get blue pigment +powder, and violas will produce violet powder, both of which can be +directly used to create their respective liquid dye colors. If it is +not defined (e.g. the user has an older version of the flowers mod), +then violas produce blue dye powder. Violet dye can still be formed by +mixing blue and magenta or blue and red dyes, as before. + +2012-07-26: Better bottle textures. Note that these are blended against +the 50% grey field they normally appear on in the inventory display, so +they will show artifacts if you try to wield them. Don't do that. :-) + +2012-07-26: Split off glass bottles into a separate mod, "Vessels". +This mod now depends on it. + +2012-07-25 (almost immediately after): Fixed a copy&paste error for +black dye. + +2012-07-25: Replaced missing craftitem entries and got rid of some +redundant code left over from last update. Added group settings for all +dyes according to recently-published standard. Fixed a few typos in +item descriptions, and straightened up capitalization. + +2012-07-24: Added some extra steps to the dye-making process, added +recommendation that empty bottles be given back to the player on use. +Dyes are still easy to make, they just require a more realistic (and +this, harder) process now. + +2012-07-16 (a bit later): fixed a minor error in generation of medium +grey. + +2012-07-16: Added a new set of colors, "light" (brightness of 150% +versus the 'full' shade), for a total of 89. No 50% saturation version +of this set. Added a palette image showing the full set of colors. + +2012-07-13: Fixed some missing commas. + +2012-07-13: Added a script to aid in the generation of new textures for +mods that depend on unifieddyes. Moved this changelog from the forum +into the distribution directory. Rewrote the README to contain +everything from the forum post, and expanded it to document the new +generation script. + +2012-07-12 (a bit later): added groups = {dye=1}, to each +register_craftitem call, to make it easier for other mods to identify +the dyes and categorize them. + +2012-07-12: moved project to github. + +2012-07-11 (continuing): Tweaked the script to remove titanium dioxide +from the output, since it isn't intended to be directly used as a +dye/paint (but rather, to make paint that can then be used). +Regenerated colors.txt. + +2012-07-11 (immediately after): The script was reading the wrong pixel +from the image, resulting in lighter-than-correct colors. Fixed it and +regenerated the colors.txt file. + +2012-07-11: Added a script to list all of the colors and their RGB +values and texture filenames, and a text file containing the output +thereof. + +2012-07-08 (a bit later): deleted a few unused files (copy&paste error). + +2012-07-08: Major boost in the number of available colors - was 8, now +77. Should cover pretty much the entire spectrum of colors one might +use in this game. + +2012-07-02: Deleted a few redundant files (leftovers from when I wanted +to merge in flowers and then changed my mind). + +2012-06-26: Initial upload. diff --git a/mods/unifieddyes/colors.txt b/mods/unifieddyes/colors.txt new file mode 100644 index 0000000..f05b8a4 --- /dev/null +++ b/mods/unifieddyes/colors.txt @@ -0,0 +1,90 @@ + + +Full-saturation colors: +----------------------- + +dark aqua 0, 84, 42 unifieddyes_dark_aqua.png +dark blue 0, 0, 84 unifieddyes_dark_blue.png +dark cyan 0, 84, 83 unifieddyes_dark_cyan.png +dark green 0, 84, 0 unifieddyes_dark_green.png +dark lime 43, 84, 0 unifieddyes_dark_lime.png +dark magenta 84, 0, 83 unifieddyes_dark_magenta.png +dark orange 84, 42, 0 unifieddyes_dark_orange.png +dark red 84, 0, 0 unifieddyes_dark_red.png +dark redviolet 84, 0, 42 unifieddyes_dark_redviolet.png +dark skyblue 0, 42, 84 unifieddyes_dark_skyblue.png +dark violet 43, 0, 84 unifieddyes_dark_violet.png +dark yellow 84, 83, 0 unifieddyes_dark_yellow.png +medium aqua 0,169, 84 unifieddyes_medium_aqua.png +medium blue 0, 0,169 unifieddyes_medium_blue.png +medium cyan 0,169,167 unifieddyes_medium_cyan.png +medium green 0,169, 0 unifieddyes_medium_green.png +medium lime 87,169, 0 unifieddyes_medium_lime.png +medium magenta 169, 0,167 unifieddyes_medium_magenta.png +medium orange 169, 84, 0 unifieddyes_medium_orange.png +medium red 168, 0, 0 unifieddyes_medium_red.png +medium redviolet 169, 0, 84 unifieddyes_medium_redviolet.png +medium skyblue 0, 84,169 unifieddyes_medium_skyblue.png +medium violet 87, 0,169 unifieddyes_medium_violet.png +medium yellow 169,167, 0 unifieddyes_medium_yellow.png +aqua 1,255,127 unifieddyes_aqua.png +blue 1, 1,255 unifieddyes_blue.png +cyan 1,255,252 unifieddyes_cyan.png +green 1,255, 1 unifieddyes_green.png +lime 132,255, 1 unifieddyes_lime.png +magenta 255, 1,252 unifieddyes_magenta.png +orange 255,127, 1 unifieddyes_orange.png +red 255, 0, 0 unifieddyes_red.png +redviolet 255, 1,127 unifieddyes_redviolet.png +skyblue 1,127,255 unifieddyes_skyblue.png +violet 132, 1,255 unifieddyes_violet.png +yellow 255,252, 1 unifieddyes_yellow.png + +Low-saturation colors: +---------------------- + +dark aqua 50% saturation 21, 63, 42 unifieddyes_dark_aqua_s50.png +dark blue 50% saturation 21, 21, 63 unifieddyes_dark_blue_s50.png +dark cyan 50% saturation 21, 63, 63 unifieddyes_dark_cyan_s50.png +dark green 50% saturation 21, 63, 21 unifieddyes_dark_green_s50.png +dark lime 50% saturation 43, 63, 21 unifieddyes_dark_lime_s50.png +dark magenta 50% saturation 63, 21, 63 unifieddyes_dark_magenta_s50.png +dark orange 50% saturation 63, 42, 21 unifieddyes_dark_orange_s50.png +dark red 50% saturation 63, 21, 21 unifieddyes_dark_red_s50.png +dark redviolet 50% saturation 63, 21, 42 unifieddyes_dark_redviolet_s50.png +dark skyblue 50% saturation 21, 42, 63 unifieddyes_dark_skyblue_s50.png +dark violet 50% saturation 43, 21, 63 unifieddyes_dark_violet_s50.png +dark yellow 50% saturation 63, 63, 21 unifieddyes_dark_yellow_s50.png +medium aqua 50% saturation 42,126, 84 unifieddyes_medium_aqua_s50.png +medium blue 50% saturation 42, 42,126 unifieddyes_medium_blue_s50.png +medium cyan 50% saturation 42,126,126 unifieddyes_medium_cyan_s50.png +medium green 50% saturation 42,126, 42 unifieddyes_medium_green_s50.png +medium lime 50% saturation 86,126, 42 unifieddyes_medium_lime_s50.png +medium magenta 50% saturation 126, 42,126 unifieddyes_medium_magenta_s50.png +medium orange 50% saturation 126, 84, 42 unifieddyes_medium_orange_s50.png +medium red 50% saturation 127, 42, 42 unifieddyes_medium_red_s50.png +medium redviolet 50% saturation 126, 42, 84 unifieddyes_medium_redviolet_s50.png +medium skyblue 50% saturation 42, 84,126 unifieddyes_medium_skyblue_s50.png +medium violet 50% saturation 86, 42,126 unifieddyes_medium_violet_s50.png +medium yellow 50% saturation 126,126, 42 unifieddyes_medium_yellow_s50.png +aqua 50% saturation 65,191,127 unifieddyes_aqua_s50.png +blue 50% saturation 65, 65,191 unifieddyes_blue_s50.png +cyan 50% saturation 65,191,190 unifieddyes_cyan_s50.png +green 50% saturation 65,191, 65 unifieddyes_green_s50.png +lime 50% saturation 130,191, 65 unifieddyes_lime_s50.png +magenta 50% saturation 191, 65,190 unifieddyes_magenta_s50.png +orange 50% saturation 191,127, 65 unifieddyes_orange_s50.png +red 50% saturation 192, 64, 64 unifieddyes_red_s50.png +redviolet 50% saturation 191, 65,127 unifieddyes_redviolet_s50.png +skyblue 50% saturation 65,127,191 unifieddyes_skyblue_s50.png +violet 50% saturation 130, 65,191 unifieddyes_violet_s50.png +yellow 50% saturation 191,190, 65 unifieddyes_yellow_s50.png + +Greyscale: +---------- + +black 0, 0, 0 unifieddyes_black.png +dark grey 64, 64, 64 unifieddyes_darkgrey_paint.png +medium grey 128,128,128 unifieddyes_grey_paint.png +light grey 192,192,192 unifieddyes_lightgrey_paint.png +white 255,255,255 unifieddyes_white_paint.png diff --git a/mods/unifieddyes/depends.txt b/mods/unifieddyes/depends.txt new file mode 100644 index 0000000..2717bef --- /dev/null +++ b/mods/unifieddyes/depends.txt @@ -0,0 +1,2 @@ +default +dye diff --git a/mods/unifieddyes/gentextures-jpg.sh b/mods/unifieddyes/gentextures-jpg.sh new file mode 100644 index 0000000..a7cad60 --- /dev/null +++ b/mods/unifieddyes/gentextures-jpg.sh @@ -0,0 +1,183 @@ +#!/bin/bash + +# This program auto-generates colorized textures for all 89 of the Unified +# Dyes colors, based on one or two input files. + +# Copyright (C) 2012-2013, Vanessa Ezekowitz +# Email: vanessaezekowitz@gmail.com +# +# 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 2 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, write to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +if [ -z "`which convert`" ] ; then { + echo "Please install Imagemagick." + exit 1 +} fi + +if [ -z "`which bc`" ] ; then { + echo "Please install GNU bc." + exit 1 +} fi + +if [ $1 = "-t" ] ; then { + TINT_OVERLAY=$1 + BASE=$2 + COMPOSITE=$3 +} else { + TINT_OVERLAY="" + BASE=$1 + COMPOSITE=$2 +} fi + +if [ -z $1 ] || [ $1 == "--help" ] || [ $1 == "-h" ] || [[ $1 == "-t" && -z $3 ]] ; then { + + echo -e "\nUsage: +\ngentextures.sh basename [overlay_filename] +gentextures.sh -t basename overlay_filename + +\nThis script requires up to three parameters which supply the base +filename of the textures, an optional .png overlay, and possibly the +'-t' switch. The 'basename' is the first part of the filename that your +textures will use when your mod is done, which should almost always be +the same as the one-word name of your mod. For example, if you supply +the word 'mymod', this script will produce filenames like mymod_red.jpg +or 'mymod_dark_blue_s50.jpg'. The texture that this script will read +and recolor is derived from this parameter, and will be of the form +'basename_base.jpg', i.e. 'mymod_base.jpg'. \nYou can also supply an +overlay image filename. This image needs to be a .png or .gif or some +other alpha-capable format supported by ImageMagick, and will be +composited onto the output files after they have been colorized, but +without being modified. This is useful when you have some part of your +base image that will either get changed undesirably (for example, the +mortar among several bricks, or the shading detail of a stone pattern). +Simply draw two images: one containing the whole image to be colored, +and one containing the parts that should not be changed, with either +full or partial alpha transparency where the re-colored base image +should show through. Skilled use of color and alpha on this overlay can +lead to some interesting effects. \nIf you add '-t' as the first +parameter, the script will switch to 'tint overlay' mode. For this mode +to work, you must also supply the base name as usual, and you must +include an overlay image filename. Rather than re-color the base +texture, the script will alter the hue/saturation/value of the overlay +texture file instead, and leave the base texture unchanged. When using +this mode, the base texture should be drawn in some neutral color, but +any color is fine if it results in what you wanted.\n" + + + exit 1 +} fi + +if [[ ! -e $BASE"_base.jpg" ]]; then { + echo -e "\nThe basename '"$BASE"_base.jpg' was not found." + echo -e "\nAborting.\n" + exit 1 +} fi + +if [[ ! -z $COMPOSITE && ! -e $COMPOSITE ]]; then { + echo -e "\nThe requested composite file '"$COMPOSITE"' was not found." + echo -e "\nAborting.\n" + exit 1 +} fi + +convert $BASE"_base.jpg" -modulate 1,2,3 tempfile.jpg 1>/dev/null 2>/dev/null + +if (( $? )) ; then { + echo -e "\nImagemagick failed while testing the base texture file." + echo -e "\nEither the base file '"$BASE"_base.jpg' isn't an image," + echo "or it is broken, or Imagemagick itself just didn't work." + echo -e "\nPlease check and correct your base image and try again." + echo -e "\nAborting.\n" + exit 1 +} fi + +if [ ! -z $COMPOSITE ] ; then { + convert $BASE"_base.jpg" -modulate 1,2,3 $COMPOSITE -composite tempfile.jpg 1>/dev/null 2>/dev/null + + if (( $? )) ; then { + echo -e "\nImagemagick failed while testing the composite file." + echo -e "\nEither the composite file '"$COMPOSITE"' isn't an image" + echo "or it is broken, or Imagemagick itself just didn't work." + echo -e "\nPlease check and correct your composite image and try again." + echo -e "\nAborting.\n" + exit 1 + } fi +} fi + +rm tempfile.jpg + +base_colors="red orange yellow lime green aqua cyan skyblue blue violet magenta redviolet" + +echo -e -n "\nGenerating filenames based on "$BASE"_base.jpg" +if [ ! -z $COMPOSITE ] ; then { + echo "," + echo -n "using "$COMPOSITE" as an overlay" +} fi + +if [ ! -z $TINT_OVERLAY ] ; then { + echo "," + echo -n "and tinting the overlay instead of the base texture" +} fi + +echo -e "...\n" + +mkdir -p generated-textures + +function generate_texture () { + name=$1 + h=$2 + s=$3 + v=$4 + if [ -z $TINT_OVERLAY ]; then { + if [ -z $COMPOSITE ]; then { + convert $BASE"_base.jpg" -modulate $v,$s,$h -quality 97 "generated-textures/"$BASE"_"$name".jpg" + } else { + convert $BASE"_base.jpg" -modulate $v,$s,$h -quality 97 $COMPOSITE -composite "generated-textures/"$BASE"_"$name".jpg" + } fi + } else { + convert $COMPOSITE -modulate $v,$s,$h -quality 97 MIFF:- | composite MIFF:- $BASE"_base.jpg" "generated-textures/"$BASE"_"$name".jpg" + } fi +} + +hue=0 +for color_name in $base_colors ; do + hue2=`echo "scale=10; ("$hue"*200/360)+100" |bc` + echo $color_name "("$hue" degrees)" + echo " dark" + generate_texture "dark_"$color_name $hue2 100 33 + echo " medium" + generate_texture "medium_"$color_name $hue2 100 66 + echo " full" + generate_texture $color_name $hue2 100 100 + echo " light" + generate_texture "light_"$color_name $hue2 100 150 + echo " dark, 50% saturation" + generate_texture "dark_"$color_name"_s50" $hue2 50 33 + echo " medium, 50% saturation" + generate_texture "medium_"$color_name"_s50" $hue2 50 66 + echo " full, 50% saturation" + generate_texture $color_name"_s50" $hue2 50 100 + hue=$((hue+30)) +done + +echo "greyscales" +echo " black" +generate_texture black 0 0 15 +echo " dark grey" +generate_texture darkgrey 0 0 50 +echo " medium grey" +generate_texture grey 0 0 100 +echo " light grey" +generate_texture lightgrey 0 0 150 +echo " white" +generate_texture white 0 0 190 diff --git a/mods/unifieddyes/gentextures.sh b/mods/unifieddyes/gentextures.sh new file mode 100644 index 0000000..842817e --- /dev/null +++ b/mods/unifieddyes/gentextures.sh @@ -0,0 +1,177 @@ +#!/bin/bash + +# This program auto-generates colorized textures for all 89 of the Unified +# Dyes colors, based on one or two input files. + +# Copyright (C) 2012-2013, Vanessa Ezekowitz +# Email: vanessaezekowitz@gmail.com +# +# 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 2 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, write to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +if [ -z "`which convert`" ] ; then { + echo "Please install Imagemagick." + exit 1 +} fi + +if [ -z "`which bc`" ] ; then { + echo "Please install GNU bc." + exit 1 +} fi + +if [ $1 = "-t" ] ; then { + TINT_OVERLAY=$1 + BASE=$2 + COMPOSITE=$3 +} else { + TINT_OVERLAY="" + BASE=$1 + COMPOSITE=$2 +} fi + +if [ -z $1 ] || [ $1 == "--help" ] || [ $1 == "-h" ] || [[ $1 == "-t" && -z $3 ]] ; then { + + echo -e "\nUsage: +\ngentextures.sh basename [overlay_filename] +gentextures.sh -t basename overlay_filename +\nThis script requires up to three parameters which supply the base filename +of the textures, an optional overlay, and possibly the '-t' switch. The +'basename' is the first part of the filename that your textures will use when +your mod is done, which should almost always be the same as the one-word name +of your mod. For example, if you supply the word 'mymod', this script will +produce filenames like mymod_red.png or 'mymod_dark_blue_s50.png'. The +texture that this script will read and recolor is derived from this parameter, +and will be of the form 'basename_base.png', i.e. 'mymod_base.png'. +\nYou can also supply an optional overlay image filename. This image will be +composited onto the output files after they have been colorized, but without +being modified. This is useful when you have some part of your base image +that will either get changed undesirably (for example, the mortar among +several bricks, or the shading detail of a stone pattern). Simply draw two +images: one containing the whole image to be colored, and one containing the +parts that should not be changed, with either full or partial alpha +transparency where the re-colored base image should show through. Skilled use +of color and alpha on this overlay can lead to some interesting effects. +\nIf you add '-t' as the first parameter, the script will switch to 'tint +overlay' mode. For this mode to work, you must also supply the base name as +usual, and you must include an overlay image filename. Rather than re-color +the base texture, the script will alter the hue/saturation/value of the +overlay texture file instead, and leave the base texture unchanged. When +using this mode, the base texture should be drawn in some neutral color, but +any color is fine if it results in what you wanted.\n" + exit 1 +} fi + +if [[ ! -e $BASE"_base.png" ]]; then { + echo -e "\nThe basename '"$BASE"_base.png' was not found." + echo -e "\nAborting.\n" + exit 1 +} fi + +if [[ ! -z $COMPOSITE && ! -e $COMPOSITE ]]; then { + echo -e "\nThe requested composite file '"$COMPOSITE"' was not found." + echo -e "\nAborting.\n" + exit 1 +} fi + +convert $BASE"_base.png" -modulate 1,2,3 tempfile.png 1>/dev/null 2>/dev/null + +if (( $? )) ; then { + echo -e "\nImagemagick failed while testing the base texture file." + echo -e "\nEither the base file '"$BASE"_base.png' isn't an image," + echo "or it is broken, or Imagemagick itself just didn't work." + echo -e "\nPlease check and correct your base image and try again." + echo -e "\nAborting.\n" + exit 1 +} fi + +if [ ! -z $COMPOSITE ] ; then { + convert $BASE"_base.png" -modulate 1,2,3 $COMPOSITE -composite tempfile.png 1>/dev/null 2>/dev/null + + if (( $? )) ; then { + echo -e "\nImagemagick failed while testing the composite file." + echo -e "\nEither the composite file '"$COMPOSITE"' isn't an image" + echo "or it is broken, or Imagemagick itself just didn't work." + echo -e "\nPlease check and correct your composite image and try again." + echo -e "\nAborting.\n" + exit 1 + } fi +} fi + +rm tempfile.png + +base_colors="red orange yellow lime green aqua cyan skyblue blue violet magenta redviolet" + +echo -e -n "\nGenerating filenames based on "$BASE"_base.png" +if [ ! -z $COMPOSITE ] ; then { + echo "," + echo -n "using "$COMPOSITE" as an overlay" +} fi + +if [ ! -z $TINT_OVERLAY ] ; then { + echo "," + echo -n "and tinting the overlay instead of the base texture" +} fi + +echo -e "...\n" + +mkdir -p generated-textures + +function generate_texture () { + name=$1 + h=$2 + s=$3 + v=$4 + if [ -z $TINT_OVERLAY ]; then { + if [ -z $COMPOSITE ]; then { + convert $BASE"_base.png" -modulate $v,$s,$h "generated-textures/"$BASE"_"$name".png" + } else { + convert $BASE"_base.png" -modulate $v,$s,$h $COMPOSITE -composite "generated-textures/"$BASE"_"$name".png" + } fi + } else { + convert $COMPOSITE -modulate $v,$s,$h MIFF:- | composite MIFF:- $BASE"_base.png" "generated-textures/"$BASE"_"$name".png" + } fi +} + +hue=0 +for color_name in $base_colors ; do + hue2=`echo "scale=10; ("$hue"*200/360)+100" |bc` + echo $color_name "("$hue" degrees)" + echo " dark" + generate_texture "dark_"$color_name $hue2 100 33 + echo " medium" + generate_texture "medium_"$color_name $hue2 100 66 + echo " full" + generate_texture $color_name $hue2 100 100 + echo " light" + generate_texture "light_"$color_name $hue2 100 150 + echo " dark, 50% saturation" + generate_texture "dark_"$color_name"_s50" $hue2 50 33 + echo " medium, 50% saturation" + generate_texture "medium_"$color_name"_s50" $hue2 50 66 + echo " full, 50% saturation" + generate_texture $color_name"_s50" $hue2 50 100 + hue=$((hue+30)) +done + +echo "greyscales" +echo " black" +generate_texture black 0 0 15 +echo " dark grey" +generate_texture darkgrey 0 0 50 +echo " medium grey" +generate_texture grey 0 0 100 +echo " light grey" +generate_texture lightgrey 0 0 150 +echo " white" +generate_texture white 0 0 190 diff --git a/mods/unifieddyes/init.lua b/mods/unifieddyes/init.lua new file mode 100644 index 0000000..7f2f701 --- /dev/null +++ b/mods/unifieddyes/init.lua @@ -0,0 +1,366 @@ +--[[ + +Unified Dyes + +This mod provides an extension to the Minetest 0.4.x dye system + +============================================================================== + +Copyright (C) 2012-2013, Vanessa Ezekowitz +Email: vanessaezekowitz@gmail.com + +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 2 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, write to the Free Software Foundation, Inc., +51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +============================================================================== + +--]] + +--===================================================================== +-- Items/recipes needed to generate the few base colors that are not +-- provided by the standard dyes mod. + +-- Lime + +minetest.register_craftitem(":dye:lime", { + description = "Lime Dye", + inventory_image = "unifieddyes_lime.png", + groups = { dye=1, excolor_lime=1, unicolor_lime=1, not_in_creative_inventory=1 } +}) + +minetest.register_craft( { + type = "shapeless", + output = "dye:lime 2", + recipe = { + "dye:yellow", + "dye:green", + }, +}) + +-- Aqua + +minetest.register_craftitem(":dye:aqua", { + description = "Aqua Dye", + inventory_image = "unifieddyes_aqua.png", + groups = { dye=1, excolor_aqua=1, unicolor_aqua=1, not_in_creative_inventory=1 } +}) + +minetest.register_craft( { + type = "shapeless", + output = "dye:aqua 2", + recipe = { + "dye:cyan", + "dye:green", + }, +}) + +-- Sky blue + +minetest.register_craftitem(":dye:skyblue", { + description = "Sky-blue Dye", + inventory_image = "unifieddyes_skyblue.png", + groups = { dye=1, excolor_sky_blue=1, unicolor_sky_blue=1, not_in_creative_inventory=1 } +}) + +minetest.register_craft( { + type = "shapeless", + output = "dye:skyblue 2", + recipe = { + "dye:cyan", + "dye:blue", + }, +}) + +-- Red-violet + +minetest.register_craftitem(":dye:redviolet", { + description = "Red-violet Dye", + inventory_image = "unifieddyes_redviolet.png", + groups = { dye=1, excolor_red_violet=1, unicolor_red_violet=1, not_in_creative_inventory=1 } +}) + +minetest.register_craft( { + type = "shapeless", + output = "dye:redviolet 2", + recipe = { + "dye:red", + "dye:magenta", + }, +}) + + +-- Light grey + +minetest.register_craftitem(":dye:light_grey", { + description = "Light Grey Dye", + inventory_image = "unifieddyes_lightgrey.png", + groups = { dye=1, excolor_lightgrey=1, unicolor_light_grey=1, not_in_creative_inventory=1 } +}) + +minetest.register_craft( { + type = "shapeless", + output = "dye:light_grey 2", + recipe = { + "dye:grey", + "dye:white", + }, +}) + +-- Extra craft for black dye + +minetest.register_craft( { + type = "shapeless", + output = "dye:black 4", + recipe = { + "default:coal_lump", + }, +}) + +-- Extra craft for dark grey dye + +minetest.register_craft( { + type = "shapeless", + output = "dye:dark_grey 3", + recipe = { + "dye:black", + "dye:black", + "dye:white", + }, +}) + +-- Extra craft for light grey dye + +minetest.register_craft( { + type = "shapeless", + output = "dye:light_grey 3", + recipe = { + "dye:black", + "dye:white", + "dye:white", + }, +}) + +-- Extra craft for green dye + +minetest.register_craft( { + type = "shapeless", + output = "dye:green 4", + recipe = { + "default:cactus", + }, +}) + +-- ================================================================= + +-- Generate all of additional variants of hue, saturation, and +-- brightness. + +-- "s50" in a file/item name means "saturation: 50%". +-- Brightness levels in the textures are 33% ("dark"), 66% ("medium"), +-- 100% ("full", but not so-named), and 150% ("light"). + +local HUES = { + "red", + "orange", + "yellow", + "lime", + "green", + "aqua", + "cyan", + "skyblue", + "blue", + "violet", + "magenta", + "redviolet" +} + +local HUES2 = { + "Red", + "Orange", + "Yellow", + "Lime", + "Green", + "Aqua", + "Cyan", + "Sky-blue", + "Blue", + "Violet", + "Magenta", + "Red-violet" +} + + +for i = 1, 12 do + + local hue = HUES[i] + local hue2 = HUES2[i] + + minetest.register_craft( { + type = "shapeless", + output = "unifieddyes:dark_" .. hue .. "_s50 2", + recipe = { + "dye:" .. hue, + "dye:dark_grey", + }, + }) + + minetest.register_craft( { + type = "shapeless", + output = "unifieddyes:dark_" .. hue .. "_s50 4", + recipe = { + "dye:" .. hue, + "dye:black", + "dye:black", + "dye:white" + }, + }) + + if hue == "green" then + + minetest.register_craft( { + type = "shapeless", + output = "dye:dark_green 3", + recipe = { + "dye:" .. hue, + "dye:black", + "dye:black", + }, + }) + else + minetest.register_craft( { + type = "shapeless", + output = "unifieddyes:dark_" .. hue .. " 3", + recipe = { + "dye:" .. hue, + "dye:black", + "dye:black", + }, + }) + end + + minetest.register_craft( { + type = "shapeless", + output = "unifieddyes:medium_" .. hue .. "_s50 2", + recipe = { + "dye:" .. hue, + "dye:grey", + }, + }) + + minetest.register_craft( { + type = "shapeless", + output = "unifieddyes:medium_" .. hue .. "_s50 3", + recipe = { + "dye:" .. hue, + "dye:black", + "dye:white", + }, + }) + + minetest.register_craft( { + type = "shapeless", + output = "unifieddyes:medium_" .. hue .. " 2", + recipe = { + "dye:" .. hue, + "dye:black", + }, + }) + + minetest.register_craft( { + type = "shapeless", + output = "unifieddyes:" .. hue .. "_s50 2", + recipe = { + "dye:" .. hue, + "dye:grey", + "dye:white", + }, + }) + + minetest.register_craft( { + type = "shapeless", + output = "unifieddyes:" .. hue .. "_s50 4", + recipe = { + "dye:" .. hue, + "dye:white", + "dye:white", + "dye:black", + }, + }) + + if hue ~= "red" then + minetest.register_craft( { + type = "shapeless", + output = "unifieddyes:light_" .. hue .. " 2", + recipe = { + "dye:" .. hue, + "dye:white", + }, + }) + end + + minetest.register_craftitem("unifieddyes:dark_" .. hue .. "_s50", { + description = "Dark " .. hue2 .. " Dye (low saturation)", + inventory_image = "unifieddyes_dark_" .. hue .. "_s50.png", + groups = { dye=1, ["unicolor_dark_"..hue.."_s50"]=1, not_in_creative_inventory=1 } + }) + + if hue ~= "green" then + minetest.register_craftitem("unifieddyes:dark_" .. hue, { + description = "Dark " .. hue2 .. " Dye", + inventory_image = "unifieddyes_dark_" .. hue .. ".png", + groups = { dye=1, ["unicolor_dark_"..hue]=1, not_in_creative_inventory=1 } + }) + end + + minetest.register_craftitem("unifieddyes:medium_" .. hue .. "_s50", { + description = "Medium " .. hue2 .. " Dye (low saturation)", + inventory_image = "unifieddyes_medium_" .. hue .. "_s50.png", + groups = { dye=1, ["unicolor_medium_"..hue.."_s50"]=1, not_in_creative_inventory=1 } + }) + + minetest.register_craftitem("unifieddyes:medium_" .. hue, { + description = "Medium " .. hue2 .. " Dye", + inventory_image = "unifieddyes_medium_" .. hue .. ".png", + groups = { dye=1, ["unicolor_medium_"..hue]=1, not_in_creative_inventory=1 } + }) + + minetest.register_craftitem("unifieddyes:" .. hue .. "_s50", { + description = hue2 .. " Dye (low saturation)", + inventory_image = "unifieddyes_" .. hue .. "_s50.png", + groups = { dye=1, ["unicolor_"..hue.."_s50"]=1, not_in_creative_inventory=1 } + }) + + if hue ~= "red" then + minetest.register_craftitem("unifieddyes:light_" .. hue, { + description = "Light " .. hue2 .. " Dye", + inventory_image = "unifieddyes_light_" .. hue .. ".png", + groups = { dye=1, ["unicolor_light_"..hue]=1, not_in_creative_inventory=1 } + }) + end + minetest.register_alias("unifieddyes:"..hue, "dye:"..hue) + minetest.register_alias("unifieddyes:pigment_"..hue, "dye:"..hue) +end + +minetest.register_alias("unifieddyes:light_red", "dye:pink") +minetest.register_alias("unifieddyes:dark_green", "dye:dark_green") + +minetest.register_alias("unifieddyes:white_paint", "dye:white") +minetest.register_alias("unifieddyes:titanium_dioxide", "dye:white") +minetest.register_alias("unifieddyes:lightgrey_paint", "dye:light_grey") +minetest.register_alias("unifieddyes:grey_paint", "dye:grey") +minetest.register_alias("unifieddyes:darkgrey_paint", "dye:dark_grey") +minetest.register_alias("unifieddyes:carbon_black", "dye:black") + +print("[UnifiedDyes] Loaded!") + diff --git a/mods/unifieddyes/listcolors.sh b/mods/unifieddyes/listcolors.sh new file mode 100644 index 0000000..53e1806 --- /dev/null +++ b/mods/unifieddyes/listcolors.sh @@ -0,0 +1,79 @@ +#!/bin/bash + +# This program lists out the RGB triads for the colors used in each of the 89 +# dyes found in the Unified Dyes mod. + +# Copyright (C) 2012-2013, Vanessa Ezekowitz +# Email: vanessaezekowitz@gmail.com +# +# 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 2 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, write to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +pushd . >/dev/null + +cd textures + +echo -e "\n\nFull-saturation colors:" +echo -e "-----------------------\n" + +for i in `ls *dark*.png|grep -v _s50|grep -v paint|grep -v black` ; do + rgb=`convert $i -crop 1x1+8+11 -depth 8 txt: |grep "0,0: (" |cut -f 2- -d "(" |cut -f 1-3 -d ","` + color=`basename $i .png | sed 's/_/ /g; s/unifieddyes //; s/s50/50% saturation/'` + printf "%-32s %-12s %s\n" "$color" "$rgb" "$i" +done |sort + +for i in `ls *medium*.png|grep -v _s50|grep -v paint|grep -v black` ; do + rgb=`convert $i -crop 1x1+8+11 -depth 8 txt: |grep "0,0: (" |cut -f 2- -d "(" |cut -f 1-3 -d ","` + color=`basename $i .png | sed 's/_/ /g; s/unifieddyes //; s/s50/50% saturation/'` + printf "%-32s %-12s %s\n" "$color" "$rgb" "$i" +done |sort + +for i in `ls *.png|grep -v medium |grep -v dark|grep -v _s50|grep -v paint|grep -v black|grep -v titanium` ; do + rgb=`convert $i -crop 1x1+8+11 -depth 8 txt: |grep "0,0: (" |cut -f 2- -d "(" |cut -f 1-3 -d ","` + color=`basename $i .png | sed 's/_/ /g; s/unifieddyes //; s/s50/50% saturation/'` + printf "%-32s %-12s %s\n" "$color" "$rgb" "$i" +done |sort + + +echo -e "\nLow-saturation colors:" +echo -e "----------------------\n" + +for i in `ls *dark*_s50.png|grep -v paint|grep -v black` ; do + rgb=`convert $i -crop 1x1+8+11 -depth 8 txt: |grep "0,0: (" |cut -f 2- -d "(" |cut -f 1-3 -d ","` + color=`basename $i .png | sed 's/_/ /g; s/unifieddyes //; s/s50/50% saturation/'` + printf "%-32s %-12s %s\n" "$color" "$rgb" "$i" +done |sort + +for i in `ls *medium*_s50.png|grep -v paint|grep -v black` ; do + rgb=`convert $i -crop 1x1+8+11 -depth 8 txt: |grep "0,0: (" |cut -f 2- -d "(" |cut -f 1-3 -d ","` + color=`basename $i .png | sed 's/_/ /g; s/unifieddyes //; s/s50/50% saturation/'` + printf "%-32s %-12s %s\n" "$color" "$rgb" "$i" +done |sort + +for i in `ls *_s50.png|grep -v dark|grep -v medium|grep -v paint|grep -v black` ; do + rgb=`convert $i -crop 1x1+8+11 -depth 8 txt: |grep "0,0: (" |cut -f 2- -d "(" |cut -f 1-3 -d ","` + color=`basename $i .png | sed 's/_/ /g; s/unifieddyes //; s/s50/50% saturation/'` + printf "%-32s %-12s %s\n" "$color" "$rgb" "$i" +done |sort + +echo -e "\nGreyscale:" +echo -e "----------\n" + +printf "%-32s %-12s %s\n" "black" " 0, 0, 0" "unifieddyes_black.png" +printf "%-32s %-12s %s\n" "dark grey" " 64, 64, 64" "unifieddyes_darkgrey_paint.png" +printf "%-32s %-12s %s\n" "medium grey" "128,128,128" "unifieddyes_grey_paint.png" +printf "%-32s %-12s %s\n" "light grey" "192,192,192" "unifieddyes_lightgrey_paint.png" +printf "%-32s %-12s %s\n" "white" "255,255,255" "unifieddyes_white_paint.png" + +popd >/dev/null diff --git a/mods/unifieddyes/textures/unifieddyes_aqua.png b/mods/unifieddyes/textures/unifieddyes_aqua.png new file mode 100644 index 0000000..da73e21 Binary files /dev/null and b/mods/unifieddyes/textures/unifieddyes_aqua.png differ diff --git a/mods/unifieddyes/textures/unifieddyes_aqua_s50.png b/mods/unifieddyes/textures/unifieddyes_aqua_s50.png new file mode 100644 index 0000000..d737e67 Binary files /dev/null and b/mods/unifieddyes/textures/unifieddyes_aqua_s50.png differ diff --git a/mods/unifieddyes/textures/unifieddyes_blue_s50.png b/mods/unifieddyes/textures/unifieddyes_blue_s50.png new file mode 100644 index 0000000..33ab950 Binary files /dev/null and b/mods/unifieddyes/textures/unifieddyes_blue_s50.png differ diff --git a/mods/unifieddyes/textures/unifieddyes_cyan_s50.png b/mods/unifieddyes/textures/unifieddyes_cyan_s50.png new file mode 100644 index 0000000..7f304b7 Binary files /dev/null and b/mods/unifieddyes/textures/unifieddyes_cyan_s50.png differ diff --git a/mods/unifieddyes/textures/unifieddyes_dark_aqua.png b/mods/unifieddyes/textures/unifieddyes_dark_aqua.png new file mode 100644 index 0000000..6a146ea Binary files /dev/null and b/mods/unifieddyes/textures/unifieddyes_dark_aqua.png differ diff --git a/mods/unifieddyes/textures/unifieddyes_dark_aqua_s50.png b/mods/unifieddyes/textures/unifieddyes_dark_aqua_s50.png new file mode 100644 index 0000000..5dbf4bd Binary files /dev/null and b/mods/unifieddyes/textures/unifieddyes_dark_aqua_s50.png differ diff --git a/mods/unifieddyes/textures/unifieddyes_dark_blue.png b/mods/unifieddyes/textures/unifieddyes_dark_blue.png new file mode 100644 index 0000000..2a62a38 Binary files /dev/null and b/mods/unifieddyes/textures/unifieddyes_dark_blue.png differ diff --git a/mods/unifieddyes/textures/unifieddyes_dark_blue_s50.png b/mods/unifieddyes/textures/unifieddyes_dark_blue_s50.png new file mode 100644 index 0000000..4eceeff Binary files /dev/null and b/mods/unifieddyes/textures/unifieddyes_dark_blue_s50.png differ diff --git a/mods/unifieddyes/textures/unifieddyes_dark_cyan.png b/mods/unifieddyes/textures/unifieddyes_dark_cyan.png new file mode 100644 index 0000000..4cfbee4 Binary files /dev/null and b/mods/unifieddyes/textures/unifieddyes_dark_cyan.png differ diff --git a/mods/unifieddyes/textures/unifieddyes_dark_cyan_s50.png b/mods/unifieddyes/textures/unifieddyes_dark_cyan_s50.png new file mode 100644 index 0000000..857c470 Binary files /dev/null and b/mods/unifieddyes/textures/unifieddyes_dark_cyan_s50.png differ diff --git a/mods/unifieddyes/textures/unifieddyes_dark_green.png b/mods/unifieddyes/textures/unifieddyes_dark_green.png new file mode 100644 index 0000000..19caa48 Binary files /dev/null and b/mods/unifieddyes/textures/unifieddyes_dark_green.png differ diff --git a/mods/unifieddyes/textures/unifieddyes_dark_green_s50.png b/mods/unifieddyes/textures/unifieddyes_dark_green_s50.png new file mode 100644 index 0000000..686a49e Binary files /dev/null and b/mods/unifieddyes/textures/unifieddyes_dark_green_s50.png differ diff --git a/mods/unifieddyes/textures/unifieddyes_dark_lime.png b/mods/unifieddyes/textures/unifieddyes_dark_lime.png new file mode 100644 index 0000000..927ddf8 Binary files /dev/null and b/mods/unifieddyes/textures/unifieddyes_dark_lime.png differ diff --git a/mods/unifieddyes/textures/unifieddyes_dark_lime_s50.png b/mods/unifieddyes/textures/unifieddyes_dark_lime_s50.png new file mode 100644 index 0000000..f274909 Binary files /dev/null and b/mods/unifieddyes/textures/unifieddyes_dark_lime_s50.png differ diff --git a/mods/unifieddyes/textures/unifieddyes_dark_magenta.png b/mods/unifieddyes/textures/unifieddyes_dark_magenta.png new file mode 100644 index 0000000..4f622b8 Binary files /dev/null and b/mods/unifieddyes/textures/unifieddyes_dark_magenta.png differ diff --git a/mods/unifieddyes/textures/unifieddyes_dark_magenta_s50.png b/mods/unifieddyes/textures/unifieddyes_dark_magenta_s50.png new file mode 100644 index 0000000..1c461dc Binary files /dev/null and b/mods/unifieddyes/textures/unifieddyes_dark_magenta_s50.png differ diff --git a/mods/unifieddyes/textures/unifieddyes_dark_orange.png b/mods/unifieddyes/textures/unifieddyes_dark_orange.png new file mode 100644 index 0000000..10bfdd2 Binary files /dev/null and b/mods/unifieddyes/textures/unifieddyes_dark_orange.png differ diff --git a/mods/unifieddyes/textures/unifieddyes_dark_orange_s50.png b/mods/unifieddyes/textures/unifieddyes_dark_orange_s50.png new file mode 100644 index 0000000..2a794de Binary files /dev/null and b/mods/unifieddyes/textures/unifieddyes_dark_orange_s50.png differ diff --git a/mods/unifieddyes/textures/unifieddyes_dark_red.png b/mods/unifieddyes/textures/unifieddyes_dark_red.png new file mode 100644 index 0000000..504c359 Binary files /dev/null and b/mods/unifieddyes/textures/unifieddyes_dark_red.png differ diff --git a/mods/unifieddyes/textures/unifieddyes_dark_red_s50.png b/mods/unifieddyes/textures/unifieddyes_dark_red_s50.png new file mode 100644 index 0000000..4e7f01b Binary files /dev/null and b/mods/unifieddyes/textures/unifieddyes_dark_red_s50.png differ diff --git a/mods/unifieddyes/textures/unifieddyes_dark_redviolet.png b/mods/unifieddyes/textures/unifieddyes_dark_redviolet.png new file mode 100644 index 0000000..79f1b15 Binary files /dev/null and b/mods/unifieddyes/textures/unifieddyes_dark_redviolet.png differ diff --git a/mods/unifieddyes/textures/unifieddyes_dark_redviolet_s50.png b/mods/unifieddyes/textures/unifieddyes_dark_redviolet_s50.png new file mode 100644 index 0000000..889329e Binary files /dev/null and b/mods/unifieddyes/textures/unifieddyes_dark_redviolet_s50.png differ diff --git a/mods/unifieddyes/textures/unifieddyes_dark_skyblue.png b/mods/unifieddyes/textures/unifieddyes_dark_skyblue.png new file mode 100644 index 0000000..dc6e928 Binary files /dev/null and b/mods/unifieddyes/textures/unifieddyes_dark_skyblue.png differ diff --git a/mods/unifieddyes/textures/unifieddyes_dark_skyblue_s50.png b/mods/unifieddyes/textures/unifieddyes_dark_skyblue_s50.png new file mode 100644 index 0000000..ac32c49 Binary files /dev/null and b/mods/unifieddyes/textures/unifieddyes_dark_skyblue_s50.png differ diff --git a/mods/unifieddyes/textures/unifieddyes_dark_violet.png b/mods/unifieddyes/textures/unifieddyes_dark_violet.png new file mode 100644 index 0000000..b093fd0 Binary files /dev/null and b/mods/unifieddyes/textures/unifieddyes_dark_violet.png differ diff --git a/mods/unifieddyes/textures/unifieddyes_dark_violet_s50.png b/mods/unifieddyes/textures/unifieddyes_dark_violet_s50.png new file mode 100644 index 0000000..c507491 Binary files /dev/null and b/mods/unifieddyes/textures/unifieddyes_dark_violet_s50.png differ diff --git a/mods/unifieddyes/textures/unifieddyes_dark_yellow.png b/mods/unifieddyes/textures/unifieddyes_dark_yellow.png new file mode 100644 index 0000000..7bb6225 Binary files /dev/null and b/mods/unifieddyes/textures/unifieddyes_dark_yellow.png differ diff --git a/mods/unifieddyes/textures/unifieddyes_dark_yellow_s50.png b/mods/unifieddyes/textures/unifieddyes_dark_yellow_s50.png new file mode 100644 index 0000000..c391292 Binary files /dev/null and b/mods/unifieddyes/textures/unifieddyes_dark_yellow_s50.png differ diff --git a/mods/unifieddyes/textures/unifieddyes_darkgrey.png b/mods/unifieddyes/textures/unifieddyes_darkgrey.png new file mode 100644 index 0000000..61b13d0 Binary files /dev/null and b/mods/unifieddyes/textures/unifieddyes_darkgrey.png differ diff --git a/mods/unifieddyes/textures/unifieddyes_green_s50.png b/mods/unifieddyes/textures/unifieddyes_green_s50.png new file mode 100644 index 0000000..8f8fb73 Binary files /dev/null and b/mods/unifieddyes/textures/unifieddyes_green_s50.png differ diff --git a/mods/unifieddyes/textures/unifieddyes_light_aqua.png b/mods/unifieddyes/textures/unifieddyes_light_aqua.png new file mode 100644 index 0000000..80458e2 Binary files /dev/null and b/mods/unifieddyes/textures/unifieddyes_light_aqua.png differ diff --git a/mods/unifieddyes/textures/unifieddyes_light_blue.png b/mods/unifieddyes/textures/unifieddyes_light_blue.png new file mode 100644 index 0000000..19f001d Binary files /dev/null and b/mods/unifieddyes/textures/unifieddyes_light_blue.png differ diff --git a/mods/unifieddyes/textures/unifieddyes_light_cyan.png b/mods/unifieddyes/textures/unifieddyes_light_cyan.png new file mode 100644 index 0000000..1ff5580 Binary files /dev/null and b/mods/unifieddyes/textures/unifieddyes_light_cyan.png differ diff --git a/mods/unifieddyes/textures/unifieddyes_light_green.png b/mods/unifieddyes/textures/unifieddyes_light_green.png new file mode 100644 index 0000000..e549c6f Binary files /dev/null and b/mods/unifieddyes/textures/unifieddyes_light_green.png differ diff --git a/mods/unifieddyes/textures/unifieddyes_light_lime.png b/mods/unifieddyes/textures/unifieddyes_light_lime.png new file mode 100644 index 0000000..e5d797e Binary files /dev/null and b/mods/unifieddyes/textures/unifieddyes_light_lime.png differ diff --git a/mods/unifieddyes/textures/unifieddyes_light_magenta.png b/mods/unifieddyes/textures/unifieddyes_light_magenta.png new file mode 100644 index 0000000..08bed5b Binary files /dev/null and b/mods/unifieddyes/textures/unifieddyes_light_magenta.png differ diff --git a/mods/unifieddyes/textures/unifieddyes_light_orange.png b/mods/unifieddyes/textures/unifieddyes_light_orange.png new file mode 100644 index 0000000..b92b000 Binary files /dev/null and b/mods/unifieddyes/textures/unifieddyes_light_orange.png differ diff --git a/mods/unifieddyes/textures/unifieddyes_light_red.png b/mods/unifieddyes/textures/unifieddyes_light_red.png new file mode 100644 index 0000000..ecc8bd8 Binary files /dev/null and b/mods/unifieddyes/textures/unifieddyes_light_red.png differ diff --git a/mods/unifieddyes/textures/unifieddyes_light_redviolet.png b/mods/unifieddyes/textures/unifieddyes_light_redviolet.png new file mode 100644 index 0000000..2e01d6f Binary files /dev/null and b/mods/unifieddyes/textures/unifieddyes_light_redviolet.png differ diff --git a/mods/unifieddyes/textures/unifieddyes_light_skyblue.png b/mods/unifieddyes/textures/unifieddyes_light_skyblue.png new file mode 100644 index 0000000..9fc1a44 Binary files /dev/null and b/mods/unifieddyes/textures/unifieddyes_light_skyblue.png differ diff --git a/mods/unifieddyes/textures/unifieddyes_light_violet.png b/mods/unifieddyes/textures/unifieddyes_light_violet.png new file mode 100644 index 0000000..41d45fa Binary files /dev/null and b/mods/unifieddyes/textures/unifieddyes_light_violet.png differ diff --git a/mods/unifieddyes/textures/unifieddyes_light_yellow.png b/mods/unifieddyes/textures/unifieddyes_light_yellow.png new file mode 100644 index 0000000..ed140d1 Binary files /dev/null and b/mods/unifieddyes/textures/unifieddyes_light_yellow.png differ diff --git a/mods/unifieddyes/textures/unifieddyes_lightgrey.png b/mods/unifieddyes/textures/unifieddyes_lightgrey.png new file mode 100644 index 0000000..97ab01f Binary files /dev/null and b/mods/unifieddyes/textures/unifieddyes_lightgrey.png differ diff --git a/mods/unifieddyes/textures/unifieddyes_lime.png b/mods/unifieddyes/textures/unifieddyes_lime.png new file mode 100644 index 0000000..5e6d5bf Binary files /dev/null and b/mods/unifieddyes/textures/unifieddyes_lime.png differ diff --git a/mods/unifieddyes/textures/unifieddyes_lime_s50.png b/mods/unifieddyes/textures/unifieddyes_lime_s50.png new file mode 100644 index 0000000..d02762e Binary files /dev/null and b/mods/unifieddyes/textures/unifieddyes_lime_s50.png differ diff --git a/mods/unifieddyes/textures/unifieddyes_magenta_s50.png b/mods/unifieddyes/textures/unifieddyes_magenta_s50.png new file mode 100644 index 0000000..aaf9d51 Binary files /dev/null and b/mods/unifieddyes/textures/unifieddyes_magenta_s50.png differ diff --git a/mods/unifieddyes/textures/unifieddyes_medium_aqua.png b/mods/unifieddyes/textures/unifieddyes_medium_aqua.png new file mode 100644 index 0000000..3659c18 Binary files /dev/null and b/mods/unifieddyes/textures/unifieddyes_medium_aqua.png differ diff --git a/mods/unifieddyes/textures/unifieddyes_medium_aqua_s50.png b/mods/unifieddyes/textures/unifieddyes_medium_aqua_s50.png new file mode 100644 index 0000000..fcd8869 Binary files /dev/null and b/mods/unifieddyes/textures/unifieddyes_medium_aqua_s50.png differ diff --git a/mods/unifieddyes/textures/unifieddyes_medium_blue.png b/mods/unifieddyes/textures/unifieddyes_medium_blue.png new file mode 100644 index 0000000..4da240d Binary files /dev/null and b/mods/unifieddyes/textures/unifieddyes_medium_blue.png differ diff --git a/mods/unifieddyes/textures/unifieddyes_medium_blue_s50.png b/mods/unifieddyes/textures/unifieddyes_medium_blue_s50.png new file mode 100644 index 0000000..bd6e0f9 Binary files /dev/null and b/mods/unifieddyes/textures/unifieddyes_medium_blue_s50.png differ diff --git a/mods/unifieddyes/textures/unifieddyes_medium_cyan.png b/mods/unifieddyes/textures/unifieddyes_medium_cyan.png new file mode 100644 index 0000000..e8015f6 Binary files /dev/null and b/mods/unifieddyes/textures/unifieddyes_medium_cyan.png differ diff --git a/mods/unifieddyes/textures/unifieddyes_medium_cyan_s50.png b/mods/unifieddyes/textures/unifieddyes_medium_cyan_s50.png new file mode 100644 index 0000000..de14506 Binary files /dev/null and b/mods/unifieddyes/textures/unifieddyes_medium_cyan_s50.png differ diff --git a/mods/unifieddyes/textures/unifieddyes_medium_green.png b/mods/unifieddyes/textures/unifieddyes_medium_green.png new file mode 100644 index 0000000..ecc5f06 Binary files /dev/null and b/mods/unifieddyes/textures/unifieddyes_medium_green.png differ diff --git a/mods/unifieddyes/textures/unifieddyes_medium_green_s50.png b/mods/unifieddyes/textures/unifieddyes_medium_green_s50.png new file mode 100644 index 0000000..c9681b3 Binary files /dev/null and b/mods/unifieddyes/textures/unifieddyes_medium_green_s50.png differ diff --git a/mods/unifieddyes/textures/unifieddyes_medium_lime.png b/mods/unifieddyes/textures/unifieddyes_medium_lime.png new file mode 100644 index 0000000..2060bac Binary files /dev/null and b/mods/unifieddyes/textures/unifieddyes_medium_lime.png differ diff --git a/mods/unifieddyes/textures/unifieddyes_medium_lime_s50.png b/mods/unifieddyes/textures/unifieddyes_medium_lime_s50.png new file mode 100644 index 0000000..6eadc25 Binary files /dev/null and b/mods/unifieddyes/textures/unifieddyes_medium_lime_s50.png differ diff --git a/mods/unifieddyes/textures/unifieddyes_medium_magenta.png b/mods/unifieddyes/textures/unifieddyes_medium_magenta.png new file mode 100644 index 0000000..0f6144d Binary files /dev/null and b/mods/unifieddyes/textures/unifieddyes_medium_magenta.png differ diff --git a/mods/unifieddyes/textures/unifieddyes_medium_magenta_s50.png b/mods/unifieddyes/textures/unifieddyes_medium_magenta_s50.png new file mode 100644 index 0000000..d5ca0dd Binary files /dev/null and b/mods/unifieddyes/textures/unifieddyes_medium_magenta_s50.png differ diff --git a/mods/unifieddyes/textures/unifieddyes_medium_orange.png b/mods/unifieddyes/textures/unifieddyes_medium_orange.png new file mode 100644 index 0000000..d131b9c Binary files /dev/null and b/mods/unifieddyes/textures/unifieddyes_medium_orange.png differ diff --git a/mods/unifieddyes/textures/unifieddyes_medium_orange_s50.png b/mods/unifieddyes/textures/unifieddyes_medium_orange_s50.png new file mode 100644 index 0000000..7e08bcf Binary files /dev/null and b/mods/unifieddyes/textures/unifieddyes_medium_orange_s50.png differ diff --git a/mods/unifieddyes/textures/unifieddyes_medium_red.png b/mods/unifieddyes/textures/unifieddyes_medium_red.png new file mode 100644 index 0000000..28bc56d Binary files /dev/null and b/mods/unifieddyes/textures/unifieddyes_medium_red.png differ diff --git a/mods/unifieddyes/textures/unifieddyes_medium_red_s50.png b/mods/unifieddyes/textures/unifieddyes_medium_red_s50.png new file mode 100644 index 0000000..0eef916 Binary files /dev/null and b/mods/unifieddyes/textures/unifieddyes_medium_red_s50.png differ diff --git a/mods/unifieddyes/textures/unifieddyes_medium_redviolet.png b/mods/unifieddyes/textures/unifieddyes_medium_redviolet.png new file mode 100644 index 0000000..1143e27 Binary files /dev/null and b/mods/unifieddyes/textures/unifieddyes_medium_redviolet.png differ diff --git a/mods/unifieddyes/textures/unifieddyes_medium_redviolet_s50.png b/mods/unifieddyes/textures/unifieddyes_medium_redviolet_s50.png new file mode 100644 index 0000000..a314935 Binary files /dev/null and b/mods/unifieddyes/textures/unifieddyes_medium_redviolet_s50.png differ diff --git a/mods/unifieddyes/textures/unifieddyes_medium_skyblue.png b/mods/unifieddyes/textures/unifieddyes_medium_skyblue.png new file mode 100644 index 0000000..f1e935f Binary files /dev/null and b/mods/unifieddyes/textures/unifieddyes_medium_skyblue.png differ diff --git a/mods/unifieddyes/textures/unifieddyes_medium_skyblue_s50.png b/mods/unifieddyes/textures/unifieddyes_medium_skyblue_s50.png new file mode 100644 index 0000000..bd2423e Binary files /dev/null and b/mods/unifieddyes/textures/unifieddyes_medium_skyblue_s50.png differ diff --git a/mods/unifieddyes/textures/unifieddyes_medium_violet.png b/mods/unifieddyes/textures/unifieddyes_medium_violet.png new file mode 100644 index 0000000..dd8b5fa Binary files /dev/null and b/mods/unifieddyes/textures/unifieddyes_medium_violet.png differ diff --git a/mods/unifieddyes/textures/unifieddyes_medium_violet_s50.png b/mods/unifieddyes/textures/unifieddyes_medium_violet_s50.png new file mode 100644 index 0000000..4b6de6a Binary files /dev/null and b/mods/unifieddyes/textures/unifieddyes_medium_violet_s50.png differ diff --git a/mods/unifieddyes/textures/unifieddyes_medium_yellow.png b/mods/unifieddyes/textures/unifieddyes_medium_yellow.png new file mode 100644 index 0000000..578f5b9 Binary files /dev/null and b/mods/unifieddyes/textures/unifieddyes_medium_yellow.png differ diff --git a/mods/unifieddyes/textures/unifieddyes_medium_yellow_s50.png b/mods/unifieddyes/textures/unifieddyes_medium_yellow_s50.png new file mode 100644 index 0000000..ce141da Binary files /dev/null and b/mods/unifieddyes/textures/unifieddyes_medium_yellow_s50.png differ diff --git a/mods/unifieddyes/textures/unifieddyes_orange_s50.png b/mods/unifieddyes/textures/unifieddyes_orange_s50.png new file mode 100644 index 0000000..fe62b73 Binary files /dev/null and b/mods/unifieddyes/textures/unifieddyes_orange_s50.png differ diff --git a/mods/unifieddyes/textures/unifieddyes_red_s50.png b/mods/unifieddyes/textures/unifieddyes_red_s50.png new file mode 100644 index 0000000..6aef4c6 Binary files /dev/null and b/mods/unifieddyes/textures/unifieddyes_red_s50.png differ diff --git a/mods/unifieddyes/textures/unifieddyes_redviolet.png b/mods/unifieddyes/textures/unifieddyes_redviolet.png new file mode 100644 index 0000000..2cb0692 Binary files /dev/null and b/mods/unifieddyes/textures/unifieddyes_redviolet.png differ diff --git a/mods/unifieddyes/textures/unifieddyes_redviolet_s50.png b/mods/unifieddyes/textures/unifieddyes_redviolet_s50.png new file mode 100644 index 0000000..a438d9d Binary files /dev/null and b/mods/unifieddyes/textures/unifieddyes_redviolet_s50.png differ diff --git a/mods/unifieddyes/textures/unifieddyes_skyblue.png b/mods/unifieddyes/textures/unifieddyes_skyblue.png new file mode 100644 index 0000000..85aa3c5 Binary files /dev/null and b/mods/unifieddyes/textures/unifieddyes_skyblue.png differ diff --git a/mods/unifieddyes/textures/unifieddyes_skyblue_s50.png b/mods/unifieddyes/textures/unifieddyes_skyblue_s50.png new file mode 100644 index 0000000..1d6834b Binary files /dev/null and b/mods/unifieddyes/textures/unifieddyes_skyblue_s50.png differ diff --git a/mods/unifieddyes/textures/unifieddyes_violet_s50.png b/mods/unifieddyes/textures/unifieddyes_violet_s50.png new file mode 100644 index 0000000..620e42c Binary files /dev/null and b/mods/unifieddyes/textures/unifieddyes_violet_s50.png differ diff --git a/mods/unifieddyes/textures/unifieddyes_yellow_s50.png b/mods/unifieddyes/textures/unifieddyes_yellow_s50.png new file mode 100644 index 0000000..a3b5f0b Binary files /dev/null and b/mods/unifieddyes/textures/unifieddyes_yellow_s50.png differ diff --git a/mods/unifieddyes/unifieddyes_base.png b/mods/unifieddyes/unifieddyes_base.png new file mode 100644 index 0000000..a51e50d Binary files /dev/null and b/mods/unifieddyes/unifieddyes_base.png differ diff --git a/mods/vessels/README.txt b/mods/vessels/README.txt new file mode 100644 index 0000000..150b501 --- /dev/null +++ b/mods/vessels/README.txt @@ -0,0 +1,45 @@ +Minetest 0.4 mod: vessels +========================== + +Crafts +------- +Glass bottle (yields 10) + + G - G + G - G + - G - + +Drinking Glass (yields 14) + + G - G + G - G + G G G + +Heavy Steel Bottle (yields 5) + + S - S + S - S + - S - + +License of source code: +----------------------- +Copyright (C) 2012 Vanessa Ezekowitz +Version 2012-09-02 +Modifications by Perttu Ahola + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU Lesser General Public License as published by +the Free Software Foundation; either version 2.1 of the License, or +(at your option) any later version. + +http://www.gnu.org/licenses/lgpl-2.1.html + +License of media (textures and sounds) +-------------------------------------- +WTFPL + +Authors of media files +----------------------- +Unless specifically noted, +Copyright (C) 2012 Vanessa Ezekowitz + diff --git a/mods/vessels/depends.txt b/mods/vessels/depends.txt new file mode 100644 index 0000000..4ad96d5 --- /dev/null +++ b/mods/vessels/depends.txt @@ -0,0 +1 @@ +default diff --git a/mods/vessels/init.lua b/mods/vessels/init.lua new file mode 100644 index 0000000..6ca8771 --- /dev/null +++ b/mods/vessels/init.lua @@ -0,0 +1,116 @@ +-- Minetest 0.4 mod: vessels +-- See README.txt for licensing and other information. + +minetest.register_node("vessels:glass_bottle", { + description = "Glass Bottle (empty)", + drawtype = "plantlike", + tiles = {"vessels_glass_bottle.png"}, + inventory_image = "vessels_glass_bottle_inv.png", + wield_image = "vessels_glass_bottle.png", + paramtype = "light", + walkable = false, + selection_box = { + type = "fixed", + fixed = {-0.25, -0.5, -0.25, 0.25, 0.4, 0.25} + }, + groups = {vessel=1,dig_immediate=3,attached_node=1}, + sounds = default.node_sound_glass_defaults(), +}) + +minetest.register_craft( { + output = "vessels:glass_bottle 10", + recipe = { + { "default:glass", "", "default:glass" }, + { "default:glass", "", "default:glass" }, + { "", "default:glass", "" } + } +}) + +minetest.register_node("vessels:drinking_glass", { + description = "Drinking Glass (empty)", + drawtype = "plantlike", + tiles = {"vessels_drinking_glass.png"}, + inventory_image = "vessels_drinking_glass_inv.png", + wield_image = "vessels_drinking_glass.png", + paramtype = "light", + walkable = false, + selection_box = { + type = "fixed", + fixed = {-0.25, -0.5, -0.25, 0.25, 0.4, 0.25} + }, + groups = {vessel=1,dig_immediate=3,attached_node=1}, + sounds = default.node_sound_glass_defaults(), +}) + +minetest.register_craft( { + output = "vessels:drinking_glass 14", + recipe = { + { "default:glass", "", "default:glass" }, + { "default:glass", "", "default:glass" }, + { "default:glass", "default:glass", "default:glass" } + } +}) + +minetest.register_node("vessels:steel_bottle", { + description = "Heavy Steel Bottle (empty)", + drawtype = "plantlike", + tiles = {"vessels_steel_bottle.png"}, + inventory_image = "vessels_steel_bottle_inv.png", + wield_image = "vessels_steel_bottle.png", + paramtype = "light", + walkable = false, + selection_box = { + type = "fixed", + fixed = {-0.25, -0.5, -0.25, 0.25, 0.4, 0.25} + }, + groups = {vessel=1,dig_immediate=3,attached_node=1}, + sounds = default.node_sound_defaults(), +}) + +minetest.register_craft( { + output = "vessels:steel_bottle 5", + recipe = { + { "default:steel_ingot", "", "default:steel_ingot" }, + { "default:steel_ingot", "", "default:steel_ingot" }, + { "", "default:steel_ingot", "" } + } +}) + + +-- Make sure we can recycle them + +minetest.register_craftitem("vessels:glass_fragments", { + description = "Pile of Glass Fragments", + inventory_image = "vessels_glass_fragments.png", +}) + +minetest.register_craft( { + type = "shapeless", + output = "vessels:glass_fragments", + recipe = { + "vessels:glass_bottle", + "vessels:glass_bottle", + }, +}) + +minetest.register_craft( { + type = "shapeless", + output = "vessels:glass_fragments", + recipe = { + "vessels:drinking_glass", + "vessels:drinking_glass", + }, +}) + +minetest.register_craft({ + type = "cooking", + output = "default:glass", + recipe = "vessels:glass_fragments", +}) + +minetest.register_craft( { + type = "cooking", + output = "default:steel_ingot", + recipe = "vessels:steel_bottle", +}) + diff --git a/mods/vessels/textures/alternates/vessels_drinking_glass.png b/mods/vessels/textures/alternates/vessels_drinking_glass.png new file mode 100644 index 0000000..cd5bbff Binary files /dev/null and b/mods/vessels/textures/alternates/vessels_drinking_glass.png differ diff --git a/mods/vessels/textures/alternates/vessels_glass_bottle.png b/mods/vessels/textures/alternates/vessels_glass_bottle.png new file mode 100644 index 0000000..f5e183b Binary files /dev/null and b/mods/vessels/textures/alternates/vessels_glass_bottle.png differ diff --git a/mods/vessels/textures/alternates/vessels_steel_bottle.png b/mods/vessels/textures/alternates/vessels_steel_bottle.png new file mode 100644 index 0000000..7e66816 Binary files /dev/null and b/mods/vessels/textures/alternates/vessels_steel_bottle.png differ diff --git a/mods/vessels/textures/vessels_drinking_glass.png b/mods/vessels/textures/vessels_drinking_glass.png new file mode 100644 index 0000000..0e29866 Binary files /dev/null and b/mods/vessels/textures/vessels_drinking_glass.png differ diff --git a/mods/vessels/textures/vessels_drinking_glass_inv.png b/mods/vessels/textures/vessels_drinking_glass_inv.png new file mode 100644 index 0000000..3ad9027 Binary files /dev/null and b/mods/vessels/textures/vessels_drinking_glass_inv.png differ diff --git a/mods/vessels/textures/vessels_glass_bottle.png b/mods/vessels/textures/vessels_glass_bottle.png new file mode 100644 index 0000000..f5e183b Binary files /dev/null and b/mods/vessels/textures/vessels_glass_bottle.png differ diff --git a/mods/vessels/textures/vessels_glass_bottle_inv.png b/mods/vessels/textures/vessels_glass_bottle_inv.png new file mode 100644 index 0000000..5cf3199 Binary files /dev/null and b/mods/vessels/textures/vessels_glass_bottle_inv.png differ diff --git a/mods/vessels/textures/vessels_glass_fragments.png b/mods/vessels/textures/vessels_glass_fragments.png new file mode 100644 index 0000000..f60e8b5 Binary files /dev/null and b/mods/vessels/textures/vessels_glass_fragments.png differ diff --git a/mods/vessels/textures/vessels_steel_bottle.png b/mods/vessels/textures/vessels_steel_bottle.png new file mode 100644 index 0000000..d27a7cd Binary files /dev/null and b/mods/vessels/textures/vessels_steel_bottle.png differ diff --git a/mods/vessels/textures/vessels_steel_bottle_inv.png b/mods/vessels/textures/vessels_steel_bottle_inv.png new file mode 100644 index 0000000..37e34fb Binary files /dev/null and b/mods/vessels/textures/vessels_steel_bottle_inv.png differ diff --git a/mods/wool/README.txt b/mods/wool/README.txt new file mode 100644 index 0000000..9db1332 --- /dev/null +++ b/mods/wool/README.txt @@ -0,0 +1,28 @@ +Minetest 0.4 mod: wool +====================== + +Mostly backward-compatible with jordach's 16-color wool mod. + +License of source code: +----------------------- +Copyright (C) 2012 Perttu Ahola (celeron55) + +This program is free software. It comes without any warranty, to +the extent permitted by applicable law. You can redistribute it +and/or modify it under the terms of the Do What The Fuck You Want +To Public License, Version 2, as published by Sam Hocevar. See +http://sam.zoy.org/wtfpl/COPYING for more details. + +License of media (textures and sounds) +-------------------------------------- +Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0) +http://creativecommons.org/licenses/by-sa/3.0/ + +Authors of media files +----------------------- +Cisoun: +- wool_black.png wool_brown.png wool_dark_green.png wool_green.png +- wool_magenta.png wool_pink.png wool_violet.png wool_yellow.png wool_blue.png +- wool_cyan.png wool_dark_grey.png wool_grey.png wool_orange.png wool_red.png +- wool_white.png + diff --git a/mods/wool/depends.txt b/mods/wool/depends.txt new file mode 100644 index 0000000..4ad96d5 --- /dev/null +++ b/mods/wool/depends.txt @@ -0,0 +1 @@ +default diff --git a/mods/wool/init.lua b/mods/wool/init.lua new file mode 100644 index 0000000..14cffa5 --- /dev/null +++ b/mods/wool/init.lua @@ -0,0 +1,49 @@ +-- minetest/wool/init.lua + +-- Backwards compatibility with jordach's 16-color wool mod +minetest.register_alias("wool:dark_blue", "wool:blue") +minetest.register_alias("wool:gold", "wool:yellow") + +local wool = {} +-- This uses a trick: you can first define the recipes using all of the base +-- colors, and then some recipes using more specific colors for a few non-base +-- colors available. When crafting, the last recipes will be checked first. +wool.dyes = { + {"white", "White", nil}, + {"grey", "Grey", "basecolor_grey"}, + {"black", "Black", "basecolor_black"}, + {"red", "Red", "basecolor_red"}, + {"yellow", "Yellow", "basecolor_yellow"}, + {"green", "Green", "basecolor_green"}, + {"cyan", "Cyan", "basecolor_cyan"}, + {"blue", "Blue", "basecolor_blue"}, + {"magenta", "Magenta", "basecolor_magenta"}, + {"orange", "Orange", "excolor_orange"}, + {"violet", "Violet", "excolor_violet"}, + {"brown", "Brown", "unicolor_dark_orange"}, + {"pink", "Pink", "unicolor_light_red"}, + {"dark_grey", "Dark Grey", "unicolor_darkgrey"}, + {"dark_green", "Dark Green", "unicolor_dark_green"}, +} + +for _, row in ipairs(wool.dyes) do + local name = row[1] + local desc = row[2] + local craft_color_group = row[3] + -- Node Definition + minetest.register_node("wool:"..name, { + description = desc.." Wool", + tiles = {"wool_"..name..".png"}, + groups = {snappy=2,choppy=2,oddly_breakable_by_hand=3,flammable=3,wool=1}, + sounds = default.node_sound_defaults(), + }) + if craft_color_group then + -- Crafting from dye and white wool + minetest.register_craft({ + type = "shapeless", + output = 'wool:'..name, + recipe = {'group:dye,'..craft_color_group, 'group:wool'}, + }) + end +end + diff --git a/mods/wool/textures/wool_black.png b/mods/wool/textures/wool_black.png new file mode 100644 index 0000000..698684b Binary files /dev/null and b/mods/wool/textures/wool_black.png differ diff --git a/mods/wool/textures/wool_blue.png b/mods/wool/textures/wool_blue.png new file mode 100644 index 0000000..e1a95d2 Binary files /dev/null and b/mods/wool/textures/wool_blue.png differ diff --git a/mods/wool/textures/wool_brown.png b/mods/wool/textures/wool_brown.png new file mode 100644 index 0000000..52e9fe1 Binary files /dev/null and b/mods/wool/textures/wool_brown.png differ diff --git a/mods/wool/textures/wool_cyan.png b/mods/wool/textures/wool_cyan.png new file mode 100644 index 0000000..019c694 Binary files /dev/null and b/mods/wool/textures/wool_cyan.png differ diff --git a/mods/wool/textures/wool_dark_green.png b/mods/wool/textures/wool_dark_green.png new file mode 100644 index 0000000..bdfdded Binary files /dev/null and b/mods/wool/textures/wool_dark_green.png differ diff --git a/mods/wool/textures/wool_dark_grey.png b/mods/wool/textures/wool_dark_grey.png new file mode 100644 index 0000000..f3abd34 Binary files /dev/null and b/mods/wool/textures/wool_dark_grey.png differ diff --git a/mods/wool/textures/wool_green.png b/mods/wool/textures/wool_green.png new file mode 100644 index 0000000..acf7e4f Binary files /dev/null and b/mods/wool/textures/wool_green.png differ diff --git a/mods/wool/textures/wool_grey.png b/mods/wool/textures/wool_grey.png new file mode 100644 index 0000000..77a988c Binary files /dev/null and b/mods/wool/textures/wool_grey.png differ diff --git a/mods/wool/textures/wool_magenta.png b/mods/wool/textures/wool_magenta.png new file mode 100644 index 0000000..0f3104e Binary files /dev/null and b/mods/wool/textures/wool_magenta.png differ diff --git a/mods/wool/textures/wool_orange.png b/mods/wool/textures/wool_orange.png new file mode 100644 index 0000000..531bb4f Binary files /dev/null and b/mods/wool/textures/wool_orange.png differ diff --git a/mods/wool/textures/wool_pink.png b/mods/wool/textures/wool_pink.png new file mode 100644 index 0000000..f87d47c Binary files /dev/null and b/mods/wool/textures/wool_pink.png differ diff --git a/mods/wool/textures/wool_red.png b/mods/wool/textures/wool_red.png new file mode 100644 index 0000000..a5ae98a Binary files /dev/null and b/mods/wool/textures/wool_red.png differ diff --git a/mods/wool/textures/wool_violet.png b/mods/wool/textures/wool_violet.png new file mode 100644 index 0000000..5ba79b3 Binary files /dev/null and b/mods/wool/textures/wool_violet.png differ diff --git a/mods/wool/textures/wool_white.png b/mods/wool/textures/wool_white.png new file mode 100644 index 0000000..175baf3 Binary files /dev/null and b/mods/wool/textures/wool_white.png differ diff --git a/mods/wool/textures/wool_yellow.png b/mods/wool/textures/wool_yellow.png new file mode 100644 index 0000000..7c2b765 Binary files /dev/null and b/mods/wool/textures/wool_yellow.png differ