Sponge text and sound added.d
This commit is contained in:
parent
5915e9626e
commit
0854c1d2bb
@ -42,3 +42,4 @@ Piece=Stück
|
||||
### sponge.lua ###
|
||||
|
||||
Sponge=Schwamm
|
||||
You feel fresh and neat.=Du fühlst dich frisch und adrett.
|
||||
|
@ -42,3 +42,4 @@ Piece=
|
||||
### sponge.lua ###
|
||||
|
||||
Sponge=
|
||||
You feel fresh and neat.=
|
||||
|
BIN
sounds/aqua_farming_ping.ogg
Normal file
BIN
sounds/aqua_farming_ping.ogg
Normal file
Binary file not shown.
@ -55,6 +55,12 @@ minetest.register_node(name, {
|
||||
"aqua_farming_sponge.png"
|
||||
},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
on_use = function(itemstack, user, pointed_thing)
|
||||
local username = user:get_player_name()
|
||||
minetest.chat_send_player(username, S("You feel fresh and neat."))
|
||||
minetest.sound_play("aqua_farming_ping", { to_player = username, loop = false,})
|
||||
|
||||
end
|
||||
})
|
||||
|
||||
aqua_farming.register_plant(def)
|
||||
|
Loading…
x
Reference in New Issue
Block a user