Philosoph228 wrote:How can I get the maximum and minimum heights of the world?
mbb wrote:how i can generate a 1 block deep ozean per mod?
RealGoldenHart wrote:1. How would I go about setting a node to be collidable with all but one other node? To be more specfic, I want node a to be able to go through node b, but I don't want node c, or any other node, to be able to go through node b. I also want to be able to build on node b.... soo I'm confused.
RealGoldenHart wrote:2. Can I make a node able to travel up after taking a certain action, such as right clicking the node.
RealGoldenHart wrote:3. How would I go about generating a realm in the sky? For example, rather than in caverealms where the realms are spawned underground, is it possible to do that in the sky?
Now...I realize this makes the mod impossible for servers to add, because they would have to make a new world for this addition. Is there any alternative that achieves the same goal?
local function stepkey()
   local player = minetest.get_player_by_name("singleplayer")
   repeat
   until player:get_player_control().aux1
   repeat
   until not player:get_player_control().aux1
endcx384 wrote:You can write print("variable") in every line.
orwell wrote:maybe print just everything...
print(dump(table_of_all_relevant_data))
There is no other way
local ringbuflen=200
local ringbufs={}
local ringbufcnt={}
function advtrains.drb_record(tid, msg)
   if not ringbufs[tid] then
      ringbufs[tid]={}
      ringbufcnt[tid]=0
   end
   ringbufs[tid][ringbufcnt[tid]]=msg
   ringbufcnt[tid]=ringbufcnt[tid]+1
   if ringbufcnt[tid] > ringbuflen then
      ringbufcnt[tid]=0
   end
end
function advtrains.drb_dump_and_exit(pts, tid)
   print("Train "..tid.." dumping ringbuffer at pos:", pts)
   local stopcnt=ringbufcnt[tid]
   repeat
      minetest.log("action", ringbufcnt[tid]..ringbufs[tid][ringbufcnt[tid]])
      ringbufcnt[tid]=ringbufcnt[tid]+1
      if ringbufcnt[tid] > ringbuflen then
         ringbufcnt[tid]=0
      end
   until ringbufcnt[tid]==stopcnt
   minetest.log("action", dump(advtrains.trains[tid]))
   error("Successfully dumped stuff")
end
Users browsing this forum: No registered users and 7 guests