• 0

    posted a message on enemy detection

    To detect if they are holding a sword you can use

    /scoreboard players tag @a add holds_sword {SelectedItem:{id:"minecraft:diamond_sword"}}

    To detect from which towny town they are you'd have to look in the towny documentation, but I assume that's not possible with commands.

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Blockbench - A free, modern block model editor!
    Quote from SilentAngel»

    Ahmm.. Hello i knew this is thread that year ago. But can i ask a favor? Can you please make that Application that Compatible to Windows 7 32bit? Because when i always run the installer/setup. It's always say : Windows 7 64bit Required !!.. Please? I Think this application is very amazing !! Thanks.



    There is now a 32 bit version of Blockbench.

    Posted in: Minecraft Tools
  • 0

    posted a message on Adding custom nbt tags to existing item
    Quote from MiniNinjaMMG»

    This page is really helpful but I was wondering if there was a way to add NBT tags when there is already one, for example:


    a diamond sword has a lore of: LifeSteal V

    is it possible to add a tag so after it will have a lore of: LifeSteal V, Crushing V. Instead of just rewriting the whole thing?


    Sorry that it's so complicated but I'm trying to add custom enchantment runes and I want you to add extra enchants without clearing the others, thanks in advance :D


    That's not possible with Lore unfortunately. You would have to have a command for each possible combination.
    Posted in: Commands, Command Blocks and Functions
  • 1

    posted a message on Commands in commandblock in commandblock?

    Basically you add one backslash per quotation mark and one backslash per backslash, each level.

    Lets start from the inside. First, escape all quotation marks in the tellraw command. Just add one backslash in front of each quotation mark.

    [{id:falling_block,Block:command_block,Time:1,TileEntityData:
    {Command:"/setblock ~2 ~-17 ~-1 command_block 0 replace {Command:"tellraw @a[r=8,score_PVPZone=0] [\"\",{\"text\":\"WARNING!!!!\",\"color\":\"red\"},{\"text\":\" You are now in the PVPZone!\"}]"},Passengers:

    Then you do the next level. That is the two quotation marks surrounding the tellraw command. But now you have to add a layer of escaping to the tellraw command. First, add a backslash to each quotation mark, then add one to each already existing backslash. You will end up with three backslashes per quotation mark.

    [{id:falling_block,Block:command_block,Time:1,TileEntityData:
    {Command:"/setblock ~2 ~-17 ~-1 command_block 0 replace {Command:\"tellraw @a[r=8,score_PVPZone=0] [\\\"\\\",{\\\"text\\\":\\\"WARNING!!!!\\\",\\\"color\\\":\\\"red\\\"},{\\\"text\\\":\\\" You are now in the PVPZone!\\\"}]\"},Passengers:

    Now do the same for the quotes around the setblock command. You will end up with three backslashes outside the tellraw command and 7 backslashes in the tellraw command block.

    I recommend to use a program to do this. Just google "json escape tool". Keep in mind that you convert one command at a time there.

    Posted in: Commands, Command Blocks and Functions
  • 1

    posted a message on Commands in commandblock in commandblock?

    You have to escape your quotation marks. For example. if you write

    Command:"/setblock [...] {Command:"effect

    it will this that the command is "/setblock [...] {Command:" because that is inside the quotation marks. To fix this, add a backslash in front of the inner quotation marks, like this


    [{id:falling_block,Block:command_block,Time:1,TileEntityData:
    {Command:"/setblock ~2 ~1 ~2 minecraft:command_block 0 replace {Command:\"effect @a[r=15,score_spawn=1] minecraft:mining_fatigue 0 0\"}"},Passengers:
    Posted in: Commands, Command Blocks and Functions
  • 1

    posted a message on A bucket, that doesn't pour out water?

    You can set the player to adventure mode (or use another item and retexture it as a bucket). Then fake pouring it into the cauldron with command blocks, like this: https://goo.gl/XtnjLH

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on [HELP] i cant make this ground crafting work properly

    If you are testing for NBT, you need to use it strictly. That means you have to use

    id:"minecraft:dye" instead of id:dye

    Damage:1s instead of Damage:1

    Count:5b instead of Count:5

    etc...


    See https://minecraft.gamepedia.com/Chunk_format#Items_and_XPOrbs for more info on NBT tags.

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Help with entity tile data

    Block type is saved in block, direction and conditional is saved in Data and activation is saved as auto in the TileEntityData compound.

    {Block:"minecraft:chain_command_block",Data:5b,TileEntityData:{auto:1b}}
    Posted in: Commands, Command Blocks and Functions
  • 1

    posted a message on [SOLUTION] Testing for a Full Hotbar - Multiplayer Compatible!
    /scoreboard players tag @a add hotbar_full {Inventory:[{Slot:0b},{Slot:1b},{Slot:2b},{Slot:3b},{Slot:4b},{Slot:5b},{Slot:6b},{Slot:7b},{Slot:8b}]}
    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Adding custom nbt tags to existing item

    It is possible if the item is on the ground or in an item frame:

    /entitydata @e[type=item,c=1] {Item:{tag:{perk:1b}}}
    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Right Click Detection

    You are probably going to have to use different click detection systems. Here is a list of possible right click detection systems from the top of my head:

    • Invisible villager
    • Retextured sign with click-event
    • Noteblocks (tune)
    • Armor stands (giving/taking armor or other items)
    • Carrot on a stick
    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on How do I create a 3D model for my resource pack? HELP I CAN'T GET IT TO WORK!!!

    I have one issue i remodeled the head and fixed the flipped problem. However when it is on my player head it is wayyyy to small how do i fix this?


    There is a setting called "display" that you can add to your model. There are also model editors that can change and export those settings.
    Just add this piece of json to your model file (after the ] in the end of the file) with any text editor. Don't forget the comma before.

    	"display": {
    		"head": {"scale": [1.6, 1.6, 1.6]}
    	}
    Posted in: Discussion
  • 0

    posted a message on I need help using Command block

    You can use the vanilla tp command:

    /minecraft:tp @p[r=2] 5000 50 5000
    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Change gamemode in area
    Quote from zindan»

    IT is really good, thanks but there is a problem. I still want the owner of the house to always remain in gamemode 0 within his area. Only the outsiders should swap to gamemode 2. How would I then do this?

    You said in a 20 block radius of the house. So the coordinates would be the center of that area. A cuboid area would be more difficult.
    To exclude the owner, you can use the name argument in both commands:

    @a[x=0,y=0,z=0,m=!2,r=20,name=!zindan]
    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Change gamemode in area
    /gamemode 2 @a[x=0,y=0,z=0,m=!2,r=20]
    
    /gamemode 0 @a[x=0,y=0,z=0,m=2,rm=20]

    You just need those two simple commands. Replace 0 0 0 with the coordinates of your house, e. g. x=40,y=72,z=-123

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