The goal was to get a specific item to trigger a pressure plate (only when the item is placed on the plate) and open a door.
SpoilerShow
function checkWhatActivated()
Code: Select all
if findEntity("a1") ~= nil then
if a1.x == p1.x and a1.y == p1.y and p1:isDown() then
d1:open()
end
end
endEnjoy!
P.S. I noticed that the post took away my perfect spacing(formatting) and I was wondering if anyone knows how to make it NOT do that? **EDIT** Thanks for the fix!