I am busy making a clash of clans map and I have made the reacources scoreboard but when I want to testfor Gold's team(aka=team_1)It just finds random players and not the actual team name ill send the command and a pic!
In this case I have I have made it that GOLD is a fake player and does not egsits and he is part of team_1
But if you are still trying to fix the problem thank you for your trouble but I have found a solution I have made separate objectives such as:GOLD(as its self)
ELIXIR(as its self) and GEMS(as its self)
Thank you for the effort but I have a new situation!
I am trying to test for an item on the ground(which ive gotten right) but now im tring to place a structure using the /clone command but I don't know haw to place the structure where the DROPED item was!
I know this isn't for this topic but it saves the effort of having to make a new one!
I didn't read a lot of this, fairly hungover this morning, but if you are using /testfor you have no idea who you are targetting with the next commands. The best thing to do is use /scoreboard to assign the entity a value based on target selector and data tags, then do whatever command on that player. Also you cannot /testfor fake players. Nor any kind of targetting. The best way around that is use an armor stand to hold all the scoreboard values and test its scores.
This is a common misconception. The /tp command does use use relative coordinates from where it is executed, but rather from the target itself. This means that this command will do the exact same as /tp @e[name=Builder] ~ ~1 ~, simply teleporting the entity up one block from where it was.
HI
I am busy making a clash of clans map and I have made the reacources scoreboard but when I want to testfor Gold's team(aka=team_1)It just finds random players and not the actual team name ill send the command and a pic!
ANY HELP would be apprieciated, thank you!
/testfor @p[score_!Reasources!=500,score_!Reasources!_min=500,team=team_1]
That command looks for the closest player on team_1 with 500 points. Are you trying to test if the entire Gold team collectively has 500 points?
This statement is false.
In this case I have I have made it that GOLD is a fake player and does not egsits and he is part of team_1
But if you are still trying to fix the problem thank you for your trouble but I have found a solution I have made separate objectives such as:GOLD(as its self)
ELIXIR(as its self) and GEMS(as its self)
Thank you for the effort but I have a new situation!
I am trying to test for an item on the ground(which ive gotten right) but now im tring to place a structure using the /clone command but I don't know haw to place the structure where the DROPED item was!
I know this isn't for this topic but it saves the effort of having to make a new one!
Thanks!
Thank you
can you just send a image of the command block layout
I think this will help me!:D:D
And what if its a custom named Item
Sorry to ask all these questions!:o
Is this correct what I put in the last command block?
/execute @e[score_iron_test_min=1] -523 5 -252 -524 4 -253 clone
I made the objective iron_test?
when I tried the last command blocks out put was this?
[21:59:02] Failed to execute '-524 4 -253 clone' as item.tile.blockIron
I didn't read a lot of this, fairly hungover this morning, but if you are using /testfor you have no idea who you are targetting with the next commands. The best thing to do is use /scoreboard to assign the entity a value based on target selector and data tags, then do whatever command on that player. Also you cannot /testfor fake players. Nor any kind of targetting. The best way around that is use an armor stand to hold all the scoreboard values and test its scores.
here is the command to get the DROPED item!
/give @p minecraft:iron_block 1 0 {display:{Name:"Elixir Collector"}}
oh<sorry can you ask how can I delete the DROPED item where it was after the structure spawned!
thanks!
don't worry I got the dropped item deletion part correct!
Thank you! This will help me a lot alienmist325 with my map!
can I ask how I would teleport a mob not to far away from the block(such as a few blocks above it)
the mob has called "Builder"
What I mean I how would I tp it near the DROPED item from the scoreboards
The Elixir Collector block
This is a common misconception. The /tp command does use use relative coordinates from where it is executed, but rather from the target itself. This means that this command will do the exact same as /tp @e[name=Builder] ~ ~1 ~, simply teleporting the entity up one block from where it was.
To fix this, you must run two separate commands:
/tp @e[name=Builder] @e[type=Item,score_iron_test_min=1]
/tp @e[name=Builder] ~ ~1 ~
Thank you I was realy puzzled with that one!