add first illuna modifications

This commit is contained in:
tchncs 2015-12-22 21:20:09 +01:00
parent 7ff7a8e140
commit 9a0f306d2c
3 changed files with 111 additions and 111 deletions

View File

@ -24,19 +24,19 @@ minetest.register_craft({
}
})
minetest.register_craft({
output = "christmas_craft:snow_block",
recipe = {
{"christmas_craft:snowball","christmas_craft:snowball"},
{"christmas_craft:snowball","christmas_craft:snowball"},
}
})
--minetest.register_craft({
-- output = "christmas_craft:snow_block",
-- recipe = {
-- {"christmas_craft:snowball","christmas_craft:snowball"},
-- {"christmas_craft:snowball","christmas_craft:snowball"},
-- }
--})
minetest.register_craft({
output = "christmas_craft:snowman",
recipe = {
{"default:coal_lump","christmas_craft:snowball","default:coal_lump"},
{"christmas_craft:snowball","christmas_craft:snowball","christmas_craft:snowball"},
{"default:coal_lump","default:snow","default:coal_lump"},
{"default:snow","christmas_craft:snowball","default:snow"},
{"default:coal_lump","default:coal_lump","default:coal_lump"},
}
})
@ -51,12 +51,12 @@ minetest.register_craft({
}
})
minetest.register_craft({
output = "christmas_craft:snowball 4",
recipe = {
{"christmas_craft:snow_block"},
}
})
--minetest.register_craft({
-- output = "christmas_craft:snowball 4",
-- recipe = {
-- {"christmas_craft:snow_block"},
-- }
--})
--------------------------

View File

@ -9,7 +9,7 @@ local conf_table = config:to_table()
--look into readme.md how to change settings
local defaults = {
enable_snowing = "true",
enable_crafts = "true",
enable_crafts = "false",
}
--if not in conf file, create it.
@ -20,10 +20,10 @@ config:write();
end
end
if minetest.get_modpath("4seasons") ~=nil then
minetest.log("info", "found 4seasons mod. execute 4seasons.lua")
dofile(MODPATH .."/4seasons.lua")--if the 4seasons mod is installed execute this file
end
--if minetest.get_modpath("4seasons") ~=nil then
-- minetest.log("info", "found 4seasons mod. execute 4seasons.lua")
-- dofile(MODPATH .."/4seasons.lua")--if the 4seasons mod is installed execute this file
--end
--if snow enabled, let it snow
if config:get("enable_snowing") == "true" then
@ -345,16 +345,16 @@ minetest.register_node("christmas_craft:silver_baubles", {
{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 = {'moreores:mithril_block'}, 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 = {'default:pick_diamond'}, rarity = 30,},
{items = {'default:shovel_diamond'}, rarity = 30,},
{items = {'default:axe_diamond'}, rarity = 30,},
{items = {'default:diamondblock'}, rarity = 30,},
{items = {'fake_fire:flint_and_steel'}, rarity = 15,},
{items = {'default:chest_locked'}, rarity = 20,},
{items = {'default:brick'}, rarity = 25,},
@ -394,7 +394,7 @@ minetest.register_node("christmas_craft:silver_baubles", {
{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,},
{items = {'moreores:mithril_block'}, rarity = 60,},
}},
sounds = default.node_sound_dirt_defaults({
footstep = {name="default_grass_footstep", gain=0.4},
@ -581,8 +581,8 @@ minetest.register_node(":default:stick", {
drawtype = "torchlike",
--tiles = {"default_torch_on_floor.png", "default_torch_on_ceiling.png", "default_torch.png"},
tiles = {"side_stick.png"},
inventory_image = "side_stick.png",
wield_image = "side_stick.png",
inventory_image = "default_stick.png",
wield_image = "default_stick.png",
paramtype = "light",
paramtype2 = "wallmounted",
sunlight_propagates = true,
@ -604,7 +604,7 @@ snowball_VELOCITY=19
--Shoot snowball.
local snow_shoot_snowball=function (item, player, pointed_thing)
local playerpos=player:getpos()
local obj=minetest.env:add_entity({x=playerpos.x,y=playerpos.y+1.5,z=playerpos.z}, "christmas_craft:snowball_entity")
local obj=minetest.env:add_entity({x=playerpos.x,y=playerpos.y+1.5,z=playerpos.z}, "default:snow_entity")
local dir=player:get_look_dir()
obj:setvelocity({x=dir.x*snowball_VELOCITY, y=dir.y*snowball_VELOCITY, z=dir.z*snowball_VELOCITY})
obj:setacceleration({x=dir.x*-3, y=-snowball_GRAVITY, z=dir.z*-3})
@ -621,7 +621,7 @@ snow_snowball_ENTITY={
gravity=10,
velocity=19,
range=1,
textures = {"snowball.png"},
textures = {"default_snowball.png"},
lastpos={},
collisionbox = {-0.25,-0.25,-0.25, 0.25,0.25,0.25},
@ -650,44 +650,44 @@ snow_snowball_ENTITY.on_step = function(self, dtime)
end
minetest.register_entity("christmas_craft:snowball_entity", snow_snowball_ENTITY)
minetest.register_entity("default:snow_entity", snow_snowball_ENTITY)
--Snowball.
minetest.register_craftitem("christmas_craft:snowball", {
minetest.register_craftitem("default:snow", {
Description = "Snowball",
inventory_image = "snowball.png",
inventory_image = "default_snow.png",
on_use = snow_shoot_snowball,
})
--Snow.
minetest.register_node("christmas_craft:snow", {
tiles = {"snow.png"},
drawtype = "nodebox",
sunlight_propagates = true,
paramtype = "light",
param2 = nil,
--minetest.register_node("christmas_craft:snow", {
-- tiles = {"snow.png"},
-- drawtype = "nodebox",
-- sunlight_propagates = true,
-- paramtype = "light",
-- param2 = nil,
--param2 is reserved for what vegetation is hiding inside.
--mapgen defines the vegetation.
--1 = Moss
groups = {crumbly=3,melts=1,falling_node=1},
buildable_to = true,
drop = 'christmas_craft:snowball',
node_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.5, 0.5, -0.35, 0.5}
},
},
selection_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.5, 0.5, -0.35, 0.5}
},
},
sounds = default.node_sound_dirt_defaults({
footstep = {name="default_gravel_footstep", gain=0.45},
}),
})
-- groups = {crumbly=3,melts=1,falling_node=1},
-- buildable_to = true,
-- drop = 'christmas_craft:snowball',
-- node_box = {
-- type = "fixed",
-- fixed = {
-- {-0.5, -0.5, -0.5, 0.5, -0.35, 0.5}
-- },
-- },
-- selection_box = {
-- type = "fixed",
-- fixed = {
-- {-0.5, -0.5, -0.5, 0.5, -0.35, 0.5}
-- },
-- },
-- sounds = default.node_sound_dirt_defaults({
-- footstep = {name="default_gravel_footstep", gain=0.45},
-- }),
--})

106
snow.lua
View File

@ -1,62 +1,62 @@
print (" ---- Overrider christmas_craft = true! ---- ")
--print (" ---- Overrider christmas_craft = true! ---- ")
minetest.register_node(":default:dirt_with_grass", {
description = "Dirt with Grass",
tiles = {"snow.png", "default_dirt.png", "grass_w_snow_side.png"},
is_ground_content = true,
groups = {crumbly=3,soil=1},
drop = {
max_items = 2, items = {
{items = {'default:dirt'}, rarity = 0,},
{items = {'christmas_craft:snowball'}, rarity = 0,},
}},
sounds = default.node_sound_dirt_defaults({
footstep = {name="default_grass_footstep", gain=0.4},
}),
})
--minetest.register_node(":default:dirt_with_grass", {
-- description = "Dirt with Grass",
-- tiles = {"snow.png", "default_dirt.png", "grass_w_snow_side.png"},
-- is_ground_content = true,
-- groups = {crumbly=3,soil=1},
-- drop = {
-- max_items = 2, items = {
-- {items = {'default:dirt'}, rarity = 0,},
-- {items = {'christmas_craft:snowball'}, rarity = 0,},
-- }},
-- sounds = default.node_sound_dirt_defaults({
-- footstep = {name="default_grass_footstep", gain=0.4},
-- }),
--})
minetest.register_node(":default:leaves", {
description = "Leaves",
drawtype = "nodebox",
visual_scale = 1.3,
tiles = {"snow.png", "christmas_craft_leaves_top.png", "christmas_craft_leaves_side.png"},
paramtype = "light",
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(),
node_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
},
},
selection_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
},
},
})
--minetest.register_node(":default:leaves", {
-- description = "Leaves",
-- drawtype = "nodebox",
-- visual_scale = 1.3,
-- tiles = {"snow.png", "christmas_craft_leaves_top.png", "christmas_craft_leaves_side.png"},
-- paramtype = "light",
-- 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(),
-- node_box = {
-- type = "fixed",
-- fixed = {
-- {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
-- },
-- },
-- selection_box = {
-- type = "fixed",
-- fixed = {
-- {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
-- },
-- },
--
--})
print (" ---- Overrider christmas_craft [OK] ---- ")
--print (" ---- Overrider christmas_craft [OK] ---- ")