jump_duo.txt 880 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. event.load("player_jump");
  2. event.load("entity_click");
  3. entangled_player = list.new();
  4. //mirrored?
  5. //sneaking cancel?
  6. //only with item?
  7. @start
  8. wait();
  9. if (event == "entity_click"){
  10. list.add(entangled_player, player);
  11. list.add(entangled_player, entity);
  12. goto("wait");
  13. }
  14. goto("start");
  15. @wait
  16. wait();
  17. if (event == "entity_click"){
  18. goto("wait");
  19. }
  20. if (!list.contains(entangled_player, player)){
  21. if(player.getName(player) == "SirTerence7" || player.getName(player) == "Mareeeen"){
  22. list.add(entangled_player, player);
  23. }
  24. goto("wait");
  25. }
  26. goto("jump");
  27. @jump
  28. Motion = entity.getMotion(player);
  29. list_iterator = iterator(entangled_player);
  30. while(hasnext(list_iterator)){
  31. pl = next(list_iterator);
  32. if (pl == player){
  33. continue;
  34. }
  35. pl_Motion = entity.getMotion(pl);
  36. entity.setMotion(pl, Motion[0],0.42,Motion[2]);
  37. }
  38. goto("wait");