-- commandblock.c:
money @nearest
--returns the following:
"Account: <player>
Money: <amount> credits."
-- commandblock.b
msg @nearest You have insufficient funds
--commandblock.a
money dec @nearest 50000
grant @nearest fly
-- 1. output-of-port.c = account-balance** or something **
-- 2.
if account-balance >= 50000
port.a = true
else
port.b = true
DoyleChris wrote:Question about running a Injector. I have my Grinders and Furnaces all hooked up with pipeworks and running all of them from one chest and a injector. The problem is that if i use a Blinky light, it feeds the pipeworks with to many items and Minetest starts to delete them. So i was wondering if there was a way i can do volume control with mesecons, I tried the moremesecons with the Adjustable Blinky light but i cant get it to slow down enough and also the delayer..
-- returns true if player was found, false if not
local object_detector_scan = function (pos)
local objs = minetest.get_objects_inside_radius(pos, mesecon.setting("detector_radius", 6))
for k, obj in pairs(objs) do
local isname = obj:get_player_name() -- "" is returned if it is not a player; "" ~= nil!
local scanname = minetest.get_meta(pos):get_string("scanname")
local sep = "," -- Begin code to split scaname into array
local t={} ; i=1
for str in string.gmatch(scanname, "([^"..sep.."]+)") do
t[i] = str:gsub("%s+", "")
i = i + 1
end -- end split code
for l = 1, i do
if (isname == t[l] and isname ~= "") or (isname ~= "" and scanname == "") then -- player with scanname found or not scanname specified
return true
end
end
end
return false
end
Serh Arien wrote:Hi everybody
I have a problem and i need your help :
I want to do an aventur maps : "Fort boyard". At the end, we need a code.
This code, i want to make it like the tv show ( on the floor)
so Is it possible to use pressure plates that we would connect to a Luacontroller which, when it will receive the energy of 3 plates (in the port a / c/ d), will give energi by the port b to the piston (only if a/c and d are right)
If you can help me, thanks to use simple word, i'm french
if port.a and port.c and port.d then
pin.b = true
else
pin.b = false
end
for l = 1, 3 do
for l = 1, i do
benrob0329 wrote:https://duck.co/ideas/idea/6784/mesecons-digilines-and-digilines-stuff-modpack-i
SaKeL wrote:Pushing item frames/stands with piston will throw the item out of the frame, but then you can get the item out of the frame by punching it - duplicating items for sure :/ is this something what can get fixed it this mod ?
SaKeL wrote:what mod for itemframes are you using ? i have the one from Vanessa
SaKeL wrote:is it possible to add more names in player detector ?
Minetestforfun wrote:SaKeL wrote:is it possible to add more names in player detector ?
Done on our servers, you can clone the code :)
https://github.com/MinetestForFun/serve ... f317fdad57
Users browsing this forum: No registered users and 13 guests