• 1

    posted a message on Changing Biomes in 1.13.2?

    Yes, it is possible with WorldEdit. And there is a mod version of WorldEdit so go check it out.

    And theoretically is still possible even without WorldEdit and MCedit, use NBTedit, but somehow I cannot get it work...

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Specify generic item with data

    Create your own #weapons.


    https://www.minecraftforum.net/forums/minecraft-java-edition/redstone-discussion-and/commands-command-blocks-and/2934723-how-to-target-broader-assortments-of-blocks-with

    Everything should be the same except the path change to

    .minecraft\saves\<your world>\datapacks\<datapack name>\data\<namespace>\tags\items

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Adding datapacks to the server.

    If datapack is not listed when you used /datapack list, check if that's the right path.

    https://minecraft.gamepedia.com/Tutorials/Installing_a_data_pack

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on is it possible to have a NBT tag that allow to change dirt to farmland in adventure mode ?

    Yes, if you are asking for items. canDestroy is a tag that belong to items.

    No, if you are asking for placed blocks. Non-entity block does not store nbt data.

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Modifying arrow flight data

    Change those shotFromCrossbow arrow to no gravity.

    execute as @e[type=minecraft:arrow,nbt={ShotFromCrossbow:1b}] run data merge entity @s {NoGravity:1b}
    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Please help (execute)

    The reason why yours doent work because what you detected is not related to what you killed. In another words, you let the command block find a nearly random villager's location to see if he stand on bedrock, if success, the command block is trying to again find a nearly random villager to kill.


    execute as @e[type=minecraft:villager] at @s if block ~ ~-0.1 ~ minecraft:bedrock run kill @s

    This will let all the villager become the executor, at their own position, if bedrock is below, kill the entity who is executing this command.

    Also, distance=1 hardly find anything, it means those who are exactly 1 block away to the location. And it should be distance=..1
    You said that you tried as and at but does nothing, I assume that you tried both /execute as and /execute at, except /execute as at, which is what you have not try....



    No...not the -0.1, it is the use of both as and at together, and the @s at the end...
    -0.1 is my own habit, so it wouldn't detect when an entity is standing on 2 layers snow, bottom half slab... and change it to 0.05 affect carpet.
    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on How to target broader assortments of blocks with less commands?

    Use tags. I mean block tags...

    /fill x y z x y z minecraft:sand replace #minecraft:leaves

    This will replace all the leaves.


    #minecraft:leaves is a vanilla block tag, which include.

    minecraft:jungle_leaves, minecraft:oak_leaves, minecraft:spruce_leaves, minecraft:dark_oak_leaves, minecraft:acacia_leaves, minecraft:birch_leaves



    Same as flowers and logs, you can check them here. You can also check the vanilla ones by extracted files from your jar.... https://minecraft.gamepedia.com/Tag#Blocks


    # is required so that the game recognize this is a tag.

    minecraft is the namespace of where the tag is located.

    leaves is a json file which have a list of target blocks or link to other tags.

    Which means, you can create block tags of your choice.


    The path is .minecraft\saves\<your world>\datapacks\<datapack name>\data\<namespace/uin>\tags\blocks

    And here is a example of how it looks like(Ignore the outdated block id name...)


    #uin:penetrate

    {
      "replace": false,
      "values": [
        "#minecraft:buttons",
    	"#minecraft:carpets",
    	"#minecraft:flower_pots",
    	"minecraft:air",
    	"minecraft:barrier",
    	"minecraft:lever",
    	"minecraft:comparator",
    	"minecraft:cobweb",
    	"minecraft:redstone_torch",
    	"minecraft:redstone_wire",
    	"minecraft:repeater",
    	"minecraft:sign",
    	"minecraft:torch",
    	"minecraft:wall_sign",
    	"minecraft:water"
        ]
    }
    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on How do I teleport one entities with a tag to another specific entity with a different tag?

    Give another tag to those four armorstand. Use sort in selector for randomly select.

    @e[tag=random,limit=1,sort=random]

    Posted in: Commands, Command Blocks and Functions
  • 1

    posted a message on 1.13.2 Armor Detection Command

    \" is for...I am not good at explaining stuff. It is a format same as the one we use on /tellraw.

    display: {Name: "{\"text\":\"sth\"}"}}}

    For now, just to keep everything simple. Red part is what you can change. \ and " is for escape.


    After the escape, it would look like this, which is a readable json format for the game.

    {"text":"sth"}


    Here is the link, it explain...

    https://www.minecraftforum.net/forums/minecraft-java-edition/redstone-discussion-and/351959-1-12-json-text-component-for-tellraw-title-books#Unicode

    Posted in: Commands, Command Blocks and Functions
  • 1

    posted a message on 1.13.2 Armor Detection Command

    Here is a example of how it should be


    [{Slot: 102b, id: "minecraft:leather_chestplate", Count: 1b, tag: {RepairCost: 0, display: {Name: "{\"text\":\"b\"}"}}}, {Slot: 103b, id: "minecraft:leather_helmet", Count: 1b, tag: {RepairCost: 0, display: {Name: "{\"text\":\"a\"}"}}}]

    Display name require json format now...


    Another problem is if those command is activated in a command block, the bat will be summon at the command block's position, not at the player. Add at @s before run.

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Where do I place block loot table in 1.14 data pack?
    .minecraft\saves\<your world>\datapacks\<datapack name>\data\<namespace>\loot_tables\blocks\<json files>
    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on My 1.14 Function Is Not Working

    No...execute without at shouldn't be the reason why the mcfunction not been recognize. These three file hasn't been recognize because there are some error, real ones...


    Found one before I check with gameoutput.

    spruce.mcfunction

    execute as @a[tag=isd] if entity @a[tag=iod] at @s run tp @s @e[tag=sd,limit=1]


    gameoutput:

    Couldn't load function at uin:functions/main.mcfunction
    java.util.concurrent.CompletionException: java.lang.IllegalArgumentException: Whilst parsing command on line 2: Block minecraft:oak_door does not accept 'bottom' for half property at position 69: ...door[half=<--[HERE]
    Couldn't load function at uin:functions/oak.mcfunction
    java.util.concurrent.CompletionException: java.lang.IllegalArgumentException: Whilst parsing command on line 4: Block minecraft:oak_door does not accept 'top' for half property at position 113: ...west,half=<--[HERE]
    Couldn't load function at uin:functions/spruce.mcfunction
    java.util.concurrent.CompletionException: java.lang.IllegalArgumentException: Whilst parsing command on line 4: Block minecraft:spruce_door does not accept 'top' for half property at position 116: ...west,half=<--[HERE]

    So...here is the problem, the half state for doors has changed compare to previous version. It should now be either upper or lower.
    [half=upper/lower]

    How to enable gameoutput? Launcher>settings>open output log when the game starts
    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on What command can I type in for this?

    First thing first, you have to define what "this grass block" actually is.

    What do you mean THIS, how do you differentiate THIS and the rest, is it a specific coordinate block, is there a entity at THIS block that other blocks doesn't, is THIS a block that can be natural generate, or is THIS block created/placed because of player's action, and if so what is it.


    Second, noticed that you said "wanting to make this...in bedrock edition" and "BTW I'm in 1.13". So...are you asking for bedrock edition or java edition? For now, I assume is for java.


    Last...If you are just asking for command activation when player enter a specific area

    /execute positioned <x> <y> <z> if entity @a[distance=..<min_radius>] run <command>


    If you are asking for grass block underneath

    /execute as @a at @s if block ~ ~-0.1 ~ minecraft:grass_block run <command>

    If a specific entity is needed to make the grass block become THIS

    /execute as @a at @s if block ~ ~-0.1 ~ minecraft:grass_block if entity @e[tag=entity,distance=..1] run <command>


    But...first thing first, what is THIS?

    Posted in: Redstone, Commands and Mechanisms
  • 0

    posted a message on 1.13 "/testfor" replacement

    /execute is a command, as well as /testfor. The one I posted do exactly the same as the one you gave.



    If you don't want command, consider using pressure plate, or trip wire...


    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on 1.13 "/testfor" replacement

    /execute if entity @a[distance=..3]


    That's it...

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