duplicate has a cost

clockgen: unnecessary local
mover: update hardness table
This commit is contained in:
waxtatect 2023-01-20 15:45:59 +01:00
parent 6a8085abce
commit dfa3498650
2 changed files with 4 additions and 2 deletions

View File

@ -1,12 +1,11 @@
local S = basic_machines.S
local machines_TTL = basic_machines.properties.machines_TTL
local machines_timer = basic_machines.properties.machines_timer
minetest.register_abm({
label = "[basic_machines] Clock Generator",
nodenames = {"basic_machines:clockgen"},
neighbors = {},
interval = machines_timer,
interval = basic_machines.properties.machines_timer,
chance = 1,
action = function(pos, node, active_object_count, active_object_count_wider)

View File

@ -56,6 +56,7 @@ local mover = {
-- note: fuel cost is this multiplied by distance and divided by machine_operations..
hardness = {
["bedrock2:bedrock"] = 999999,
["bedrock:bedrock"] = 999999,
["default:acacia_tree"] = 2,
["default:bush_leaves"] = 0.1,
["default:cloud"] = 999999,
@ -67,6 +68,8 @@ local mover = {
["default:stone"] = 4,
["default:tree"] = 2,
["gloopblocks:pumice_cooled"] = 2,
["itemframes:frame"] = 999999,
["itemframes:pedestal"] = 999999,
["painting:canvasnode"] = 999999,
["painting:pic"] = 999999,
["statue:pedestal"] = 999999,