Initial commit
This commit is contained in:
commit
d52c39e873
21 changed files with 581 additions and 0 deletions
25
mods/rgt_towns/rgt_towns_main/init.lua
Normal file
25
mods/rgt_towns/rgt_towns_main/init.lua
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
rgt_towns.main = {}
|
||||
ns = rgt_towns.main
|
||||
|
||||
ns.plots = {
|
||||
|
||||
}
|
||||
|
||||
rgt_towns.register_spawner{
|
||||
plot = "covered_wagon",
|
||||
label = "Town Charter"
|
||||
}
|
||||
|
||||
minetest.register_chatcommand("charter", {
|
||||
func = function(name, args)
|
||||
minetest.get_player_by_name(name):get_inventory():add_item("main", rgt_towns.create_spawner("covered_wagon"))
|
||||
end
|
||||
})
|
||||
|
||||
rgt_towns.register_plot{
|
||||
name = "covered_wagon",
|
||||
label = "Covered Wagon",
|
||||
description = "Hello world",
|
||||
schematic = minetest.get_modpath(minetest.get_current_modname()).."/schems/covered_wagon.mts",
|
||||
can_build = ns.plots
|
||||
}
|
||||
2
mods/rgt_towns/rgt_towns_main/mod.conf
Normal file
2
mods/rgt_towns/rgt_towns_main/mod.conf
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
name = rgt_towns_main
|
||||
depends = rgt_towns_core
|
||||
BIN
mods/rgt_towns/rgt_towns_main/schems/covered_wagon.mts
Normal file
BIN
mods/rgt_towns/rgt_towns_main/schems/covered_wagon.mts
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue