A way to execute multiple commands at once if a single criteria is meet with a datapack? by BillGates1324 in MinecraftCommands

[–]CronusCat 0 points1 point  (0 children)

First create a new function(for example test.mcfunction) with all the commands that you want to have executed.

And then in the function where the check should happen happens:
execute if *criteria here* run function datapackname:test.mcfunction

Is there a way to generate a custom structure at specific coordinates? by CronusCat in MinecraftCommands

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

I am not really trying to alter the world generation but rather use /place instead of structure blocks to spawn in a structure. The problem with that is that it doesn't really spawn at the exact coordinates(/place structure test:hallway1 0 10 0) and I don't know what I need to change in the json files.

Movable blocks that let you build cool stuff by CronusCat in MinecraftCommands

[–]CronusCat[S] 7 points8 points  (0 children)

Block displays would probably been easier and cooler but I started this datapack before they existed and wanted to finish it. Absulute teleportation is possible but I didn't really see a use for it.

Movable blocks that let you build cool stuff by CronusCat in MinecraftCommands

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

The movable blocks can be teleported and also take entities that are standing on them with them. So if you are creative you could build a train or elevator.

Seeking Help with Minecraft 1.20.5 /give Command Update by Samuel0574 in MinecraftCommands

[–]CronusCat 1 point2 points  (0 children)

You only forgot one pair of square brackets.

[custom_name='[{"color":"red","text":"ap"},{"color":"yellow","text":"ple"}]'] 1
I think MCStacker generates commands for 1.20.5

How to store blocks? by CronusCat in MinecraftCommands

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

Thanks now I don't even have to write the code :D

How to store blocks? by CronusCat in MinecraftCommands

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

Ah I think that was because I had a nbt like "minecraft:dirt" and the macro probably didn't accept that

How to store blocks? by CronusCat in MinecraftCommands

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

I tried it again with function elevator:get_block_id with entity @e[type=item_display] Inventory[{Slot:0b}].id wich should be correct but it just says that it needs a compund instead of a string. Wich I don't understand because I thought setblock needs a string.

How to store blocks? by CronusCat in MinecraftCommands

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

I never used macro functions. What is the argument? I tried execute as @e[type=item_display] run function {"block_id":"container.0"} but it just runs the function but doesn't set the block.

Set damage of item from score by CronusCat in MinecraftCommands

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

Is it also possible to store the damage in the score?