Sponge text and sound added.d

This commit is contained in:
A.C.M 2023-04-16 22:08:42 +02:00
parent 5915e9626e
commit 0854c1d2bb
4 changed files with 8 additions and 0 deletions

View File

@ -42,3 +42,4 @@ Piece=Stück
### sponge.lua ###
Sponge=Schwamm
You feel fresh and neat.=Du fühlst dich frisch und adrett.

View File

@ -42,3 +42,4 @@ Piece=
### sponge.lua ###
Sponge=
You feel fresh and neat.=

Binary file not shown.

View File

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