Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
illuna-minetest
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
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
illuna-minetest
Commits
072c265c
Commit
072c265c
authored
13 years ago
by
Perttu Ahola
Browse files
Options
Downloads
Patches
Plain Diff
Modify minimal/give_initial_stuff to always give stuff
parent
440e9cdb
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
games/minimal/mods/give_initial_stuff/init.lua
+12
-9
12 additions, 9 deletions
games/minimal/mods/give_initial_stuff/init.lua
with
12 additions
and
9 deletions
games/minimal/mods/give_initial_stuff/init.lua
+
12
−
9
View file @
072c265c
minetest
.
register_on_newplayer
(
function
(
player
)
print
(
"on_newplayer"
)
if
minetest
.
setting_getbool
(
"give_initial_stuff"
)
then
print
(
"giving give_initial_stuff to player"
)
player
:
get_inventory
():
add_item
(
'main'
,
'default:pick_steel'
)
player
:
get_inventory
():
add_item
(
'main'
,
'default:torch 99'
)
player
:
get_inventory
():
add_item
(
'main'
,
'default:axe_steel'
)
player
:
get_inventory
():
add_item
(
'main'
,
'default:shovel_steel'
)
player
:
get_inventory
():
add_item
(
'main'
,
'default:cobble 99'
)
end
print
(
"[minimal] giving initial stuff to player"
)
player
:
get_inventory
():
add_item
(
'main'
,
'default:pick_stone'
)
player
:
get_inventory
():
add_item
(
'main'
,
'default:torch 99'
)
player
:
get_inventory
():
add_item
(
'main'
,
'default:cobble 99'
)
player
:
get_inventory
():
add_item
(
'main'
,
'default:wood 99'
)
player
:
get_inventory
():
add_item
(
'main'
,
'default:axe_steel'
)
player
:
get_inventory
():
add_item
(
'main'
,
'default:shovel_steel'
)
player
:
get_inventory
():
add_item
(
'main'
,
'default:pick_wood'
)
player
:
get_inventory
():
add_item
(
'main'
,
'default:pick_steel'
)
player
:
get_inventory
():
add_item
(
'main'
,
'default:pick_mese'
)
player
:
get_inventory
():
add_item
(
'main'
,
'default:mese 99'
)
player
:
get_inventory
():
add_item
(
'main'
,
'default:water_source 99'
)
end
)
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