Version MFF.

This commit is contained in:
sys4-fr
2018-09-08 00:31:40 +02:00
parent 04483e4fd7
commit 48b8f8a726
37 changed files with 317 additions and 100 deletions

65
nodes.lua Normal file → Executable file
View File

@ -1,7 +1,7 @@
--[[
Map Tools: node definitions
Copyright (c) 2012-2017 Hugo Locurcio and contributors.
Copyright (c) 2012-2015 Calinou and contributors.
Licensed under the zlib license. See LICENSE.md for more information.
--]]
@ -123,7 +123,7 @@ minetest.register_node("maptools:ignore_like_no_clip", {
description = S("Ignore-like (no clip)"),
range = 12,
stack_max = 10000,
inventory_image = "default_steel_block.png^dye_purple.png",
inventory_image = "default_steel_block.png^dye_violet.png",
tiles = {"invisible.png"},
paramtype = "light",
walkable = false,
@ -137,7 +137,7 @@ minetest.register_node("maptools:ignore_like_no_point", {
description = S("Ignore-like (no point)"),
range = 12,
stack_max = 10000,
inventory_image = "default_steel_block.png^dye_purple.png",
inventory_image = "default_steel_block.png^dye_violet.png",
tiles = {"invisible.png"},
paramtype = "light",
pointable = false,
@ -242,7 +242,7 @@ minetest.register_node("maptools:lightbulb", {
drawtype = "airlike",
walkable = false,
pointable = false,
light_source = 14,
light_source = default.LIGHT_MAX,
paramtype = "light",
sunlight_propagates = true,
drop = "",
@ -356,24 +356,14 @@ minetest.register_node("maptools:ladder", {
sounds = default.node_sound_wood_defaults(),
})
minetest.register_node("maptools:permanent_fire", {
description = S("Permanent Fire"),
range = 12,
stack_max = 10000,
drawtype = "plantlike",
paramtype = "light",
tiles = {{
name="fire_basic_flame_animated.png",
animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=1},
}},
inventory_image = "fire_basic_flame.png",
light_source = 14,
drop = "",
groups = {unbreakable = 1, not_in_creative_inventory = maptools.creative},
sunlight_propagates = true,
walkable = false,
damage_per_second = 4,
})
local permafire = table.copy(minetest.registered_nodes["fire:basic_flame"])
permafire.damage_per_second = 4
permafire.stack_max = 10000
permafire.range = 12
permafire.description = S("Permanent Fire")
permafire.groups = {unbreakable = 1, not_in_creative_inventory = maptools.creative}
minetest.register_node("maptools:permanent_fire", permafire)
minetest.register_node("maptools:fake_fire", {
description = S("Fake Fire"),
@ -411,19 +401,34 @@ minetest.register_node("maptools:igniter", {
minetest.register_node("maptools:superapple", {
description = S("Super Apple"),
range = 12,
stack_max = 10000,
drawtype = "plantlike",
stack_max = 99,
drawtype = "nodebox",
visual_scale = 1.0,
tiles = {"maptools_superapple.png"},
tiles = {"maptools_super_apple_top.png","maptools_super_apple_bottom.png","maptools_super_apple_side.png"},
inventory_image = "maptools_superapple.png",
paramtype = "light",
sunlight_propagates = true,
selection_box = {
type = "fixed",
fixed = {-0.2, -0.5, -0.2, 0.2, 0, 0.2}
},
walkable = false,
groups = {fleshy=3, dig_immediate=3, not_in_creative_inventory = maptools.creative},
node_box = {
type = "fixed",
fixed = {
{-3/16, -7/16, -3/16, 3/16, 1/16, 3/16},
{-4/16, -6/16, -3/16, 4/16, 0, 3/16},
{-3/16, -6/16, -4/16, 3/16, 0, 4/16},
{-1/32, 1/16, -1/32, 1/32, 4/16, 1/32},
{-1/16, 1.6/16, 0, 1/16, 1.8/16, 1/16},
{-2/16, 1.4/16, 1/16, 1/16, 1.6/16, 2/16},
{-2/16, 1.2/16, 2/16, 0, 1.4/16, 3/16},
{-1.5/16, 1/16, .5/16, 0.5/16, 1.2/16, 2.5/16},
}
},
is_ground_content = true,
groups = {fleshy=3, dig_immediate=3, not_in_creative_inventory = 0, flammable = 2, leafdecay = 3, leafdecay_drop = 1},
on_use = minetest.item_eat(20),
sounds = default.node_sound_defaults(),
after_place_node = function(pos, placer, itemstack)
if placer:is_player() then
minetest.set_node(pos, {name = "maptools:superapple", param2= 1})
end
end,
})