mirror of
https://codeberg.org/tenplus1/farming.git
synced 2024-11-10 20:30:31 +01:00
log seed placement (thx Emojigit)
This commit is contained in:
parent
0addf044b6
commit
4bf83d3bbf
8
init.lua
8
init.lua
|
@ -12,7 +12,7 @@ local S = minetest.get_translator("farming")
|
|||
|
||||
farming = {
|
||||
mod = "redo",
|
||||
version = "20240825",
|
||||
version = "20240906",
|
||||
path = minetest.get_modpath("farming"),
|
||||
select = {type = "fixed", fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5}},
|
||||
select_final = {type = "fixed", fixed = {-0.5, -0.5, -0.5, 0.5, -2.5/16, 0.5}},
|
||||
|
@ -482,6 +482,12 @@ function farming.place_seed(itemstack, placer, pointed_thing, plantname)
|
|||
|
||||
minetest.sound_play("default_place_node", {pos = pt.above, gain = 1.0})
|
||||
|
||||
minetest.log("action", string.format(
|
||||
"%s planted %s at %s",
|
||||
placer:is_player() and placer:get_player_name() or "A mod",
|
||||
itemstack:get_name(), minetest.pos_to_string(pt.above)
|
||||
))
|
||||
|
||||
if placer and itemstack
|
||||
and not farming.is_creative(placer:get_player_name()) then
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user