Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mesecons
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Illuna-Minetest
mesecons
Commits
6e326a6a
Commit
6e326a6a
authored
9 years ago
by
Marcin
Browse files
Options
Downloads
Patches
Plain Diff
Use right mouse button instead of left to press button and change state of switch and lever.
parent
d95ccf86
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
mesecons_button/init.lua
+1
-1
1 addition, 1 deletion
mesecons_button/init.lua
mesecons_switch/init.lua
+1
-1
1 addition, 1 deletion
mesecons_switch/init.lua
mesecons_walllever/init.lua
+1
-1
1 addition, 1 deletion
mesecons_walllever/init.lua
with
3 additions
and
3 deletions
mesecons_button/init.lua
+
1
−
1
View file @
6e326a6a
...
...
@@ -40,7 +40,7 @@ minetest.register_node("mesecons_button:button_off", {
},
groups
=
{
dig_immediate
=
2
,
mesecon_needs_receiver
=
1
},
description
=
"Button"
,
on_
punch
=
function
(
pos
,
node
)
on_
rightclick
=
function
(
pos
,
node
)
minetest
.
swap_node
(
pos
,
{
name
=
"mesecons_button:button_on"
,
param2
=
node
.
param2
})
mesecon
.
receptor_on
(
pos
,
mesecon
.
rules
.
buttonlike_get
(
node
))
minetest
.
sound_play
(
"mesecons_button_push"
,
{
pos
=
pos
})
...
...
This diff is collapsed.
Click to expand it.
mesecons_switch/init.lua
+
1
−
1
View file @
6e326a6a
...
...
@@ -4,7 +4,7 @@ mesecon.register_node("mesecons_switch:mesecon_switch", {
paramtype2
=
"facedir"
,
description
=
"Switch"
,
sounds
=
default
.
node_sound_stone_defaults
(),
on_
punch
=
function
(
pos
,
node
)
on_
rightclick
=
function
(
pos
,
node
)
if
(
mesecon
.
flipstate
(
pos
,
node
)
==
"on"
)
then
mesecon
.
receptor_on
(
pos
)
else
...
...
This diff is collapsed.
Click to expand it.
mesecons_walllever/init.lua
+
1
−
1
View file @
6e326a6a
...
...
@@ -15,7 +15,7 @@ mesecon.register_node("mesecons_walllever:wall_lever", {
fixed
=
{
-
8
/
16
,
-
8
/
16
,
3
/
16
,
8
/
16
,
8
/
16
,
8
/
16
},
},
sounds
=
default
.
node_sound_wood_defaults
(),
on_
punch
=
function
(
pos
,
node
)
on_
rightclick
=
function
(
pos
,
node
)
if
(
mesecon
.
flipstate
(
pos
,
node
)
==
"on"
)
then
mesecon
.
receptor_on
(
pos
,
mesecon
.
rules
.
buttonlike_get
(
node
))
else
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment