Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
kif_custom
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Minetest
kif_custom
Commits
c33c1bb1
Commit
c33c1bb1
authored
4 years ago
by
Peter Nerlich
Browse files
Options
Downloads
Patches
Plain Diff
improve salad pick to break on use without destroying any blocks
parent
a0f0a70b
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
additional_stuff/salad_pickaxe.lua
+12
-15
12 additions, 15 deletions
additional_stuff/salad_pickaxe.lua
with
12 additions
and
15 deletions
additional_stuff/salad_pickaxe.lua
+
12
−
15
View file @
c33c1bb1
local
break_immediately
=
{
times
=
{[
3
]
=
0
.
01
},
uses
=
1
,
leveldiff
=
0
,
maxlevel
=
0
}
minetest
.
register_tool
(
"kif_custom:pick_salad"
,
{
description
=
"Pickaxe f
rom
questionable quality"
,
description
=
"Pickaxe
o
f questionable quality"
,
inventory_image
=
"kif_custom_tool_picksalad.png"
,
tool_capabilities
=
{
max_drop_level
=
0
,
groupcaps
=
{
crumbly
=
break_immediately
,
cracky
=
break_immediately
,
snappy
=
break_immediately
,
choppy
=
break_immediately
,
fleshy
=
break_immediately
,
explody
=
break_immediately
,
oddly_breakable_by_hand
=
break_immediately
,
},
},
stack_max
=
1
,
sound
=
{
breaks
=
"kif_custom_salad_splotch"
},
on_use
=
function
(
itemstack
,
user
,
pointed_thing
)
if
user
~=
nil
then
minetest
.
sound_play
({
name
=
"kif_custom_salad_splotch"
,
},
{
object
=
user
})
end
return
ItemStack
()
end
})
minetest
.
register_craft
({
...
...
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