Compare commits

...

4 Commits

Author SHA1 Message Date
AliasAlreadyTaken
23defad3fb your-land/bugtracker#7488 Performance enhancement 2024-11-13 08:38:21 +01:00
AliasAlreadyTaken
ba990d370e Version 1.0.1 2024-07-21 17:09:40 +02:00
AliasAlreadyTaken
5c8ea8b3a7 your-land/bugtracker#7134 Adds slightly thicker selectionbox 2024-07-21 17:07:02 +02:00
AliasAlreadyTaken
94283869c1 your-land/bugtracker#7135 Adds dig_immediate group 2024-07-21 16:49:06 +02:00
2 changed files with 16 additions and 6 deletions

View File

@ -1,8 +1,10 @@
-- Version 0.0.1
-- Version 1.0.1
-- Author AliasAlreadyTaken
-- License MIT
-- Changelog
-- 0.0.1 Release
-- 1.0.1 Minor tweaks (selectionbox and dig_immediate)
local mod_start_time = core.get_us_time()
core.log("action", "[MOD] yl_googly_eyes loading")
@ -14,7 +16,7 @@ yl_googly_eyes.modpath = core.get_modpath("yl_googly_eyes") .. DIR_DELIM
--yl_googly_eyes.worldpath = core.get_worldpath() .. DIR_DELIM
yl_googly_eyes.information = {}
yl_googly_eyes.information.version = "0.0.1"
yl_googly_eyes.information.version = "1.0.1"
yl_googly_eyes.information.author = "AliasAlreadyTaken"
yl_googly_eyes.information.license = "MIT"
yl_googly_eyes.information.name = "Adds various googly eyes"

View File

@ -34,7 +34,7 @@ function yl_googly_eyes.register_eye(name)
minetest.register_node(":yl_googly_eyes:" .. name, {
description = "Googly Eyes!",
drawtype = "nodebox",
use_texture_alpha = "blend",
use_texture_alpha = "clip",
tiles = {"yl_googly_eyes_" .. name .. ".png"},
is_ground_content = false,
inventory_image = "yl_googly_eyes_" .. name .. ".png",
@ -48,7 +48,11 @@ function yl_googly_eyes.register_eye(name)
type = "fixed",
fixed = {-0.5, -0.4375, -0.5, 0.5, -0.4375, 0.5}
},
groups = {choppy = 3},
selection_box = {
type = "fixed",
fixed = {-0.5, -0.375, -0.5, 0.5, -0.5, 0.5}
},
groups = {choppy = 3, dig_immediate = 2},
on_place = on_place
})
end
@ -59,7 +63,7 @@ function yl_googly_eyes.register_eye_with_tiles(name, tiles)
minetest.register_node(":yl_googly_eyes:" .. name, {
description = "Googly Eyes!",
drawtype = "nodebox",
use_texture_alpha = "blend",
use_texture_alpha = "clip",
tiles = tiles,
is_ground_content = false,
paramtype = "light",
@ -71,7 +75,11 @@ function yl_googly_eyes.register_eye_with_tiles(name, tiles)
type = "fixed",
fixed = {-0.5, -0.4375, -0.5, 0.5, -0.4375, 0.5}
},
groups = {choppy = 3},
selection_box = {
type = "fixed",
fixed = {-0.5, -0.375, -0.5, 0.5, -0.5, 0.5}
},
groups = {choppy = 3, dig_immediate = 2},
on_place = on_place
})
end