Update nodes.lua

This commit is contained in:
thunderdog1138 2019-12-12 16:23:15 -05:00 committed by GitHub
parent ff12480735
commit 51cea7b1e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 33 additions and 33 deletions

View File

@ -675,7 +675,7 @@ minetest.register_node("default:cave_ice", {
-- --
minetest.register_node("default:tree", { minetest.register_node("default:tree", {
description = S("Apple Tree"), description = S("Jogan Tree"),
tiles = {"default_tree_top.png", "default_tree_top.png", "default_tree.png"}, tiles = {"default_tree_top.png", "default_tree_top.png", "default_tree.png"},
paramtype2 = "facedir", paramtype2 = "facedir",
is_ground_content = false, is_ground_content = false,
@ -686,7 +686,7 @@ minetest.register_node("default:tree", {
}) })
minetest.register_node("default:wood", { minetest.register_node("default:wood", {
description = S("Apple Wood Planks"), description = S("Jogan Wood Planks"),
paramtype2 = "facedir", paramtype2 = "facedir",
place_param2 = 0, place_param2 = 0,
tiles = {"default_wood.png"}, tiles = {"default_wood.png"},
@ -696,7 +696,7 @@ minetest.register_node("default:wood", {
}) })
minetest.register_node("default:sapling", { minetest.register_node("default:sapling", {
description = S("Apple Tree Sapling"), description = S("Jogan Tree Sapling"),
drawtype = "plantlike", drawtype = "plantlike",
tiles = {"default_sapling.png"}, tiles = {"default_sapling.png"},
inventory_image = "default_sapling.png", inventory_image = "default_sapling.png",
@ -732,7 +732,7 @@ minetest.register_node("default:sapling", {
}) })
minetest.register_node("default:leaves", { minetest.register_node("default:leaves", {
description = S("Apple Tree Leaves"), description = S("Jogan Tree Leaves"),
drawtype = "allfaces_optional", drawtype = "allfaces_optional",
waving = 1, waving = 1,
tiles = {"default_leaves.png"}, tiles = {"default_leaves.png"},
@ -760,11 +760,11 @@ minetest.register_node("default:leaves", {
after_place_node = after_place_leaves, after_place_node = after_place_leaves,
}) })
minetest.register_node("default:apple", { minetest.register_node("default:joganfruit", {
description = S("Apple"), description = S("Jogan Fruit"),
drawtype = "plantlike", drawtype = "plantlike",
tiles = {"default_apple.png"}, tiles = {"default_joganfruit.png"},
inventory_image = "default_apple.png", inventory_image = "default_joganfruit.png",
paramtype = "light", paramtype = "light",
sunlight_propagates = true, sunlight_propagates = true,
walkable = false, walkable = false,
@ -779,19 +779,19 @@ minetest.register_node("default:apple", {
sounds = default.node_sound_leaves_defaults(), sounds = default.node_sound_leaves_defaults(),
after_place_node = function(pos, placer, itemstack) after_place_node = function(pos, placer, itemstack)
minetest.set_node(pos, {name = "default:apple", param2 = 1}) minetest.set_node(pos, {name = "default:joganfruit", param2 = 1})
end, end,
after_dig_node = function(pos, oldnode, oldmetadata, digger) after_dig_node = function(pos, oldnode, oldmetadata, digger)
if oldnode.param2 == 0 then if oldnode.param2 == 0 then
minetest.set_node(pos, {name = "default:apple_mark"}) minetest.set_node(pos, {name = "default:joganfruit_mark"})
minetest.get_node_timer(pos):start(math.random(300, 1500)) minetest.get_node_timer(pos):start(math.random(300, 1500))
end end
end, end,
}) })
minetest.register_node("default:apple_mark", { minetest.register_node("default:joganfruit_mark", {
description = S("Apple Marker"), description = S("Jogan Fruit Marker"),
drawtype = "airlike", drawtype = "airlike",
paramtype = "light", paramtype = "light",
sunlight_propagates = true, sunlight_propagates = true,
@ -807,7 +807,7 @@ minetest.register_node("default:apple_mark", {
elseif minetest.get_node_light(pos) < 11 then elseif minetest.get_node_light(pos) < 11 then
minetest.get_node_timer(pos):start(200) minetest.get_node_timer(pos):start(200)
else else
minetest.set_node(pos, {name = "default:apple"}) minetest.set_node(pos, {name = "default:joganfruit"})
end end
end end
}) })
@ -1193,9 +1193,9 @@ minetest.register_node("default:stone_with_iron", {
sounds = default.node_sound_stone_defaults(), sounds = default.node_sound_stone_defaults(),
}) })
minetest.register_node("default:steelblock", { minetest.register_node("default:durasteelblock", {
description = S("Steel Block"), description = S("Durasteel Block"),
tiles = {"default_steel_block.png"}, tiles = {"default_durasteel_block.png"},
is_ground_content = false, is_ground_content = false,
groups = {cracky = 1, level = 2}, groups = {cracky = 1, level = 2},
sounds = default.node_sound_metal_defaults(), sounds = default.node_sound_metal_defaults(),
@ -1280,17 +1280,17 @@ minetest.register_node("default:goldblock", {
}) })
minetest.register_node("default:stone_with_diamond", { minetest.register_node("default:stone_with_beskar", {
description = S("Diamond Ore"), description = S("Beskar Ore"),
tiles = {"default_stone.png^default_mineral_diamond.png"}, tiles = {"default_stone.png^default_mineral_beskar.png"},
groups = {cracky = 1}, groups = {cracky = 1},
drop = "default:diamond", drop = "default:beskar_lump",
sounds = default.node_sound_stone_defaults(), sounds = default.node_sound_stone_defaults(),
}) })
minetest.register_node("default:diamondblock", { minetest.register_node("default:beskarblock", {
description = S("Diamond Block"), description = S("Beskar Block"),
tiles = {"default_diamond_block.png"}, tiles = {"default_beskar_block.png"},
is_ground_content = false, is_ground_content = false,
groups = {cracky = 1, level = 3}, groups = {cracky = 1, level = 3},
sounds = default.node_sound_stone_defaults(), sounds = default.node_sound_stone_defaults(),
@ -2617,7 +2617,7 @@ register_sign("wood", S("Wooden Sign"), {
groups = {choppy = 2, attached_node = 1, flammable = 2, oddly_breakable_by_hand = 3} groups = {choppy = 2, attached_node = 1, flammable = 2, oddly_breakable_by_hand = 3}
}) })
register_sign("steel", S("Steel Sign"), { register_sign("durasteel", S("Durasteel Sign"), {
sounds = default.node_sound_metal_defaults(), sounds = default.node_sound_metal_defaults(),
groups = {cracky = 2, attached_node = 1} groups = {cracky = 2, attached_node = 1}
}) })
@ -2645,12 +2645,12 @@ minetest.register_node("default:ladder_wood", {
sounds = default.node_sound_wood_defaults(), sounds = default.node_sound_wood_defaults(),
}) })
minetest.register_node("default:ladder_steel", { minetest.register_node("default:ladder_durasteel", {
description = S("Steel Ladder"), description = S("Durateel Ladder"),
drawtype = "signlike", drawtype = "signlike",
tiles = {"default_ladder_steel.png"}, tiles = {"default_ladder_durasteel.png"},
inventory_image = "default_ladder_steel.png", inventory_image = "default_ladder_durasteel.png",
wield_image = "default_ladder_steel.png", wield_image = "default_ladder_durasteel.png",
paramtype = "light", paramtype = "light",
paramtype2 = "wallmounted", paramtype2 = "wallmounted",
sunlight_propagates = true, sunlight_propagates = true,
@ -2668,7 +2668,7 @@ minetest.register_node("default:ladder_steel", {
}) })
default.register_fence("default:fence_wood", { default.register_fence("default:fence_wood", {
description = S("Apple Wood Fence"), description = S("Jogan Wood Fence"),
texture = "default_fence_wood.png", texture = "default_fence_wood.png",
inventory_image = "default_fence_overlay.png^default_wood.png^" .. inventory_image = "default_fence_overlay.png^default_wood.png^" ..
"default_fence_overlay.png^[makealpha:255,126,126", "default_fence_overlay.png^[makealpha:255,126,126",
@ -2728,7 +2728,7 @@ default.register_fence("default:fence_aspen_wood", {
}) })
default.register_fence_rail("default:fence_rail_wood", { default.register_fence_rail("default:fence_rail_wood", {
description = S("Apple Wood Fence Rail"), description = S("Jogan Wood Fence Rail"),
texture = "default_fence_rail_wood.png", texture = "default_fence_rail_wood.png",
inventory_image = "default_fence_rail_overlay.png^default_wood.png^" .. inventory_image = "default_fence_rail_overlay.png^default_wood.png^" ..
"default_fence_rail_overlay.png^[makealpha:255,126,126", "default_fence_rail_overlay.png^[makealpha:255,126,126",
@ -2875,7 +2875,7 @@ minetest.register_node("default:cloud", {
if minetest.get_mapgen_setting("mg_name") == "v6" then if minetest.get_mapgen_setting("mg_name") == "v6" then
default.register_leafdecay({ default.register_leafdecay({
trunks = {"default:tree"}, trunks = {"default:tree"},
leaves = {"default:apple", "default:leaves"}, leaves = {"default:joganfruit", "default:leaves"},
radius = 2, radius = 2,
}) })
@ -2887,7 +2887,7 @@ if minetest.get_mapgen_setting("mg_name") == "v6" then
else else
default.register_leafdecay({ default.register_leafdecay({
trunks = {"default:tree"}, trunks = {"default:tree"},
leaves = {"default:apple", "default:leaves"}, leaves = {"default:joganfruit", "default:leaves"},
radius = 3, radius = 3,
}) })