mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-04-30 13:11:41 -04:00
Make bugs only pointable with Bug Net
This commit is contained in:
parent
472997b4aa
commit
0cd3577481
2 changed files with 3 additions and 0 deletions
|
@ -33,6 +33,7 @@ for i in ipairs (butter_list) do
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
buildable_to = true,
|
buildable_to = true,
|
||||||
walkable = false,
|
walkable = false,
|
||||||
|
pointable = false,
|
||||||
groups = {catchable = 1},
|
groups = {catchable = 1},
|
||||||
selection_box = {
|
selection_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
|
|
|
@ -23,6 +23,7 @@ minetest.register_node("fireflies:firefly", {
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
buildable_to = true,
|
buildable_to = true,
|
||||||
walkable = false,
|
walkable = false,
|
||||||
|
pointable = false,
|
||||||
groups = {catchable = 1},
|
groups = {catchable = 1},
|
||||||
selection_box = {
|
selection_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
|
@ -91,6 +92,7 @@ minetest.register_node("fireflies:hidden_firefly", {
|
||||||
minetest.register_tool("fireflies:bug_net", {
|
minetest.register_tool("fireflies:bug_net", {
|
||||||
description = S("Bug Net"),
|
description = S("Bug Net"),
|
||||||
inventory_image = "fireflies_bugnet.png",
|
inventory_image = "fireflies_bugnet.png",
|
||||||
|
pointabilities = {nodes = {["group:catchable"] = true}},
|
||||||
on_use = function(itemstack, player, pointed_thing)
|
on_use = function(itemstack, player, pointed_thing)
|
||||||
local player_name = player and player:get_player_name() or ""
|
local player_name = player and player:get_player_name() or ""
|
||||||
if not pointed_thing or pointed_thing.type ~= "node" or
|
if not pointed_thing or pointed_thing.type ~= "node" or
|
||||||
|
|
Loading…
Add table
Reference in a new issue