From 602c51d1f3be58d9bb995e9bbae0d301ac1eea56 Mon Sep 17 00:00:00 2001 From: Kotolegokot Date: Tue, 4 Dec 2012 15:12:09 +0600 Subject: [PATCH] Removed snow --- mods/snow/depends.txt | 1 - mods/snow/init.lua | 86 --------------------------- mods/snow/textures/snow_self.png | Bin 501 -> 0 bytes mods/snow/textures/snow_snowball.png | Bin 608 -> 0 bytes 4 files changed, 87 deletions(-) delete mode 100644 mods/snow/depends.txt delete mode 100644 mods/snow/init.lua delete mode 100644 mods/snow/textures/snow_self.png delete mode 100644 mods/snow/textures/snow_snowball.png diff --git a/mods/snow/depends.txt b/mods/snow/depends.txt deleted file mode 100644 index 331d858..0000000 --- a/mods/snow/depends.txt +++ /dev/null @@ -1 +0,0 @@ -default \ No newline at end of file diff --git a/mods/snow/init.lua b/mods/snow/init.lua deleted file mode 100644 index 447b8f3..0000000 --- a/mods/snow/init.lua +++ /dev/null @@ -1,86 +0,0 @@ -snow = {} -snow.interval = 60 -snow.chance = 5 - -for i = 1, 10 do - minetest.register_node("snow:self_"..i,{ - description = "Snow", - tiles = {"snow_self.png"}, - particle_image = {"snow_self.png"}, - is_ground_content = true, - groups = {snow=1,crumbly=3,falling_node=1,not_in_creative_inventory=1,drop_on_dig=1}, - sounds = default.node_sound_sand_defaults(), - drawtype = "nodebox", - paramtype = "light", - walkable = false, - buildable_to = i < 6, - node_box = { - type = "fixed", - fixed = { - {-0.5,-0.5,-0.5,0.5,-0.5+i/10,0.5}, - }, - }, - selection_box = { - type = "fixed", - fixed = { - {-0.5,-0.5,-0.5,0.5,-0.5+i/10,0.5}, - }, - }, - drop = "snow:snowball "..i-1, - }) -end - -minetest.register_abm({ - nodenames = {"group:snow"}, - interval = snow.interval, - chance = snow.chance, - action = function(pos, node) - if seasons.get_season() == seasons.seasons[4] then - local n = tonumber(node.name:sub(-1)) + 1 - if n ~= 11 then - minetest.env:set_node(pos, {name = "snow:self_"..n}) - end - end - end, -}) - -minetest.register_abm({ - nodenames = {"group:snow"}, - interval = snow.interval, - chance = 2, - action = function(pos, node) - if seasons.get_season() ~= seasons.seasons[4] then - local n = tonumber(node.name:sub(11,-1)) - 1 - if n ~= 0 then - minetest.env:set_node(pos, {name = "snow:self_"..n}) - else - minetest.env:set_node(pos, {name = "air"}) - end - end - end, -}) - -minetest.register_abm({ - nodenames = {"default:dirt_with_grass"}, - interval = snow.interval, - chance = 2, - action = function(pos, node) - if seasons.get_season() == seasons.seasons[4] then - set_node_instead_air({x=pos.x, y=pos.y + 1, z=pos.z}, {name = "snow:self_1"}) - end - end, -}) - -minetest.register_craftitem("snow:snowball", { - description = "Snowball", - inventory_image = "snow_snowball.png", -}) - -minetest.register_craft({ - output = "snow:self_10", - recipe = { - {"snow:snowball","snow:snowball","snow:snowball"}, - {"snow:snowball","snow:snowball","snow:snowball"}, - {"snow:snowball","snow:snowball","snow:snowball"}, - } -}) \ No newline at end of file diff --git a/mods/snow/textures/snow_self.png b/mods/snow/textures/snow_self.png deleted file mode 100644 index c88ffc551a8283ad13148017de04098c305897c1..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 501 zcmVPx#24YJ`L;(K){{a7>y{D4^000SaNLh0L01FcU01FcV0GgZ_00007bV*G`2iyz+ z5HAKZJ;JyE00DJLL_t(I%T<%vj>9krMGpo$Y5xCHQ+476=Aj}=ks?d6fxCd5=NTfx zS_^01y#~2mq?eT8mmM?#>tkGc$Vc0Eh_gj)6RMOEp&Qvl42JWDA6^xjcbUa!|({O|9NZQD>) z-tYGp_51yf?3$5X61KYo&|0JSj=NJzVXZ}Zik4zU1anTt7(63UnHlcRaU7JVfSH&D zYpr+TS}U!!Tc3U3zb+(#?3`a~4R^owNpu-Wt>ll0xNXX$6!e*#HjXh6k?$Pj#pm;3 z+qNG{c>=gQ?#`T(S}P)goaY(Iy|wlOGZS;b)>^lSiNf+?-*?=dh`4P_8p(ItHgfC} ziS^zwGsYOqIVq)}s`ohOBqsc%o9Ha7rt;4P$|5Q5Q^+v}$8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