[WIP][MOD] Simple Scaffolding [help wanted]

DanteLives
Member
 
Posts: 25
Joined: Fri Jul 13, 2012 06:35

[WIP][MOD] Simple Scaffolding [help wanted]

by DanteLives » Sun Dec 06, 2015 00:24

This is the latest version of my scaffolding mod. I've taken it as far as I can go with my very limited programming skills. Therefore I'm posting it here to see if anyone with more skills would like to work on it before moving it into released mods.

The main idea for this mod is to make scaffolding simple and easy to use. Only one recipe is needed to make a node that will be walkable or climbable depending on the context of its placement. If the scaffolding nodes are stacked then they are climbable. Otherwise, the scaffolding is walkable. In either case, the scaffolding doesn't require a tool to remove and removal is instantaneous.

Scaffolding can be made in several colors to make it easier to mark distances. The coloredwood mod is recommended, but not required.

A tip on placing the nodes: Minetest doesn't care if you point to an outside edge of a hollow block (defined by using nodebox drawtype) or an inside edge. Therefore, you can place scaffolding nodes directly above the player's head while climbing a stack by pointing to the top edge of one of the bottom bars of the top scaffolding node.

Here is my bug and wish list for this mod that my skills are too limited to correct or implement:

    scaffolding of different colors will not interact to change walkable scaffolding into climbable scaffolding
    I'd like to have a special command to manually switch already placed nodes between walkable and climbable
    I'd like to be able to place climbable nodes where the player stands to make it easier to build climbable stacks
Attachments
simple_scaffolding.zip
(7.83 KiB) Downloaded 92 times
 

twoelk
Member
 
Posts: 1092
Joined: Fri Apr 19, 2013 16:19

Re: [WIP][MOD] Simple Scaffolding [help wanted]

by twoelk » Sun Dec 06, 2015 10:59

The ownerhack mod might be of interest. You could for example use it to edit infotext of some nodes with it and let them display some number or other information relevant to planning a building.

So maybe for your mod something similar like a scaffolding-wrench or whatever tool seems fitting could be used to edit the properties of scaffolding nodes such as color, toggle climbable or walkable or add infotext.

just for reference:
Scaffolding [v2] [scaffolding]
Say Goodbye To Dirt Scaffolding [scaffolding]
 

User avatar
AiTechEye
Member
 
Posts: 409
Joined: Fri May 29, 2015 21:14

Re: [WIP][MOD] Simple Scaffolding [help wanted]

by AiTechEye » Sun Dec 06, 2015 13:43

DanteLives wrote:I'd like to have a special command to manually switch already placed nodes between walkable and climbable


This maybe can help you a bit
... why not just make a carft recept instand?
a usefull link: http://dev.minetest.net/Category:Methods

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
minetest.register_chatcommand("scaffolding", {
   params = "",
   description = "Replace to climbable",
   func = function(name, param) -- can be used like: /scaffolding param ( param=text)

      local pos=minetest.get_player_by_name(name):getpos()

      -- looking for 100 simple_scaffolding:scaffolding
      -- if it find and is not protected by someone else
      -- replace to climbable and continue
      -- or exit the function


      for i=0,100,1 do
         np=minetest.find_node_near(pos, 10,{
         "simple_scaffolding:scaffolding",
         })
         if np~=nil and minetest.is_protected(np,name)==false then
            minetest.set_node(np, { name = "simple_scaffolding:scaffolding_climbable" })
         else
            return false
         end
      end
)}
Alive AI Mine/Build AI NPC
Gravitygun HL2
Portalgun Portal
Marssurvive Survive on mars
Bows bows + arrows
SoundCloud (Music)
SoundCloud (Classic)
YouTube
 

DanteLives
Member
 
Posts: 25
Joined: Fri Jul 13, 2012 06:35

Re: [WIP][MOD] Simple Scaffolding [help wanted]

by DanteLives » Sat Dec 12, 2015 21:22

Thank you for the suggestions. I'll look more into them after Christmas shopping is done.
 


Return to WIP Mods

Who is online

Users browsing this forum: No registered users and 8 guests

cron