The Meaning of Life, the Universe, and Everything.
Location:
Western Australia
Join Date:
4/17/2015
Posts:
89
Location:
Perth, Western Australia
Minecraft:
Ziggzu
Xbox:
romanshard
PSN:
N/A
Member Details
Hello, I have read the minecraft wiki on the new command syntax, and it's confusing the heck out of me (I basically knew how to use almost every command in the old pre 1.13 format, so commands aren't new to me) but I would like to know how to do 2 commands:
1. If an iron golem gets a score of exist of between say 1 and 2, then it will spawn an armor stand in its place. (so i can visualise where the golems are spawning in my iron golem farm in creative)
2. How to fill in an area and target specific types of a block e.g only target diorite and not stone.
Hopefully I can learn the syntax better once given an example that relates to me.
The Meaning of Life, the Universe, and Everything.
Location:
Western Australia
Join Date:
4/17/2015
Posts:
89
Location:
Perth, Western Australia
Minecraft:
Ziggzu
Xbox:
romanshard
PSN:
N/A
Member Details
Hmm.. this seems awfull complicated, especially considering the command in 1.12.2 would simply be /fill <x> ,y> <z> <x2> <y2> <z2> diamond-block 0 replace stone 3 (or whatever diorite is) are you sure there is no simpler command?
What i mean is, if you want to replace specific blocks other than just one type of block into another block at once. By followig these step, you can now just do it by only one command. Replacing it one by one is also ok, you just have to do several /fill commands instead of one.
Also, /fill command doesnt really change that much, except majority of the block ID has changed, which means if you know how to use it before, then you should already know how to use it in 1.13.
Hello, I have read the minecraft wiki on the new command syntax, and it's confusing the heck out of me (I basically knew how to use almost every command in the old pre 1.13 format, so commands aren't new to me) but I would like to know how to do 2 commands:
1. If an iron golem gets a score of exist of between say 1 and 2, then it will spawn an armor stand in its place. (so i can visualise where the golems are spawning in my iron golem farm in creative)
2. How to fill in an area and target specific types of a block e.g only target diorite and not stone.
Hopefully I can learn the syntax better once given an example that relates to me.
Thanks in advance!
If you want me to reply, please quote me!
1.
execute as @e[type=minecraft:villager_golem] at @s if score @s say matches 1..2 run summon...
execute as @e[type=minecraft:villager_golem] at @s if entity @s[scores={say=1..2}] run summon...
execute at @e[type=minecraft:villager_golem,scores={say=1..2}] run summon...
There are a few more combination, but either one above should work.
2.
fill <x> <y> <z> <x2> <y2> <z2> minecraft:diamond_block replace minecraft:diorite
If you want to target a list of block, then you should create a block tag json in
saves\<yourworld>\datapacks\<datapackname>\data\<namespace>\tags\blocks
Lets say if you create a diamond_onb.json(with the infomation below), and the namespace of your datapack is test
{
"replace": false,
"values": [
"minecraft:diamond_ore",
"minecraft:diamond_block"
]
}
Once you enabled this datapack, do the following command will replace both diamond ores and blocks by stone.
fill <x> <y> <z> <x2> <y2> <z2> minecraft:stone replace #test:diamond_onb
Hmm.. this seems awfull complicated, especially considering the command in 1.12.2 would simply be /fill <x> ,y> <z> <x2> <y2> <z2> diamond-block 0 replace stone 3 (or whatever diorite is) are you sure there is no simpler command?
If you want me to reply, please quote me!
What i mean is, if you want to replace specific blocks other than just one type of block into another block at once. By followig these step, you can now just do it by only one command. Replacing it one by one is also ok, you just have to do several /fill commands instead of one.
Also, /fill command doesnt really change that much, except majority of the block ID has changed, which means if you know how to use it before, then you should already know how to use it in 1.13.