Rename mod: supplemental → tutorial_supplemental
@ -6,7 +6,7 @@ else
|
||||
S = function ( s ) return s end
|
||||
end
|
||||
|
||||
minetest.register_node("supplemental:sticky", {
|
||||
minetest.register_node("tutorial_supplemental:sticky", {
|
||||
description = S("sticky stone brick"),
|
||||
tiles = {"default_stone_brick.png^supplemental_splat.png",
|
||||
"default_stone_brick.png", "default_stone_brick.png", "default_stone_brick.png",
|
||||
@ -15,7 +15,7 @@ minetest.register_node("supplemental:sticky", {
|
||||
sounds = default.node_sound_stone_defaults()
|
||||
})
|
||||
|
||||
minetest.register_node("supplemental:bouncy", {
|
||||
minetest.register_node("tutorial_supplemental:bouncy", {
|
||||
description = S("bouncy block"),
|
||||
tiles = {"supplemental_bouncy.png"},
|
||||
groups = {creative_breakable=1, bouncy=70, fall_damage_add_percent=-100},
|
||||
@ -24,22 +24,22 @@ minetest.register_node("supplemental:bouncy", {
|
||||
|
||||
|
||||
|
||||
minetest.register_node("supplemental:conglomerate", {
|
||||
minetest.register_node("tutorial_supplemental:conglomerate", {
|
||||
description = S("conglomerate"),
|
||||
tiles = {"supplemental_conglomerate.png" },
|
||||
groups = {cracky=3},
|
||||
drop = { items = {
|
||||
{ items={"supplemental:rock"} },
|
||||
{ items={"supplemental:rock"}, rarity = 5 },
|
||||
{ items={"supplemental:rock"}, rarity = 5 },
|
||||
{ items={"supplemental:rock"}, rarity = 5 },
|
||||
{ items={"supplemental:rock"}, rarity = 5 },
|
||||
{ items={"tutorial_supplemental:rock"} },
|
||||
{ items={"tutorial_supplemental:rock"}, rarity = 5 },
|
||||
{ items={"tutorial_supplemental:rock"}, rarity = 5 },
|
||||
{ items={"tutorial_supplemental:rock"}, rarity = 5 },
|
||||
{ items={"tutorial_supplemental:rock"}, rarity = 5 },
|
||||
}
|
||||
},
|
||||
sounds = default.node_sound_stone_defaults()
|
||||
})
|
||||
|
||||
minetest.register_node("supplemental:frame",{
|
||||
minetest.register_node("tutorial_supplemental:frame",{
|
||||
description = S("picture frame"),
|
||||
drawtype = "signlike",
|
||||
selection_box = { type = "wallmounted" },
|
||||
@ -55,7 +55,7 @@ minetest.register_node("supplemental:frame",{
|
||||
sounds = default.node_sound_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("supplemental:spikes", {
|
||||
minetest.register_node("tutorial_supplemental:spikes", {
|
||||
description = S("short spikes"),
|
||||
tiles = {"supplemental_spikes_small.png"},
|
||||
inventory_image = "supplemental_spikes_small.png",
|
||||
@ -76,7 +76,7 @@ minetest.register_node("supplemental:spikes", {
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_node("supplemental:spikes_large", {
|
||||
minetest.register_node("tutorial_supplemental:spikes_large", {
|
||||
description = S("long spikes"),
|
||||
tiles = {"supplemental_spikes_large.png"},
|
||||
inventory_image = "supplemental_spikes_large.png",
|
||||
@ -96,7 +96,7 @@ local set_loudspeaker_infotext = function(pos)
|
||||
meta:set_string("infotext", S("loudspeaker (rightclick to toggle music)"))
|
||||
end
|
||||
|
||||
minetest.register_node("supplemental:loudspeaker", {
|
||||
minetest.register_node("tutorial_supplemental:loudspeaker", {
|
||||
description = S("loudspeaker"),
|
||||
tiles = {"supplemental_loudspeaker.png"},
|
||||
groups = { creative_breakable = 1 },
|
||||
@ -115,50 +115,50 @@ minetest.register_node("supplemental:loudspeaker", {
|
||||
})
|
||||
|
||||
minetest.register_abm({
|
||||
nodenames = { "supplemental:loudspeaker" },
|
||||
nodenames = { "tutorial_supplemental:loudspeaker" },
|
||||
interval = 5,
|
||||
chance = 1,
|
||||
action = set_loudspeaker_infotext,
|
||||
})
|
||||
|
||||
minetest.register_craftitem("supplemental:rock", {
|
||||
minetest.register_craftitem("tutorial_supplemental:rock", {
|
||||
description = S("piece of rock"),
|
||||
inventory_image = "supplemental_rock.png",
|
||||
})
|
||||
|
||||
minetest.register_craftitem("supplemental:wheat", {
|
||||
minetest.register_craftitem("tutorial_supplemental:wheat", {
|
||||
description = S("wheat"),
|
||||
inventory_image = "supplemental_wheat.png",
|
||||
})
|
||||
|
||||
minetest.register_craftitem("supplemental:flour", {
|
||||
minetest.register_craftitem("tutorial_supplemental:flour", {
|
||||
description = S("flour"),
|
||||
inventory_image = "supplemental_flour.png",
|
||||
})
|
||||
-- Crafting example #2
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = "supplemental:flour",
|
||||
recipe = {"supplemental:wheat", "supplemental:wheat", "supplemental:wheat", "supplemental:wheat"}
|
||||
output = "tutorial_supplemental:flour",
|
||||
recipe = {"tutorial_supplemental:wheat", "tutorial_supplemental:wheat", "tutorial_supplemental:wheat", "tutorial_supplemental:wheat"}
|
||||
})
|
||||
|
||||
-- Items for crafting examples #1, #4 and #5
|
||||
minetest.register_craftitem("supplemental:paper_white", {
|
||||
minetest.register_craftitem("tutorial_supplemental:paper_white", {
|
||||
description = S("white sheet of paper"),
|
||||
inventory_image = "default_paper.png",
|
||||
groups = { paper = 1 },
|
||||
})
|
||||
minetest.register_craftitem("supplemental:paper_orange", {
|
||||
minetest.register_craftitem("tutorial_supplemental:paper_orange", {
|
||||
description = S("orange sheet of paper"),
|
||||
inventory_image = "supplemental_paper_orange.png",
|
||||
groups = { paper = 1 },
|
||||
})
|
||||
minetest.register_craftitem("supplemental:paper_purple", {
|
||||
minetest.register_craftitem("tutorial_supplemental:paper_purple", {
|
||||
description = S("purple sheet of paper"),
|
||||
inventory_image = "supplemental_paper_purple.png",
|
||||
groups = { paper = 1 },
|
||||
})
|
||||
minetest.register_craftitem("supplemental:paper_green", {
|
||||
minetest.register_craftitem("tutorial_supplemental:paper_green", {
|
||||
description = S("green sheet of paper"),
|
||||
inventory_image = "supplemental_paper_green.png",
|
||||
groups = { paper = 1 },
|
||||
@ -176,7 +176,7 @@ minetest.register_craft({
|
||||
|
||||
-- 8 viscosity example liquids
|
||||
for v=0,7 do
|
||||
minetest.register_node("supplemental:liquid"..v, {
|
||||
minetest.register_node("tutorial_supplemental:liquid"..v, {
|
||||
description = string.format(S("flowing test liquid %i"), v),
|
||||
inventory_image = minetest.inventorycube("supplemental_testliquid"..v..".png"),
|
||||
drawtype = "flowingliquid",
|
||||
@ -202,14 +202,14 @@ for v=0,7 do
|
||||
drop = "",
|
||||
drowning = 1,
|
||||
liquidtype = "flowing",
|
||||
liquid_alternative_flowing = "supplemental:liquid"..v,
|
||||
liquid_alternative_source = "supplemental:liquidsource"..v,
|
||||
liquid_alternative_flowing = "tutorial_supplemental:liquid"..v,
|
||||
liquid_alternative_source = "tutorial_supplemental:liquidsource"..v,
|
||||
liquid_viscosity = v,
|
||||
groups = {not_in_creative_inventory = 1},
|
||||
sounds = default.node_sound_water_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("supplemental:liquidsource"..v, {
|
||||
minetest.register_node("tutorial_supplemental:liquidsource"..v, {
|
||||
description = string.format(S("test liquid source %i"), v),
|
||||
inventory_image = minetest.inventorycube("supplemental_testliquid"..v..".png"),
|
||||
drawtype = "liquid",
|
||||
@ -229,10 +229,30 @@ for v=0,7 do
|
||||
drop = "",
|
||||
drowning = 1,
|
||||
liquidtype = "source",
|
||||
liquid_alternative_flowing = "supplemental:liquid"..v,
|
||||
liquid_alternative_source = "supplemental:liquidsource"..v,
|
||||
liquid_alternative_flowing = "tutorial_supplemental:liquid"..v,
|
||||
liquid_alternative_source = "tutorial_supplemental:liquidsource"..v,
|
||||
liquid_viscosity = v,
|
||||
groups = {},
|
||||
sounds = default.node_sound_water_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_alias("supplemental:liquid"..v, "tutorial_supplemental:liquid"..v)
|
||||
minetest.register_alias("supplemental:liquidsource"..v, "tutorial_supplemental:liquidsource"..v)
|
||||
end
|
||||
|
||||
|
||||
minetest.register_alias("supplemental:sticky", "tutorial_supplemental:sticky")
|
||||
minetest.register_alias("supplemental:bouncy", "tutorial_supplemental:bouncy")
|
||||
minetest.register_alias("supplemental:conglomerate", "tutorial_supplemental:conglomerate")
|
||||
minetest.register_alias("supplemental:frame", "tutorial_supplemental:frame")
|
||||
minetest.register_alias("supplemental:spikes", "tutorial_supplemental:spikes")
|
||||
minetest.register_alias("supplemental:spikes_large", "tutorial_supplemental:spikes_large")
|
||||
minetest.register_alias("supplemental:loudspeaker", "tutorial_supplemental:loudspeaker")
|
||||
minetest.register_alias("supplemental:rock", "tutorial_supplemental:rock")
|
||||
minetest.register_alias("supplemental:wheat", "tutorial_supplemental:wheat")
|
||||
minetest.register_alias("supplemental:flour", "tutorial_supplemental:flour")
|
||||
minetest.register_alias("supplemental:paper_white", "tutorial_supplemental:paper_white")
|
||||
minetest.register_alias("supplemental:paper_orange", "tutorial_supplemental:paper_orange")
|
||||
minetest.register_alias("supplemental:paper_purple", "tutorial_supplemental:paper_purple")
|
||||
minetest.register_alias("supplemental:paper_green", "tutorial_supplemental:paper_green")
|
||||
minetest.register_alias("supplemental:book", "tutorial_supplemental:book")
|
@ -1,3 +1,3 @@
|
||||
name = supplemental
|
||||
name = tutorial_supplemental
|
||||
depends = tutorial_default, mpd
|
||||
optional_depends = intllib
|
Before Width: | Height: | Size: 341 B After Width: | Height: | Size: 341 B |
Before Width: | Height: | Size: 621 B After Width: | Height: | Size: 621 B |
Before Width: | Height: | Size: 335 B After Width: | Height: | Size: 335 B |
Before Width: | Height: | Size: 227 B After Width: | Height: | Size: 227 B |
Before Width: | Height: | Size: 814 B After Width: | Height: | Size: 814 B |
Before Width: | Height: | Size: 391 B After Width: | Height: | Size: 391 B |
Before Width: | Height: | Size: 340 B After Width: | Height: | Size: 340 B |
Before Width: | Height: | Size: 375 B After Width: | Height: | Size: 375 B |
Before Width: | Height: | Size: 387 B After Width: | Height: | Size: 387 B |
Before Width: | Height: | Size: 376 B After Width: | Height: | Size: 376 B |
Before Width: | Height: | Size: 220 B After Width: | Height: | Size: 220 B |
Before Width: | Height: | Size: 842 B After Width: | Height: | Size: 842 B |
Before Width: | Height: | Size: 690 B After Width: | Height: | Size: 690 B |
Before Width: | Height: | Size: 706 B After Width: | Height: | Size: 706 B |
Before Width: | Height: | Size: 710 B After Width: | Height: | Size: 710 B |
Before Width: | Height: | Size: 484 B After Width: | Height: | Size: 484 B |
Before Width: | Height: | Size: 552 B After Width: | Height: | Size: 552 B |
Before Width: | Height: | Size: 511 B After Width: | Height: | Size: 511 B |
Before Width: | Height: | Size: 448 B After Width: | Height: | Size: 448 B |
Before Width: | Height: | Size: 492 B After Width: | Height: | Size: 492 B |
Before Width: | Height: | Size: 547 B After Width: | Height: | Size: 547 B |