Compare commits

...

5 Commits

Author SHA1 Message Date
Beha ef9ae22b81 Merge branch 'master' of github.com:shacknetisp/elevator 2021-06-16 22:58:21 -04:00
Beha 6d6e6968e1 Add doc_items help. 2021-06-16 22:58:00 -04:00
Beha fceb32aea4
Update README.md 2021-06-16 22:21:07 -04:00
Beha 65d677371a Specify 5.4 MT requirement. 2021-06-16 14:41:09 -04:00
Beha 4fa1575b41 Specify use_texture_alpha to avoid warnings. 2021-06-16 14:17:40 -04:00
3 changed files with 14 additions and 1 deletions

View File

@ -1,4 +1,5 @@
# Realtime Elevators for Minetest
[![ContentDB](https://content.minetest.net/packages/shacknetisp/realtime_elevator/shields/title/)](https://content.minetest.net/packages/shacknetisp/realtime_elevator/)
## Dependencies
This mod has no dependencies. This mod supports MineClone 2 and Minetest Game with improved recipes with Technic and either homedecor/chains or farming redo.

View File

@ -76,8 +76,11 @@ end
minetest.register_node("elevator:shaft", {
description = "Elevator Shaft",
_doc_items_longdesc = "An elevator shaft that connects elevators to other elevators and motors.",
_doc_items_usagehelp = "Building a vertical stack of elevators and shafts with an elevator motor on top allows vertical transportation.",
tiles = { moditems.el_shaft_gfx },
drawtype = "nodebox",
use_texture_alpha = "clip",
paramtype = "light",
on_rotate = moditems.on_rotate_disallow,
sunlight_propagates = true,
@ -116,6 +119,8 @@ minetest.register_node("elevator:shaft", {
minetest.register_node("elevator:motor", {
description = "Elevator Motor",
_doc_items_longdesc = "The engine powering an elevator shaft. Placed at the top.",
_doc_items_usagehelp = "Place the motor on the top of a stack of elevators and elevator shafts. The elevators will activate and you can then use them.",
tiles = {
moditems.steel_block_image,
moditems.steel_block_image,
@ -188,6 +193,7 @@ minetest.register_node("elevator:elevator_box", {
moditems.el_box_gfx,
},
groups = moditems.elevator_special_groups,
use_texture_alpha = "clip",
light_source = 4,
_mcl_blast_resistance = 15, -- mineclone2 specific
@ -233,6 +239,9 @@ for _,mode in ipairs({"on", "off"}) do
on_rotate = moditems.on_rotate_disallow,
climbable = true,
_doc_items_longdesc = on and "An active elevator, ready for transporting." or "An inactive elevator, not connected to a motor.",
_doc_items_usagehelp = on and "Step inside this elevator and use it (right-click) to be transported to any other elevator along the shaft." or "This elevator is inactive; it is disconnected from a motor. It may be extended with shafts and other elevators in a vertical line with an elevator motor on top to power the whole shaft and enable transport.",
selection_box = {
type = "fixed",
fixed = box,
@ -263,6 +272,8 @@ for _,mode in ipairs({"on", "off"}) do
moditems.el_box_gfx,
moditems.el_box_gfx,
},
use_texture_alpha = "clip",
groups = moditems.elevator_groups,
drop = "elevator:elevator_off",

View File

@ -1,3 +1,4 @@
name = elevator
description = An entity-based elevator allowing fast realtime travel in Minetest. Supports Minetest Game, MineClone2, and Aurum
optional_depends = default, technic, homedecor, chains, farming, mcl_core, mcl_sounds, aurum, screwdriver
optional_depends = default, technic, homedecor, chains, farming, mcl_core, mcl_sounds, aurum, screwdriver, doc_items
min_minetest_version = 5.4