Cake+cauldron+endportalfr. put signal 4 comparator
[MineClone/MineClone2.git] / mods / ITEMS / mcl_core / nodes_liquid.lua
blob4efea58d4642fb1181f8e42f6bf7cbfc1b78f425
1 -- Liquids: Water and lava
3 local WATER_ALPHA = 179
4 local WATER_VISC = 1
5 local LAVA_VISC = 7
7 minetest.register_node("mcl_core:water_flowing", {
8 description = "Flowing Water",
9 _doc_items_create_entry = false,
10 wield_image = "default_water_flowing_animated.png^[verticalframe:64:0",
11 drawtype = "flowingliquid",
12 tiles = {"default_water_flowing_animated.png^[verticalframe:64:0"},
13 special_tiles = {
15 image="default_water_flowing_animated.png",
16 backface_culling=false,
17 animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=4.0}
20 image="default_water_flowing_animated.png",
21 backface_culling=true,
22 animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=4.0}
25 sounds = mcl_sounds.node_sound_water_defaults(),
26 alpha = WATER_ALPHA,
27 paramtype = "light",
28 paramtype2 = "flowingliquid",
29 walkable = false,
30 pointable = false,
31 diggable = false,
32 buildable_to = true,
33 drop = "",
34 drowning = 4,
35 liquidtype = "flowing",
36 liquid_alternative_flowing = "mcl_core:water_flowing",
37 liquid_alternative_source = "mcl_core:water_source",
38 liquid_viscosity = WATER_VISC,
39 liquid_range = 7,
40 post_effect_color = {a=240, r=0x03, g=0x3C, b=0x5C},
41 groups = { water=3, liquid=3, puts_out_fire=1, not_in_creative_inventory=1, freezes=1, melt_around=1, dig_by_piston=1},
42 _mcl_blast_resistance = 500,
43 -- Hardness intentionally set to infinite instead of 100 (Minecraft value) to avoid problems in creative mode
44 _mcl_hardness = -1,
47 minetest.register_node("mcl_core:water_source", {
48 description = "Water Source",
49 _doc_items_entry_name = "Water",
50 _doc_items_longdesc =
51 [[Water is abundant in oceans and also appears in a few springs in the ground. You can swim easily in water, but you need to catch your breath from time to time.
52 Water interacts with lava in various ways:
53 • When water is directly above or horizontally next to a lava source, the lava turns into obsidian.
54 • When flowing water touches flowing lava either from above or horizontally, the lava turns into cobblestone.
55 • When water is directly below lava, the water turns into stone.]],
56 _doc_items_hidden = false,
57 drawtype = "liquid",
58 tiles = {
59 {name="default_water_source_animated.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=5.0}}
61 special_tiles = {
62 -- New-style water source material (mostly unused)
64 name="default_water_source_animated.png",
65 animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=5.0},
66 backface_culling = false,
69 sounds = mcl_sounds.node_sound_water_defaults(),
70 alpha = WATER_ALPHA,
71 paramtype = "light",
72 walkable = false,
73 pointable = false,
74 diggable = false,
75 buildable_to = true,
76 drop = "",
77 drowning = 4,
78 liquidtype = "source",
79 liquid_alternative_flowing = "mcl_core:water_flowing",
80 liquid_alternative_source = "mcl_core:water_source",
81 liquid_viscosity = WATER_VISC,
82 liquid_range = 7,
83 post_effect_color = {a=240, r=0x03, g=0x3C, b=0x5C},
84 stack_max = 64,
85 groups = { water=3, liquid=3, puts_out_fire=1, freezes=1, not_in_creative_inventory=1, dig_by_piston=1},
86 _mcl_blast_resistance = 500,
87 -- Hardness intentionally set to infinite instead of 100 (Minecraft value) to avoid problems in creative mode
88 _mcl_hardness = -1,
91 minetest.register_node("mcl_core:lava_flowing", {
92 description = "Flowing Lava",
93 _doc_items_create_entry = false,
94 wield_image = "default_lava_flowing_animated.png^[verticalframe:64:0",
95 drawtype = "flowingliquid",
96 tiles = {"default_lava_flowing_animated.png^[verticalframe:64:0"},
97 special_tiles = {
99 image="default_lava_flowing_animated.png",
100 backface_culling=false,
101 animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=6.6}
104 image="default_lava_flowing_animated.png",
105 backface_culling=true,
106 animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=6.6}
109 paramtype2 = "flowingliquid",
110 -- Real light level: 15 (but Minetest caps at 14)
111 light_source = 14,
112 sounds = mcl_sounds.node_sound_lava_defaults(),
113 walkable = false,
114 pointable = false,
115 diggable = false,
116 buildable_to = true,
117 drop = "",
118 --[[ Drowning in Minecraft deals 2 damage per second.
119 In Minetest, drowning damage is dealt every 2 seconds so this
120 translates to 4 drowning damage ]]
121 drowning = 4,
122 liquidtype = "flowing",
123 liquid_alternative_flowing = "mcl_core:lava_flowing",
124 liquid_alternative_source = "mcl_core:lava_source",
125 liquid_viscosity = LAVA_VISC,
126 liquid_renewable = false,
127 liquid_range = 3,
128 damage_per_second = 4*2,
129 post_effect_color = {a=255, r=208, g=73, b=10},
130 groups = { lava=3, liquid=2, destroys_items=1, not_in_creative_inventory=1, dig_by_piston=1},
131 _mcl_blast_resistance = 500,
132 -- Hardness intentionally set to infinite instead of 100 (Minecraft value) to avoid problems in creative mode
133 _mcl_hardness = -1,
136 minetest.register_node("mcl_core:lava_source", {
137 description = "Lava Source",
138 _doc_items_entry_name = "Lava",
139 _doc_items_longdesc =
140 [[Lava is hot and rather dangerous. Don't touch it, it will hurt you a lot and it is hard to get out.
141 A lava source sets fire to a couple of air blocks above when they're next to a flammable block.
142 Lava interacts with water various ways:
143 • When a lava source is directly below or horizontally next to water, the lava turns into obsidian.
144 • When flowing water touches flowing lava either from above or horizontally, the lava turns into cobblestone.
145 • When lava is directly above water, the water turns into stone.]],
146 drawtype = "liquid",
147 tiles = {
148 {name="default_lava_source_animated.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=3.0}}
150 special_tiles = {
151 -- New-style lava source material (mostly unused)
153 name="default_lava_source_animated.png",
154 animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=3.0},
155 backface_culling = false,
158 -- Real light level: 15 (but Minetest caps at 14)
159 light_source = 14,
160 sounds = mcl_sounds.node_sound_lava_defaults(),
161 walkable = false,
162 pointable = false,
163 diggable = false,
164 buildable_to = true,
165 drop = "",
166 drowning = 4,
167 liquidtype = "source",
168 liquid_alternative_flowing = "mcl_core:lava_flowing",
169 liquid_alternative_source = "mcl_core:lava_source",
170 liquid_viscosity = LAVA_VISC,
171 liquid_renewable = false,
172 liquid_range = 3,
173 damage_per_second = 4*2,
174 post_effect_color = {a=255, r=208, g=73, b=10},
175 stack_max = 64,
176 groups = { lava=3, liquid=2, destroys_items=1, not_in_creative_inventory=1, dig_by_piston=1},
177 _mcl_blast_resistance = 500,
178 -- Hardness intentionally set to infinite instead of 100 (Minecraft value) to avoid problems in creative mode
179 _mcl_hardness = -1,