mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-11-29 22:33:46 +01:00
Change pressure_plate group
parent
7fab1ada00
commit
bc3190d5a9
@ -144,9 +144,10 @@ These groups are used mostly for informational purposes
|
|||||||
* `container=1`: Other/unspecified container type
|
* `container=1`: Other/unspecified container type
|
||||||
* `spawn_egg=1`: Spawn egg
|
* `spawn_egg=1`: Spawn egg
|
||||||
|
|
||||||
* `pressure_plate=1`: Pressure plate (unspecified material)
|
* `pressure_plate=1`: Pressure plate (off)
|
||||||
* `pressure_plate=2`: Wooden pressure plate
|
* `pressure_plate=2`: Wooden pressure (on)
|
||||||
* `pressure_plate=3`: Stone pressure plate
|
* `button=1`: Button (off)
|
||||||
|
* `button=2`: Button (on)
|
||||||
|
|
||||||
* `plant=1`: Plant or part of a plant
|
* `plant=1`: Plant or part of a plant
|
||||||
* `double_plant`: Part of a double-sized plant. 1 = lower part, 2 = upper part
|
* `double_plant`: Part of a double-sized plant. 1 = lower part, 2 = upper part
|
||||||
|
@ -106,8 +106,10 @@ function mesecon.register_pressure_plate(basename, description, textures_off, te
|
|||||||
local groups_off = table.copy(plusgroups)
|
local groups_off = table.copy(plusgroups)
|
||||||
groups_off.attached_node = 1
|
groups_off.attached_node = 1
|
||||||
groups_off.dig_by_piston = 1
|
groups_off.dig_by_piston = 1
|
||||||
|
groups_off.pressure_plate = 1
|
||||||
local groups_on = table.copy(groups_off)
|
local groups_on = table.copy(groups_off)
|
||||||
groups_on.not_in_creative_inventory = 1
|
groups_on.not_in_creative_inventory = 1
|
||||||
|
groups_on.pressure_plate = 2
|
||||||
if not longdesc then
|
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."
|
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
|
end
|
||||||
@ -176,7 +178,7 @@ for w=1, #woods do
|
|||||||
nil,
|
nil,
|
||||||
{{woods[w][2], woods[w][2]}},
|
{{woods[w][2], woods[w][2]}},
|
||||||
mcl_sounds.node_sound_wood_defaults(),
|
mcl_sounds.node_sound_wood_defaults(),
|
||||||
{axey=1, material_wood=1,pressure_plate=2},
|
{axey=1, material_wood=1},
|
||||||
nil,
|
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.")
|
"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,
|
nil,
|
||||||
{{"mcl_core:stone", "mcl_core:stone"}},
|
{{"mcl_core:stone", "mcl_core:stone"}},
|
||||||
mcl_sounds.node_sound_stone_defaults(),
|
mcl_sounds.node_sound_stone_defaults(),
|
||||||
{pickaxey=1, material_stone=1, pressure_plate=3},
|
{pickaxey=1, material_stone=1},
|
||||||
{ player = true, mob = true },
|
{ 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.")
|
"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.")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user