Make doors and trapdoors transparent to sunlight

This commit is contained in:
Wuzzy 2017-03-12 03:43:49 +01:00
parent d89f02d338
commit a57bdbe436
1 changed files with 6 additions and 0 deletions

View File

@ -162,6 +162,7 @@ function mcl_doors:register_door(name, def)
tiles = {tt[2].."^[transformFY", tt[2], tb[2].."^[transformFX", tb[2], tb[1], tb[1].."^[transformFX"}, tiles = {tt[2].."^[transformFY", tt[2], tb[2].."^[transformFX", tb[2], tb[1], tb[1].."^[transformFX"},
paramtype = "light", paramtype = "light",
paramtype2 = "facedir", paramtype2 = "facedir",
sunlight_propagates = true,
is_ground_content = false, is_ground_content = false,
drop = name, drop = name,
drawtype = "nodebox", drawtype = "nodebox",
@ -200,6 +201,7 @@ function mcl_doors:register_door(name, def)
tiles = {tt[2].."^[transformFY", tt[2], tt[2].."^[transformFX", tt[2], tt[1], tt[1].."^[transformFX"}, tiles = {tt[2].."^[transformFY", tt[2], tt[2].."^[transformFX", tt[2], tt[1], tt[1].."^[transformFX"},
paramtype = "light", paramtype = "light",
paramtype2 = "facedir", paramtype2 = "facedir",
sunlight_propagates = true,
is_ground_content = false, is_ground_content = false,
drop = "", drop = "",
drawtype = "nodebox", drawtype = "nodebox",
@ -238,6 +240,7 @@ function mcl_doors:register_door(name, def)
tiles = {tt[2].."^[transformFY", tt[2], tb[2].."^[transformFX", tb[2], tb[1].."^[transformFX", tb[1]}, tiles = {tt[2].."^[transformFY", tt[2], tb[2].."^[transformFX", tb[2], tb[1].."^[transformFX", tb[1]},
paramtype = "light", paramtype = "light",
paramtype2 = "facedir", paramtype2 = "facedir",
sunlight_propagates = true,
is_ground_content = false, is_ground_content = false,
drop = name, drop = name,
drawtype = "nodebox", drawtype = "nodebox",
@ -276,6 +279,7 @@ function mcl_doors:register_door(name, def)
tiles = {tt[2].."^[transformFY", tt[2], tt[2].."^[transformFX", tt[2], tt[1].."^[transformFX", tt[1]}, tiles = {tt[2].."^[transformFY", tt[2], tt[2].."^[transformFX", tt[2], tt[1].."^[transformFX", tt[1]},
paramtype = "light", paramtype = "light",
paramtype2 = "facedir", paramtype2 = "facedir",
sunlight_propagates = true,
is_ground_content = false, is_ground_content = false,
drop = "", drop = "",
drawtype = "nodebox", drawtype = "nodebox",
@ -533,6 +537,7 @@ function mcl_doors:register_trapdoor(name, def)
paramtype = "light", paramtype = "light",
stack_max = 64, stack_max = 64,
paramtype2 = "facedir", paramtype2 = "facedir",
sunlight_propagates = true,
groups = def.groups, groups = def.groups,
_mcl_hardness = def._mcl_hardness, _mcl_hardness = def._mcl_hardness,
sounds = def.sounds, sounds = def.sounds,
@ -560,6 +565,7 @@ function mcl_doors:register_trapdoor(name, def)
is_ground_content = false, is_ground_content = false,
paramtype = "light", paramtype = "light",
paramtype2 = "facedir", paramtype2 = "facedir",
sunlight_propagates = true,
pointable = true, pointable = true,
groups = def.groups, groups = def.groups,
_mcl_hardness = def._mcl_hardness, _mcl_hardness = def._mcl_hardness,