[UPDATE] Update core writer

This commit is contained in:
tacigar 2016-09-14 11:23:27 +09:00
parent 998c9bd46a
commit 5e9cda5ce7
11 changed files with 41 additions and 4 deletions

View File

@ -4,8 +4,42 @@
------------------------------------------------------------ ------------------------------------------------------------
-- register a definition of a core writer. -- register a definition of a core writer.
minetest.register_node("maidroid_tool:core_writer", { (function()
drawtype = "nodebox", local node_box = {
tiles = {}, type = "fixed",
fixed = {
{-0.4375, -0.25, -0.4375, 0.4375, 0.1875, 0.4375},
{ 0.1875, 0.3125, 0.0625, 0.4375, 0.375, 0.125},
{ -0.375, 0.1875, -0.375, 0.375, 0.25, 0.375},
{-0.0625, -0.5, -0.0625, 0.0625, 0.375, 0.0625},
{ 0.375, 0.1875, 0.0625, 0.4375, 0.375, 0.125},
{ -0.375, -0.5, -0.375, 0.375, -0.25, 0.375},
},
}
}) local tiles = {
"maidroid_tool_core_writer_top.png",
"maidroid_tool_core_writer_bottom.png",
"maidroid_tool_core_writer_right.png",
"maidroid_tool_core_writer_right.png^[transformFX",
"maidroid_tool_core_writer_front.png^[transformFX",
"maidroid_tool_core_writer_front.png",
}
minetest.register_node("maidroid_tool:core_writer", {
description = "maidroid tool : core writer",
drawtype = "nodebox",
paramtype = "light",
paramtype2 = "facedir",
groups = {cracky = 2},
is_ground_content = false,
sounds = default.node_sound_stone_defaults(),
node_box = node_box,
tiles = tiles,
})
end) ()
-- register a definition of a core entity.
(function()
end) ()

View File

@ -0,0 +1 @@
default

View File

@ -7,3 +7,5 @@ maidroid_tool = {}
maidroid_tool.modname = "maidroid_tool" maidroid_tool.modname = "maidroid_tool"
maidroid_tool.modpath = minetest.get_modpath(maidroid_tool.modname) maidroid_tool.modpath = minetest.get_modpath(maidroid_tool.modname)
dofile(maidroid_tool.modpath .. "/core_writer.lua")

Binary file not shown.

After

Width:  |  Height:  |  Size: 225 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 282 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 265 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 233 B