generated from your-land/yl_template
Cleanup
This commit is contained in:
parent
00a2ad6cb1
commit
705ea82e61
@ -21,11 +21,6 @@ yl_api_nodestages.debug = false
|
||||
```
|
||||
Set to true to enable debug mode
|
||||
|
||||
```
|
||||
yl_api_nodestages.maximum_stages
|
||||
```
|
||||
Set this to the maximum stages your node can have.
|
||||
|
||||
## Usage
|
||||
|
||||
This mod can be used in singleplayer and multiplayer. It comes with no direct content but exposes functions you can use in your mod.
|
||||
@ -129,7 +124,7 @@ Validates all stages currently attached to any node. Returns `true, good, bad, t
|
||||
## Limitations
|
||||
|
||||
* No randomized duration except by registering the same stage as a next_stage again
|
||||
* Air and ignore nodes cannot have stages
|
||||
* Core nodes cannot have stages, examples are `air` and `ignore`
|
||||
* Unclear: About 1 Million active stages may cause `Server::ActiveObjectMgr::addActiveObjectRaw(): no free id available`
|
||||
|
||||
## Alternatives
|
||||
|
@ -4,5 +4,3 @@
|
||||
yl_api_nodestages.settings = {}
|
||||
|
||||
yl_api_nodestages.settings.debug = minetest.settings:get("yl_api_nodestages.debug") or true
|
||||
|
||||
yl_api_nodestages.settings.maximum_stages = minetest.settings:get("yl_api_nodestages.maximum_stages") or 8
|
||||
|
2
init.lua
2
init.lua
@ -19,7 +19,7 @@ dofile(yl_api_nodestages.modpath .. "information.lua")
|
||||
dofile(yl_api_nodestages.modpath .. "config.lua")
|
||||
dofile(yl_api_nodestages.modpath .. "internal.lua")
|
||||
dofile(yl_api_nodestages.modpath .. "api.lua")
|
||||
--dofile(yl_api_nodestages.modpath .. "initialize.lua")
|
||||
dofile(yl_api_nodestages.modpath .. "initialize.lua")
|
||||
|
||||
local mod_end_time = (minetest.get_us_time() - mod_start_time) / 1000000
|
||||
minetest.log("action", "[MOD] yl_api_nodestages loaded in [" .. mod_end_time .. "s]")
|
||||
|
4
mod.conf
4
mod.conf
@ -1,4 +1,4 @@
|
||||
name = yl_api_nodestages
|
||||
description = A template with best practices
|
||||
description = An API for nodestages, which convert into other nodes
|
||||
author = AliasAlreadyTaken
|
||||
title = Template
|
||||
title = API Nodestages
|
@ -4,8 +4,3 @@
|
||||
# Set this to true to enable debug mode, it will output some more values to log
|
||||
# Optional, default is false
|
||||
yl_api_nodestages.debug (Debug mode) bool false
|
||||
|
||||
# Maximum stages
|
||||
# Set this to the maximum number of stages including seed
|
||||
# Optional, default is 8
|
||||
yl_api_nodestages.max_stages (Maximum stages) int 8
|
Loading…
Reference in New Issue
Block a user