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 - Ігри
Lets watch ❤ 👑🔥🔥🔥
More watch, more good!. :)
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*
That's pretty cool. I'll pin this for others to see, thank you. :)
Cool! I can't check now, but I believe you should use "on origin" instead of "on owner"
@@the_rahn oh yes that's right, thanks I fixed it.
comment for algorithm
Team building posters:
"There's no i in comment"
@@InfernalDevice lmao your running out of ideas 🤣
@@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!
@@InfernalDevice ahaha yeahh sorry abt that
@@vibre8815 It's no problem. :)
I'll have to start preparing them in advance, lol :D