mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-11-28 13:53:45 +01:00
Merge pull request 'Add bell' (#2216) from add_bell into master
Reviewed-on: https://git.minetest.land/MineClone2/MineClone2/pulls/2216
This commit is contained in:
commit
72f2cd26f8
16
mods/ITEMS/mcl_bells/README.md
Normal file
16
mods/ITEMS/mcl_bells/README.md
Normal 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
|
39
mods/ITEMS/mcl_bells/init.lua
Normal file
39
mods/ITEMS/mcl_bells/init.lua
Normal 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
|
2
mods/ITEMS/mcl_bells/locale/mcl_bells.fr.tr
Normal file
2
mods/ITEMS/mcl_bells/locale/mcl_bells.fr.tr
Normal file
@ -0,0 +1,2 @@
|
||||
# textdomain: mcl_observers
|
||||
Bell=Cloche
|
2
mods/ITEMS/mcl_bells/locale/template.txt
Normal file
2
mods/ITEMS/mcl_bells/locale/template.txt
Normal file
@ -0,0 +1,2 @@
|
||||
# textdomain: mcl_observers
|
||||
Bell=
|
2
mods/ITEMS/mcl_bells/mod.conf
Normal file
2
mods/ITEMS/mcl_bells/mod.conf
Normal file
@ -0,0 +1,2 @@
|
||||
name = mcl_bells
|
||||
optional_depends = mcl_wip
|
BIN
mods/ITEMS/mcl_bells/sounds/mcl_bells_bell_stroke.ogg
Executable file
BIN
mods/ITEMS/mcl_bells/sounds/mcl_bells_bell_stroke.ogg
Executable file
Binary file not shown.
BIN
mods/ITEMS/mcl_bells/textures/mcl_bells_bell.png
Normal file
BIN
mods/ITEMS/mcl_bells/textures/mcl_bells_bell.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 261 B |
BIN
mods/ITEMS/mcl_bells/textures/mcl_bells_bell_bottom.png
Normal file
BIN
mods/ITEMS/mcl_bells/textures/mcl_bells_bell_bottom.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 760 B |
BIN
mods/ITEMS/mcl_bells/textures/mcl_bells_bell_side.png
Normal file
BIN
mods/ITEMS/mcl_bells/textures/mcl_bells_bell_side.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 695 B |
BIN
mods/ITEMS/mcl_bells/textures/mcl_bells_bell_top.png
Normal file
BIN
mods/ITEMS/mcl_bells/textures/mcl_bells_bell_top.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 656 B |
Loading…
Reference in New Issue
Block a user