From cc0d5fff0326c7f3fa887330ac1b0025d61ddd74 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Mon, 23 Jun 2014 14:27:59 +0200 Subject: [PATCH] Add snowball item and snowball node drops --- init.lua | 10 ++++++++++ textures/pedology_lump_snow.png | Bin 0 -> 405 bytes 2 files changed, 10 insertions(+) create mode 100644 textures/pedology_lump_snow.png diff --git a/init.lua b/init.lua index d586ec2..994d2f7 100644 --- a/init.lua +++ b/init.lua @@ -453,6 +453,11 @@ pedology.register_sucky_group("gravel_coarse", "coarse gravel", "big stone", 2, 0, 1, 1, {500, 750, 1000}, 1, sound_gravel_coarse, { crumbly = 1, sun_dry = 1 }) --[[ snow and ice ]] +minetest.register_craftitem("pedology:lump_snow", { + description = "snow ball", + wield_image = "pedology_lump_snow.png", + inventory_image = "pedology_lump_snow.png", +}) -- TODO: slushy snow is very instable snow; it should be destroyed when touched minetest.register_node("pedology:snow_slush", { @@ -461,6 +466,7 @@ minetest.register_node("pedology:snow_slush", { sounds = { footstep = { name = "pedology_snow_soft_footstep", gain = 1 } }, is_ground_content = true, groups = { crumbly = 1, level = 1, melts = 1, falling_node = 1}, + drop = "", freezemelt = "pedology:water_fresh_source", }) @@ -470,6 +476,7 @@ minetest.register_node("pedology:snow_soft", { sounds = { footstep = { name = "pedology_snow_soft_footstep", gain = 1 } }, is_ground_content = true, groups = { crumbly = 2, level = 2, melts = 1, falling_node = 1 }, + drop = "pedology:lump_snow 1", freezemelt = "pedology:water_fresh_source", }) @@ -479,6 +486,7 @@ minetest.register_node("pedology:snow", { sounds = { footstep = { name = "pedology_snow_footstep", gain = 0.9 } }, is_ground_content = true, groups = { crumbly = 3, level = 3, melts = 1, falling_node = 1 }, + drop = "pedology:lump_snow 2", freezemelt = "pedology:water_fresh_source", }) @@ -488,6 +496,7 @@ minetest.register_node("pedology:snow_packing", { sounds = { footstep = { name = "pedology_snow_footstep", gain = 1 } }, is_ground_content = true, groups = { crumbly = 3, level = 3, melts = 1 }, + drop = "pedology:lump_snow 3", freezemelt = "pedology:water_fresh_source", }) @@ -497,6 +506,7 @@ minetest.register_node("pedology:snow_firn", { sounds = { footstep = { name = "pedology_ice_white_footstep", gain = 0.7 } }, is_ground_content = true, groups = { crumbly = 2, cracky = 2, level = 4, melts = 1 }, + drop = "pedology:lump_snow 4", freezemelt = "pedology:water_fresh_source", }) diff --git a/textures/pedology_lump_snow.png b/textures/pedology_lump_snow.png new file mode 100644 index 0000000000000000000000000000000000000000..dad4d834cefd7719eee489aff0787bd0d0734649 GIT binary patch literal 405 zcmV;G0c!qiB8KtE9((NWc2^dl zQD8jEGQ3@tUcGvHRq($dV@*}nQL@Mu-@F{$H4M-Wst--CI|atzU({CYxP!6HWgq!{ zzuW17-QZ<<-{>H`%p$wpb!bhW7*B^`HY)-C)w3qvMlp2lF;;njJtiMDNLq zf@1$I!3%pufnmV>mHkE_xQ=yvbXL_ZSur6DfjrO2@(i0=npH*LyJyGS2z2e5DDo7V zL8CI+dqWH!hzJ5P5(h`;I<_(pQQD@%r8yxuvV20fULh)Y*P{qxQkuHvZZ;c#r0Z|r z_26*I^ynC|!qE4ikR+C}T!JWfvtPV_cP^t>sHz%`;Jw3IOJWU4nh|1TF~6r?Rs6X5 z`R`Z$^!baPo}O_qouV<~ou^!ue7yJ|ygK{=|BbBw5Z}HU00000NkvXXu0mjfdQ!Qg literal 0 HcmV?d00001