This commit is contained in:
parent
5a17249d37
commit
807c4cbf30
25
init.lua
25
init.lua
|
@ -1,7 +1,6 @@
|
|||
|
||||
winnie_sounds = {
|
||||
"da_pi_bi_sai",
|
||||
"man_lian_pen_fen_na",
|
||||
"man_lian_shi_fen",
|
||||
"na_mian_bao_wei_gou",
|
||||
"po_lan_zhuang_kuo",
|
||||
|
@ -9,14 +8,26 @@ winnie_sounds = {
|
|||
"sa_hu_jiao_mian",
|
||||
"ti_ba",
|
||||
"xi_shen_zhi_di",
|
||||
"yi_tu_kai_a"
|
||||
"jian_de_wo_man_lian_pen_fen_na_man_lian_shi_fen",
|
||||
}
|
||||
|
||||
winnie_words = {
|
||||
"大庇(pi)闭塞(sai)",
|
||||
"满脸是粪",
|
||||
"拿面包喂狗",
|
||||
"波(po)澜壮阔",
|
||||
"歼(qian)灭战",
|
||||
"撒胡椒面",
|
||||
"堤(ti)坝",
|
||||
"栖(xi)身之地",
|
||||
"溅得我满脸喷粪呐,满脸是粪",
|
||||
}
|
||||
|
||||
|
||||
minetest.register_node("winnie:winnie_block",{
|
||||
description = "Winnie Block",
|
||||
tiles = {"wn.png"},
|
||||
groups = {snappy=0,choppy=0,oddly_breakable_by_hand=2}
|
||||
groups = {snappy=0,choppy=0,oddly_breakable_by_hand=2},
|
||||
|
||||
})
|
||||
|
||||
|
@ -25,7 +36,7 @@ minetest.register_craft({
|
|||
recipe = {
|
||||
{'dye:yellow','dye:yellow','dye:yellow'},
|
||||
{'dye:red','default:wood','dye:red'},
|
||||
{'dye:yellow','dye:yellow','dye:yellow'}
|
||||
{'dye:yellow','dye:yellow','dye:yellow'},
|
||||
}
|
||||
|
||||
})
|
||||
|
@ -40,11 +51,13 @@ minetest.register_on_punchnode(function(pos,node,puncher,pointed_thing)
|
|||
end
|
||||
--]]
|
||||
local p = pos
|
||||
minetest.sound_play(winnie_sounds[math.random(1,10)],{
|
||||
num = math.random(1,tonumber(table.getn(winnie_sounds)))
|
||||
minetest.sound_play(winnie_sounds[num],{
|
||||
pos = p,
|
||||
max_hear_distance = 50,
|
||||
gain = 2
|
||||
gain = 2,
|
||||
})
|
||||
minetest.chat_send_player(n,winnie_words[num])
|
||||
end
|
||||
|
||||
|
||||
|
|
Binary file not shown.
BIN
textures/wn.png
BIN
textures/wn.png
Binary file not shown.
Before Width: | Height: | Size: 37 KiB After Width: | Height: | Size: 51 KiB |
BIN
textures/wn.xcf
BIN
textures/wn.xcf
Binary file not shown.
Loading…
Reference in New Issue