1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-11-16 07:20:31 +01:00

added rewrite texture woodsoils with christmas_craft

This commit is contained in:
crabman77 2015-12-22 18:21:12 +01:00
parent b060e77dbe
commit faa6a045a4
5 changed files with 39 additions and 12 deletions

View File

@ -27,16 +27,16 @@ minetest.register_craft({
minetest.register_craft({ minetest.register_craft({
output = "christmas_craft:snow_block", output = "christmas_craft:snow_block",
recipe = { recipe = {
{"christmas_craft:snowball","christmas_craft:snowball"}, {"default:snow","default:snow"},
{"christmas_craft:snowball","christmas_craft:snowball"}, {"default:snow","default:snow"},
} }
}) })
minetest.register_craft({ minetest.register_craft({
output = "christmas_craft:snowman", output = "christmas_craft:snowman",
recipe = { recipe = {
{"default:coal_lump","christmas_craft:snowball","default:coal_lump"}, {"default:coal_lump","default:snow","default:coal_lump"},
{"christmas_craft:snowball","christmas_craft:snowball","christmas_craft:snowball"}, {"default:snow","default:snow","default:snow"},
{"default:coal_lump","default:coal_lump","default:coal_lump"}, {"default:coal_lump","default:coal_lump","default:coal_lump"},
} }
}) })
@ -52,7 +52,7 @@ minetest.register_craft({
}) })
minetest.register_craft({ minetest.register_craft({
output = "christmas_craft:snowball 4", output = "default:snow 4",
recipe = { recipe = {
{"christmas_craft:snow_block"}, {"christmas_craft:snow_block"},
} }

View File

@ -1,2 +1,3 @@
default default
youngtrees? youngtrees?
woodsoils?

View File

@ -716,6 +716,9 @@ minetest.register_node("christmas_craft:silver_baubles", {
-- complex node -- -- complex node --
-- disable christmas_craft:snowball and make alias to default:snow
minetest.register_alias("christmas_craft:snowball", "default:snow")
--[[
snowball_DAMAGE=0.5 snowball_DAMAGE=0.5
snowball_GRAVITY=9 snowball_GRAVITY=9
snowball_VELOCITY=19 snowball_VELOCITY=19
@ -777,6 +780,7 @@ minetest.register_craftitem("christmas_craft:snowball", {
inventory_image = "snowball.png", inventory_image = "snowball.png",
on_use = snow_shoot_snowball, on_use = snow_shoot_snowball,
}) })
--]]
--Snow. --Snow.
minetest.register_node("christmas_craft:snow", { minetest.register_node("christmas_craft:snow", {
@ -790,7 +794,7 @@ minetest.register_node("christmas_craft:snow", {
--1 = Moss --1 = Moss
groups = {crumbly=3,melts=1,falling_node=1}, groups = {crumbly=3,melts=1,falling_node=1},
buildable_to = true, buildable_to = true,
drop = 'christmas_craft:snowball', drop = 'default:snow',
node_box = { node_box = {
type = "fixed", type = "fixed",
fixed = { fixed = {

View File

@ -29,7 +29,7 @@ minetest.register_node(":4seasons:grass_winter", {
drop = { drop = {
max_items = 2, items = { max_items = 2, items = {
{items = {'default:dirt'}, rarity = 0,}, {items = {'default:dirt'}, rarity = 0,},
{items = {'christmas_craft:snowball'}, rarity = 0,}, {items = {'default:snow'}, rarity = 0,},
}}, }},
sounds = default.node_sound_dirt_defaults({ sounds = default.node_sound_dirt_defaults({
footstep = {name="default_grass_footstep", gain=0.4}, footstep = {name="default_grass_footstep", gain=0.4},
@ -45,7 +45,7 @@ minetest.register_node(":4seasons:sand_winter", {
drop = {'default:sand', drop = {'default:sand',
max_items = 2, items = { max_items = 2, items = {
{items = {'default:sand'}, rarity = 0,}, {items = {'default:sand'}, rarity = 0,},
{items = {'christmas_craft:snowball'}, rarity = 0,}, {items = {'default:snow'}, rarity = 0,},
}}, }},
sounds = default.node_sound_dirt_defaults({ sounds = default.node_sound_dirt_defaults({
@ -61,7 +61,7 @@ minetest.register_node(":4seasons:desertsand_winter", {
drop = {'default:desert_sand', drop = {'default:desert_sand',
max_items = 2, items = { max_items = 2, items = {
{items = {'default:desert_sand'}, rarity = 0,}, {items = {'default:desert_sand'}, rarity = 0,},
{items = {'christmas_craft:snowball'}, rarity = 0,}, {items = {'default:snow'}, rarity = 0,},
}}, }},
sounds = default.node_sound_dirt_defaults({ sounds = default.node_sound_dirt_defaults({
footstep = {name="default_grass_footstep", gain=0.4}, footstep = {name="default_grass_footstep", gain=0.4},
@ -78,7 +78,7 @@ minetest.register_node(":4seasons:cactus_winter", {
drop = {'default:cactus', drop = {'default:cactus',
max_items = 2, items = { max_items = 2, items = {
{items = {'default:cactus'}, rarity = 0,}, {items = {'default:cactus'}, rarity = 0,},
{items = {'christmas_craft:snowball'}, rarity = 0,}, {items = {'default:snow'}, rarity = 0,},
}}, }},
sounds = default.node_sound_wood_defaults(), sounds = default.node_sound_wood_defaults(),
}) })

View File

@ -2,7 +2,7 @@
print (" ---- Overrider christmas_craft = true! ---- ") print (" ---- Overrider christmas_craft = true! ---- ")
local dirttiles = {"snow.png", "default_dirt.png", {name = "default_dirt.png^grass_w_snow_side.png", tileable_vertical = false}} local dirttiles = {"snow.png", "default_dirt.png", {name = "default_dirt.png^grass_w_snow_side.png", tileable_vertical = false}}
local snowballdrop = {items = {'christmas_craft:snowball'}, rarity = 0} local snowballdrop = {items = {'default:snow'}, rarity = 0}
local add_drop = function (def) local add_drop = function (def)
if type(def.drop) == "table" then if type(def.drop) == "table" then
@ -53,5 +53,27 @@ if minetest.registered_items["youngtrees:youngtree_top"] then
minetest.override_item("youngtrees:youngtree_middle", {tiles = {"christmas_youngtree16xb.png"}}) minetest.override_item("youngtrees:youngtree_middle", {tiles = {"christmas_youngtree16xb.png"}})
end end
-- Replace woodsoils
if minetest.registered_items["woodsoils:grass_with_leaves_1"] then
minetest.override_item("woodsoils:grass_with_leaves_1", {tiles = {"snow.png", "default_dirt.png", "default_dirt.png^grass_w_snow_side.png"}})
add_drop(minetest.registered_items["woodsoils:grass_with_leaves_1"])
end
if minetest.registered_items["woodsoils:grass_with_leaves_2"] then
minetest.override_item("woodsoils:grass_with_leaves_2", {tiles = {"snow.png", "default_dirt.png", "default_dirt.png^grass_w_snow_side.png"}})
add_drop(minetest.registered_items["woodsoils:grass_with_leaves_2"])
end
if minetest.registered_items["woodsoils:dirt_with_leaves_1"] then
minetest.override_item("woodsoils:dirt_with_leaves_1", {tiles = {"snow.png", "default_dirt.png", "default_dirt.png^grass_w_snow_side.png^woodsoils_ground_cover_side.png"}})
add_drop(minetest.registered_items["woodsoils:dirt_with_leaves_1"])
end
if minetest.registered_items["woodsoils:dirt_with_leaves_2"] then
minetest.override_item("woodsoils:dirt_with_leaves_2", {tiles = {"snow.png", "default_dirt.png", "default_dirt.png^grass_w_snow_side.png^woodsoils_ground_cover_side.png"}})
add_drop(minetest.registered_items["woodsoils:dirt_with_leaves_2"])
end
print (" ---- Overrider christmas_craft [OK] ---- ") print (" ---- Overrider christmas_craft [OK] ---- ")