added a craftable version of the bell
parent
7349a91d66
commit
a2362b08f3
|
@ -1,9 +1,12 @@
|
||||||
Bell that rings every hour as many times as the hour counts (1-12 times)
|
Bell that rings every hour as many times as the hour counts (1-12 times)
|
||||||
Works like a church bell.
|
Works like a church bell.
|
||||||
|
|
||||||
Sound and textures not yet included.
|
|
||||||
|
|
||||||
The positions of placed bells are saved. Thus, each bell can ring independently of the load status of the area the bell is in.
|
The positions of placed bells are saved. Thus, each bell can ring independently of the load status of the area the bell is in.
|
||||||
|
|
||||||
You can ring a bell manually.
|
You can ring a bell manually.
|
||||||
|
|
||||||
|
There is also a small bell (looks like the normal one) that can be crafted from gold blocks. Unlike the normal bell, this craftable one won't ring automaticly and has a much smaller hear distance.
|
||||||
|
|
||||||
|
If you actually want to use this mod, you need to create a folder sounds/ in it (on the same level as textures/) and put sound files named bell_bell.ogg (for the large, uncraftable bell) and bell_small.ogg (for the craftable one) into the folder.
|
||||||
|
|
||||||
|
License: GPLv3
|
||||||
|
|
28
init.lua
28
init.lua
|
@ -149,3 +149,31 @@ minetest.register_node("bell:bell", {
|
||||||
|
|
||||||
groups = {cracky=2},
|
groups = {cracky=2},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
minetest.register_node("bell:bell_small", {
|
||||||
|
description = "small bell",
|
||||||
|
node_placement_prediction = "",
|
||||||
|
tiles = {"bell_bell.png"},
|
||||||
|
paramtype = "light",
|
||||||
|
is_ground_content = true,
|
||||||
|
inventory_image = 'bell_bell.png',
|
||||||
|
wield_image = 'bell_bell.png',
|
||||||
|
stack_max = 1,
|
||||||
|
drawtype = "plantlike",
|
||||||
|
on_punch = function (pos,node,puncher)
|
||||||
|
minetest.sound_play( "bell_small",
|
||||||
|
{ pos = pos, gain = 1.5, max_hear_distance = 60,});
|
||||||
|
end,
|
||||||
|
groups = {cracky=2},
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = "bell:bell_small",
|
||||||
|
recipe = {
|
||||||
|
{"", "default:goldblock", "" },
|
||||||
|
{"default:goldblock", "default:goldblock", "default:goldblock"},
|
||||||
|
{"default:goldblock", "", "default:goldblock"},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
Loading…
Reference in New Issue