
command /rechooseorigin <player>:
 permission: origin.rechooseorigin
 trigger:
  clear {%arg 1% hasplayed}

on leftclick:
 If {%uuid of player% Origin} is "Enderian":
  set {_targetedplayer} to targeted entity
  if {_targetedplayer} isn't set:
   stop
  if distance between player and {_targetedplayer} is less than 9:
   damage {_targetedplayer} by 3	
   
command /origingui:
 trigger:
  If {%player% hasplayed} is not set:
   create a gui with virtual chest inventory with 5 rows named "&bOrigins" and shape "a-b-c-d-e", "-f-g-h-i-j", "-k-l-m-n-o", "-q-p-r-s-" and "t-u-v-w-x":
    make gui slot "a" with player head named "Human" with lore "&fYour normal minecraft adventure awaits.":                     
     execute console command "/effect clear %player%"
     set player's max health to 10
     set player's flight mode to false
     send "&bYou picked the &eHuman&b origin."
     set {%uuid of player% Origin} to "Human"
     set {%player% hasplayed} to true
    make gui slot "b" with Ender Pearl named "&5Enderian" with lore "&7Born from a breed of builders, Enderians" and "&7Have powers similar to The Endermen of the end." and "&fEyes Of Teleportation" and "&aYou can teleport at will." and "&fAcient Friends" and "&aEnderman ignore you upon being looked at." and "&fHome Sweet Home" and "&aIn the end, you are stronger." and "&fHydrophobia" and "&cWater makes you take damage.":
     execute console command "/effect clear %player%"
     set player's max health to 10
     set player's flight mode to false
     send "&bYou picked the &5Enderian&b origin."
     set {%uuid of player% Origin} to "Enderian"
     set {%player% hasplayed} to true
    make gui slot "c" with Honey Bottle named "&eBee" with lore "&aFly, Free Honey, &cWater DMG, 6HP":
     execute console command "/effect clear %player%"
     set player's max health to 10
     set player's flight mode to false
     send "&bYou picked the &eBee&b origin."
     set {%uuid of player% Origin} to "Bee"
     set {%player% hasplayed} to true
    make gui slot "d" with Feather named "&fAvian" with lore "&aSlow Falling & Speed, &cNo Meat":
     execute console command "/effect clear %player%"
     set player's max health to 10
     set player's flight mode to false
     send "&bYou picked the &fAvian&b origin."
     set {%uuid of player% Origin} to "Avian"
     set {%player% hasplayed} to true
    make gui slot "e" with Orange Wool named "&6Feline" with lore "&aSpeed, Jump boost, No FD, &c9HP":
     execute console command "/effect clear %player%"
     set player's max health to 10
     set player's flight mode to false
     send "&bYou picked the &6Feline&b origin."
     set {%uuid of player% Origin} to "Feline"
     set {%player% hasplayed} to true
    make gui slot "f" with Water Bucket named "&1Dolphinator" with lore "&aWater Effects, Always Support, &cNo Land":
     execute console command "/effect clear %player%"
     set player's max health to 10
     set player's flight mode to false
     send "&bYou picked the &1Dolphinator&b origin."
     set {%uuid of player% Origin} to "Dolphinator"
     set {%player% hasplayed} to true
    make gui slot "g" with Prismarine Shard named "&bGuardian" with lore "&aWater Effects, 25Health, Strength, &cNo Land":
     execute console command "/effect clear %player%"
     set player's max health to 10
     set player's flight mode to false
     send "&bYou picked the Guardian &b origin."
     set {%uuid of player% Origin} to "Guardian"
     set {%player% hasplayed} to true
    make gui slot "h" with Elytra named "&7Elytrian" with lore "&aElytra & Fireworks, &cNo Chestplates":
     execute console command "/effect clear %player%"
     set player's max health to 10
     set player's flight mode to false
     send "&bYou picked the &7Elytrian&b origin."
     set {%uuid of player% Origin} to "Elytrian"
     set {%player% hasplayed} to true
    make gui slot "i" with Phantom Membrane named "&8Phantom" with lore "&a/pm, Invis on sneak, &cDayBurn, 7 Hearts":
     execute console command "/effect clear %player%"
     set player's max health to 10
     set player's flight mode to false
     send "&bYou picked the &8Phantom &b origin."
     set {%uuid of player% Origin} to "Phantom" 
     set {%player% hasplayed} to true
    make gui slot "j" with Iron Sword named "&fVex" with lore "&aStrong Iron Swords, Fly,  &cDayBurn":
     execute console command "/effect clear %player%"
     set player's max health to 10
     set player's flight mode to false
     send "&bYou picked the &fVex &b origin."
     set {%uuid of player% Origin} to "Vex" 
     set {%player% hasplayed} to true
    make gui slot "k" with TNT named "&aCreeper" with lore "&aExplode on Death & Shift, &cNo Meat":
     execute console command "/effect clear %player%"
     set player's max health to 10
     set player's flight mode to false
     send "&bYou picked the &aCreeper &b origin."
     set {%uuid of player% Origin} to "Creeper" 
     set {%player% hasplayed} to true
    make gui slot "l" with Blaze Rod named "&cBlazeborn" with lore "&aNether Fly, Fire Immue, Fire Aspect, &cWater DMG":
     execute console command "/effect clear %player%"
     set player's max health to 10
     set player's flight mode to false
     send "&bYou picked the &cBlazeborn &b origin."
     set {%uuid of player% Origin} to "Blazeborn" 
     set {%player% hasplayed} to true
    make gui slot "m" with Saddle named "&7Ravager" with lore "&aStrength, Speed, Jump, Rideable, &cCannot Ride Boats and Horses":
     execute console command "/effect clear %player%"
     set player's max health to 10
     set player's flight mode to false
     send "&bYou picked the &7Ravager &b origin."
     set {%uuid of player% Origin} to "Ravager"
     set {%player% hasplayed} to true
    make gui slot "n" with Totem Of Undying named "&eTotem" with lore "&aStrength, 20Health, &cSlowness":
     execute console command "/effect clear %player%"
     set player's max health to 10
     set player's flight mode to false
     send "&bYou picked the &eTotem &b origin."
     set {%uuid of player% Origin} to "Totem"  
     set {%player% hasplayed} to true
    make gui slot "o" with Ender Eye named "&5ED" with lore "&aFly, 20Health, &cWater DMG":
     execute console command "/effect clear %player%"
     set player's max health to 10
     set player's flight mode to false
     send "&bYou picked the &5ED &b origin."
     set {%uuid of player% Origin} to "ED"  
     set {%player% hasplayed} to true
    make gui slot "p" with Anvil named "&7Inchling" with lore "&asmol boi, &cmining fatigue & no armor":
     execute console command "/effect clear %player%"
     set player's max health to 10
     set player's flight mode to false
     send "&bYou picked the &7Inchling &b origin."
     set {%uuid of player% Origin} to "Inchling"  
     set {%player% hasplayed} to true
    make gui slot "q" with Glass named "&fGlass Golem" with lore "&a1 hit anything, &c1 health, Helmet always Glass":
     execute console command "/effect clear %player%"
     set player's max health to 10
     set player's flight mode to false
     send "&bYou picked the &fGlass Golem &b origin."
     set {%uuid of player% Origin} to "Glass Golem"  
     set {%player% hasplayed} to true
    make gui slot "r" with Snowball named "&8Snowman" with lore "&aFrost walker on boots, Snowball damage, &eSnow Trail, &cDie in hot biomes":
     execute console command "/effect clear %player%"
     set player's max health to 10
     set player's flight mode to false
     send "&bYou picked the &8Snowman &b origin."
     set {%uuid of player% Origin} to "Snowman"  
     set {%player% hasplayed} to true
    make gui slot "s" with Shulker Shell named "&5Shulk" with lore "&aResistance, Strength, Chest = Shulker, &cNo offhand, Hunger, Teleport on hit":
     execute console command "/effect clear %player%"
     set player's max health to 10
     set player's flight mode to false
     send "&bYou picked the &5Shulk &b origin."
     set {%uuid of player% Origin} to "Shulk"  
     set {%player% hasplayed} to true
    make gui slot "t" with Bone named "&7Lone Wolf" with lore "&aBuffs When alone, Dogs Relive Stress, &cDebuffs around pepole":
     execute console command "/effect clear %player%"
     set player's max health to 10
     set player's flight mode to false
     send "&bYou picked the &7Lone Wolf &b origin."
     set {%uuid of player% Origin} to "Lone Wolf"
     set {%player% hasplayed} to true
    make gui slot "u" with Clock named "&eTime Traveller" with lore "&aCan slow/speed up others &6but &cHas to be full health and takes 1 heart every travel":
     execute console command "/effect clear %player%"
     set player's max health to 10
     set player's flight mode to false
     send "&bYou picked the &eTime Traveller &b origin."
     set {%uuid of player% Origin} to "Time Traveller"
     set {%player% hasplayed} to true
    make gui slot "w" with Heart Of The Sea named "&bColorblind Keeper" with lore "&aMobs Ignore you, &cYou cannot see certain blocks":
     execute console command "/effect clear %player%"
     set player's max health to 10
     set player's flight mode to false
     send "&bYou picked the &bColorblind Keeper &b origin."
     set {%uuid of player% Origin} to "Colorblind Keeper"
     set {%player% hasplayed} to true
   open gui last gui to player

on player world change:
 set {domdomdom hasplayed} to false
 set player's flight mode to false
 set player's gamemode to survival
 set the players's walk speed to 0.2
 set the players's flight speed to 0.2
 set player's max health to 10
 remove slow falling from player
 remove speed from player
 remove strength from player
 remove invisibility from player
 If player's world is "World" or "World_nether" or "World_the_end":
  If {%player% hasplayed} is not set:
   create a gui with virtual chest inventory with 5 rows named "&bOrigins" and shape "a-b-c-d-e", "-f-g-h-i-j", "-k-l-m-n-o" and "-q-p-r-s-" and "t-u-v-w-x":
    make gui slot "a" with player head named "Human" with lore "&fYour normal minecraft adventure awaits.":
     execute console command "/effect clear %player%"
     set player's max health to 10
     set player's flight mode to false
     send "&bYou picked the &eHuman&b origin."
     set {%uuid of player% Origin} to "Human"
     set {%player% hasplayed} to true
    make gui slot "b" with Ender Pearl named "&5Enderian" with lore "&aEnderman Ignore u, Inf EPearls, &cWater DMG":
     execute console command "/effect clear %player%"
     set player's max health to 10
     set player's flight mode to false
     send "&bYou picked the &5Enderian&b origin."
     set {%uuid of player% Origin} to "Enderian"
     set {%player% hasplayed} to true
    make gui slot "c" with Honey Bottle named "&eBee" with lore "&aFly, Free Honey, &cWater DMG, 6HP":
     execute console command "/effect clear %player%"
     set player's max health to 10
     set player's flight mode to false
     send "&bYou picked the &eBee&b origin."
     set {%uuid of player% Origin} to "Bee"
     set {%player% hasplayed} to true
    make gui slot "d" with Feather named "&fAvian" with lore "&aSlow Falling & Speed, &cNo Meat":
     execute console command "/effect clear %player%"
     set player's max health to 10
     set player's flight mode to false
     send "&bYou picked the &fAvian&b origin."
     set {%uuid of player% Origin} to "Avian"
     set {%player% hasplayed} to true
    make gui slot "e" with Orange Wool named "&6Feline" with lore "&aSpeed, Jump boost, No FD, &c9HP":
     execute console command "/effect clear %player%"
     set player's max health to 10
     set player's flight mode to false
     send "&bYou picked the &6Feline&b origin."
     set {%uuid of player% Origin} to "Feline"
     set {%player% hasplayed} to true
    make gui slot "f" with Water Bucket named "&1Dolphinator" with lore "&aWater Effects, Always Support, &cNo Land":
     execute console command "/effect clear %player%"
     set player's max health to 10
     set player's flight mode to false
     send "&bYou picked the &1Dolphinator&b origin."
     set {%uuid of player% Origin} to "Dolphinator"
     set {%player% hasplayed} to true
    make gui slot "g" with Prismarine Shard named "&bGuardian" with lore "&aWater Effects, 25Health, Strength, &cNo Land":
     execute console command "/effect clear %player%"
     set player's max health to 10
     set player's flight mode to false
     send "&bYou picked the Guardian &b origin."
     set {%uuid of player% Origin} to "Guardian"
     set {%player% hasplayed} to true
    make gui slot "h" with Elytra named "&7Elytrian" with lore "&aElytra & Fireworks, &cNo Chestplates":
     execute console command "/effect clear %player%"
     set player's max health to 10
     set player's flight mode to false
     send "&bYou picked the &7Elytrian&b origin."
     set {%uuid of player% Origin} to "Elytrian"
     set {%player% hasplayed} to true
    make gui slot "i" with Phantom Membrane named "&8Phantom" with lore "&a/pm, Invis on sneak, &cDayBurn, 7 Hearts":
     execute console command "/effect clear %player%"
     set player's max health to 10
     set player's flight mode to false
     send "&bYou picked the &8Phantom &b origin."
     set {%uuid of player% Origin} to "Phantom" 
     set {%player% hasplayed} to true
    make gui slot "j" with Iron Sword named "&fVex" with lore "&aStrong Iron Swords, Fly,  &cDayBurn":
     execute console command "/effect clear %player%"
     set player's max health to 10
     set player's flight mode to false
     send "&bYou picked the &fVex &b origin."
     set {%uuid of player% Origin} to "Vex" 
     set {%player% hasplayed} to true
    make gui slot "k" with TNT named "&aCreeper" with lore "&aExplode on Death & Shift, &cNo Meat":
     execute console command "/effect clear %player%"
     set player's max health to 10
     set player's flight mode to false
     send "&bYou picked the &aCreeper &b origin."
     set {%uuid of player% Origin} to "Creeper" 
     set {%player% hasplayed} to true
    make gui slot "l" with Blaze Rod named "&cBlazeborn" with lore "&aNether Fly, Fire Immue, Fire Aspect, &cWater DMG":
     execute console command "/effect clear %player%"
     set player's max health to 10
     set player's flight mode to false
     send "&bYou picked the &cBlazeborn &b origin."
     set {%uuid of player% Origin} to "Blazeborn" 
     set {%player% hasplayed} to true
    make gui slot "m" with Saddle named "&7Ravager" with lore "&aStrength, Speed, Jump, Rideable, &cCannot Ride Boats and Horses":
     execute console command "/effect clear %player%"
     set player's max health to 10
     set player's flight mode to false
     send "&bYou picked the &7Ravager &b origin."
     set {%uuid of player% Origin} to "Ravager"
     set {%player% hasplayed} to true
    make gui slot "n" with Totem Of Undying named "&eTotem" with lore "&aStrength, 20Health, &cSlowness":
     execute console command "/effect clear %player%"
     set player's max health to 10
     set player's flight mode to false
     send "&bYou picked the &eTotem &b origin."
     set {%uuid of player% Origin} to "Totem"  
     set {%player% hasplayed} to true
    make gui slot "o" with Ender Eye named "&5ED" with lore "&aFly, 20Health, &cWater DMG":
     execute console command "/effect clear %player%"
     set player's max health to 10
     set player's flight mode to false
     send "&bYou picked the &5ED &b origin."
     set {%uuid of player% Origin} to "ED"  
     set {%player% hasplayed} to true
    make gui slot "p" with Anvil named "&7Inchling" with lore "&asmol boi, &cmining fatigue & no armor":
     execute console command "/effect clear %player%"
     set player's max health to 10
     set player's flight mode to false
     send "&bYou picked the &7Inchling &b origin."
     set {%uuid of player% Origin} to "Inchling"  
     set {%player% hasplayed} to true
    make gui slot "q" with Glass named "&fGlass Golem" with lore "&a1 hit anything, &c1 health, Helmet always Glass":
     execute console command "/effect clear %player%"
     set player's max health to 10
     set player's flight mode to false
     send "&bYou picked the &fGlass Golem &b origin."
     set {%uuid of player% Origin} to "Glass Golem"  
     set {%player% hasplayed} to true
    make gui slot "r" with Snowball named "&8Snowman" with lore "&aFrost walker on boots, Snowball damage, &eSnow Trail, &cDie in hot biomes":
     execute console command "/effect clear %player%"
     set player's max health to 10
     set player's flight mode to false
     send "&bYou picked the &8Snowman &b origin."
     set {%uuid of player% Origin} to "Snowman"  
     set {%player% hasplayed} to true
    make gui slot "s" with Shulker Shell named "&5Shulk" with lore "&aResistance, Strength, Chest = Shulker, &cNo offhand, Hunger, Teleport on hit":
     execute console command "/effect clear %player%"
     set player's max health to 10
     set player's flight mode to false
     send "&bYou picked the &5Shulk &b origin."
     set {%uuid of player% Origin} to "Shulk"  
     set {%player% hasplayed} to true
    make gui slot "t" with Bone named "&7Lone Wolf" with lore "&aBuffs When alone, Dogs Relive Stress, &cDebuffs around pepole":
     execute console command "/effect clear %player%"
     set player's max health to 10
     set player's flight mode to false
     send "&bYou picked the &7Lone Wolf &b origin."
     set {%uuid of player% Origin} to "Lone Wolf"
     set {%player% hasplayed} to true
    make gui slot "u" with Clock named "&eTime Traveller" with lore "&aCan slow/speed up others &6but &cHas to be full health and takes 1 heart every travel":
     execute console command "/effect clear %player%"
     set player's max health to 10
     set player's flight mode to false
     send "&bYou picked the &eTime Traveller &b origin."
     set {%uuid of player% Origin} to "Time Traveller"
     set {%player% hasplayed} to true
    make gui slot "w" with Heart Of The Sea named "&bColorblind Keeper" with lore "&aMobs Ignore you, &cYou cannot see certain blocks":
     execute console command "/effect clear %player%"
     set player's max health to 10
     set player's flight mode to false
     send "&bYou picked the &bColorblind Keeper &b origin."
     set {%uuid of player% Origin} to "Colorblind Keeper"
     set {%player% hasplayed} to true
   open gui last gui to player    



every 1.5 seconds in world "world":
 Loop all players in world "world", "world_nether" and "world_the_end":


  If {%uuid of loop-player% Origin} is "Colorblind Keeper":
   loop all blocks in radius 5 of loop-player:
    if loop-block is Netherrack Or Nether Bricks Or Sandstone Or Pumpkin or Carved Pumpkin or Orange Wool or Orange Concrete or Orange Terracotta Or Orange Concrete Powder Or Orange Carpet Or Orange Stained Glass Or Orange Bed or Yellow Wool or Yellow Concrete or Yellow Terracotta Or Yellow Concrete Powder Or Yellow Carpet Or Yellow Stained Glass Or Yellow Bed or Red Wool or Red Concrete or Red Terracotta Or Red Concrete Powder Or Red Carpet Or Red Stained Glass Or Red Bed:
     make loop-player see loop-block as black Wool

   
  If {%uuid of loop-player% Origin} is "Time Traveller":
   set slot 8 of loop-player's inventory to Clock named "&7Slow"
   set slot 7 of loop-player's inventory to Clock named "&bSpeed"
   If loop-player's chestplate is netherite chestplate:
    set loop-player's chestplate to air
   If loop-player's chestplate is netherite helmet: 
    set loop-player's helmet to air
   If loop-player's chestplate is netherite leggings:
    set loop-player's leggings to air
   If loop-player's chestplate is netherite boots: 
    set loop-player's boots to air
   If loop-player's slot 40 is Clock named "&bSpeed":
    loop entities in radius 15 of the loop-player:
     if loop-entity-2 is not loop-player-1:
      if loop-player's health is 10:
       apply potion of haste of tier 4 to loop-entity-2 for 1.6 second
       apply potion of speed of tier 4 to loop-entity-2 for 1.6 second
   If loop-player's slot 40 is Clock named "&7Slow":
    loop entities in radius 15 of the loop-player:
     if loop-entity-2 is not loop-player-1:
      if loop-player's health is 10:
       apply potion of mining fatigue of tier 4 to loop-entity-2 for 1.6 second
       apply potion of slowness of tier 4 to loop-entity-2 for 1.6 second
    

  If {%uuid of loop-player% Origin} is "Lone Wolf":
   set {%loop-player% lonewolfdmg} to 0
   loop players in radius 15 of the loop-player:
    add 1 to {%loop-player-1% lonewolfdmg}
   loop entities in radius 15 of the loop-player:
    if loop-entity-2 is a Cat, Wolf:
     subtract 1 from {%loop-player-1% lonewolfdmg}
   If {%loop-player% lonewolfdmg} is between -100 and 0:
    apply potion of strength of tier 3 to loop-player for 5 second
    apply potion of haste of tier 3 to loop-player for 5 second
    apply potion of speed of tier 4 to loop-player for 5 second
   If {%loop-player% lonewolfdmg} is between 1 and 100:
    apply potion of hunger of tier 1 to loop-player for 5 second
   If {%loop-player% lonewolfdmg} is between 3 and 100:
    apply potion of weakness of tier 1 to loop-player for 5 second
   If {%loop-player% lonewolfdmg} is between 4 and 100:
    apply potion of mining fatigue of tier 1 to loop-player for 5 second
   If {%loop-player% lonewolfdmg} is between 5 and 100:
    ignite the loop-player for 2 seconds

  If {%uuid of loop-player% Origin} is "Shulk":
   apply potion of strength of tier 1 to loop-player for 999 second
   apply potion of resistance of tier 2 to loop-player for 999 second
   apply potion of hunger of tier 1 to loop-player for 999 second
   If loop-player's tool is chest:
    remove Chest from loop-player
    give Shulker Box to loop-player


  If {%uuid of loop-player% Origin} is "Snowman":
   If loop-player's tool is all boots:
    enchant the loop-player's tool with frost walker 2
   If biome at the loop-player is desert:
    ignite the loop-player for 5 seconds
   If loop-player's world is "world_nether": 
    ignite the loop-player for 5 seconds



  If {%uuid of loop-player% Origin} is "Glass Golem":
   set loop-player's max health to 0.5
   set loop-player's helmet to glass
   apply potion of strength of tier 255 to loop-player for 999 second


  If {%uuid of loop-player% Origin} is "Inchling":
   set loop-player's max health to 6    
   if {%loop-player% incher} is not alive:
    spawn a armor stand 1 meters above the loop-player 
    set {%loop-player% incher} to last spawned entity  
    add "{Small: 1b}" to nbt of {%loop-player% incher}
    make last spawned entity invulnerable
   if {%loop-player% incher} is not set:
    spawn a armor stand 1 meters above the loop-player 
    set {%loop-player% incher} to last spawned entity  
    add "{Small: 1b}" to nbt of {%loop-player% incher}
    make last spawned entity invulnerable
   apply potion of water breathing of tier 255 to loop-player for 999 second
   apply potion of dolphins grace of tier 3 to loop-player for 999 second
   apply potion of invisibility of tier 255 to loop-player for 999 second
   equip {%loop-player% incher} with all iron armor 
   equip {%loop-player% incher} with skull of loop-player
   set the loop-players's walk speed to 7
   set loop-player's chestplate to air
   set loop-player's helmet to air 
   set loop-player's leggings to air
   set loop-player's boots to air


  If {%uuid of loop-player% Origin} is "Vex": 
   set loop-player's max health to 13
   set loop-player's flight mode to true
   apply potion of water breathing of tier 255 to loop-player for 999 second
   time in "world" is day:
    loop all blocks in radius 1 of loop-player:
     if loop-block is black bed:
      set time of the world "world" to 20:00 
      broadcast "&7%loop-player% slept through the day, it is now night."
   blocklight level at the loop-player is greater than 11:
    If loop-player's world is "world":
     if loop-player's helmet is not netherite helmet or Carved Pumpkin:
      loop-player is not sneaking:
       ignite the loop-player for 5 seconds
   sunlight level at the loop-player is 15:
    time in "world" is day or dusk or dawn:
     If loop-player's world is "World":
      if loop-player's helmet is not netherite helmet or Carved Pumpkin:
       loop-player is not sneaking:
        ignite the loop-player for 5 seconds


  If {%uuid of loop-player% Origin} is "Phantom": 
   set loop-player's max health to 7
   time in "world" is night:
    If loop-player's world is "world":
     set loop-player's flight mode to true
   time in "world" is day:
    If loop-player's world is "world":
     If {%loop-player% gamemode} is false: 
      set loop-player's flight mode to false
   loop-player is sneaking:
    apply potion of invisibility of tier 2 to loop-player for 15 second
    loop all blocks in radius 1 of loop-player:
     if loop-block is black bed:
      set time of the world "world" to 20:00 
      broadcast "&7%loop-player% slept through the day, it is now night."
   loop-player is not sneaking:
    loop-player is not sneaking:
     remove invisibility from loop-player
   blocklight level at the loop-player is greater than 11:
    If loop-player's world is "world":
     if loop-player's helmet is not netherite helmet or Carved Pumpkin:
      loop-player is not sneaking:
       ignite the loop-player for 5 seconds
   sunlight level at the loop-player is 15:
    time in "world" is day or dusk or dawn:
     If loop-player's world is "world":
      if loop-player's helmet is not netherite helmet or Carved Pumpkin:
       loop-player is not sneaking:
        ignite the loop-player for 5 seconds
 
  If {%uuid of loop-player% Origin} is "Bee": 
   If block at loop-player is water:
    damage loop-player by 1 hearts
   set loop-player's flight mode to true
   set loop-player's max health to 6
    
  If {%uuid of loop-player% Origin} is "Enderian": 
   set loop-player's flight mode to false
   If block at loop-player is water:
    damage loop-player by 1 hearts
   set loop-player's max health to 10
   apply potion of night vision of tier 5 to loop-player for 15 seconds
   set slot 8 of loop-player's inventory to ender pearl
   loop all blocks in radius 10 of loop-player:
    if loop-block is Pumpkin or Carved Pumpkin:
     make loop-player see loop-block as air
    
   loop players in radius 15 of the loop-player:
    if loop-player-2's helmet is Carved Pumpkin:
     hide loop-player-2 from loop-player-1
    if loop-player-2's helmet is not Carved Pumpkin:
     reveal loop-player-2 from loop-player-1     
   If loop-player is in world "world_the_end":
    set loop-player's max health to 30
 #hello code reader :)
   
  If {%uuid of loop-player% Origin} is "Avian": 
   set loop-player's max health to 13
   apply potion of speed of tier 1 to loop-player for 15 seconds
   apply potion of slow falling of tier 2 to loop-player for 15 seconds

  If {%uuid of loop-player% Origin} is "Blazeborn": 
   set loop-player's max health to 10
   If loop-player's tool is iron sword or diamond sword or wooden sword or stone sword or netherite sword or iron axe or diamond axe or wooden axe or stone axe or netherite axe:
    enchant the loop-player's tool with fire aspect 2
   apply potion of fire resistance of tier 255 to loop-player for 15 seconds
   If block at loop-player is water:
    damage loop-player by 4 hearts
   if block at loop-player is lava or fire:
    apply potion of strength of tier 1 to loop-player for 2 seconds
   if loop-player is in world "world_nether":
    set loop-player's flight mode to true
   if loop-player is in world "world":
    set loop-player's flight mode to false

  If {%uuid of loop-player% Origin} is "Elytrian": 
   set loop-player's max health to 10
   set loop-player's chestplate to elytra
   set slot 8 of loop-player's inventory to firework rocket


  If {%uuid of loop-player% Origin} is "Dolphinator": 
   set loop-player's max health to 18
   If block at loop-player is not water or kelp or seagrass or cauldron:
    damage loop-player by 1 hearts
   apply potion of water breathing of tier 255 to loop-player for 15 seconds
   apply potion of dolphins grace of tier 10 to loop-player for 15 seconds
   apply potion of conduit power of tier 3 to loop-player for 15 seconds
   loop players in radius 15 of the loop-player:
    apply potion of water breathing of tier 255 to loop-player-2 for 1 seconds
    apply potion of dolphins grace of tier 8 to loop-player-2 for 1 seconds
    apply potion of conduit power of tier 1 to loop-player-2 for 1 seconds

  If {%uuid of loop-player% Origin} is "Guardian": 
   set loop-player's max health to 25
   If block at loop-player is not water or kelp or seagrass or cauldron:
    damage loop-player by 1 hearts
   apply potion of water breathing of tier 255 to loop-player for 15 seconds
   apply potion of dolphins grace of tier 8 to loop-player for 15 seconds
   apply potion of conduit power of tier 3 to loop-player for 15 seconds
   apply potion of strength of tier 2 to loop-player for 15 seconds

  If {%uuid of loop-player% Origin} is "Feline": 
   apply potion of speed of tier 4 to loop-player for 15 seconds
   apply potion of jump boost of tier 5 to loop-player for 15 seconds
   set loop-player's max health to 9

  If {%uuid of loop-player% Origin} is "Totem": 
   set loop-player's max health to 20
   apply potion of strength of tier 1 to loop-player for 15 seconds
   apply potion of slowness of tier 2 to loop-player for 15 seconds

  If {%uuid of loop-player% Origin} is "Creeper": 
   loop-player is sneaking:
    create a safe explosion of force 1 at loop-player
    loop all living entities in radius 4 around loop-player:
     if loop-entity-2 is not loop-player:
      damage loop-entity-2 by 6

  If {%uuid of loop-player% Origin} is "ED": 
   set loop-player's chestplate to air
   set loop-player's helmet to air
   set loop-player's leggings to air
   set loop-player's boots to air
   set loop-player's max health to 20
   set loop-player's flight mode to true
   If block at loop-player is water:
    damage loop-player by 10 hearts
   If loop-player is in world "world_the_end":
    set loop-player's max health to 150
  If {%uuid of loop-player% Origin} is "Ravager": 
   set loop-player's max health to 10
   apply potion of speed of tier 3 to loop-player for 15 seconds
   apply potion of resistance of tier 1 to loop-player for 15 seconds

 







#Events go here.
on right click with steak or raw beef or cooked mutton or raw mutton or cooked cod or raw cod or cooked salmon or raw salmon or raw rabbit or cooked rabbit or cooked pork or raw pork or raw chicken or cooked chicken or rotten flesh:
 if player is in world "World" or "World_nether" or "world_the_end":
  If {%uuid of player% Origin} is "Avian" or "Creeper": 
   remove held item from player

on damage:
 damage was caused by fall:
  If {%uuid of victim% Origin} is "Feline" or "Creeper" or "Inchling" or "Glass Golem" or "Shulk": 
   cancel event


on death:
 if player is in world "world" or "world_nether":
  If {%uuid of victim% Origin} is "Creeper": 
   create a safe explosion of force 1 at player
   loop all living entities in radius 10 around player:
    if loop-entity is not player:
     damage loop-entity by 20

On Bed Enter:
  wait 80 ticks
  set time to 07:00
  wait 4 ticks
  broadcast "&b%player% slept." 

command /pm: 
 trigger: 
  If player's world is "world" or "World_nether" or "World_the_end":
   set {%player% gamemode} to player's gamemode
   If {%uuid of player% Origin} is "Phantom": 
    if {%player% gamemode} is spectator:
     set gamemode of player to survival
    if {%player% gamemode} is survival:
     set gamemode of player to spectator
  
command /originreload:
 trigger:
  make player execute "/skript reload bees.sk"

on right click with bottle:
 If {%uuid of player% Origin} is "Bee": 
  If player's world is "world" or "World_nether" Or "World_the_end":
   remove bottle from player
   give honey bottle to player
   
on entity target:
 If {%uuid of target% Origin} is "Colorblind Keeper":
  If target's world is "World_the_end" Or "World" Or "World_nether":
   cancel event 
 If {%uuid of target% Origin} is "Enderian": 
  if the entity is enderman:
   If player's world is "World_the_end" Or "World" Or "World_nether":
    cancel event

on right click on player:
 If {%uuid of clicked entity% Origin} is "Dolphinator" or "Ravager": 
  make the player ride the clicked entity

On Vehicle Enter:
 If player's world is "World_the_end" or "World_nether" Or "World":
  {%uuid of player% Origin} is "Ravager":
   cancel event


on load:
 broadcast "&b[Origins]&a Skript reloaded!" 

on damage:
 If {%uuid of victim% Origin} is "Enderian":
  apply potion of speed of tier 1 to victim for 20 second
  apply potion of strength of tier 2 to victim for 20 second
 if {%uuid of victim% Origin} is "Shulk":
  loop all blocks in radius 13 of victim:
   if loop-block is air:
    if damage cause is not fall:
     teleport victim to loop-block
 if damage cause is thorns:
  If {%uuid of victim% Origin} is "Inchling": 
   cancel event
 if damage cause is void:
  If {%uuid of victim% Origin} is "Enderian": 
   cancel event
   teleport victim to location at 37, 61, 1 in world "World_the_end"
  
on death of player:
 if victim is in world "world" or "world_nether" or "world_the_end":
  if damage cause is unknown:
   If {%uuid of player% Origin} is "Guardian" or "Dolphinator": 
    set the death message to "%victim% dried out."
   If {%uuid of player% Origin} is "EG" or "Enderian" or "Bee" or "Blazeborn": 
    set the death message to "%victim% found out they're allergic to water."
    
command /setplayerorigin <offline player> <text>:
 permission: origins.set
 trigger:
  set {%uuid of arg 1% Origin} to arg 2

on quit:
 kill {%player% incher}
 clear {%player% incher}



every 3 tick in world "world":
 loop all players in "world" and "world_nether" and "world_the_end":
  If {%uuid of loop-player% Origin} is "Snowman":
   If block at loop-player is air:
    set the block at the loop-player to snow 
  teleport {%loop-player% incher} to loop-player


on swap hand items:
 If {%uuid of player% Origin} is "Shulk":
  cancel event

command /offhand:
 trigger:
  If player's slot 40 is air:
   set slot 40 of player's inventory to player's tool
   remove player's tool from player

command /unoffhand:
 trigger:
  If player's slot 40 is not air:
   set {%player% unoffhand} to player's slot 40
   set slot 40 of player's inventory to air
   give {%player% unoffhand} to player

every 15 second in world "world":
 loop all players in "world" and "world_nether" and "world_the_end":
  If {%uuid of loop-player% Origin} is "Time Traveller":
   set {%loop-player% rollback} to loop-player's location
   set {%loop-player% rollbackhp} to loop-player's health
   send action bar "&aSaved Location" to loop-player


on sneak toggle:
 If {%uuid of player% Origin} is "Time Traveller":
  If player's world is "World_the_end" Or "World" Or "World_nether":
   teleport player to {%player% rollback}
   set player's health to {%player% rollbackhp}
   extinguish the player

command /sm:
 trigger:
  If {%uuid of player% Origin} is "Inchling":
   If {%player% smallmode} is false:
    set {%player% smallmode} to true
   else:
    set {%player% smallmode} to false 