build using command computer

This commit is contained in:
kepler155c@gmail.com
2017-08-09 10:19:00 -04:00
parent c21afd2875
commit 97f3392fbd
11 changed files with 211 additions and 124 deletions

View File

@@ -769,14 +769,14 @@ function blockTypeDB:seedDB()
{ '+12', nil, nil },
})
blockTypeDB:addTemp('door', {
{ 0, nil, 0, 'east-door' },
{ 1, nil, 0, 'south-door' },
{ 2, nil, 0, 'west-door' },
{ 3, nil, 0, 'north-door' },
{ 4, nil, 0, 'east-door' },
{ 5, nil, 0, 'south-door' },
{ 6, nil, 0, 'west-door' },
{ 7, nil, 0, 'north-door' },
{ 0, nil, 0, 'east-door', { door = true } },
{ 1, nil, 0, 'south-door', { door = true } },
{ 2, nil, 0, 'west-door', { door = true } },
{ 3, nil, 0, 'north-door', { door = true } },
{ 4, nil, 0, 'east-door', { door = true } },
{ 5, nil, 0, 'south-door', { door = true } },
{ 6, nil, 0, 'west-door', { door = true } },
{ 7, nil, 0, 'north-door', { door = true } },
{ 8,'minecraft:air', 0 },
{ 9,'minecraft:air', 0 },
{ 10,'minecraft:air', 0 },
@@ -823,7 +823,13 @@ function Blocks:getRealBlock(id, dmg)
local p = placementDB:get({id, dmg})
if p then
return { id = p.sid, dmg = p.sdmg, direction = p.direction, extra = p.extra }
return {
id = p.sid,
dmg = p.sdmg,
direction = p.direction,
extra = p.extra,
odmg = dmg
}
end
local b = blockDB:get({id, dmg})