Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Guilde_Event_Piston_Extends_Retracts:
- type: world
- debug: false
- events:
- on piston extends:
- - define LocatioExtendP3 <context.blocks.get[1].cuboids>
- - define LocationX2 <context.relative.x>
- - define LocationZ2 <context.relative.z>
- - define LocationY2 <context.relative.y>
- - define VectorX <context.location.x.sub[<def[LocationX2]>]>
- - define VectorY <context.location.y.sub[<def[LocationY2]>]>
- - define VectorZ <context.location.z.sub[<def[LocationZ2]>]>
- - if <def[VectorZ].is[!=].to[0]||false>:
- - define LocSaveP l@<context.relative.x>,<context.relative.y>,<context.relative.z.sub[<def[VectorZ]>]>,<context.relative.world.after[w@]>
- - if <def[LocSaveP].cuboids.size.is[!=].to[<context.relative.cuboids.size||0>]||false>:
- - determine cancelled
- - if <def[LocSaveP].cuboids.alphanumeric.get[1].starts_with[cu@ruine]||false> && <context.relative.cuboids.alphanumeric.get[1].starts_with[cu@guilde]||false>:
- - determine cancelled
- - if <def[LocSaveP].cuboids.alphanumeric.get[1].starts_with[cu@guilde]||false> && <context.relative.cuboids.alphanumeric.get[1].starts_with[cu@ruine]||false>:
- - determine cancelled
- - if <def[VectorY].is[!=].to[0]||false>:
- - define LocSaveP3 l@<context.relative.x>,<context.relative.y.sub[<def[VectorY]>]>,<context.relative.z>,<context.relative.world.after[w@]>
- - if <def[LocSaveP3].cuboids.size.is[!=].to[<context.relative.cuboids.size||0>]||false>:
- - determine cancelled
- - if <def[VectorX].is[!=].to[0]||false>:
- - define LocSaveP2 l@<context.relative.x.sub[<def[VectorX]>]>,<context.relative.y>,<context.relative.z>,<context.relative.world.after[w@]>
- - if <def[LocSaveP2].cuboids.size.is[!=].to[<context.relative.cuboids.size||0>]||false>:
- - determine cancelled
- - if <def[LocSaveP2].cuboids.alphanumeric.get[1].starts_with[cu@ruine]||false> && <context.relative.cuboids.alphanumeric.get[1].starts_with[cu@guilde]||false>:
- - determine cancelled
- - if <def[LocSaveP2].cuboids.alphanumeric.get[1].starts_with[cu@guilde]||false> && <context.relative.cuboids.alphanumeric.get[1].starts_with[cu@ruine]||false>:
- - determine cancelled
- - define LocationExtend <context.location.cuboids.size>
- - define LocationExtendP <context.location.cuboids.alphanumeric.get[2]||false>
- - define LocationExtendP2 <context.location.cuboids.alphanumeric.get[1]||false>
- - if <context.relative.cuboids.size.is[!=].to[<def[LocationExtend]>]||false>:
- - determine cancelled
- - if <context.relative.cuboids.alphanumeric.get[2].is[!=].to[<def[LocationExtendP]>]||false>:
- - determine cancelled
- - if <context.location.cuboids.size.is[==].to[1]||false>:
- - if <context.location.cuboids.alphanumeric.get[1].is[!=].to[<def[LocationExtendP2]>]||false>:
- - determine cancelled
- - if <context.relative.cuboids.alphanumeric.get[1].starts_with[cu@ruine]||false> && <context.location.cuboids.alphanumeric.get[1].starts_with[cu@guilde]||false>:
- - determine cancelled
- - if <context.relative.cuboids.alphanumeric.get[1].starts_with[cu@guilde]||false> && <context.location.cuboids.alphanumeric.get[1].starts_with[cu@ruine]||false>:
- - determine cancelled
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement