Compare commits
5 Commits
7c84d89b27
...
243e8a67d4
Author | SHA1 | Date |
---|---|---|
Wuzzy | 243e8a67d4 | |
Wuzzy | a4cf09ae4f | |
Wuzzy | 3e88c431aa | |
Wuzzy | d4e271061e | |
Wuzzy | af154e66a6 |
|
@ -9,7 +9,7 @@ If `static_spawnpoint` is set, the Origin will be set one node length below
|
|||
that point instead.
|
||||
|
||||
## Current version
|
||||
The current version is 1.3.0.
|
||||
The current version is 1.3.1.
|
||||
|
||||
## Technical notes
|
||||
The mod tries to ensure that the Origin will only be set once per world.
|
||||
|
|
9
init.lua
9
init.lua
|
@ -5,8 +5,7 @@ version 1.3.0
|
|||
|
||||
local S
|
||||
if (minetest.get_modpath("intllib")) then
|
||||
dofile(minetest.get_modpath("intllib").."/intllib.lua")
|
||||
S = intllib.Getter(minetest.get_current_modname())
|
||||
S = intllib.Getter()
|
||||
else
|
||||
S = function ( s ) return s end
|
||||
end
|
||||
|
@ -24,7 +23,7 @@ do
|
|||
origin.exists = false
|
||||
end
|
||||
|
||||
origin.settings.force_singlenode = minetest.setting_getbool("origin_force_singlenode")
|
||||
origin.settings.force_singlenode = minetest.settings:get_bool("origin_force_singlenode")
|
||||
if origin.settings.force_singlenode == nil then
|
||||
origin.settings.force_singlenode = true
|
||||
end
|
||||
|
@ -32,8 +31,8 @@ end
|
|||
|
||||
minetest.register_node("origin:origin",{
|
||||
description = S("The Origin"),
|
||||
x_doc_items_longdesc = S("The Origin is the starting block of this world. On the Origin the earliest visitors of this world arrive and it is the first block at which all other blocks can be built to, so that builders can build their architectural masterpieces in a world which would be (usually) empty otherwise."),
|
||||
groups = { not_in_creative_inventory = 1, in_doc = 1, immortal = 1 },
|
||||
_doc_items_longdesc = S("The Origin is the starting block of this world. On the Origin the earliest visitors of this world arrive and it is the first block at which all other blocks can be built to, so that builders can build their architectural masterpieces in a world which would be (usually) empty otherwise."),
|
||||
groups = { not_in_creative_inventory = 1, immortal = 1 },
|
||||
diggable = false,
|
||||
tiles = {"origin_origin.png"},
|
||||
sounds = { footstep = "origin_origin_footstep" },
|
||||
|
|
Loading…
Reference in New Issue