Advertisement
Guest User

Untitled

a guest
Jun 24th, 2019
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.64 KB | None | 0 0
  1. Guilde_Event_Piston_Extends_Retracts:
  2. type: world
  3. debug: false
  4. events:
  5. on piston extends:
  6. - define LocatioExtendP3 <context.blocks.get[1].cuboids>
  7. - define LocationX2 <context.relative.x>
  8. - define LocationZ2 <context.relative.z>
  9. - define LocationY2 <context.relative.y>
  10. - define VectorX <context.location.x.sub[<def[LocationX2]>]>
  11. - define VectorY <context.location.y.sub[<def[LocationY2]>]>
  12. - define VectorZ <context.location.z.sub[<def[LocationZ2]>]>
  13. - if <def[VectorZ].is[!=].to[0]||false>:
  14. - define LocSaveP l@<context.relative.x>,<context.relative.y>,<context.relative.z.sub[<def[VectorZ]>]>,<context.relative.world.after[w@]>
  15. - if <def[LocSaveP].cuboids.size.is[!=].to[<context.relative.cuboids.size||0>]||false>:
  16. - determine cancelled
  17. - if <def[LocSaveP].cuboids.alphanumeric.get[1].starts_with[cu@ruine]||false> && <context.relative.cuboids.alphanumeric.get[1].starts_with[cu@guilde]||false>:
  18. - determine cancelled
  19. - if <def[LocSaveP].cuboids.alphanumeric.get[1].starts_with[cu@guilde]||false> && <context.relative.cuboids.alphanumeric.get[1].starts_with[cu@ruine]||false>:
  20. - determine cancelled
  21. - if <def[VectorY].is[!=].to[0]||false>:
  22. - define LocSaveP3 l@<context.relative.x>,<context.relative.y.sub[<def[VectorY]>]>,<context.relative.z>,<context.relative.world.after[w@]>
  23. - if <def[LocSaveP3].cuboids.size.is[!=].to[<context.relative.cuboids.size||0>]||false>:
  24. - determine cancelled
  25. - if <def[VectorX].is[!=].to[0]||false>:
  26. - define LocSaveP2 l@<context.relative.x.sub[<def[VectorX]>]>,<context.relative.y>,<context.relative.z>,<context.relative.world.after[w@]>
  27. - if <def[LocSaveP2].cuboids.size.is[!=].to[<context.relative.cuboids.size||0>]||false>:
  28. - determine cancelled
  29. - if <def[LocSaveP2].cuboids.alphanumeric.get[1].starts_with[cu@ruine]||false> && <context.relative.cuboids.alphanumeric.get[1].starts_with[cu@guilde]||false>:
  30. - determine cancelled
  31. - if <def[LocSaveP2].cuboids.alphanumeric.get[1].starts_with[cu@guilde]||false> && <context.relative.cuboids.alphanumeric.get[1].starts_with[cu@ruine]||false>:
  32. - determine cancelled
  33. - define LocationExtend <context.location.cuboids.size>
  34. - define LocationExtendP <context.location.cuboids.alphanumeric.get[2]||false>
  35. - define LocationExtendP2 <context.location.cuboids.alphanumeric.get[1]||false>
  36. - if <context.relative.cuboids.size.is[!=].to[<def[LocationExtend]>]||false>:
  37. - determine cancelled
  38. - if <context.relative.cuboids.alphanumeric.get[2].is[!=].to[<def[LocationExtendP]>]||false>:
  39. - determine cancelled
  40. - if <context.location.cuboids.size.is[==].to[1]||false>:
  41. - if <context.location.cuboids.alphanumeric.get[1].is[!=].to[<def[LocationExtendP2]>]||false>:
  42. - determine cancelled
  43. - if <context.relative.cuboids.alphanumeric.get[1].starts_with[cu@ruine]||false> && <context.location.cuboids.alphanumeric.get[1].starts_with[cu@guilde]||false>:
  44. - determine cancelled
  45. - if <context.relative.cuboids.alphanumeric.get[1].starts_with[cu@guilde]||false> && <context.location.cuboids.alphanumeric.get[1].starts_with[cu@ruine]||false>:
  46. - determine cancelled
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement