• 0

    posted a message on Right Click Detection Via Villager Question.

    For come context: I am using 1.14 vanilla (no plugins, mods, or data packs). I want to have a small hub on me and my friend's creative world, where I can right click a certain villager to get to a certain place (there would be lots of villagers in this hub). I know how to detect the right click in general using this method, I just don't know how I would distinguish it from, say a trading with a normal villager, or right clicking a different another villager in the hub.


    I don't know if this is possible without plugins or mods, but I think the best way to do this would be to somehow give the villager a scoreboard when right clicked. I would then use command blocks to detect the specific villager's score (then run the rest of my commands). I just don't know what commands I would use to do this. Any help would be appreciated.


    edit: nvm I just used hit detection. If anyone still wants to inform me on how I could use right click detection, I'm all ears.

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Entitydata question

    Actually, it only requires one command block (as of 1.13).


    Use this command inside of a repeating command block: execute as @e[type=item,nbt:{Item:{id:"#item id here (example minecraft:iron_sword)#"}}] at @s run data merge entity @s {Item:{tag:{#item nbt here (example Enchantments:[{id:sharpness,lvl:5}])#}}}

    Posted in: Redstone Discussion and Mechanisms
  • 0

    posted a message on [SOLVED!] Arrows you can't pick up

    (1.13) inside repeating command block:


    execute as @e[type=arrow] run data merge entity @s {pickup:0b}

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on /data CanPlaceOn help

    I'm trying to use the /data command to change what an item can be placed on. However the command isn't working. The command is;

    /execute as @e[type=minecraft:item,nbt={Item:{id:"grass"}}] run data merge entity @s {CanPlaceOn:["minecraft:grass_block"]}

    Any help with the command would be appreciated!


    FIXED!!!

    The command is:

    /execute as @e[type=minecraft:item,nbt={Item:{id:"grass"}}] run data merge entity @s {Item:{tag:{CanPlaceOn:["minecraft:grass_block"]}}}

    Posted in: Commands, Command Blocks and Functions
  • 1

    posted a message on Opinions about the Quartz Block texture and the Smooth Quartz Block(1.13)

    I'm not to sure where to post this. I noticed some odd textures involving the Quartz Block, the Quartz Stairs, the Quartz Slab, and the Smooth Quartz Block(most of this thread is about this block). The normal Quartz Block, the Quartz Slab, and the Quartz Stairs all have a texture under them that's different from the other sides of the block. I don't know if it's an intended texture, or if it's a glitch. The Smooth Quartz Block has the exact same texture as the normal Quartz Block, which to me makes it seem a little bit pointless to have in the game to be honest. I know it's meant to look like the top of the Quartz Slab, however I think it should either look like the bottom of the Quartz Slab, or just be removed completely. It's like adding Smooth Bricks, or Smooth Cobblestone based on the top textures of their slabs. I'm not against the idea of a Smooth Quartz Block, in-fact I really like the idea, I just don't feel like it's being done the right way. Let me know what you guys think about the Quartz Block texture and the Smooth Quartz Block!

    Posted in: Recent Updates and Snapshots
  • 0

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

    Thank you for the quick response! I tried copying and pasting your command into a repeating command block, and nothing happened. I also did this for the one I typed in my original thread, and nothing happened again. I even tried creating a new world and it didn't work. Thank you for trying to help. :)

    Posted in: Commands, Command Blocks and Functions
  • 0

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

    I'm using the command /execute if entity @a[y=0,dy=30] run (command) on 1.13_pre3 to run a command when a player is below the 30th "y" level. Unfortunately the command isn't working. How can I detect when a player is below the 30th "y" level? Any help would be appreciated!

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on dying causes intense lag (most 1.13 snapshots, including 1.13_pre2)

    I'm using 1.13_pre2 in my world. When I respawn, my game lags out (from 60 fps down to 2-5 fps until I reload the world). Nothing like this happened in my world until I upgraded it from 1.12.2 to one of the early snapshots (I don't remember the exact one). I do have a lot of command blocks, and scoreboards, and things like that in the world, but it isn't those. I know this because when I refresh the world, the problem is gone, and I am back up to 60 fps. I want to know if anyone else is having similar issues when they die. I haven't seen anyone else talk about it yet. Any feedback would be appreciated!


    Edit: I did some testing and learned that the lag only happens the first time I die each time I load the world. The lag also fixes itself when I unload the chunks that I died in, or near.

    Posted in: Recent Updates and Snapshots
  • 0

    posted a message on 1.13 FULL enchantment id's! + small /give tutorial

    Thank you so much!!! :D

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Can I still give myself enchanted items using commands?

    This might be a stupid question, but I can't find anything about it. I'm trying the command /give @p diamond_sword{Unbreakable:1,ench:[{id:16,lvl:10}]} to give myself a diamond sword with sharpness 10. Sadly the command isn't working. I'm using version 1.13_pre1. Any help on how to correct the command would be appreciated!

    Posted in: Recent Updates and Snapshots
  • 0

    posted a message on 1.13 FULL enchantment id's! + small /give tutorial

    Thanks for the IDs! Can you provide an example of a command? I'm trying the command /give @p diamond_sword{Unbreakable:1,ench:[{id:16,lvl:10}]} to give myself a diamond sword with sharpness 10. Sadly the command isn't working. I'm using version 1.13_pre1. Any help on how to correct the command would be appreciated!

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