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
fec82ab2
Commit
fec82ab2
authored
7 years ago
by
Wuzzy
Committed by
Vitaliy
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Sticky block: Add texture, sounds and groups (#397)
parent
02f8d291
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
mesecons_stickyblocks/init.lua
+6
-4
6 additions, 4 deletions
mesecons_stickyblocks/init.lua
mesecons_stickyblocks/textures/mesecons_stickyblocks_sticky.png
+0
-0
0 additions, 0 deletions
...ns_stickyblocks/textures/mesecons_stickyblocks_sticky.png
with
6 additions
and
4 deletions
mesecons_stickyblocks/init.lua
+
6
−
4
View file @
fec82ab2
...
...
@@ -3,15 +3,17 @@
-- All sides sticky block
minetest
.
register_node
(
"mesecons_stickyblocks:sticky_block_all"
,
{
description
=
"All-Sides Sticky Block"
,
tiles
=
{
"default_grass.png^default_footprint.png"
},
-- TODO: Rename to “All-Faces Sticky Block” when other sticky blocks become available
description
=
"Sticky Block"
,
tiles
=
{
"mesecons_stickyblocks_sticky.png"
},
is_ground_content
=
false
,
groups
=
{
dig_immediate
=
2
},
groups
=
{
choppy
=
3
,
oddly_breakable_by_hand
=
2
},
mvps_sticky
=
function
(
pos
,
node
)
local
connected
=
{}
for
_
,
r
in
ipairs
(
mesecon
.
rules
.
alldirs
)
do
table.insert
(
connected
,
vector
.
add
(
pos
,
r
))
end
return
connected
end
end
,
sounds
=
default
.
node_sound_wood_defaults
(),
})
This diff is collapsed.
Click to expand it.
mesecons_stickyblocks/textures/mesecons_stickyblocks_sticky.png
0 → 100644
+
0
−
0
View file @
fec82ab2
661 B
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