You can only pet the cute end of a longcat

This commit is contained in:
Aaron Suen 2022-09-24 20:15:06 -04:00
parent 857afcc296
commit e9007c7a38
2 changed files with 9 additions and 4 deletions

View File

@ -1,6 +1,6 @@
-- LUALOCALS < ---------------------------------------------------------
local math, minetest, nodecore, vector
= math, minetest, nodecore, vector
local ipairs, math, minetest, nodecore, vector
= ipairs, math, minetest, nodecore, vector
local math_random
= math.random
-- LUALOCALS > ---------------------------------------------------------
@ -124,7 +124,11 @@ local function reg(id, base, spot)
end
end
}
minetest.register_node(modname .. ":cat_" .. id, nodecore.underride({}, basedef))
minetest.register_node(modname .. ":cat_" .. id, nodecore.underride({
groups = {
[modname .. "_pettable"] = 1
}
}, basedef))
minetest.register_node(modname .. ":longcat_front_" .. id,
nodecore.underride({
description = "LongCat",
@ -138,6 +142,7 @@ local function reg(id, base, spot)
},
groups = {
falling_node = 0,
[modname .. "_pettable"] = 1,
[modname .. "_longcat"] = 1
},
drop = modname .. ":cat_" .. id

View File

@ -109,7 +109,7 @@ nodecore.register_craft({
label = "pet cat",
action = "pummel",
toolgroups = {thumpy = 1},
indexkeys = {"group:" .. modname .. "_cat"},
indexkeys = {"group:" .. modname .. "_pettable"},
check = myapi.notpurring,
nodes = {
{match = {