This commit is contained in:
ab 2021-03-11 14:57:48 +08:00
parent 5a17249d37
commit 807c4cbf30
4 changed files with 19 additions and 6 deletions

View File

@ -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.

Before

Width:  |  Height:  |  Size: 37 KiB

After

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.