Skip to content

Commit

Permalink
moved gate textures to base mesecon mod, made delayer look like a gat…
Browse files Browse the repository at this point in the history
…e, removed dependency of gates on delayer
  • Loading branch information
mruncreative committed Apr 21, 2024
1 parent 59487a4 commit eab3099
Show file tree
Hide file tree
Showing 12 changed files with 19 additions and 5 deletions.
File renamed without changes
File renamed without changes
File renamed without changes
22 changes: 18 additions & 4 deletions mesecons_delayer/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@ local def = {
},
node_box = {
type = "fixed",
fixed = {-0.5, -0.5, -0.5, 0.5, -0.5+(1/16), 0.5}
fixed = {
{ -8/16, -8/16, -8/16, 8/16, -7/16, 8/16 }, -- bottom slab
{ -6/16, -7/16, -6/16, 6/16, -6/16, 6/16 }
},
},
paramtype = "light",
paramtype2 = "facedir",
Expand All @@ -60,11 +63,16 @@ end

local off_state = {
description = S("Delayer"),
inventory_image = "jeija_gate_off.png^jeija_delayer.png",
wield_image = "jeija_gate_off.png^jeija_delayer.png",
tiles = {
"jeija_microcontroller_bottom.png^mesecons_delayer_off.png^mesecons_delayer_"..tostring(i)..".png",
"jeija_microcontroller_bottom.png^jeija_gate_off.png^jeija_delayer.png^mesecons_delayer_"..tostring(i)..".png",
"jeija_microcontroller_bottom.png",
"jeija_gate_side.png",
"jeija_gate_side.png",
"jeija_gate_side.png",
"jeija_gate_side.png",
},
wield_image = "jeija_microcontroller_bottom.png^mesecons_delayer_off.png^mesecons_delayer_1.png",
groups = off_groups,
on_punch = function(pos, node, puncher)
if minetest.is_protected(pos, puncher and puncher:get_player_name() or "") then
Expand Down Expand Up @@ -98,9 +106,15 @@ minetest.register_node("mesecons_delayer:delayer_off_"..tostring(i), off_state)
-- Activated delayer definition defaults
local on_state = {
description = S("You hacker you"),
inventory_image = "jeija_gate_on.png^jeija_delayer.png",
wield_image = "jeija_gate_on.png^jeija_delayer.png",
tiles = {
"jeija_microcontroller_bottom.png^mesecons_delayer_on.png^mesecons_delayer_"..tostring(i)..".png",
"jeija_microcontroller_bottom.png^jeija_gate_on.png^jeija_delayer.png^mesecons_delayer_"..tostring(i)..".png",
"jeija_microcontroller_bottom.png",
"jeija_gate_side.png",
"jeija_gate_side.png",
"jeija_gate_side.png",
"jeija_gate_side.png",
},
groups = {bendy = 2, snappy = 1, dig_immediate = 2, not_in_creative_inventory = 1},
on_punch = function(pos, node, puncher)
Expand Down
Binary file added mesecons_delayer/textures/jeija_delayer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified mesecons_delayer/textures/mesecons_delayer_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified mesecons_delayer/textures/mesecons_delayer_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified mesecons_delayer/textures/mesecons_delayer_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified mesecons_delayer/textures/mesecons_delayer_4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed mesecons_delayer/textures/mesecons_delayer_off.png
Binary file not shown.
Binary file removed mesecons_delayer/textures/mesecons_delayer_on.png
Binary file not shown.
2 changes: 1 addition & 1 deletion mesecons_gates/mod.conf
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
name = mesecons_gates
depends = mesecons, mesecons_gamecompat, mesecons_microcontroller, mesecons_delayer, mesecons_torch, mesecons_materials
depends = mesecons, mesecons_gamecompat, mesecons_microcontroller, mesecons_torch, mesecons_materials

0 comments on commit eab3099

Please sign in to comment.