1
0
Fork 0

Merge pull request 'Add bell' (#2216) from add_bell into master

Reviewed-on: https://git.minetest.land/MineClone2/MineClone2/pulls/2216
mobs_head_rotation
cora 2022-05-21 10:36:04 +00:00
commit 72f2cd26f8
10 changed files with 61 additions and 0 deletions

View File

@ -0,0 +1,16 @@
mcl_bells
---------
Village bells for MineClone2, originally imported from mcl5, heavily modified by cora.
License of media files
----------------------
* sounds/bell_stroke.ogg - cc0 http://creativecommons.org/publicdomain/zero/1.0/
* created by edsward
* modified by sorcerykid
* obtained from https://freesound.org/people/edsward/sounds/341866/
* textures/mcl_bells_bell.png - cc4-by-sa https://creativecommons.org/licenses/by-sa/4.0/
* from pixelperfection by XSSheep and NovaWostra ( https://www.planetminecraft.com/texture-pack/pixel-perfection-chorus-edit/ )
* textures/mcl_bells_bell_*.png - cc0 http://creativecommons.org/publicdomain/zero/1.0/
* created by cora

View File

@ -0,0 +1,39 @@
local S = minetest.get_translator(minetest.get_current_modname())
mcl_bells = {}
local has_mcl_wip = minetest.get_modpath("mcl_wip")
function mcl_bells.ring_once(pos)
minetest.sound_play( "mcl_bells_bell_stroke", { pos = pos, gain = 1.5, max_hear_distance = 300,});
end
minetest.register_node("mcl_bells:bell", {
description = S("Bell"),
inventory_image = "mcl_bells_bell.png",
drawtype = "nodebox",
node_box = {
type = "fixed",
fixed = {
{ -8/16, -8/16, -8/16, 8/16, -6/16, 8/16 },
{ -6/16, -6/16, -6/16, 6/16, 6/16, 6/16 },
{ -2/16, 6/16, -2/16, 2/16, 8/16, 2/16 },
}
},
--tiles = { "blank.png" },
tiles = {
"mcl_bells_bell_top.png",
"mcl_bells_bell_bottom.png",
"mcl_bells_bell_side.png",
},
is_ground_content = false,
groups = {pickaxey=2, deco_block=1 },
sounds = mcl_sounds.node_sound_metal_defaults(),
_mcl_blast_resistance = 6,
_mcl_hardness = 5,
on_rightclick = mcl_bells.ring_once,
})
if has_mcl_wip then
mcl_wip.register_wip_item("mcl_bells:bell")
end

View File

@ -0,0 +1,2 @@
# textdomain: mcl_observers
Bell=Cloche

View File

@ -0,0 +1,2 @@
# textdomain: mcl_observers
Bell=

View File

@ -0,0 +1,2 @@
name = mcl_bells
optional_depends = mcl_wip

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 261 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 760 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 695 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 656 B