123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247 |
- minetest.register_node("contamination:contaminated_dirt_with_grass", {
- description = "Contaminated Topsoil",
- drawtype="normal",
- drop="contamination:contaminated_dirt",
- tiles={
- "contaminated_grass_t.png",
- "contaminated_dirt.png",
- "contaminated_grass_s.png",
- "contaminated_grass_s.png",
- "contaminated_grass_s.png",
- "contaminated_grass_s.png"
- },
- groups = {crumbly=1,oddly_breakable_by_hand=1,contaminated=1},
- sounds = default.node_sound_dirt_defaults(),
- })
- minetest.register_node("contamination:contaminated_dirt", {
- description = "Contaminated Soil",
- drawtype="normal",
- tiles={
- "contaminated_dirt.png"
- },
- groups = {crumbly=1,oddly_breakable_by_hand=1,contaminated=1},
- sounds = default.node_sound_dirt_defaults(),
- })
- minetest.register_node("contamination:contaminated_water_source", {
- description = "Toxic Sludge Source",
- drawtype = "liquid",
- tiles = {"contaminated_water.png"},
- special_tiles = {"contaminated_water.png"},
- alpha = 160,
- paramtype = "light",
- walkable = false,
- pointable = false,
- diggable = false,
- is_ground_content = false,
- drop = "",
- damage_per_second=4,
- drowning = 1,
- liquidtype = "source",
- liquid_alternative_flowing = "contamination:contaminated_water_flowing",
- liquid_alternative_source = "contamination:contaminated_water_source",
- liquid_viscosity = 4,
- post_effect_color = {a = 200, r = 60, g = 90, b = 30},
- groups = {liquid = 1,contaminated=1},
- sounds = default.node_sound_water_defaults(),
- })
- minetest.register_node("contamination:contaminated_water_flowing", {
- drawtype = "flowingliquid",
- tiles = {"contaminated_water.png"},
- special_tiles = {"contaminated_water.png","contaminated_water.png"},
- alpha = 160,
- paramtype = "light",
- paramtype2 = "flowingliquid",
- walkable = false,
- pointable = false,
- diggable = false,
- is_ground_content = false,
- drop = "",
- damage_per_second=4,
- drowning = 1,
- liquidtype = "flowing",
- liquid_alternative_flowing = "contamination:contaminated_water_flowing",
- liquid_alternative_source = "contamination:contaminated_water_source",
- liquid_viscosity = 4,
- post_effect_color = {a = 200, r = 60, g = 90, b = 30},
- groups = {liquid = 1,not_in_creative_inventory=1,contaminated=1},
- sounds = default.node_sound_water_defaults(),
- })
- minetest.register_node("contamination:contaminated_sand", {
- description = "Contaminated Sands",
- drawtype="normal",
- tiles={
- "contaminated_sand.png"
- },
- groups = {crumbly=1,contaminated=1,oddly_breakable_by_hand=1,falling_node=1},
- sounds = default.node_sound_dirt_defaults(),
- })
- minetest.register_node("contamination:contaminated_stone", {
- description = "Contaminated Stone",
- drawtype="normal",
- tiles={
- "contaminated_stone.png"
- },
- drop="contamination:contaminated_cobble",
- groups = {cracky=1,contaminated=1},
- sounds = default.node_sound_stone_defaults(),
- })
- minetest.register_node("contamination:stone_with_rust", {
- description = "Rusty Stone",
- drawtype="normal",
- tiles={
- "contaminated_stone_rust.png"
- },
- groups = {choppy=2,contaminated=1},
- sounds = default.node_sound_stone_defaults(),
- })
- minetest.register_node("contamination:stone_with_lye", {
- description = "Lye Stone",
- drawtype="normal",
- tiles={
- "contaminated_stone_lye.png"
- },
- drop="contamination:lye",
- groups = {cracky=1,contaminated=1},
- sounds = default.node_sound_stone_defaults(),
- })
- minetest.register_node("contamination:stone_with_black_diamond", {
- description = "Black Diamond Ore",
- drawtype="normal",
- tiles={
- "contaminated_stone_bdiamond.png"
- },
- drop="contamination:black_diamond",
- groups = {cracky=1,contaminated=1},
- sounds = default.node_sound_stone_defaults(),
- })
- minetest.register_node("contamination:contaminated_cobble", {
- description = "Contaminated Cobblestone",
- drawtype="normal",
- tiles={
- "contaminated_cobble.png"
- },
- groups = {cracky=1,contaminated=1},
- sounds = default.node_sound_stone_defaults(),
- })
- minetest.register_node("contamination:contaminated_tree", {
- description = "Contaminated Tree",
- drawtype="normal",
- paramtype2 = "facedir",
- tiles={
- "contaminated_tree_top.png", "contaminated_tree_top.png", "contaminated_tree.png", "contaminated_tree.png", "contaminated_tree.png", "contaminated_tree.png"
- },
- groups = {choppy=1,oddly_breakable_by_hand=1,contaminated=1},
- sounds = default.node_sound_wood_defaults(),
- on_place = minetest.rotate_node
- })
- minetest.register_node("contamination:contaminated_wood", {
- description = "Contaminated Planks",
- drawtype="normal",
- tiles={
- "contaminated_wood.png"
- },
- groups = {choppy=1,oddly_breakable_by_hand=1,contaminated=1},
- sounds = default.node_sound_wood_defaults(),
- })
- minetest.register_node("contamination:contaminated_leaves", {
- description = "Contaminated Leaves",
- drawtype = "allfaces_optional",
- paramtype="light",
- sunlight_propagates=false,
- tiles={
- "contaminated_leaves.png"
- },
- drop="",
- groups = {snappy=2,oddly_breakable_by_hand=2,contaminated=1},
- sounds = default.node_sound_leaves_defaults(),
- })
- minetest.register_abm({
- nodenames = "contamination:contaminated_leaves",
- interval=10,
- chance=4,
- action=function(p)
- minetest.remove_node(p)
- end
- })
- minetest.register_node("contamination:contaminated_sticks", {
- description = "Contaminated Plant Remains",
- drawtype="plantlike",
- paramtype="light",
- inventory_image="contaminated_sticks.png",
- sunlight_propagates=true,
- buildable_to=true,
- damage_per_second = 2,
- selection_box={type="fixed", fixed={-0.5,-0.5,-0.5,0.5,-0.25,0.5}},
- walkable=false,
- tiles={
- "contaminated_sticks.png"
- },
- drop="",
- groups = {snappy=1,attached_node = 1,contaminated=1,oddly_breakable_by_hand=1},
- sounds = default.node_sound_leaves_defaults(),
- })
- minetest.register_node("contamination:contaminated_mushroom", {
- description = "Contaminated Mushroom",
- drawtype="plantlike",
- paramtype="light",
- inventory_image="contaminated_mushroom.png",
- sunlight_propagates=true,
- buildable_to=true,
- damage_per_second = 4,
- selection_box={type="fixed", fixed={-0.5,-0.5,-0.5,0.5,-0.25,0.5}},
- walkable=false,
- tiles={
- "contaminated_mushroom.png"
- },
- on_use = function(itemstack, player)
- itemstack:take_item()
- minetest.after(10,
- function(player)
- if player and player:is_player() then
- player:set_hp(0)
- end
- end, player)
- return itemstack
- end,
- groups = {contaminated=1,attached_node = 1,oddly_breakable_by_hand=1},
- sounds = default.node_sound_leaves_defaults(),
- })
- minetest.register_node("contamination:catalyst", {
- description = "Contaminated Specimen",
- drawtype="normal",
- tiles={
- "contamination_block.png"
- },
- drop="contamination:catalyst",
- groups = {cracky=1,oddly_breakable_by_hand=1,contaminated=1},
- sounds = default.node_sound_metal_defaults(),
- })
- minetest.register_node("contamination:black_diamond_block", {
- description = "Carbonado Block",
- drawtype="normal",
- tiles={
- "contam_bdiamond_block.png"
- },
- groups = {cracky=1,oddly_breakable_by_hand=1,contaminated=1},
- sounds = default.node_sound_metal_defaults(),
- })
|