• 1

    posted a message on How can I summon ghast fireballs that move more than 10 meters?

    execute at @e[type=armor_stand,name=ArmorStand11,limit=1,sort=random] run summon fireball ~ ~-1 ~ {direction:[0.0,-1.0,0.0],power:[0.0,-1.0,0.0],Life:4096,ExplosionPower:1}


    I have a bunch of armor stands. Every time I run this command, I want to pick a random one and make it summon a ghast fireball. The fireball should move down if it doesn't hit some entity or block that's not air. When I try running it, none of the fireballs can move more than 10 or 11 meters. They just move downward for a brief time and then explode in mid-air.


    Your power is too high. It's an acceleration rather than a velocity. So I assume when you see it move like 10 blocks, it already moved like 100 blocks and the game's too lazy to render it.


    Set it maybe 1/10 of the number of direction.

    Posted in: Commands, Command Blocks and Functions
  • 1

    posted a message on World pregenerator, changing center radius [1.12.2]
    Quote from taiwe2»

    Thank you very much! I figured out the changes before seeing your message, but I wasn't sure if they were correct. Exactly the same, so thank you, now I know the 16 hours I ran this didn't go to waste :D


    Unfortunately, now I need to get the same kind of command block pregenerator working in 1.13. My world is custom generated and won't convert correctly without command block pregen in a vanilla server, before I can use it in spigot. I tried using a 1.12 to 1.13 command converter, but I couldn't get that to work.


    I did find a command block generator for 1.13, I couldn't get the command block to work, but it did come with a data pack. I was able to edit the datapack's center radius to -8000, -8000. It appeared to work, but it seems as if the X and Y coords slightly veer off over time. With my world being 8K x 8K, that offset is massive. There were comments from others that it also veered off for them, so I assume my small edit wasn't the cause of this.


    The 1.13 world pregen is here: https://bluecommand.weebly.com/world-loader.html


    How much would I have to change to get that 1.12 command working in 1.13? I suspect the cause of the gradual offset in the 1.13 might be harder to find than adjusting the 1.12 command to work in 1.13.


    You have to change basically everything in your 1.12 command to make it work in 1.13. Just find another world pre-generator that works in 1.13+

    Posted in: Commands, Command Blocks and Functions
  • 1

    posted a message on World pregenerator, changing center radius [1.12.2]
    Quote from taiwe2»

    I'm trying to adjust a command block world pregenerator for 1.12.2 by Lorgon111. It works well, but it generates a world from 0,0 outwards. I need it to generate from -8000, -8000 outwards. I've tried to play around with it, but I can't seem to get it to do that. Would anyone be able to understand this? I am waiting on a response from the original author, so hopefully, if I don't get a response from him, someone else can identify what needs to change.


    (It must be a command block pre-generator, the world is already pregened with a custom terrain generator. However, chunks will be corrupted/deleted when migrating to 1.13 if the appropriate light and terrain values within the chunks are not correct. No existing world generator does this, apart from a command block one.)


    Here's the command:


    summon falling_block ~ ~0.55 ~ {Block:command_block,Time:1,TileEntityData:{Command:"summon commandblock_minecart ~ ~1.5 ~ {Command:\"gamerule commandBlockOutput false\",Passengers:[{id:commandblock_minecart,Command:\"setworldspawn 0 80 0\"}, 
    {id:commandblock_minecart,Command:\"gamemode 3 @a\"}, 
    {id:commandblock_minecart,Command:\"scoreboard objectives add Dir dummy\"}, 
    {id:commandblock_minecart,Command:\"scoreboard objectives add Iter dummy\"}, 
    {id:commandblock_minecart,Command:\"scoreboard objectives add Remain dummy\"}, 
    {id:commandblock_minecart,Command:\"scoreboard objectives add Info dummy\"}, 
    {id:commandblock_minecart,Command:\"scoreboard objectives add Running dummy\"}, 
    {id:commandblock_minecart,Command:\"scoreboard players set Ticks Info 0\"}, 
    {id:commandblock_minecart,Command:\"scoreboard players set RadiusCompletedSoFar Info 0\"}, 
    {id:commandblock_minecart,Command:\"scoreboard players set @a Running -1\"}, 
    {id:commandblock_minecart,Command:\"scoreboard players set @a Dir 1\"}, 
    {id:commandblock_minecart,Command:\"scoreboard players set @a Iter 1\"}, 
    {id:commandblock_minecart,Command:\"scoreboard players set @a Remain 1\"}, 
    {id:commandblock_minecart,Command:\"scoreboard objectives setdisplay sidebar Info\"}, 
    {id:commandblock_minecart,Command:\"tellraw @a [{\\\"text\\\":\\\"AFK World Generator for Minecraft 1.12\\\",\\\"color\\\":\\\"green\\\"}]\"}, 
    {id:commandblock_minecart,Command:\"tellraw @a [{\\\"text\\\":\\\"by Dr. Brian Lorgon111\\\",\\\"color\\\":\\\"yellow\\\"}]\"}, 
    {id:commandblock_minecart,Command:\"tellraw @a [{\\\"text\\\":\\\"https://www.youtube.com/user/lorgon111\\\",\\\"clickEvent\\\":{\\\"action\\\":\\\"open_url\\\",\\\"value\\\":\\\"https://www.youtube.com/user/lorgon111\\\"}}]\"}, 
    {id:commandblock_minecart,Command:\"tellraw @a [{\\\"text\\\":\\\"This one-command contraption only works when placed near 0,0 (which is now the world spawn).\\\",\\\"color\\\":\\\"red\\\"}]\"}, 
    {id:commandblock_minecart,Command:\"tellraw @a [{\\\"text\\\":\\\"Set your render distance to 8 chunks!\\\",\\\"color\\\":\\\"red\\\"}]\"}, 
    {id:commandblock_minecart,Command:\"tellraw @a [{\\\"text\\\":\\\"To start, run this command:\\\"}]\"}, 
    {id:commandblock_minecart,Command:\"tellraw @a [{\\\"text\\\":\\\"/scoreboard players set @a Running 1\\\",\\\"color\\\":\\\"green\\\"}]\"}, 
    {id:commandblock_minecart,Command:\"tellraw @a [{\\\"text\\\":\\\"Once desired size reached, stop with:\\\"}]\"}, 
    {id:commandblock_minecart,Command:\"tellraw @a [{\\\"text\\\":\\\"/scoreboard players set @a Running 0\\\",\\\"color\\\":\\\"green\\\"}]\"}, 
    {id:commandblock_minecart,Command:\"setblock ~0 ~35 ~0 command_block 0 replace {Command:\\\"scoreboard objectives setdisplay sidebar\\\"}\"}, 
    {id:commandblock_minecart,Command:\"setblock ~0 ~34 ~0 chain_command_block 0 replace {auto:1b,Command:\\\"gamemode 0 @a\\\"}\"}, 
    {id:commandblock_minecart,Command:\"setblock ~0 ~33 ~0 chain_command_block 0 replace {auto:1b,Command:\\\"gamemode 1 @a\\\"}\"}, 
    {id:commandblock_minecart,Command:\"setblock ~0 ~32 ~0 chain_command_block 0 replace {auto:1b,Command:\\\"tp @a 0 ~ 0\\\"}\"}, 
    {id:commandblock_minecart,Command:\"setblock ~0 ~31 ~0 chain_command_block 0 replace {auto:1b,Command:\\\"time set 0\\\"}\"}, 
    {id:commandblock_minecart,Command:\"setblock ~0 ~30 ~0 chain_command_block 0 replace {auto:1b,Command:\\\"fill ~ ~-33 ~ ~ ~5 ~ air\\\"}\"}, 
    {id:commandblock_minecart,Command:\"setblock ~0 ~29 ~0 repeating_command_block 0 replace {auto:1b,Command:\\\"scoreboard players test @p Running 1 1\\\"}\"}, 
    {id:commandblock_minecart,Command:\"setblock ~0 ~28 ~0 chain_command_block 8 replace {auto:1b,Command:\\\"blockdata ~ ~-2 ~ {auto:1b}\\\"}\"}, 
    {id:commandblock_minecart,Command:\"setblock ~0 ~27 ~0 chain_command_block 8 replace {auto:1b,Command:\\\"tp @a 0 130 0\\\"}\"}, 
    {id:commandblock_minecart,Command:\"setblock ~0 ~26 ~0 repeating_command_block 0 replace {auto:1b,Command:\\\"scoreboard players test @p Running * 0\\\"}\"}, 
    {id:commandblock_minecart,Command:\"setblock ~0 ~25 ~0 chain_command_block 8 replace {auto:1b,Command:\\\"blockdata ~ ~1 ~ {auto:0b}\\\"}\"}, 
    {id:commandblock_minecart,Command:\"setblock ~0 ~24 ~0 chain_command_block 8 replace {auto:1b,Command:\\\"scoreboard players test @p Running 0 0\\\"}\"}, 
    {id:commandblock_minecart,Command:\"setblock ~0 ~23 ~0 chain_command_block 8 replace {auto:1b,Command:\\\"blockdata ~ ~12 ~ {auto:1b}\\\"}\"}, 
    {id:commandblock_minecart,Command:\"setblock ~0 ~22 ~0 chain_command_block 0 replace {auto:1b,Command:\\\"scoreboard players add Ticks Info 1\\\"}\"}, 
    {id:commandblock_minecart,Command:\"setblock ~0 ~21 ~0 chain_command_block 0 replace {auto:1b,Command:\\\"scoreboard players test Ticks Info 40 *\\\"}\"}, 
    {id:commandblock_minecart,Command:\"setblock ~0 ~20 ~0 chain_command_block 8 replace {auto:1b,Command:\\\"scoreboard players set Ticks Info 0\\\"}\"}, 
    {id:commandblock_minecart,Command:\"setblock ~0 ~19 ~0 chain_command_block 8 replace {auto:1b,Command:\\\"blockdata ~ ~-2 ~ {auto:1b}\\\"}\"}, 
    {id:commandblock_minecart,Command:\"setblock ~0 ~18 ~0 chain_command_block 8 replace {auto:1b,Command:\\\"blockdata ~ ~-1 ~ {auto:0b}\\\"}\"}, 
    {id:commandblock_minecart,Command:\"setblock ~0 ~17 ~0 command_block 0 replace {Command:\\\"\\\"}\"}, 
    {id:commandblock_minecart,Command:\"setblock ~0 ~16 ~0 chain_command_block 0 replace {auto:1b,Command:\\\"tp @a[score_Dir_min=1,score_Dir=1] ~100 130 ~0\\\"}\"}, 
    {id:commandblock_minecart,Command:\"setblock ~0 ~15 ~0 chain_command_block 0 replace {auto:1b,Command:\\\"tp @a[score_Dir_min=2,score_Dir=2] ~0 130 ~100\\\"}\"}, 
    {id:commandblock_minecart,Command:\"setblock ~0 ~14 ~0 chain_command_block 0 replace {auto:1b,Command:\\\"tp @a[score_Dir_min=3,score_Dir=3] ~-100 130 ~0\\\"}\"}, 
    {id:commandblock_minecart,Command:\"setblock ~0 ~13 ~0 chain_command_block 0 replace {auto:1b,Command:\\\"tp @a[score_Dir_min=4,score_Dir=4] ~0 130 ~-100\\\"}\"}, 
    {id:commandblock_minecart,Command:\"setblock ~0 ~12 ~0 chain_command_block 0 replace {auto:1b,Command:\\\"scoreboard players remove @a Remain 1\\\"}\"}, 
    {id:commandblock_minecart,Command:\"setblock ~0 ~11 ~0 chain_command_block 0 replace {auto:1b,Command:\\\"scoreboard players test @p Remain 0 0\\\"}\"}, 
    {id:commandblock_minecart,Command:\"setblock ~0 ~10 ~0 chain_command_block 8 replace {auto:1b,Command:\\\"execute @p[score_Dir_min=2,score_Dir=2] ~ ~ ~ scoreboard players add @a Iter 1\\\"}\"}, 
    {id:commandblock_minecart,Command:\"setblock ~0 ~9 ~0 chain_command_block 0 replace {auto:1b,Command:\\\"scoreboard players test @p Remain 0 0\\\"}\"}, 
    {id:commandblock_minecart,Command:\"setblock ~0 ~8 ~0 chain_command_block 8 replace {auto:1b,Command:\\\"execute @p[score_Dir_min=4,score_Dir=4] ~ ~ ~ scoreboard players add @a Iter 1\\\"}\"}, 
    {id:commandblock_minecart,Command:\"setblock ~0 ~7 ~0 chain_command_block 0 replace {auto:1b,Command:\\\"scoreboard players test @p Remain 0 0\\\"}\"}, 
    {id:commandblock_minecart,Command:\"setblock ~0 ~6 ~0 chain_command_block 8 replace {auto:1b,Command:\\\"scoreboard players operation @a Remain = @p Iter\\\"}\"}, 
    {id:commandblock_minecart,Command:\"setblock ~0 ~5 ~0 chain_command_block 8 replace {auto:1b,Command:\\\"scoreboard players add @a Dir 1\\\"}\"}, 
    {id:commandblock_minecart,Command:\"setblock ~0 ~4 ~0 chain_command_block 8 replace {auto:1b,Command:\\\"scoreboard players set @a[score_Dir_min=5,score_Dir=5] Dir 1\\\"}\"}, 
    {id:commandblock_minecart,Command:\"setblock ~0 ~3 ~0 chain_command_block 8 replace {auto:1b,Command:\\\"scoreboard players add RadiusCompletedSoFar Info 100\\\"}\"}, 
    {id:commandblock_minecart,Command:\"setblock ~ ~-2 ~ command_block 0 0 {auto:1b,Command:\\\"fill ~ ~ ~ ~ ~2 ~ air\\\"}\"}, 
    {id:commandblock_minecart,Command:\"kill @e[type=commandblock_minecart,r=5]\"}]}"}, 
    Passengers:[{id:falling_block,Block:redstone_block,Time:1,Passengers:[{id:falling_block,Block:activator_rail,Time:1}]}]}




    I made my changes in bold and red, not sure if it works. And remember, this one command is made for 1.12. If it said 1.12, do it in 1.12. This command will 100% not work in 1.13+.


    summon falling_block ~ ~0.55 ~ {Block:command_block,Time:1,TileEntityData:{Command:"summon commandblock_minecart ~ ~1.5 ~ {Command:\"gamerule commandBlockOutput false\",Passengers:[{id:commandblock_minecart,Command:\"setworldspawn -8000 80 -8000\"},
    {id:commandblock_minecart,Command:\"gamemode 3 @a\"},
    {id:commandblock_minecart,Command:\"scoreboard objectives add Dir dummy\"},
    {id:commandblock_minecart,Command:\"scoreboard objectives add Iter dummy\"},
    {id:commandblock_minecart,Command:\"scoreboard objectives add Remain dummy\"},
    {id:commandblock_minecart,Command:\"scoreboard objectives add Info dummy\"},
    {id:commandblock_minecart,Command:\"scoreboard objectives add Running dummy\"},
    {id:commandblock_minecart,Command:\"scoreboard players set Ticks Info 0\"},
    {id:commandblock_minecart,Command:\"scoreboard players set RadiusCompletedSoFar Info 0\"},
    {id:commandblock_minecart,Command:\"scoreboard players set @a Running -1\"},
    {id:commandblock_minecart,Command:\"scoreboard players set @a Dir 1\"},
    {id:commandblock_minecart,Command:\"scoreboard players set @a Iter 1\"},
    {id:commandblock_minecart,Command:\"scoreboard players set @a Remain 1\"},
    {id:commandblock_minecart,Command:\"scoreboard objectives setdisplay sidebar Info\"},
    {id:commandblock_minecart,Command:\"tellraw @a [{\\\"text\\\":\\\"AFK World Generator for Minecraft 1.12\\\",\\\"color\\\":\\\"green\\\"}]\"},
    {id:commandblock_minecart,Command:\"tellraw @a [{\\\"text\\\":\\\"by Dr. Brian Lorgon111\\\",\\\"color\\\":\\\"yellow\\\"}]\"},
    {id:commandblock_minecart,Command:\"tellraw @a [{\\\"text\\\":\\\"https://www.youtube.com/user/lorgon111\\\",\\\"clickEvent\\\":{\\\"action\\\":\\\"open_url\\\",\\\"value\\\":\\\"https://www.youtube.com/user/lorgon111\\\"}}]\"},
    {id:commandblock_minecart,Command:\"tellraw @a [{\\\"text\\\":\\\"This one-command contraption only works when placed near somewhere (which is now the world spawn).\\\",\\\"color\\\":\\\"red\\\"}]\"},
    {id:commandblock_minecart,Command:\"tellraw @a [{\\\"text\\\":\\\"Set your render distance to 8 chunks!\\\",\\\"color\\\":\\\"red\\\"}]\"},
    {id:commandblock_minecart,Command:\"tellraw @a [{\\\"text\\\":\\\"To start, run this command:\\\"}]\"},
    {id:commandblock_minecart,Command:\"tellraw @a [{\\\"text\\\":\\\"/scoreboard players set @a Running 1\\\",\\\"color\\\":\\\"green\\\"}]\"},
    {id:commandblock_minecart,Command:\"tellraw @a [{\\\"text\\\":\\\"Once desired size reached, stop with:\\\"}]\"},
    {id:commandblock_minecart,Command:\"tellraw @a [{\\\"text\\\":\\\"/scoreboard players set @a Running 0\\\",\\\"color\\\":\\\"green\\\"}]\"},
    {id:commandblock_minecart,Command:\"setblock ~0 ~35 ~0 command_block 0 replace {Command:\\\"scoreboard objectives setdisplay sidebar\\\"}\"},
    {id:commandblock_minecart,Command:\"setblock ~0 ~34 ~0 chain_command_block 0 replace {auto:1b,Command:\\\"gamemode 0 @a\\\"}\"},
    {id:commandblock_minecart,Command:\"setblock ~0 ~33 ~0 chain_command_block 0 replace {auto:1b,Command:\\\"gamemode 1 @a\\\"}\"},
    {id:commandblock_minecart,Command:\"setblock ~0 ~32 ~0 chain_command_block 0 replace {auto:1b,Command:\\\"tp @a -8000 ~ -8000\\\"}\"},
    {id:commandblock_minecart,Command:\"setblock ~0 ~31 ~0 chain_command_block 0 replace {auto:1b,Command:\\\"time set 0\\\"}\"},
    {id:commandblock_minecart,Command:\"setblock ~0 ~30 ~0 chain_command_block 0 replace {auto:1b,Command:\\\"fill ~ ~-33 ~ ~ ~5 ~ air\\\"}\"},
    {id:commandblock_minecart,Command:\"setblock ~0 ~29 ~0 repeating_command_block 0 replace {auto:1b,Command:\\\"scoreboard players test @p Running 1 1\\\"}\"},
    {id:commandblock_minecart,Command:\"setblock ~0 ~28 ~0 chain_command_block 8 replace {auto:1b,Command:\\\"blockdata ~ ~-2 ~ {auto:1b}\\\"}\"},
    {id:commandblock_minecart,Command:\"setblock ~0 ~27 ~0 chain_command_block 8 replace {auto:1b,Command:\\\"tp @a -8000 130 -8000\\\"}\"},
    {id:commandblock_minecart,Command:\"setblock ~0 ~26 ~0 repeating_command_block 0 replace {auto:1b,Command:\\\"scoreboard players test @p Running * 0\\\"}\"},
    {id:commandblock_minecart,Command:\"setblock ~0 ~25 ~0 chain_command_block 8 replace {auto:1b,Command:\\\"blockdata ~ ~1 ~ {auto:0b}\\\"}\"},
    {id:commandblock_minecart,Command:\"setblock ~0 ~24 ~0 chain_command_block 8 replace {auto:1b,Command:\\\"scoreboard players test @p Running 0 0\\\"}\"},
    {id:commandblock_minecart,Command:\"setblock ~0 ~23 ~0 chain_command_block 8 replace {auto:1b,Command:\\\"blockdata ~ ~12 ~ {auto:1b}\\\"}\"},
    {id:commandblock_minecart,Command:\"setblock ~0 ~22 ~0 chain_command_block 0 replace {auto:1b,Command:\\\"scoreboard players add Ticks Info 1\\\"}\"},
    {id:commandblock_minecart,Command:\"setblock ~0 ~21 ~0 chain_command_block 0 replace {auto:1b,Command:\\\"scoreboard players test Ticks Info 40 *\\\"}\"},
    {id:commandblock_minecart,Command:\"setblock ~0 ~20 ~0 chain_command_block 8 replace {auto:1b,Command:\\\"scoreboard players set Ticks Info 0\\\"}\"},
    {id:commandblock_minecart,Command:\"setblock ~0 ~19 ~0 chain_command_block 8 replace {auto:1b,Command:\\\"blockdata ~ ~-2 ~ {auto:1b}\\\"}\"},
    {id:commandblock_minecart,Command:\"setblock ~0 ~18 ~0 chain_command_block 8 replace {auto:1b,Command:\\\"blockdata ~ ~-1 ~ {auto:0b}\\\"}\"},
    {id:commandblock_minecart,Command:\"setblock ~0 ~17 ~0 command_block 0 replace {Command:\\\"\\\"}\"},
    {id:commandblock_minecart,Command:\"setblock ~0 ~16 ~0 chain_command_block 0 replace {auto:1b,Command:\\\"tp @a[score_Dir_min=1,score_Dir=1] ~100 130 ~0\\\"}\"},
    {id:commandblock_minecart,Command:\"setblock ~0 ~15 ~0 chain_command_block 0 replace {auto:1b,Command:\\\"tp @a[score_Dir_min=2,score_Dir=2] ~0 130 ~100\\\"}\"},
    {id:commandblock_minecart,Command:\"setblock ~0 ~14 ~0 chain_command_block 0 replace {auto:1b,Command:\\\"tp @a[score_Dir_min=3,score_Dir=3] ~-100 130 ~0\\\"}\"},
    {id:commandblock_minecart,Command:\"setblock ~0 ~13 ~0 chain_command_block 0 replace {auto:1b,Command:\\\"tp @a[score_Dir_min=4,score_Dir=4] ~0 130 ~-100\\\"}\"},
    {id:commandblock_minecart,Command:\"setblock ~0 ~12 ~0 chain_command_block 0 replace {auto:1b,Command:\\\"scoreboard players remove @a Remain 1\\\"}\"},
    {id:commandblock_minecart,Command:\"setblock ~0 ~11 ~0 chain_command_block 0 replace {auto:1b,Command:\\\"scoreboard players test @p Remain 0 0\\\"}\"},
    {id:commandblock_minecart,Command:\"setblock ~0 ~10 ~0 chain_command_block 8 replace {auto:1b,Command:\\\"execute @p[score_Dir_min=2,score_Dir=2] ~ ~ ~ scoreboard players add @a Iter 1\\\"}\"},
    {id:commandblock_minecart,Command:\"setblock ~0 ~9 ~0 chain_command_block 0 replace {auto:1b,Command:\\\"scoreboard players test @p Remain 0 0\\\"}\"},
    {id:commandblock_minecart,Command:\"setblock ~0 ~8 ~0 chain_command_block 8 replace {auto:1b,Command:\\\"execute @p[score_Dir_min=4,score_Dir=4] ~ ~ ~ scoreboard players add @a Iter 1\\\"}\"},
    {id:commandblock_minecart,Command:\"setblock ~0 ~7 ~0 chain_command_block 0 replace {auto:1b,Command:\\\"scoreboard players test @p Remain 0 0\\\"}\"},
    {id:commandblock_minecart,Command:\"setblock ~0 ~6 ~0 chain_command_block 8 replace {auto:1b,Command:\\\"scoreboard players operation @a Remain = @p Iter\\\"}\"},
    {id:commandblock_minecart,Command:\"setblock ~0 ~5 ~0 chain_command_block 8 replace {auto:1b,Command:\\\"scoreboard players add @a Dir 1\\\"}\"},
    {id:commandblock_minecart,Command:\"setblock ~0 ~4 ~0 chain_command_block 8 replace {auto:1b,Command:\\\"scoreboard players set @a[score_Dir_min=5,score_Dir=5] Dir 1\\\"}\"},
    {id:commandblock_minecart,Command:\"setblock ~0 ~3 ~0 chain_command_block 8 replace {auto:1b,Command:\\\"scoreboard players add RadiusCompletedSoFar Info 100\\\"}\"},
    {id:commandblock_minecart,Command:\"setblock ~ ~-2 ~ command_block 0 0 {auto:1b,Command:\\\"fill ~ ~ ~ ~ ~2 ~ air\\\"}\"},
    {id:commandblock_minecart,Command:\"kill @e[type=commandblock_minecart,r=5]\"}]}"},
    Passengers:[{id:falling_block,Block:redstone_block,Time:1,Passengers:[{id:falling_block,Block:activator_rail,Time:1}]}]}

    Posted in: Commands, Command Blocks and Functions
  • 1

    posted a message on "Failed test" output
    Quote from Hozque»

    I am running the most simple command ever in a repeating command block, /execute if entity @a[x_rotation=175..-175]
    But for some reason it's outputting "Failed test" no matter what i do.

    Any advice?



    You're probably putting in the wrong angle. Try 30..50 first, and slowly extend you angle. Then you'll find the answer by trial and error.

    Posted in: Commands, Command Blocks and Functions
  • 1

    posted a message on Can you pre-generate items in a loot table chest?
    Quote from mun8mun»

    Like, I assign a loot table to a chest, but items only generate when a player opens it. Any way to generate the random items without player interactions?
    (I'm trying to make a randomizer in 1.12.2)


    Long story short, go 1.14 and use /loot.


    If you insist in using 1.12.2, it'll be way more complicated and inconvenient.

    Posted in: Commands, Command Blocks and Functions
  • 2

    posted a message on This is how you prove to your friends that you're in the Minecon Live livestream.


    Of course, check the comments and you'll realize that people can post 1k comments in the first few seconds.

    Posted in: Minecon
  • 1

    posted a message on [Solved] stop EXP drop from mob Spawner
    Quote from Qualthorn»

    I added a loot table for the spawner block in minecraft by using the same loot table as redstone but changing redstone ore to spawner block and redstone to iron bars (so you can only get it through silk touch, otherwise you get 4-5 iron bars + fortune)


    This works fine, only problem is that you still get experience even when you silk touch it


    Is there a way of letting the loot table determin the EXP drop, or just a function or something saying something like:

    if: silk touch

    {

    no_experience

    }




    Googled a little, seems like the block xp drop is hard-coded (i.e. not configurable). (current version: 1.14.2)

    A crude workaround (assume you don't have one) is to use the loot table to make the spawner drop an extra custom item, where it'll /kill all the xp near it and /kill itself.

    Posted in: Commands, Command Blocks and Functions
  • 1

    posted a message on Data pack basics [Tutorial]

    Not bad. We better bump this thread before archive.

    Posted in: Commands, Command Blocks and Functions
  • 1

    posted a message on Strange ghost item duplication?

    Maybe someone can help me out here. This has been driving me insane the past few hours.


    For this project I'm doing, I'm basically trying to take an item from a player's slot, copy that over into an item I've summoned that acts as the "mold", and then delete that item from the player's inventory. The effect is that the player's item is dropped to the floor, and they are able to pick it back up. These are the commands I use to make this happen:

    /execute as @p[nbt={Inventory:[{Slot:9b}]}] at @s run summon item ~ ~ ~ {Tags:["ItemMold"],Item:{id:"minecraft:rabbit_stew",Count:1b,tag:{CustomModelData:1b}},PickupDelay:60s}
    
    /execute as @p at @s run data modify entity @e[tag=ItemMold,limit=1,sort=nearest] Item merge from entity @s Inventory[{"Slot":9b}]
    
    /execute as @e[tag=ItemMold] at @s run data remove entity @s Item.tag.CustomModelData
    
    /replaceitem entity @a inventory.0 air




    I think the logic is pretty solid and should be working correctly and it does work initially, but I've been hitting a weird snag:


    Placing an item in that slot over and over in succession fills up my hotbar with ghosts of that item (in this case, an apple). I know they are there because I can press Q to drop them to the floor, which causes them to materialize. But at the same time, there is no tooltip or any indication that they actually exist when I mouse over them, nor is my hand model hidden like it would be if I was holding an item.


    When swapping between empty slots in your hotbar, your hand bobs up and down, as you can see with the three truly empty hotbar slots on the right. Swapping between the ghost slots, my hand remains steady, again indicating that something is supposedly there.

    However, if I place a real item in a ghost slot instead of pressing Q over it, that outright DESTROYS the ghost item and removes it from my inventory. It's as if the ghost item is in an existential limbo and is capable of either fully becoming an item if I drop it with Q, or being destroyed if an item is placed in that slot.


    Is this on me and the way I coded things, or is this just a bug? Any uh... insight would be greatly appreciated :wacko:



    Go Survival/Adventure mode and try again. If that works, then I'll say I encountered this issue before when I tried to lock player slots in a map.

    Posted in: Commands, Command Blocks and Functions
  • 2

    posted a message on How to get only the first item matching an NBT path?
    Quote from s_leroux»

    I'm playing with the ", courier, monospace">/data command for a while in MC14.2, but I can't find a way to access items by index when a NBT path selector matches several items.


    Let's say for example I want to know which slot of a chest containing pumpkins. I can write that:


    /data get block x y z Items[{id:"minecraft:pumpkin"}].Slot



    However, it will work only if pumpkins are found in one slot. If the chest has several slots filled with pumpkins, ", courier, monospace">data get produces the error "only one NBT value accepted". So, is there a way to select only the first item (or at least only one item, being the first or not) matching an NBT path?

    FWIW, I tried several variations with no luck:

    Items[{id:"minecraft:pumpkin"}][0].Slot
    Items[{id:"minecraft:pumpkin"}].[0].Slot
    Items[{id:"minecraft:pumpkin"},0].Slot




    Here's a slightly rough solution.


    First, place another container under that target chest. Another chest can do. Or, summon an entity below. It has to hold the target item tho.


    Second, either put that special item in the first slot of the chest under, or use /summon to include that item on the entity's hand.

    That special item can be anything, not necessarily a pumpkin even if you're finding a pumpkin. But it just needs to have the tag:{} nbt tag.

    Example: /setblock ~ ~ ~ chest{Items:[{id:"minecraft:stone",Count:1,tag:{}}]}


    Third, use your command in a slightly different way.

    Sth like this: /data modify block <coords of chest under> Items[0].tag.Slotz append from block <coords of target chest> Items[{id:"minecraft:pumpkin"}].Slot

    After this, that item (stone in this case) has all the slots stored.


    Lastly, get the first slot with sth like this:

    /data get block ~ ~ ~ Items[0].tag.Slotz[0]


    Ta-da!~ *cough* Here you go. Modify it so that it suits your situation.

    Posted in: Commands, Command Blocks and Functions
  • To post a comment, please .