Elias Fleckenstein 5a2bf6634c Added Clientmods
2020-07-07 14:16:44 +02:00

12 lines
340 B
Lua

local function loop()
local item = minetest.get_wielded_item():get_name()
local pos = minetest.find_node_near(minetest.localplayer:get_pos(), 5, "mcl_farming:wheat", true)
if item == "mcl_farming:wheat_seeds" and pos then
minetest.dig_node(pos)
minetest.place_node(pos)
end
minetest.after(0.1, loop)
end
minetest.after(0.1, loop)