1
0
mirror of https://github.com/Sokomine/replacer.git synced 2025-07-04 00:51:23 +02:00

code clean up

This commit is contained in:
kakalak-lumberjack
2023-05-19 09:36:28 -04:00
parent af24596dcb
commit 5cc1abc230

View File

@ -19,20 +19,12 @@ dofile(minetest.get_modpath("replacer") .. "/hud.lua")
minetest.register_tool("replacer:replacer", {
description = "Node replacement tool",
groups = {},
inventory_image = "replacer_replacer.png",
use_texture_alpha = true,
wield_image = "",
wield_scale = {
x = 1,
y = 1,
z = 1
},
stack_max = 1, -- it has to store information - thus only one can be stacked
liquids_pointable = true, -- it is ok to paint in/with water
node_placement_prediction = nil,
metadata = "default:dirt", -- default replacement: common dirt
on_place = function(itemstack, placer, pointed_thing)
if (placer == nil or pointed_thing == nil) then
return itemstack -- nothing consumed