Translations:TrainCarts/API/SignAction/9/en

From BergerHealer Wiki
Revision as of 12:32, 3 September 2024 by TC Bot (talk | contribs) (Importing a new version from external source)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

// When a [cart] sign is placed, activate when powered by redstone when each cart

       // goes over the sign, or when redstone is activated.
       if (info.isCartSign()
               && info.isAction(SignActionType.MEMBER_ENTER, SignActionType.REDSTONE_ON)
               && info.isPowered() && info.hasMember()
       ) {
           sendGreetingForCart(info, info.getMember());
           return;
       }
   }