| | |
| | | if minetest.is_protected(pos, player:get_player_name()) then |
| | | return 0 |
| | | end |
| | | return stack:get_count() |
| | | return count |
| | | end |
| | | |
| | | can_dig = function(pos, player) |
| | |
| | | end |
| | | end |
| | | |
| | | local shape = {} |
| | | local onesize_products = { |
| | | slope = 2, |
| | | slope_edge = 1, |
| | |
| | | local inv = meta:get_inventory() |
| | | local inputstack = inv:get_stack("src", 1) |
| | | local inputname = inputstack:get_name() |
| | | local multiplier = 0 |
| | | local size = meta:get_int("size") |
| | | if size < 1 then size = 1 end |
| | | |
| | | for k, _ in pairs(fields) do |
| | | -- Set a multipier for the half/full size capable blocks |
| | | local multiplier |
| | | if twosize_products[k] ~= nil then |
| | | multiplier = size * twosize_products[k] |
| | | else |