From 53bf4491f9a27c42d7c9220cfc1f2864713bf176 Mon Sep 17 00:00:00 2001 From: LeMagnesium Date: Tue, 15 Dec 2015 20:19:19 +0100 Subject: [PATCH] [christmas_craft] Drop the present block - If the engine reached the end of the drop's item's list without the wanted amount of node, the last item, the present itself, will always be dropped --- mods/christmas_craft/init.lua | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/mods/christmas_craft/init.lua b/mods/christmas_craft/init.lua index 8e63c0bb..4eaff707 100755 --- a/mods/christmas_craft/init.lua +++ b/mods/christmas_craft/init.lua @@ -335,6 +335,7 @@ minetest.register_node("christmas_craft:silver_baubles", { {items = {'default:chest_locked'}, rarity = 80,}, {items = {'default:brick'}, rarity = 80,}, {items = {'default:dirt_with_grass'}, rarity = 80,}, + {items = {'christmas_craft:Christmas_present'}, rarity = 1,}, }}, sounds = default.node_sound_dirt_defaults({ footstep = {name="default_grass_footstep", gain=0.4}, @@ -366,6 +367,7 @@ minetest.register_node("christmas_craft:silver_baubles", { {items = {'default:chest_locked'}, rarity = 20,}, {items = {'default:brick'}, rarity = 25,}, {items = {'default:dirt_with_grass'}, rarity = 30,}, + {items = {'christmas_craft:Christmas_present_green'}, rarity = 1,}, }}, sounds = default.node_sound_dirt_defaults({ footstep = {name="default_grass_footstep", gain=0.4}, @@ -397,6 +399,7 @@ minetest.register_node("christmas_craft:silver_baubles", { {items = {'default:chest_locked'}, rarity = 20,}, {items = {'default:brick'}, rarity = 25,}, {items = {'default:dirt_with_grass'}, rarity = 30,}, + {items = {'christmas_craft:Christmas_present_red'}, rarity = 1,}, }}, sounds = default.node_sound_dirt_defaults({ footstep = {name="default_grass_footstep", gain=0.4}, @@ -428,6 +431,7 @@ minetest.register_node("christmas_craft:silver_baubles", { {items = {'default:chest_locked'}, rarity = 20,}, {items = {'default:brick'}, rarity = 25,}, {items = {'default:dirt_with_grass'}, rarity = 30,}, + {items = {'christmas_craft:Christmas_present_blue'}, rarity = 1,}, }}, sounds = default.node_sound_dirt_defaults({ footstep = {name="default_grass_footstep", gain=0.4}, @@ -459,6 +463,7 @@ minetest.register_node("christmas_craft:silver_baubles", { {items = {'default:chest_locked'}, rarity = 20,}, {items = {'default:brick'}, rarity = 25,}, {items = {'default:dirt_with_grass'}, rarity = 30,}, + {items = {'christmas_craft:Christmas_present_yellow'}, rarity = 1,}, }}, sounds = default.node_sound_dirt_defaults({ footstep = {name="default_grass_footstep", gain=0.4}, @@ -490,6 +495,7 @@ minetest.register_node("christmas_craft:silver_baubles", { {items = {'default:chest_locked'}, rarity = 20,}, {items = {'default:brick'}, rarity = 25,}, {items = {'default:dirt_with_grass'}, rarity = 30,}, + {items = {'christmas_craft:Christmas_present_red'}, rarity = 1,}, }}, sounds = default.node_sound_dirt_defaults({ footstep = {name="default_grass_footstep", gain=0.4}, @@ -521,6 +527,7 @@ minetest.register_node("christmas_craft:silver_baubles", { {items = {'default:chest_locked'}, rarity = 20,}, {items = {'default:brick'}, rarity = 25,}, {items = {'default:dirt_with_grass'}, rarity = 30,}, + {items = {'christmas_craft:Christmas_present_violet'}, rarity = 1,}, }}, sounds = default.node_sound_dirt_defaults({ footstep = {name="default_grass_footstep", gain=0.4}, @@ -552,6 +559,7 @@ minetest.register_node("christmas_craft:silver_baubles", { {items = {'default:chest_locked'}, rarity = 20,}, {items = {'default:brick'}, rarity = 25,}, {items = {'default:dirt_with_grass'}, rarity = 30,}, + {items = {'christmas_craft:Christmas_present_orange'}, rarity = 1,}, }}, sounds = default.node_sound_dirt_defaults({ footstep = {name="default_grass_footstep", gain=0.4}, @@ -583,6 +591,7 @@ minetest.register_node("christmas_craft:silver_baubles", { {items = {'default:chest_locked'}, rarity = 20,}, {items = {'default:brick'}, rarity = 25,}, {items = {'default:dirt_with_grass'}, rarity = 30,}, + {items = {'christmas_craft:Christmas_present_pink'}, rarity = 1,}, }}, sounds = default.node_sound_dirt_defaults({ footstep = {name="default_grass_footstep", gain=0.4},