Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI("ocs/apis/sensor")
- s = sensor.wrap("right")
- while true do
- for k, v in pairs(t) do
- pos = v.Position
- if v.Name == "player" then -- si le sensor trouve un player
- if k == "jmud" then -- si le player s'appelle jmud active un courant redstone sur la face gauche du computer
- rs.setOutput("left") = true
- else -- si non il ne fait rien
- rs.SetOutput("left") = false
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement