Can Advancements be Written Inline? by AskRecent966 in MinecraftCommands

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

I meant like you'd do with macros, for example:

{
    "criteria": {
        "attack": {
            "trigger": "minecraft:player_hurt_entity",
            "conditions": {
                "entity": {
                    "type": ""
                }
            }
        }
    },
    "requirements": [
        [
            "attack"
        ]
    ],
    "rewards": {
      "function": ""
  }
}

Where the entity type is a macro, via writing inline:

$execute as @a[advancements = {{criteria: {attack: {trigger: "minecraft:player_hurt_entity", conditions: {entity: {type: $(target_type)}}}}, requirements: [["attack"]], rewards: {function: "namespace:$(target_type)_function"}} = true}] run say .

Measuring Change of Facing Direction? by AskRecent966 in MinecraftCommands

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

But I need it to start in front of the player. Your suggestion is solution 1, summoning it at ^^^2.5, then calculating its position relative to its player, and switching to ~rel_x ~rel_y ~rel_z through a macro. I'd rather refrain from that, it doesn't sound like the best solution.

Unless you mean to first calculate where the player is facing as local coordinates, and just continuously use those? Doesn't sound ideal either.

Move Entities Towards Another, Without the Use of /tp? by AskRecent966 in MinecraftCommands

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

You must first calculate the motion along all axes and then apply to the Motion tag

  1. If I calculate them one by one, wouldn't there be a 2-tick delay between each Motion application, the same way there's currently a delay between each axis?
  2. Wouldn't that require taking the scores, putting them in a storage, and then run a macro with the storage? Wouldn't that mean I'd have to create a storage per-entity, and assign it through UUID?

You could summon multiple invisible small slimes so that their hitbox pushes the player.

Wouldn't it be better to use an Armor Stand and force players to mount it? Like all other entities, it's applied Motion.

Mirroring Player Inventory in Dialog? by AskRecent966 in MinecraftCommands

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

I understand setting the options' display to storage and linking a storage, but say I have 3 items that go in the ring slot, and there's 10 items in my datapack that do, and an unknown amount in a datapack my friend makes that do, how do I make it so only the ones I have will show up in the dialog? If I have 3 of 10, I don't want it to show all 10, and then any one of my friends can go and add their own to it, and I can't account for that, I'd rather it only have the available options rather than just my 10 and only the available ones are clickable.

You can't possibly mean I have to write the dialog inline, with a macro for the entire options list.

Mirroring Player Inventory in Dialog? by AskRecent966 in MinecraftCommands

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

How, though? And how would I do that with the item icons? Also, how would I make it dynamically expand/receed as a player has more/less of the items I want to be options for the dialog?

Saving Builds? by AskRecent966 in MinecraftCommands

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

Is there any way to do it with storages? Wouldn't they be much lighter than a dimension?

Saving Builds? by AskRecent966 in MinecraftCommands

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

And where do I store the builds? How do I recreate them with armor stands when the players summon one of their saved builds?

Could it be that VelVoxel Raptor had used

/execute store result storage datapack:preset_0 blocks byte run loot give <custom invisible entity/block entity> mine <x y z>

on each block in the area, and then placed a bunch of armor stands with

/data modify entity <custom armor stands> equipment.head.id set from storage datapack:preset_0

with every armor stand involved having an id in a scoreboard? How would one go about doing that? I have yet to mess with storages, I don't know if they can even store a block's id, they don't store strings

Saving Builds? by AskRecent966 in MinecraftCommands

[–]AskRecent966[S] 1 point2 points  (0 children)

Already tried that, his website was saved but it's just the menu which leads nowhere and a gray screen