From bc3190d5a986528119d45c6b5a8b529adc1b3f1f Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Wed, 22 Nov 2017 22:42:00 +0100 Subject: [PATCH] Change pressure_plate group --- GROUPS.md | 7 ++++--- mods/ITEMS/REDSTONE/mesecons_pressureplates/init.lua | 6 ++++-- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/GROUPS.md b/GROUPS.md index 87714b09d6..a8aa9155b0 100644 --- a/GROUPS.md +++ b/GROUPS.md @@ -144,9 +144,10 @@ These groups are used mostly for informational purposes * `container=1`: Other/unspecified container type * `spawn_egg=1`: Spawn egg -* `pressure_plate=1`: Pressure plate (unspecified material) -* `pressure_plate=2`: Wooden pressure plate -* `pressure_plate=3`: Stone pressure plate +* `pressure_plate=1`: Pressure plate (off) +* `pressure_plate=2`: Wooden pressure (on) +* `button=1`: Button (off) +* `button=2`: Button (on) * `plant=1`: Plant or part of a plant * `double_plant`: Part of a double-sized plant. 1 = lower part, 2 = upper part diff --git a/mods/ITEMS/REDSTONE/mesecons_pressureplates/init.lua b/mods/ITEMS/REDSTONE/mesecons_pressureplates/init.lua index 519598f036..14d37ed17e 100644 --- a/mods/ITEMS/REDSTONE/mesecons_pressureplates/init.lua +++ b/mods/ITEMS/REDSTONE/mesecons_pressureplates/init.lua @@ -106,8 +106,10 @@ function mesecon.register_pressure_plate(basename, description, textures_off, te local groups_off = table.copy(plusgroups) groups_off.attached_node = 1 groups_off.dig_by_piston = 1 + groups_off.pressure_plate = 1 local groups_on = table.copy(groups_off) groups_on.not_in_creative_inventory = 1 + groups_on.pressure_plate = 2 if not longdesc then longdesc = "A pressure plate is a redstone component which supplies its surrounding blocks with redstone power while someone or something rests on top of it." end @@ -176,7 +178,7 @@ for w=1, #woods do nil, {{woods[w][2], woods[w][2]}}, mcl_sounds.node_sound_wood_defaults(), - {axey=1, material_wood=1,pressure_plate=2}, + {axey=1, material_wood=1}, nil, "A wooden pressure plate is a redstone component which supplies its surrounding blocks with redstone power while any movable object (including dropped items, players and mobs) rests on top of it.") @@ -197,7 +199,7 @@ mesecon.register_pressure_plate( nil, {{"mcl_core:stone", "mcl_core:stone"}}, mcl_sounds.node_sound_stone_defaults(), - {pickaxey=1, material_stone=1, pressure_plate=3}, + {pickaxey=1, material_stone=1}, { player = true, mob = true }, "A stone pressure plate is a redstone component which supplies its surrounding blocks with redstone power while a player or mob stands on top of it. It is not triggered by anything else.")