• 0

    posted a message on Villager/Iron Golem Popularity For Aggressive Iron Golems

    I am trying to make aggressive iron golems which attack players. I understand it is hard to do this, but I also understand players work on popularity to prevent iron golems from attacking(trading changes their anger towards you). Does anyone by chance know how to make aggressive Iron Golems or change the popularity to make them angry at players forever?

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on [1.14] How to detect the time in the day

    I am still designing my map and I would love to be able to detect the time in the day for the following reason:


    There is a zombie horde which spawns consistently, but at a certain time in night they will be buffed up with effects and then when it reaches a certain time in the morning they will go back to normal.

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on [1.14] Apply a command to an item to teleport me home?

    I cant find or think of a solution around this. Unfortunately, this is the only solution of which I can provide as I cannot be sure what the commands are for checking status affect.

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Help With Command
    Quote from CptThomasWatts»

    I used the exact code you posted above, except with my username and the wolfs' name.


    I just tested this out and it works perfectly fine. I went onto a different map and copied/pasted my own code. Changed player name to my own and it works perfectly fine. Make sure the code is in repeat/always active.

    Posted in: Commands, Command Blocks and Functions
  • 1

    posted a message on unless command not working [AGAIN]

    Thats the start of a great idea! But if they leave that armor stand wouldnt it still stop them at the next one?



    Well, the armor stands are more for to detect when they are close to too many hoppers, which in return teleport them back as you so want.


    As for being able to tell the difference in positions per tick, I am not too sure on how to do that.

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Help With Command
    Quote from CptThomasWatts»

    Didn't work, "Unless is not a valid number". Also "Entity "at" cannot be found.


    Can you write down the exact code you used for this?

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Help With Command

    What you could do instead is test if the animal is alive. If it isnt alive, then it will summon the wolf beside you. So, as soon as it dies another one (duplicate) will spawn.


    /execute at (PlayerName) unless entity @e[name=RangersPetWolf, distance=..500] run summon minecraft:wolf ~ ~ ~ {Owner:PlayerName,CustomName:"{\"text\":\"RangersPetWolf\"}"}


    Run this on a command block repeat/always active.

    It will test if the player has the pet alive and if it doesnt then it will summon the wolf. Careful, be sure the name matches the pet you summon as it will summon constant pets if you do not.


    Let me know how this works.

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on unless command not working [AGAIN]

    You can either tag two different types of armor stands (or more depending on how many you want) and place them inside each hopper then give all armor stands invisibility. Once the player is near two different armor stands then they would be teleported back.

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Setting up a command block to build upwards
    Quote from darwin_james»

    Thank you both for the advice! Playing around with it all has been super helpful, and I've got things working now, plus I've learned a bunch on the way.


    You're welcome. I appreciate the gratitude.

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on [1.14] Holding an item activates it assistance needed.

    If possible, I would like to be able to hold a charged crossbow and it activate via command block when holding it or any command really to activate it (shoot).

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Setting up a command block to build upwards

    I found a quite easy way around this if you would like to give it a shot.


    Simply spawn an armor stand with a tag to it.

    Set this command:

    execute at @e[type=minecraft:armor_stand] run setblock ~ ~-1 ~ stone (repeat always active)


    set a time to give the armor stand levitation for 1 second on 0 amplifier.

    It will raise it up and place one block on there. So, you can put the levitation buff on the armor stand every minute and raise it high enough for 1 block to spawn below it. Also make the armor stand invisible.

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on unless command not working [AGAIN]

    Did you figure it out, because if you have then I wont try to find a solution (considering you have figured other commands out you were trying to find.)

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Is there a way to prevent a summoned arrow from damaging players?

    I do not believe you can disable arrow damage. Even when someone is on the same team as another the arrows which are fired from whoever or summoned will do damage regardless.


    What you could try doing is destroying any arrow 1 block away from you and set this in a repeat/always activate block to prevent it from hurting you.


    /execute at @a[team=YourTeamName] run kill @e[type=arrow,distance=..3]


    ..3 = 3 blocks or less from you.


    If this helped, please say so and mark this thread as [SOLVED].

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on unless command not working [AGAIN]

    Ive tried this out a few times and I got it working, so I believe your issue would be you are using a decimal for the tp. This game works on a single block coordinate. It does not pan out or work when it comes to decimal values when it involved moving something. Remove the decimal.


    If this has helped you, let me know and mark this as [SOLVED] when editing the title for the thread.

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on [1.14] Apply a command to an item to teleport me home?

    I know a way, but it maybe not what you are looking for. It is similar, but different. The way I have used for my game would be to detect if a player has an item in his inventory and if he/she does then the command wont activate, but if the player doesnt then it will activate. After the item has been dropped it would then give the player the item back.


    /execute at @p unless entity @p[nbt={Inventory:[{id:"minecraft:Your item here"}]}]


    Once the item has been dropped, it will activate this (repeat always active) command block and then you have a comparator following it with a redstone right after and then a command block (with what coding you want in it (impulse needs redstone)). After the 2nd block has been activated, you can give back the item with a simple command.


    The @p will detect the closest player, so if you are able to then I suggest you try adding each player to a team or tag them and then editing the @p to @a[tag=...] @a[team=...].


    I would recommend using the @a[tag=...] instead of team, as it will search all the players in the team and if any of them do have an item then it wont work. This is what I am using and I hope it helps.


    Let me know if this worked, if it has and you are satisfied please edit your thread to [SOLVED].

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