312: Infinite or reusable ender pearl. [Minecraft Map Making]

Поділитися
Вставка
  • Опубліковано 9 тра 2024
  • Ep312: Giving the player another ender pearl when the one they last threw hits the ground.
    Version: 1.19.4
    Commands, builds and ideas for people making their own Minecraft maps.
    Check out my collabs on Coppit's channel: / coppitj
    Join the CoppitCraft server that I play on and the Discord where I hang out.
    Server IP: 51.81.246.145:25588
    Discord: / discord
    The following commands are prefixed with three letters which represent the settings of the command block. E.g IUN: = Impulse Unconditional Needs_Redstone. These prefixes need to be removed if copying the commands.
    Since angled brackets are not allowed in UA-cam descriptions you will have to replace "greater than" with the appropriate angled bracket. Ascii code: 62
    Commands used:
    Setup:
    IUN: scoreboard objectives add used_pearl used:ender_pearl
    CUA: scoreboard objectives add id dummy
    Assign ID:
    RUA: execute as @a unless score @s id = @s id store result score @s id run scoreboard players add #idHolder id 1
    Give:
    IUN: give @p ender_pearl{infinite:true}
    Controller:
    RUA: execute as @a[scores={used_pearl=1..}] anchored eyes at @s positioned ^ ^ ^0.5 as @e[type=ender_pearl,nbt={Item:{tag:{infinite:true}}},limit=1,sort=nearest] run summon marker ~ ~ ~ {Tags:["check_me"]}
    CUA: execute as @e[tag=check_me] at @s run ride @s mount @e[type=ender_pearl,limit=1,sort=nearest,nbt={Item:{tag:{infinite:true}}}]
    CCA: scoreboard players operation @e[tag=check_me] id = @p[scores={used_pearl=1..}] id
    CUA: execute as @e[tag=check_me] at @s unless entity @e[type=ender_pearl, distance=0..1, limit=1] run tag @s add landed
    CCA: execute as @e[tag=landed] at @s as @a if score @s id = @e[tag=landed, limit=1] id run give @s ender_pearl{infinite:true}
    CCA: kill @e[tag=landed]
    CUA: scoreboard players reset @a used_pearl
  • Ігри

КОМЕНТАРІ • 12

  • @Bloody_Man13
    @Bloody_Man13 Місяць тому +1

    Lets watch ❤ 👑🔥🔥🔥

  • @hasantopcu556
    @hasantopcu556 Місяць тому +2

    I think it is a better option to synchronize the ids like this to prevent errors that may occur for some reasons:
    *execute as @e[type=ender_pearl,nbt={Item:{tag:{infinite:true}}}] at @s unless score @s id matches 0.. store result score @s id on origin run scoreboard players get @s id*
    *execute as @e[tag=check_me,type=marker] at @s unless score @s id mathches 0.. store result score @s id on vehicle run scoreboard players get @s id*

    • @InfernalDevice
      @InfernalDevice  Місяць тому +2

      That's pretty cool. I'll pin this for others to see, thank you. :)

    • @the_rahn
      @the_rahn Місяць тому +2

      Cool! I can't check now, but I believe you should use "on origin" instead of "on owner"

    • @hasantopcu556
      @hasantopcu556 Місяць тому +1

      @@the_rahn oh yes that's right, thanks I fixed it.

  • @vibre8815
    @vibre8815 28 днів тому +2

    comment for algorithm

    • @InfernalDevice
      @InfernalDevice  28 днів тому +2

      Team building posters:
      "There's no i in comment"

    • @vibre8815
      @vibre8815 28 днів тому +1

      @@InfernalDevice lmao your running out of ideas 🤣

    • @InfernalDevice
      @InfernalDevice  28 днів тому +1

      @@vibre8815 Busy day as well, lol. You're not helping by saving them all up and doing 2 or 3 at a time. :D Hehe!

    • @vibre8815
      @vibre8815 28 днів тому +1

      @@InfernalDevice ahaha yeahh sorry abt that

    • @InfernalDevice
      @InfernalDevice  28 днів тому +2

      @@vibre8815 It's no problem. :)
      I'll have to start preparing them in advance, lol :D