This commit is contained in:
ab 2021-03-11 01:26:37 +08:00
commit 5a17249d37
15 changed files with 76 additions and 0 deletions

5
LICENSE Normal file
View File

@ -0,0 +1,5 @@
Copyright (C) 2021 BingXian_Mo
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

18
ReadMe.md Normal file
View File

@ -0,0 +1,18 @@
# Winnie Block
这是一个有趣的辱包mod只需要不断点击Winnie Block就可以让你开开心心地在minetest游戏里面听维尼的错别字发言哦
## 作者信息和许可
For Lua Code
AuthorBingXian_Mo
LicenseMIT
For Texture
AuthorBingXian_Mo
LicenseCC BY 4.0
For Sounds
Extracted from web video
AuthorBingXian_Mo
LicenseCC0

53
init.lua Normal file
View File

@ -0,0 +1,53 @@
winnie_sounds = {
"da_pi_bi_sai",
"man_lian_pen_fen_na",
"man_lian_shi_fen",
"na_mian_bao_wei_gou",
"po_lan_zhuang_kuo",
"qian_mie_zhan",
"sa_hu_jiao_mian",
"ti_ba",
"xi_shen_zhi_di",
"yi_tu_kai_a"
}
minetest.register_node("winnie:winnie_block",{
description = "Winnie Block",
tiles = {"wn.png"},
groups = {snappy=0,choppy=0,oddly_breakable_by_hand=2}
})
minetest.register_craft({
output = 'winnie:winnie_block',
recipe = {
{'dye:yellow','dye:yellow','dye:yellow'},
{'dye:red','default:wood','dye:red'},
{'dye:yellow','dye:yellow','dye:yellow'}
}
})
minetest.register_on_punchnode(function(pos,node,puncher,pointed_thing)
if node.name == "winnie:winnie_block" then
local n = puncher:get_player_name()
--[[
for x,y in pairs(pos) do
minetest.log(x .. "=" .. y)
end
--]]
local p = pos
minetest.sound_play(winnie_sounds[math.random(1,10)],{
pos = p,
max_hear_distance = 50,
gain = 2
})
end
end)

BIN
sounds/da_pi_bi_sai.ogg Normal file

Binary file not shown.

Binary file not shown.

BIN
sounds/man_lian_shi_fen.ogg Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
sounds/qian_mie_zhan.ogg Normal file

Binary file not shown.

BIN
sounds/sa_hu_jiao_mian.ogg Normal file

Binary file not shown.

BIN
sounds/ti_ba.ogg Normal file

Binary file not shown.

BIN
sounds/xi_shen_zhi_di.ogg Normal file

Binary file not shown.

BIN
sounds/yi_tu_kai_a.ogg Normal file

Binary file not shown.

BIN
textures/wn.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

BIN
textures/wn.xcf Normal file

Binary file not shown.