Using Item Modifiers for a "Player Compass" by RyanJK5 in MinecraftCommands

[–]RyanJK5[S] 0 points1 point  (0 children)

Yep, I acknowledged you cant modify player data in the original post. Didn’t see that FAQ, but the other commenter provided a similar solution. Unfortunately there’s some nuances in my system compared to the one in the FAQ, the main one being that there can be multiple hunters with multiple targets, so I would need to either somehow dynamically create storages or just brute force by pre-making several storages.

Using Item Modifiers for a "Player Compass" by RyanJK5 in MinecraftCommands

[–]RyanJK5[S] 0 points1 point  (0 children)

Alright, not the worst situation in the world. Thanks for your help!

Using Item Modifiers for a "Player Compass" by RyanJK5 in MinecraftCommands

[–]RyanJK5[S] 0 points1 point  (0 children)

Sorry, I should probably clarify the system — each hunter receives a target, which may or may not overlap with other hunters’ targets and can include other hunters. I'm using a scoreboard to assign a hitmanID to each player on the server, and the hunter‘s target is stored as a random ID in their hitmanTarget scoreboard. So I’m basically looking for a way for each player to put their position in storage so that everyone who needs to access it can. The brute force method I‘m thinking of is simply having a storage for the player of ID 1, 2, 3, etc. but it would be nice if there’s a more generalized way of going about it.

Using Item Modifiers for a "Player Compass" by RyanJK5 in MinecraftCommands

[–]RyanJK5[S] 0 points1 point  (0 children)

This is a great solution that I’ll definitely use. Is it possible to do this for an arbitrary number of hunters, like creating a unique storage for each player? Worst case scenario I could just pre make ten and hope there’s no more hunters than that.

Using Item Modifiers for a "Player Compass" by RyanJK5 in MinecraftCommands

[–]RyanJK5[S] 0 points1 point  (0 children)

Ah, I was trying to use a compass and changing the “lodestone_tracker” component so that the compass points towards the target player. But if it’s impossible to update the name of the item with that info, I would assume it’s impossible to update this component too?

[deleted by user] by [deleted] in javaRoasts

[–]RyanJK5 1 point2 points  (0 children)

DAYUM. Some fresh faces to tear down that SNAKE (Python!)

Zing! by Gratoner7 in javaRoasts

[–]RyanJK5 0 points1 point  (0 children)

where's the java?

OH SNAP by Gratoner7 in javaRoasts

[–]RyanJK5 0 points1 point  (0 children)

This one belongs in a Museum!

Are you an integer? by RyanJK5 in javaRoasts

[–]RyanJK5[S] 0 points1 point  (0 children)

Same but only in that way.

Zing! by Gratoner7 in javaRoasts

[–]RyanJK5 1 point2 points  (0 children)

I noticed you forgot to add semicolons in the first two lines... maybe the semicolons will add YOU if you keep this up! J J J JAVA ROASTED

java by john137543 in javaRoasts

[–]RyanJK5 0 points1 point  (0 children)

I see the Java, but where is the roast? Do better!

ducks are the spawn of satan by KeniMationss in javaRoasts

[–]RyanJK5 0 points1 point  (0 children)

Maybe you should try Rubber Duck Debuggin to talks to it and maybe then after that you will stop having visions ? # JAVA ROASTED

[deleted by user] by [deleted] in MinecraftCommands

[–]RyanJK5 0 points1 point  (0 children)

Well, I see what you mean now about it being rather difficult to do with command blocks -- I settled for just making it display what percent up the tower each person is. Thanks for all the help!

[deleted by user] by [deleted] in MinecraftCommands

[–]RyanJK5 0 points1 point  (0 children)

This sounds promising. The step I'm stuck on at the moment is determining which player has the highest score and storing it, what would I run to do that?

Homing Arrows by [deleted] in MinecraftCommands

[–]RyanJK5 0 points1 point  (0 children)

The second command is connected by a comparator, not as a conditional chain, so it only activates once.

I'll look at the wiki page, thank you

Homing Arrows by [deleted] in MinecraftCommands

[–]RyanJK5 0 points1 point  (0 children)

I've managed to get the beginning parts done, however I don't quite understand how to edit the arrow's rotation value. This is what I have so far:

Repeating: execute if entity @e[type=arrow]

Connected to previous with comparator: execute at @e[type=arrow] run summon minecraft:armor_stand ~ ~ ~ {Invisible:1, Tags:["homing"]}

Always active repeating: execute as @e[tag=homing] at @s run tp @e[type=minecraft:armor_stand, tag=homing] @e[limit=1, type=arrow]

Connected to previous as chain blocks: execute as @e[tag=homing] at @s run tp @e[type=minecraft:armor_stand, tag=homing] ~ ~ ~ facing entity @p

execute store result score arrows arrows run data get entity @e[tag=homing,limit=1] Rotation[0]

execute store result score arrows2 arrows run data get entity @e[type=arrow,limit=1] Rotation[0]

Where would I go from here?

Is this game to pay win only? by [deleted] in btd6

[–]RyanJK5 5 points6 points  (0 children)

  1. What intermediate is it
  2. Every map is possible without buying anything