• 1

    posted a message on Custom Textures for Blocks [1.13]

    This item idea does work....You just have to edit the display part.

    So what you might do is place down a dropper,

    spawn a invisible, invulnerable and marker:1b armor stand with custom weapon(Unbreakable:1b,Damage:#) either on hand or head slot.

    Open your json model, edit the display part, or add it if your model doesn't have that.

    With something like this

    "display": {
    "thirdperson_righthand": { "scale": [1.0, 1.0, 1.0] },
    "head": { "scale": [1.0, 1.0, 1.0] }
    }


    Scale, translation, rotation...



    There is also a way to do it by using Optifine, but it hasn't release yet...


     
    Posted in: Commands, Command Blocks and Functions
  • 1

    posted a message on Are commands broken in 1.13?
    /execute as @p run setblock ~ ~ ~ repeating_command_block{Command:"execute as @a[nbt={SelectedItem:{id:\"minecraft:diamond_pickaxe\",tag:{display:{Lore:[\"asd\"]}}}}] run scoreboard players set @p magnes 1",auto:1}

    Need a \(escape) for each " and \ if there is any in command.

    Because you want the Command to have a string value of

    "execute as @a[nbt={SelectedItem:{id:"minecraft:diamond_pickaxe",tag:{display:{Lore:["asd"]}}}}] run scoreboard players set @p magnes 1"

    And since there might be a issue for the game to check the second ", he might think what if you want this

    "execute as @a[nbt={SelectedItem:{id:"

    or this

    "execute as @a[nbt={SelectedItem:{id:"minecraft:diamond_pickaxe"

    or these...

    "execute as @a[nbt={SelectedItem:{id:"minecraft:diamond_pickaxe",tag:{display:{Lore:["

    "execute as @a[nbt={SelectedItem:{id:"minecraft:diamond_pickaxe",tag:{display:{Lore:["asd"

    So in order to tell him which " it should end, every " and \ between the first " and last " need an escape.




    Next time use this command below to check the format if you are uncertain, it also save you lots of time...

    /data get block x y z

    Posted in: Commands, Command Blocks and Functions
  • 1

    posted a message on Usage of the "distance=" parameter

    distance=..50 or distance=0..50

    ..50 means in a radius of 50 block



    One good thing for 1.13, so you wouldn't have do distance=50, distance_min=0.

    Posted in: Commands, Command Blocks and Functions
  • 1

    posted a message on [Solved] Datapack Troubleshooting

    execute if entity @e...

    Posted in: Commands, Command Blocks and Functions
  • 1

    posted a message on [Solved] Datapack Troubleshooting

    You can enable the gameoutput to see what actually is going wrong in you datapack.


    Open your launcher > Settings > Open output when the game starts


    Then you can open your world, everything that shows red in the output is what you need to fix ASAP.

    This thing is pretty useful, it tells you whether and which mcfunction in your datapack is wrong, which texture or model json is unrecognizable in your resourcepack, and many others...

    Posted in: Commands, Command Blocks and Functions
  • 1

    posted a message on [1.13-Pre4] Select Target by Item with Custom Name Held

    Too lazy to check other two command...

    The second one is working fine in 1.13-pre2, so I guess that's a bug in pre4?

    Posted in: Commands, Command Blocks and Functions
  • 1

    posted a message on How can I run a command if a player is below a certain "y" level on 1.13_pre3?

    emmm...a little bit trick here if you want to run in a command block


    /execute as @a at @s if entity @s[y=0,dy=30] run say i

    Posted in: Commands, Command Blocks and Functions
  • 1

    posted a message on [1.13] Help Creating 'Silk Spawners' with functions

    Wrote a bunch, then the website was refresh... :(


    Seems doable, but it is kind of limit (depend on how many spawn data you want to copy).

    First, you need scoreboard minecraft.broken:minecraft.mob_spawner to detemine if the player actually broke the spawner.

    Then, you need to create a block tag in your data pack which it contain a list of block that tell which block the ray should pass. (air,sign,wall_sign,lever,torch,#minecraft:water,#minecraft:buttons,etc.)


    Now, here is the main part.

    #either in a function or command block, where you need player to run repeatedly

    execute as @s at @s positioned ~ ~1.62 ~ run function namespace:ray


    #ray

    execute if entity @s[distance=..6] if block ~ ~ ~ minecraft:mob_spawner run function namespace:getspawnertype

    execute if entity @s[distance=..6] if block ~ ~ ~ #namespace:pass positioned ^ ^ ^0.1 run function namespace:ray


    #getspawnertype

    execute if block ~ ~ ~ minecraft:mob_spawner{SpawnData:{id:"minecraft:pig"}} run tag @s add spawner_pig

    execute if block ~ ~ ~ minecraft:mob_spawner{SpawnData:{id:"minecraft:cow"}} run tag @s add spawner_cow

    execute if block ~ ~ ~ minecraft:mob_spawner{SpawnData:{id:"minecraft:zombie"}} run tag @s add spawner_zombie

    execute if block ~ ~ ~ minecraft:mob_spawner{SpawnData:{id:"minecraft:spider"}} run tag @s add spawner_spider

    ...


    Once the player have a score of 1 in minecraft.broken:minecraft.mob_spawner, give them the correspond spawner, then remove the score and tag.

    Posted in: Commands, Command Blocks and Functions
  • 1

    posted a message on SOLVED [1.13] Scoreboard Min and Max for Target Selector Data?

    greenrepu=17 when the score is 17

    greenrepu=..17 17 or below

    greenrepu=17.. 17 or above

    greenrepu=0..17 between 0 and 17(inclusive)


    See Selecting targets by score

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