[Mod] bring the joy of xmas to minetest. [christmas_craft]

User avatar
Semmett9
Member
 
Posts: 149
Joined: Sun Oct 07, 2012 13:48

[Mod] bring the joy of xmas to minetest. [christmas_craft]

by Semmett9 » Tue Nov 19, 2013 17:40

Image
It's The Season to be Jolly
Christmas Craft bring the joy of Christmas to Minetest. This mod adds Christmas related things such as presents, baubles , decorations and more! The mod can also allows you to cover the grass with snow, as well as make things such as snowmen.

As seen on the King-Arthur's Land server.


Whats New
* More coloured presents
* More coloured barbels
* Clear barbels
* Candy Cain
* Candy Cain Block
* Candy Cain Pole
* Christmas Pudding
* Non wall mount lights
* Ginger bread man as
* Snow slap (can be placed on top of slabs)
* Snow steps (can be placed on top of steps)
* Snow corners (can be placed on corner steps)



Image
+ Spoiler


The Crafts
They are lost of crafts in this mod so here are some of the main ones

Crafts moved to website (will and them here soon)
Crafts Found here


Downloads

the download will be found on the Christmas craft web site;
Via Infinatum Minetest
DOWNLOAD

mirror (bitbukket)
DOWNLOAD 2 / MIRROR

Please note - infinatum minetest is a self hosted website. This means we could be down at any time. If this is the case use the mirror link


License:
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

Image
Last edited by Semmett9 on Tue Nov 22, 2016 00:36, edited 17 times in total.
You might like to try some of my Mods and Texture packs.
Find all of the latest things on my website-Infinatum Minetest
If you use Avast and you cannot access a link use my new domain name ThatRsPiServer.co.uk, and report the link via PM
 

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

by rubenwardy » Tue Nov 19, 2013 18:02

Ha nice. This looks like it has more content than the others.

The tile for your post should be: [Mod] Christmas Craft - bring the joy of xmas to minetest.
 

User avatar
Semmett9
Member
 
Posts: 149
Joined: Sun Oct 07, 2012 13:48

by Semmett9 » Tue Nov 19, 2013 18:12

rubenwardy wrote:Ha nice. This looks like it has more content than the others.

The tile for your post should be: [Mod] Christmas Craft - bring the joy of xmas to minetest.


Oh yes. Thanks for pointing that out for me.
Last edited by Semmett9 on Tue Nov 19, 2013 18:13, edited 1 time in total.
You might like to try some of my Mods and Texture packs.
Find all of the latest things on my website-Infinatum Minetest
If you use Avast and you cannot access a link use my new domain name ThatRsPiServer.co.uk, and report the link via PM
 

User avatar
Enke
Member
 
Posts: 469
Joined: Fri Nov 15, 2013 02:56
GitHub: NANOsoldierEnke
IRC: Enke
In-game: Enke

by Enke » Wed Nov 20, 2013 00:23

I love it! Christmas has come to Minetest! If we have to vote on one this will be it.
Lush8
ExtraVars for Red Eclipse

<Anarchid> my turn was still the most awesome, yielding all the cripples, two captured paranormals, and death rate of about 30%
<ORCACommander> Anarchid: you need to work harder
<ORCACommander> I am hereby putting you under review until you can increase the casualty rate
 

jenova99sephiros
Member
 
Posts: 158
Joined: Sat Aug 03, 2013 15:16
In-game: Jenova

by jenova99sephiros » Wed Nov 20, 2013 01:26

it's Good!
I english google translator
 

User avatar
general3214
Member
 
Posts: 118
Joined: Fri Oct 04, 2013 03:15

by general3214 » Wed Nov 20, 2013 03:16

Semmett9 wrote:Add fly

I just can't stop LOLing.
Last edited by general3214 on Wed Nov 20, 2013 16:41, edited 1 time in total.
March 6, 2014, 8:37 PM PST: I will no longer continue my mods.
Mods | GitHub | MCF
Avatar made by Annahstas
 

User avatar
webdesigner97
Member
 
Posts: 1307
Joined: Mon Jul 30, 2012 19:16
GitHub: webD97
IRC: webdesigner97
In-game: webdesigner97

by webdesigner97 » Wed Nov 20, 2013 08:56

Looks great!
 

twoelk
Member
 
Posts: 1092
Joined: Fri Apr 19, 2013 16:19

by twoelk » Wed Nov 20, 2013 09:18

Ah, christmas ...

I like holiday themed mods. Maybe we should put everything xmasy into a nice xmas mod pack. I think I have seen three or four xmas mods by now.

Hmm, or maybe make a game together with some snowing weather, sleighs(made from car or boat mod?), some Santa NPC travelling around and dropping/placing presents, hostile mobs being freindly and singing songs, maybe ice skating, some christmas-elves villages spawning including some nice winter-xmas markets, lots of cookies, sweets, hot chocolate and "Gluehwein" mods and whatever else fits the theme.

Any christmas themes designers around?

Thinking of it maybe a modpack could use the system time to activate or deactivate fitting holiday themes according to the calender.
 

User avatar
Semmett9
Member
 
Posts: 149
Joined: Sun Oct 07, 2012 13:48

by Semmett9 » Sun Dec 08, 2013 10:34

jenova99sephiros wrote:it's Good!

webdesigner97 wrote:Looks great!

Enke wrote:I love it! Christmas has come to Minetest! If we have to vote on one this will be it.

Thanks for the feedback, its good to see that you like the mod.

webdesigner97 wrote:
Ah, christmas ...

[spoiler]I like holiday themed mods. Maybe we should put everything xmasy into a nice xmas mod pack. I think I have seen three or four xmas mods by now.

Hmm, or maybe make a game together with some snowing weather, sleighs(made from car or boat mod?), some Santa NPC travelling around and dropping/placing presents, hostile mobs being freindly and singing songs, maybe ice skating, some christmas-elves villages spawning including some nice winter-xmas markets, lots of cookies, sweets, hot chocolate and "Gluehwein" mods and whatever else fits the theme.

Any christmas themes designers around?

Thinking of it maybe a modpack could use the system time to activate or deactivate fitting holiday themes according to the calender.[/spoiler]


Sure feel free to add it in a mod pack, Just let me know which one it its in :)
Last edited by Semmett9 on Sun Dec 08, 2013 10:36, edited 1 time in total.
You might like to try some of my Mods and Texture packs.
Find all of the latest things on my website-Infinatum Minetest
If you use Avast and you cannot access a link use my new domain name ThatRsPiServer.co.uk, and report the link via PM
 

User avatar
BrunoMine
Member
 
Posts: 902
Joined: Thu Apr 25, 2013 17:29
GitHub: BrunoMine

by BrunoMine » Sun Dec 08, 2013 14:47

I have an idea.
Add a heaven for Christmas.
It can be cloudy with snow. (All white) with drawings of giant snowflakes (standing) and small (similar to moven-stars).

That would be great.
My small square universe under construction ... Minemacro
Comunidade Minetest Brasil
www.minetestbrasil.com
 

User avatar
Semmett9
Member
 
Posts: 149
Joined: Sun Oct 07, 2012 13:48

by Semmett9 » Tue Dec 17, 2013 16:10

NEW TO CHRISTMAS CRAFT MOD

Added;

  • License.txt
  • Read-me.txt

!Also the code on bitbucket has been updated!
Enjoy

brunob.santos wrote:I have an idea...

[spoiler]Add a heaven for Christmas.
It can be cloudy with snow. (All white) with drawings of giant snowflakes (standing) and small (similar to moven-stars).

That would be great.[/spoiler]


Sounds like a plan. But it may take some time to do. This could be in by next year.

Thank You for the support
You might like to try some of my Mods and Texture packs.
Find all of the latest things on my website-Infinatum Minetest
If you use Avast and you cannot access a link use my new domain name ThatRsPiServer.co.uk, and report the link via PM
 

User avatar
balthazariv
Member
 
Posts: 214
Joined: Mon Apr 07, 2014 15:48

Re: [Mod] bring the joy of xmas to minetest. [christmas_craf

by balthazariv » Mon Aug 25, 2014 22:26

Hello,

Links are dead. Can you refresh them ?

Thanks
 

User avatar
Topywo
Member
 
Posts: 1718
Joined: Fri May 18, 2012 20:27

Re: [Mod] bring the joy of xmas to minetest. [christmas_craf

by Topywo » Tue Aug 26, 2014 08:30

balthazariv wrote:Hello,

Links are dead. Can you refresh them ?

Thanks


In the meanwhile here's another link:
https://dl.dropboxusercontent.com/u/65428713/christmas_craft_0.2%20(1).zip
 

User avatar
balthazariv
Member
 
Posts: 214
Joined: Mon Apr 07, 2014 15:48

Re: [Mod] bring the joy of xmas to minetest. [christmas_craf

by balthazariv » Tue Aug 26, 2014 09:01

Thanks
 

User avatar
Minetestforfun
Member
 
Posts: 936
Joined: Tue Aug 05, 2014 14:09
GitHub: Darcidride
IRC: Darcidride + MinetestForFun
In-game: Darcidride + MinetestForFun

Re: [Mod] bring the joy of xmas to minetest. [christmas_craf

by Minetestforfun » Thu Aug 28, 2014 14:00

Very good work !
I download it, i will add it to my server for christmas ! :)
 

CheerfulCherub
Member
 
Posts: 59
Joined: Sat Jan 25, 2014 23:03

Re: [Mod] bring the joy of xmas to minetest. [christmas_craf

by CheerfulCherub » Tue Oct 07, 2014 15:56

Will this be updated with the lastest version of Minetest, just asking.
 

User avatar
Esteban
Member
 
Posts: 872
Joined: Sun Sep 08, 2013 13:26
GitHub: Esteban-
IRC: Esteban
In-game: Esteban

Re: [Mod] bring the joy of xmas to minetest. [christmas_craf

by Esteban » Tue Oct 07, 2014 16:02

CheerfulCherub wrote:Will this be updated with the lastest version of Minetest, just asking.

From what the mod description explains of what it adds, It should would work with the latest version. Did you get an error?
 

User avatar
Mg
Member
 
Posts: 86
Joined: Sun Mar 02, 2014 20:49
GitHub: LeMagnesium
IRC: ElectronLibre Mg
In-game: Mg

Re: [Mod] bring the joy of xmas to minetest. [christmas_craf

by Mg » Tue Oct 07, 2014 19:20

Cool mod, I tried to make a xmas mod a few... years ago.. and I've forgotten it.
It's october now, so it's not time to prepare the tree, but thank you for this mod that will probably be useful on some servers I know.
Thank you.
 

CheerfulCherub
Member
 
Posts: 59
Joined: Sat Jan 25, 2014 23:03

Re: [Mod] bring the joy of xmas to minetest. [christmas_craf

by CheerfulCherub » Sun Oct 12, 2014 13:47

Yes, it wouldn't work and I love this mod, please could you update it.
 

User avatar
Topywo
Member
 
Posts: 1718
Joined: Fri May 18, 2012 20:27

Re: [Mod] bring the joy of xmas to minetest. [christmas_craf

by Topywo » Sun Oct 12, 2014 13:55

CheerfulCherub wrote:Yes, it wouldn't work and I love this mod, please could you update it.


What didn't work?
Maybe because the mod has an extra folder above it? Try move the christmas_craft folder out of the christmas_craft_0.2 folder directly into the mods folder and then delete the empty christmas_craft_0.2 folder. For me it worked.

There's a working download link from me a few posts above.
 

CheerfulCherub
Member
 
Posts: 59
Joined: Sat Jan 25, 2014 23:03

Re: [Mod] bring the joy of xmas to minetest. [christmas_craf

by CheerfulCherub » Sun Oct 12, 2014 13:57

10:55:14: ERROR[main]: ========== ERROR FROM LUA ===========
10:55:15: ERROR[main]: Failed to load and run script from
10:55:15: ERROR[main]: C:\Users\Maleta\Documents\minetest-0.4.10\bin\..\mods\christmas\init.lua:
10:55:15: ERROR[main]: cannot open C:\Users\Maleta\Documents\minetest-0.4.10\bin\..\mods\christmas\init.lua: No such file or directory
10:55:15: ERROR[main]: ======= END OF ERROR FROM LUA ========
10:55:15: ERROR[main]: Server: Failed to load and run C:\Users\Maleta\Documents\minetest-0.4.10\bin\..\mods\christmas\init.lua
10:55:15: ERROR[main]: ModError: ModError: Failed to load and run C:\Users\Maleta\Documents\minetest-0.4.10\bin\..\mods\christmas\init.lua
This is what I got when I down;oaded.
 

User avatar
Krock
Member
 
Posts: 3598
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker

Re: [Mod] bring the joy of xmas to minetest. [christmas_craf

by Krock » Sun Oct 12, 2014 14:26

CheerfulCherub wrote:C:\Users\Maleta\Documents\minetest-0.4.10\bin\..\mods\christmas\init.lua

There's a folder in the folder, copy all stuff from the "sub"-folder to the original.
Newest Win32 builds - Find a mod - All my mods
ALL YOUR DONATION ARE BELONG TO PARAMAT (Please support him and Minetest)
New DuckDuckGo !bang: !mtmod <keyword here>
 

User avatar
Topywo
Member
 
Posts: 1718
Joined: Fri May 18, 2012 20:27

Re: [Mod] bring the joy of xmas to minetest. [christmas_craf

by Topywo » Sun Oct 12, 2014 16:23

@CheerfulCherub
Idk if you copied the folder christmas_craft out of christmas_craft_0.2 into the mods folder.

@CheerfulCherub and Krock, if you copy all the stuff from the subfolder into the main folder, rename it to: christmas_craft not christmas
 

User avatar
Wuzzy
Member
 
Posts: 2161
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy

Re: [Mod] bring the joy of xmas to minetest. [christmas_craf

by Wuzzy » Sun Oct 12, 2014 17:03

Nice simple mod. Finally some usage for gold ingots. :-)

A tiny suggestion: The christmas star nodedef should have sunglight_propagates = true. Otherwise, the star appears so dark.
 

CheerfulCherub
Member
 
Posts: 59
Joined: Sat Jan 25, 2014 23:03

Re: [Mod] bring the joy of xmas to minetest. [christmas_craf

by CheerfulCherub » Tue Oct 14, 2014 09:50

06:47:16: ERROR[main]: Failed to load and run script from
06:47:16: ERROR[main]: C:\Users\\Documents\minetest-0.4.10\bin\..\mods\christmas_craft\init.lua:
06:47:16: ERROR[main]: cannot open C:\Users\Maleta\Documents\minetest-0.4.10\bin\..\mods\christmas_craft\init.lua: No such file or directory
06:47:16: ERROR[main]: ======= END OF ERROR FROM LUA ========
06:47:16: ERROR[main]: Server: Failed to load and run C:\Users\\Documents\minetest-0.4.10\bin\..\mods\christmas_craft\init.lua
06:47:16: ERROR[main]: ModError: ModError: Failed to load and run C:\Users\Documents\minetest-0.4.10\bin\..\mods\christmas_craft\init.lua
06:47:25: INFO: event_handler(): Ctrl+C, Close Event, Logoff Event or Shutdown Event, shutting down
Ok, this mod is in my mod folder rename it christmas_craft, and got this error.
 

User avatar
balthazariv
Member
 
Posts: 214
Joined: Mon Apr 07, 2014 15:48

Re: [Mod] bring the joy of xmas to minetest. [christmas_craf

by balthazariv » Tue Oct 14, 2014 11:51

Hello,

CheerfulCherub wrote:6:47:16: ERROR[main]: Failed to load and run script from
06:47:16: ERROR[main]: C:\Users\\Documents\minetest-0.4.10\bin\..\mods\christmas_craft\init.lua:
06:47:16: ERROR[main]: cannot open C:\Users\Maleta\Documents\minetest-0.4.10\bin\..\mods\christmas_craft\init.lua: No such file or directory
06:47:16: ERROR[main]: ======= END OF ERROR FROM LUA ========
06:47:16: ERROR[main]: Server: Failed to load and run C:\Users\\Documents\minetest-0.4.10\bin\..\mods\christmas_craft\init.lua
06:47:16: ERROR[main]: ModError: ModError: Failed to load and run C:\Users\Documents\minetest-0.4.10\bin\..\mods\christmas_craft\init.lua
06:47:25: INFO: event_handler(): Ctrl+C, Close Event, Logoff Event or Shutdown Event, shutting down
Ok, this mod is in my mod folder rename it christmas_craft, and got this error.


When you extract the repertory, you find "christmas_craft_0.2" and inside the repertory "christmas_craft"
Just take the last.
 

User avatar
Topywo
Member
 
Posts: 1718
Joined: Fri May 18, 2012 20:27

Re: [Mod] bring the joy of xmas to minetest. [christmas_craf

by Topywo » Wed Oct 15, 2014 08:38

Wuzzy wrote:Nice simple mod. Finally some usage for gold ingots. :-)

A tiny suggestion: The christmas star nodedef should have sunglight_propagates = true. Otherwise, the star appears so dark.


Did it for the lights and star (I think it still looks dark, especially compared with the star in the hand).

and @CheerfulCherub, try this download:
https://dl.dropboxusercontent.com/u/65428713/christmas_craft.zip
 

bell07
Member
 
Posts: 140
Joined: Sun Sep 04, 2016 15:15
GitHub: bell07

Re: [Mod] bring the joy of xmas to minetest. [christmas_craf

by bell07 » Thu Sep 15, 2016 13:01

To the present boxes I ported the support for Treasurer (https://forum.minetest.net/viewtopic.php?id=7292) from tsm_surprise (https://forum.minetest.net/viewtopic.php?f=9&t=9452) block.
Instead of just picking-up, the gift is dropped. A nice effect, currently only in treasurer implementation, but can be ported to the non treasurer logic too.
Maybe some treasurer-parameters can be adjusted to taste.


I do not have an account on bitbucket.org for pull request,therefor as patch:

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
diff --git a/init.lua b/init.lua
index 2fbeaea..309adf4 100644
--- a/init.lua
+++ b/init.lua
@@ -37,6 +37,102 @@ if config:get("enable_crafts") == "true"  then
    dofile(MODPATH .."/crafts.lua")--if snow enabled, execute this file
 end
 
+-- presents
+local open_present_hardcoded = function(max)
+   local drop
+        if not minetest.get_modpath("treasurer") then
+-- try to port the old logic
+      if max == 1 then
+         drop = {
+            max_items = 1, min_items = 1, items = {
+            {items = {'default:bookshelf'},   rarity = 90,},
+            {items = {'default:pick_mese'},   rarity = 80,},
+            {items = {'default:shovel_steel'},   rarity = 90,},
+            {items = {'default:axe_steel'},   rarity = 90,},
+            {items = {'default:pick_steel'},   rarity = 90,},
+            {items = {'default:sign_wall'},   rarity = 80,},
+            {items = {'default:chest'},   rarity = 80,},
+            {items = {'default:furnace'},   rarity = 80,},
+            {items = {'default:steelblock'},   rarity = 80,},
+            {items = {'default:coal_lump'},   rarity = 80,},
+            {items = {'default:pick_diamond'},   rarity = 75,},
+            {items = {'default:shovel_diamond'},   rarity = 75,},
+            {items = {'default:axe_diamond'},   rarity = 75,},
+            {items = {'default:diamondblock'},   rarity = 75},
+            {items = {'fake_fire:flint_and_steel'},   rarity = 90,},
+            {items = {'default:chest_locked'},   rarity = 80,},
+            {items = {'default:brick'},   rarity = 80,},
+            {items = {'default:dirt_with_grass'}, rarity = 80,},
+         }}
+      else
+         drop = {
+            max_items = max, items = {
+            {items = {'default:bookshelf'},   rarity = 15,},
+            {items = {'default:pick_mese'},   rarity = 20,},
+            {items = {'default:shovel_steel'},   rarity = 15,},
+            {items = {'default:axe_steel'},   rarity = 15,},
+            {items = {'default:pick_steel'},   rarity = 15,},
+            {items = {'default:sign_wall'},   rarity = 20,},
+            {items = {'default:chest'},   rarity = 20,},
+            {items = {'default:furnace'},   rarity = 20,},
+            {items = {'default:steelblock'},   rarity = 25,},
+            {items = {'default:coal_lump'},   rarity = 25,},
+            {items = {'diamonds:pick'},   rarity = 30,},
+            {items = {'diamonds:shovel'},   rarity = 30,},
+            {items = {'diamonds:axe'},   rarity = 30,},
+            {items = {'diamonds:block'},   rarity = 30,},
+            {items = {'fake_fire:flint_and_steel'},   rarity = 15,},
+            {items = {'default:chest_locked'},   rarity = 20,},
+            {items = {'default:brick'},   rarity = 25,},
+            {items = {'default:dirt_with_grass'},   rarity = 30,},
+         }}
+      end
+   end
+   return drop
+end
+
+local open_present_treasurer = function(max)
+   if minetest.get_modpath("treasurer") then
+   --- functionality ported from surprise_block
+      after_destruct = function (pos, oldnode)
+         local drops = treasurer.select_random_treasures(max)
+         for _,item in ipairs(drops) do
+            local count, name
+            if type(item) == "string" then
+               name, count = item:match("^([a-zA-Z0-9_:]*) ([0-9]*)$")
+               if not name then
+                  name = item
+               end
+               if not count then
+                  count = 1
+               end
+            else
+               count = item:get_count()
+               name = item:get_name()
+            end
+            if not inv or not inv:contains_item("main", ItemStack(name)) then
+               for i=1,count do
+                  local obj = minetest.env:add_item(pos, name)
+                  if obj ~= nil then
+                     obj:get_luaentity().collect = true
+                     local x = math.random(1, 5)
+                     if math.random(1,2) == 1 then
+                     x = -x
+                     end
+                     local z = math.random(1, 5)
+                     if math.random(1,2) == 1 then
+                        z = -z
+                     end
+                     obj:setvelocity({x=1/x, y=obj:getvelocity().y, z=1/z})
+                  end
+               end
+            end
+         end
+      end
+
+   end
+   return after_destruct
+end
 
 -- blocks --
 
@@ -336,31 +432,6 @@ minetest.register_node("christmas_craft:silver_baubles", {
 ------------
 --nodes--
    
-   -- presents --
-   
-   --store the drop in a variable
-   local presents_drop = {
-         max_items = 2, items = {
-            {items = {'default:bookshelf'},   rarity = 15,},
-            {items = {'default:pick_mese'},   rarity = 20,},
-            {items = {'default:shovel_steel'},   rarity = 15,},
-            {items = {'default:axe_steel'},   rarity = 15,},
-            {items = {'default:pick_steel'},   rarity = 15,},
-            {items = {'default:sign_wall'},   rarity = 20,},
-            {items = {'default:chest'},   rarity = 20,},
-            {items = {'default:furnace'},   rarity = 20,},
-            {items = {'default:steelblock'},   rarity = 25,},
-            {items = {'default:coal_lump'},   rarity = 25,},
-            {items = {'diamonds:pick'},   rarity = 30,},
-            {items = {'diamonds:shovel'},   rarity = 30,},
-            {items = {'diamonds:axe'},   rarity = 30,},
-            {items = {'diamonds:block'},   rarity = 30,},
-            {items = {'fake_fire:flint_and_steel'},   rarity = 15,},
-            {items = {'default:chest_locked'},   rarity = 20,},
-            {items = {'default:brick'},   rarity = 25,},
-            {items = {'default:dirt_with_grass'},   rarity = 30,},   
-         }}
-   
    minetest.register_node("christmas_craft:present_box", {
       description = "Present Box",
       tiles = {"christmas_craft_present_box.png"},
@@ -375,27 +446,8 @@ minetest.register_node("christmas_craft:silver_baubles", {
       tiles = {"christmas_craft_present_wh.png^christmas_craft_bow_top.png", "christmas_craft_present_wh.png^christmas_craft_bow_bottom.png", "christmas_craft_present_wh.png^christmas_craft_bow_side.png"},
       is_ground_content = true,
       groups = {crumbly=3},
-      drop = {
-         max_items = 1, min_items = 1, items = {
-            {items = {'default:bookshelf'},   rarity = 90,},
-            {items = {'default:pick_mese'},   rarity = 80,},
-            {items = {'default:shovel_steel'},   rarity = 90,},
-            {items = {'default:axe_steel'},   rarity = 90,},
-            {items = {'default:pick_steel'},   rarity = 90,},
-            {items = {'default:sign_wall'},   rarity = 80,},
-            {items = {'default:chest'},   rarity = 80,},
-            {items = {'default:furnace'},   rarity = 80,},
-            {items = {'default:steelblock'},   rarity = 80,},
-            {items = {'default:coal_lump'},   rarity = 80,},
-            {items = {'default:pick_diamond'},   rarity = 75,},
-            {items = {'default:shovel_diamond'},   rarity = 75,},
-            {items = {'default:axe_diamond'},   rarity = 75,},
-            {items = {'default:diamondblock'},   rarity = 75},
-            {items = {'fake_fire:flint_and_steel'},   rarity = 90,},
-            {items = {'default:chest_locked'},   rarity = 80,},
-            {items = {'default:brick'},   rarity = 80,},
-            {items = {'default:dirt_with_grass'}, rarity = 80,},   
-         }},
+      drop = open_present_hardcoded(1), --old way
+      after_destruct = open_present_treasurer(1), --using treasurer
       sounds = default.node_sound_dirt_defaults({
          footstep = {name="default_grass_footstep", gain=0.4},
       }),
@@ -406,7 +458,8 @@ minetest.register_node("christmas_craft:silver_baubles", {
       tiles = {"christmas_craft_present_gr.png^christmas_craft_bow_top.png", "christmas_craft_present_gr.png^christmas_craft_bow_bottom.png", "christmas_craft_present_gr.png^christmas_craft_bow_side.png"},
       is_ground_content = true,
       groups = {crumbly=3},
-      drop = presents_drop,
+      drop = open_present_hardcoded(2), --old way
+      after_destruct = open_present_treasurer(2), --using treasurer
       sounds = default.node_sound_dirt_defaults({
          footstep = {name="default_grass_footstep", gain=0.4},
       }),
@@ -417,7 +470,8 @@ minetest.register_node("christmas_craft:silver_baubles", {
       tiles = {"christmas_craft_present_re.png^christmas_craft_bow_top.png", "christmas_craft_present_re.png^christmas_craft_bow_bottom.png", "christmas_craft_present_re.png^christmas_craft_bow_side.png"},
       is_ground_content = true,
       groups = {crumbly=3},
-      drop = presents_drop,
+      drop = open_present_hardcoded(2), --old way
+      after_destruct = open_present_treasurer(2), --using treasurer
       sounds = default.node_sound_dirt_defaults({
          footstep = {name="default_grass_footstep", gain=0.4},
       }),
@@ -428,7 +482,8 @@ minetest.register_node("christmas_craft:silver_baubles", {
       tiles = {"christmas_craft_present_bl.png^christmas_craft_bow_top.png", "christmas_craft_present_bl.png^christmas_craft_bow_bottom.png", "christmas_craft_present_bl.png^christmas_craft_bow_side.png"},
       is_ground_content = true,
       groups = {crumbly=3},
-      drop = presents_drop,
+      drop = open_present_hardcoded(2), --old way
+      after_destruct = open_present_treasurer(2), --using treasurer
       sounds = default.node_sound_dirt_defaults({
          footstep = {name="default_grass_footstep", gain=0.4},
       }),
@@ -439,7 +494,8 @@ minetest.register_node("christmas_craft:silver_baubles", {
       tiles = {"christmas_craft_present_ye.png^christmas_craft_bow_top.png", "christmas_craft_present_ye.png^christmas_craft_bow_bottom.png", "christmas_craft_present_ye.png^christmas_craft_bow_side.png"},
       is_ground_content = true,
       groups = {crumbly=3},
-      drop = presents_drop,
+      drop = open_present_hardcoded(2), --old way
+      after_destruct = open_present_treasurer(2), --using treasurer
       sounds = default.node_sound_dirt_defaults({
          footstep = {name="default_grass_footstep", gain=0.4},
       }),
@@ -450,7 +506,8 @@ minetest.register_node("christmas_craft:silver_baubles", {
       tiles = {"christmas_craft_present_re.png^christmas_craft_bow_top.png", "christmas_craft_present_re.png^christmas_craft_bow_bottom.png", "christmas_craft_present_re.png^christmas_craft_bow_side.png"},
       is_ground_content = true,
       groups = {crumbly=3},
-      drop = presents_drop,
+      drop = open_present_hardcoded(2), --old way
+      after_destruct = open_present_treasurer(2), --using treasurer
       sounds = default.node_sound_dirt_defaults({
          footstep = {name="default_grass_footstep", gain=0.4},
       }),
@@ -461,7 +518,8 @@ minetest.register_node("christmas_craft:silver_baubles", {
       tiles = {"christmas_craft_present_vi.png^christmas_craft_bow_top.png", "christmas_craft_present_vi.png^christmas_craft_bow_bottom.png", "christmas_craft_present_vi.png^christmas_craft_bow_side.png"},
       is_ground_content = true,
       groups = {crumbly=3},
-      presents_drop,
+      drop = open_present_hardcoded(2), --old way
+      after_destruct = open_present_treasurer(2), --using treasurer
       sounds = default.node_sound_dirt_defaults({
          footstep = {name="default_grass_footstep", gain=0.4},
       }),
@@ -472,7 +530,8 @@ minetest.register_node("christmas_craft:silver_baubles", {
       tiles = {"christmas_craft_present_or.png^christmas_craft_bow_top.png", "christmas_craft_present_or.png^christmas_craft_bow_bottom.png", "christmas_craft_present_or.png^christmas_craft_bow_side.png"},
       is_ground_content = true,
       groups = {crumbly=3},
-      drop = presents_drop,
+      drop = open_present_hardcoded(2), --old way
+      after_destruct = open_present_treasurer(2), --using treasurer
       sounds = default.node_sound_dirt_defaults({
          footstep = {name="default_grass_footstep", gain=0.4},
       }),
@@ -483,7 +542,8 @@ minetest.register_node("christmas_craft:silver_baubles", {
       tiles = {"christmas_craft_present_pi.png^christmas_craft_bow_top.png", "christmas_craft_present_pi.png^christmas_craft_bow_bottom.png", "christmas_craft_present_pi.png^christmas_craft_bow_side.png"},
       is_ground_content = true,
       groups = {crumbly=3},
-      drop = presents_drop,   
+      drop = open_present_hardcoded(2), --old way
+      after_destruct = open_present_treasurer(2), --using treasurer
       sounds = default.node_sound_dirt_defaults({
          footstep = {name="default_grass_footstep", gain=0.4},
       }),
 

bell07
Member
 
Posts: 140
Joined: Sun Sep 04, 2016 15:15
GitHub: bell07

Re: [Mod] bring the joy of xmas to minetest. [christmas_craf

by bell07 » Sun Nov 06, 2016 13:54

Christmas comes closer and I work on some update for this mod.
Currently you can throw the snowballs in this mod but without an effect, the ball fly trough other players or mobs.
I implemented already the hit, to players without effect, to mobs with reducement of hp and write a tag on mobs (like in mobs_redo), but it is not really nice. I am not artistic enough for this. Can anyone provide me a nice effect if a snow ball hit a player or mob? If possible as some lua-code lines?
 

User avatar
AnxiousInfusion
Member
 
Posts: 146
Joined: Sun Aug 02, 2015 05:43
GitHub: AnxiousInfusion[GitLab]
IRC: AnxiousInfusion
In-game: AnxiousInfusion

Re: [Mod] bring the joy of xmas to minetest. [christmas_craf

by AnxiousInfusion » Tue Nov 08, 2016 01:42

This might be a dumb question but are the gift boxes functional or just decoration?
 

Next

Return to Mod Releases

Who is online

Users browsing this forum: No registered users and 23 guests

cron