1
0
Mirror von https://github.com/minetest-mods/mesecons.git synchronisiert 2026-01-02 22:05:18 +01:00

changed torch to be plantlike, x-shaped instead of just a sprite and only use 1 texture instead of 3 and changed delayer to require only 3 textures from texturepacks instead of 13 changing the model to be a simple slab

Dieser Commit ist enthalten in:
mruncreative
2024-04-14 14:06:36 +02:00
Ursprung cffbc33e6d
Commit 764cc24f9b
25 geänderte Dateien mit 13 neuen und 32 gelöschten Zeilen

Datei anzeigen

@@ -27,20 +27,6 @@ local delaytime = { 0.1, 0.3, 0.5, 1.0 }
for i = 1, 4 do for i = 1, 4 do
local boxes = {
{ -6/16, -8/16, -6/16, 6/16, -7/16, 6/16 }, -- the main slab
{ -2/16, -7/16, -4/16, 2/16, -26/64, -3/16 }, -- the jeweled "on" indicator
{ -3/16, -7/16, -3/16, 3/16, -26/64, -2/16 },
{ -4/16, -7/16, -2/16, 4/16, -26/64, 2/16 },
{ -3/16, -7/16, 2/16, 3/16, -26/64, 3/16 },
{ -2/16, -7/16, 3/16, 2/16, -26/64, 4/16 },
{ -6/16, -7/16, -6/16, -4/16, -27/64, -4/16 }, -- the timer indicator
{ -8/16, -8/16, -1/16, -6/16, -7/16, 1/16 }, -- the two wire stubs
{ 6/16, -8/16, -1/16, 8/16, -7/16, 1/16 }
}
-- Delayer definition defaults -- Delayer definition defaults
local def = { local def = {
drawtype = "nodebox", drawtype = "nodebox",
@@ -48,11 +34,11 @@ local def = {
walkable = true, walkable = true,
selection_box = { selection_box = {
type = "fixed", type = "fixed",
fixed = { -8/16, -8/16, -8/16, 8/16, -6/16, 8/16 }, fixed = { -8/16, -8/16, -8/16, 8/16, -7/16, 8/16 },
}, },
node_box = { node_box = {
type = "fixed", type = "fixed",
fixed = boxes fixed = {-0.5, -0.5, -0.5, 0.5, -0.5+(1/16), 0.5}
}, },
paramtype = "light", paramtype = "light",
paramtype2 = "facedir", paramtype2 = "facedir",
@@ -75,15 +61,10 @@ end
local off_state = { local off_state = {
description = S("Delayer"), description = S("Delayer"),
tiles = { tiles = {
"mesecons_delayer_off_"..tostring(i)..".png", "mesecons_delayer_bottom.png^mesecons_delayer_off.png^mesecons_delayer_"..tostring(i)..".png",
"mesecons_delayer_bottom.png", "mesecons_delayer_bottom.png",
"mesecons_delayer_ends_off.png",
"mesecons_delayer_ends_off.png",
"mesecons_delayer_sides_off.png",
"mesecons_delayer_sides_off.png"
}, },
inventory_image = "mesecons_delayer_off_1.png", wield_image = "mesecons_delayer_bottom.png^mesecons_delayer_off.png^mesecons_delayer_1.png",
wield_image = "mesecons_delayer_off_1.png",
groups = off_groups, groups = off_groups,
on_punch = function(pos, node, puncher) on_punch = function(pos, node, puncher)
if minetest.is_protected(pos, puncher and puncher:get_player_name() or "") then if minetest.is_protected(pos, puncher and puncher:get_player_name() or "") then
@@ -118,12 +99,8 @@ minetest.register_node("mesecons_delayer:delayer_off_"..tostring(i), off_state)
local on_state = { local on_state = {
description = S("You hacker you"), description = S("You hacker you"),
tiles = { tiles = {
"mesecons_delayer_on_"..tostring(i)..".png", "mesecons_delayer_bottom.png^mesecons_delayer_on.png^mesecons_delayer_"..tostring(i)..".png",
"mesecons_delayer_bottom.png", "mesecons_delayer_bottom.png",
"mesecons_delayer_ends_on.png",
"mesecons_delayer_ends_on.png",
"mesecons_delayer_sides_on.png",
"mesecons_delayer_sides_on.png"
}, },
groups = {bendy = 2, snappy = 1, dig_immediate = 2, not_in_creative_inventory = 1}, groups = {bendy = 2, snappy = 1, dig_immediate = 2, not_in_creative_inventory = 1},
on_punch = function(pos, node, puncher) on_punch = function(pos, node, puncher)

Binäre Datei nicht angezeigt.

Nachher

Breite:  |  Höhe:  |  Größe: 335 B

Binäre Datei nicht angezeigt.

Nachher

Breite:  |  Höhe:  |  Größe: 334 B

Binäre Datei nicht angezeigt.

Nachher

Breite:  |  Höhe:  |  Größe: 336 B

Binäre Datei nicht angezeigt.

Nachher

Breite:  |  Höhe:  |  Größe: 331 B

Binäre Datei nicht angezeigt.

Vorher

Breite:  |  Höhe:  |  Größe: 176 B

Binäre Datei nicht angezeigt.

Vorher

Breite:  |  Höhe:  |  Größe: 187 B

Binäre Datei nicht angezeigt.

Nachher

Breite:  |  Höhe:  |  Größe: 385 B

Binäre Datei nicht angezeigt.

Vorher

Breite:  |  Höhe:  |  Größe: 448 B

Binäre Datei nicht angezeigt.

Vorher

Breite:  |  Höhe:  |  Größe: 449 B

Binäre Datei nicht angezeigt.

Vorher

Breite:  |  Höhe:  |  Größe: 448 B

Binäre Datei nicht angezeigt.

Vorher

Breite:  |  Höhe:  |  Größe: 446 B

Binäre Datei nicht angezeigt.

Nachher

Breite:  |  Höhe:  |  Größe: 508 B

Binäre Datei nicht angezeigt.

Vorher

Breite:  |  Höhe:  |  Größe: 541 B

Binäre Datei nicht angezeigt.

Vorher

Breite:  |  Höhe:  |  Größe: 541 B

Binäre Datei nicht angezeigt.

Vorher

Breite:  |  Höhe:  |  Größe: 541 B

Binäre Datei nicht angezeigt.

Vorher

Breite:  |  Höhe:  |  Größe: 538 B

Binäre Datei nicht angezeigt.

Vorher

Breite:  |  Höhe:  |  Größe: 173 B

Binäre Datei nicht angezeigt.

Vorher

Breite:  |  Höhe:  |  Größe: 181 B

Datei anzeigen

@@ -56,8 +56,8 @@ local torch_selectionbox =
} }
minetest.register_node("mesecons_torch:mesecon_torch_off", { minetest.register_node("mesecons_torch:mesecon_torch_off", {
drawtype = "torchlike", drawtype = "plantlike",
tiles = {"jeija_torches_off.png", "jeija_torches_off_ceiling.png", "jeija_torches_off_side.png"}, tiles = {"jeija_torches_off.png"},
inventory_image = "jeija_torches_off.png", inventory_image = "jeija_torches_off.png",
paramtype = "light", paramtype = "light",
is_ground_content = false, is_ground_content = false,
@@ -75,8 +75,8 @@ minetest.register_node("mesecons_torch:mesecon_torch_off", {
}) })
minetest.register_node("mesecons_torch:mesecon_torch_on", { minetest.register_node("mesecons_torch:mesecon_torch_on", {
drawtype = "torchlike", drawtype = "plantlike",
tiles = {"jeija_torches_on.png", "jeija_torches_on_ceiling.png", "jeija_torches_on_side.png"}, tiles = {"jeija_torches_on.png"},
inventory_image = "jeija_torches_on.png", inventory_image = "jeija_torches_on.png",
wield_image = "jeija_torches_on.png", wield_image = "jeija_torches_on.png",
paramtype = "light", paramtype = "light",

Binäre Datei nicht angezeigt.

Vorher

Breite:  |  Höhe:  |  Größe: 146 B

Binäre Datei nicht angezeigt.

Vorher

Breite:  |  Höhe:  |  Größe: 142 B

Binäre Datei nicht angezeigt.

Vorher

Breite:  |  Höhe:  |  Größe: 147 B

Binäre Datei nicht angezeigt.

Vorher

Breite:  |  Höhe:  |  Größe: 139 B

Datei anzeigen

@@ -1 +1,5 @@
name = mesecons name = mesecons
release = 24168
author = Jeija
description = Adds digital circuitry, including wires, buttons, lights, and even programmable controllers.
title = Mesecons