version 0.21
3
mods/head/README.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
head mineclone
|
||||
====
|
||||
Begin of little head
|
1
mods/head/depends.txt
Normal file
|
@ -0,0 +1 @@
|
|||
default
|
52
mods/head/init.lua
Normal file
|
@ -0,0 +1,52 @@
|
|||
-- head system
|
||||
|
||||
function addhead(node, desc)
|
||||
minetest.register_node("head:"..node, {
|
||||
description = ""..desc,
|
||||
drawtype = "nodebox",
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{ -0.25, -0.5, -0.25, 0.25, 0.0, 0.25, },
|
||||
},
|
||||
},
|
||||
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,head=1},
|
||||
tiles = {
|
||||
node.."_top.png",
|
||||
node.."_top.png",
|
||||
node.."_left.png",
|
||||
node.."_right.png",
|
||||
node.."_back.png",
|
||||
node.."_face.png",
|
||||
},
|
||||
paramtype = "light",
|
||||
stack_max = 16,
|
||||
paramtype2 = "facedir",
|
||||
sunlight_propagates = true,
|
||||
walkable = true,
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = { -0.25, -0.5, -0.25, 0.25, 0.0, 0.25, },
|
||||
},
|
||||
|
||||
})
|
||||
end
|
||||
|
||||
--head add
|
||||
addhead("zombie", "Zombie Head")
|
||||
addhead("creeper", "Creeper Head")
|
||||
addhead("steve", "Steve Head")
|
||||
addhead("herobrine", "Herobrine Head")
|
||||
|
||||
|
||||
minetest.register_abm(
|
||||
{nodenames = {"head:herobrine"},
|
||||
interval = 70,
|
||||
chance = 4,
|
||||
action = function(pos, node, active_object_count, active_object_count_wider)
|
||||
if math.random(1, 200) <= 1 then
|
||||
minetest.add_entity(pos, "mobs:herobrine")
|
||||
minetest.chat_send_all("Herobrine : I'm Here for you !")
|
||||
end
|
||||
end,
|
||||
})
|
BIN
mods/head/textures/creeper_back.png
Normal file
After Width: | Height: | Size: 917 B |
BIN
mods/head/textures/creeper_face.png
Normal file
After Width: | Height: | Size: 955 B |
BIN
mods/head/textures/creeper_left.png
Normal file
After Width: | Height: | Size: 915 B |
BIN
mods/head/textures/creeper_right.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
mods/head/textures/creeper_top.png
Normal file
After Width: | Height: | Size: 905 B |
BIN
mods/head/textures/herobrine_back.png
Normal file
After Width: | Height: | Size: 844 B |
BIN
mods/head/textures/herobrine_face.png
Normal file
After Width: | Height: | Size: 919 B |
BIN
mods/head/textures/herobrine_left.png
Normal file
After Width: | Height: | Size: 1,008 B |
BIN
mods/head/textures/herobrine_right.png
Normal file
After Width: | Height: | Size: 999 B |
BIN
mods/head/textures/herobrine_top.png
Normal file
After Width: | Height: | Size: 769 B |
BIN
mods/head/textures/steve_back.png
Normal file
After Width: | Height: | Size: 844 B |
BIN
mods/head/textures/steve_face.png
Normal file
After Width: | Height: | Size: 944 B |
BIN
mods/head/textures/steve_left.png
Normal file
After Width: | Height: | Size: 1,008 B |
BIN
mods/head/textures/steve_right.png
Normal file
After Width: | Height: | Size: 999 B |
BIN
mods/head/textures/steve_top.png
Normal file
After Width: | Height: | Size: 769 B |
BIN
mods/head/textures/zombie_back.png
Normal file
After Width: | Height: | Size: 944 B |
BIN
mods/head/textures/zombie_face.png
Normal file
After Width: | Height: | Size: 979 B |
BIN
mods/head/textures/zombie_left.png
Normal file
After Width: | Height: | Size: 1,008 B |
BIN
mods/head/textures/zombie_right.png
Normal file
After Width: | Height: | Size: 1 KiB |
BIN
mods/head/textures/zombie_top.png
Normal file
After Width: | Height: | Size: 951 B |