Advertisement
Feaders

miencart detection

Mar 5th, 2025
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.58 KB | None | 0 0
  1. while true do
  2.   local event, attachmentName, cartType, cartName, colorPrimary, colorSecondary, destination, owner =
  3.     os.pullEvent("minecart")
  4.  
  5.   print("Détection d'un minecart !")
  6.   print("Périphérique: "..attachmentName)
  7.   print("Type: "..cartType)
  8.   print("Nom: "..(cartName or "Inconnu"))
  9.   if colorPrimary then
  10.     print("Couleurs: "..colorPrimary..", "..colorSecondary)
  11.   end
  12.   if destination and destination ~= "" then
  13.     print("Destination: "..destination)
  14.   end
  15.   if owner and owner ~= "" then
  16.     print("Propriétaire: "..owner)
  17.   end
  18.   print("-------------")
  19. end
  20.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement