Add end rod
This commit is contained in:
parent
6b2a10a78f
commit
397cd97ae9
|
@ -1,3 +1,4 @@
|
||||||
|
-- Nodes
|
||||||
minetest.register_node("mcl_end:end_stone", {
|
minetest.register_node("mcl_end:end_stone", {
|
||||||
description = "End Stone",
|
description = "End Stone",
|
||||||
tiles = {"mcl_end_end_stone.png"},
|
tiles = {"mcl_end_end_stone.png"},
|
||||||
|
@ -34,6 +35,40 @@ minetest.register_node("mcl_end:purpur_pillar", {
|
||||||
sounds = default.node_sound_stone_defaults(),
|
sounds = default.node_sound_stone_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
|
local rod_box = {
|
||||||
|
type = "wallmounted",
|
||||||
|
wall_top = {-0.125, -0.5, -0.125, 0.125, 0.5, 0.125},
|
||||||
|
wall_side = {-0.5, -0.125, -0.125, 0.5, 0.125, 0.125},
|
||||||
|
wall_bottom = {-0.125, -0.5, -0.125, 0.125, 0.5, 0.125},
|
||||||
|
}
|
||||||
|
minetest.register_node("mcl_end:end_rod", {
|
||||||
|
description = "End Rod",
|
||||||
|
tiles = {
|
||||||
|
"mcl_end_end_rod_top.png",
|
||||||
|
"mcl_end_end_rod_bottom.png",
|
||||||
|
"mcl_end_end_rod_side.png",
|
||||||
|
"mcl_end_end_rod_side.png",
|
||||||
|
"mcl_end_end_rod_side.png",
|
||||||
|
"mcl_end_end_rod_side.png",
|
||||||
|
},
|
||||||
|
drawtype = "nodebox",
|
||||||
|
paramtype = "light",
|
||||||
|
paramtype2 = "wallmounted",
|
||||||
|
light_source = 14,
|
||||||
|
sunlight_propagates = true,
|
||||||
|
groups = { dig_immediate=3, deco_block=1 },
|
||||||
|
node_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {
|
||||||
|
{-0.125, -0.5, -0.125, 0.125, -0.4375, 0.125}, -- Base
|
||||||
|
{-0.0625, -0.4375, -0.0625, 0.0625, 0.5, 0.0625}, -- Rod
|
||||||
|
},
|
||||||
|
},
|
||||||
|
selection_box = rod_box,
|
||||||
|
collision_box = rod_box,
|
||||||
|
sounds = default.node_sound_glass_defaults(),
|
||||||
|
})
|
||||||
|
|
||||||
minetest.register_node("mcl_end:dragon_egg", {
|
minetest.register_node("mcl_end:dragon_egg", {
|
||||||
description = "Dragon Egg",
|
description = "Dragon Egg",
|
||||||
tiles = {
|
tiles = {
|
||||||
|
@ -66,6 +101,16 @@ minetest.register_node("mcl_end:dragon_egg", {
|
||||||
-- TODO: Make dragon egg teleport on punching
|
-- TODO: Make dragon egg teleport on punching
|
||||||
})
|
})
|
||||||
|
|
||||||
|
-- Craftitems
|
||||||
|
minetest.register_craftitem("mcl_end:ender_eye", {
|
||||||
|
description = "Eye of Ender",
|
||||||
|
wield_image = "mcl_end_ender_eye.png",
|
||||||
|
inventory_image = "mcl_end_ender_eye.png",
|
||||||
|
stack_max = 64,
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
|
-- Crafting recipes
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "mcl_end:end_bricks 4",
|
output = "mcl_end:end_bricks 4",
|
||||||
recipe = {
|
recipe = {
|
||||||
|
@ -74,11 +119,12 @@ minetest.register_craft({
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craftitem("mcl_end:ender_eye", {
|
minetest.register_craft({
|
||||||
description = "Eye of Ender",
|
output = "mcl_end:end_rod 4",
|
||||||
wield_image = "mcl_end_ender_eye.png",
|
recipe = {
|
||||||
inventory_image = "mcl_end_ender_eye.png",
|
{"mcl_mobitems:blaze_rod"},
|
||||||
stack_max = 64,
|
{"mcl_end:chorus_fruit_popped"},
|
||||||
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 6.3 KiB |
BIN
mods/mcl_end/textures/mcl_end_end_rod_bottom.png
Normal file
BIN
mods/mcl_end/textures/mcl_end_end_rod_bottom.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 944 B |
BIN
mods/mcl_end/textures/mcl_end_end_rod_side.png
Normal file
BIN
mods/mcl_end/textures/mcl_end_end_rod_side.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.0 KiB |
BIN
mods/mcl_end/textures/mcl_end_end_rod_top.png
Normal file
BIN
mods/mcl_end/textures/mcl_end_end_rod_top.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1005 B |
Loading…
Reference in New Issue
Block a user