generated from your-land/yl_template
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
23defad3fb | ||
|
|
ba990d370e | ||
|
|
5c8ea8b3a7 | ||
|
|
94283869c1 |
6
init.lua
6
init.lua
@ -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"
|
||||
|
||||
16
internal.lua
16
internal.lua
@ -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
|
||||
Loading…
Reference in New Issue
Block a user