• 0

    posted a message on How to increase the damage of a Llama's spit?
    Quote from YMbrothers»



    Found the issue:

    execute as @e[tag=spit] at @s run summon minecraft:area_effect_cloud ^ ^-0.5 ^0.5 {Duration:10,Tags:["spit_bomb"]}


    The problem here is that even if I summon it 0.5 block below, it still block the spit. Yes, this area_effect_cloud with such a small hitbox can block the spit. To fix this, change from -0.5 to -1.


    PS: Sorry for making you show your true voice, tho your videos have way more views than I do. :/


    Oh I don't mind, I miss making video's. The code now works!! Thanks a lot for your help and your patience :)

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Can I stop Enderman from teleporting completely for a small period of time?
    Quote from Crazy_Dave»

    Some things in minecraft are dictated outside of the game.


    For example:

    In this vid, the enderman requires changing the code outside of the game, in order to pick up/remove blocks speedily


    The same can be probably said with enderman teleportation


    Thanks for the response. I understand it's hardcoded into the game, I was hoping there might be a way around it.

    I've gotten as far as summoning an armor stand to the Enderman when the snowballs are cast and force teleporting the Enderman to that armor stand and afterwards removing the armor stand. Sadly, the Enderman's teleporting is too fast and they're just not hit by the snowballs so I don't think it'd work even if I COULD fully disable their teleporting. It's a shame, but without very specific modding I won't be able to add the Enderman to the roster :(
    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on How to increase the damage of a Llama's spit?
    Quote from YMbrothers»

    Strange...


    First of all, llama doesn't spit accurately. I tried a 1 llama vs 1 wolf, it spat like 5 times b4 it hits.

    Second, the explosion only occurs when the wolf gets hit. Cuz I specifically checked its HurtTime.

    Third, just in case of bugs, tag it with sharp.

    Fourth, what do you mean the mob dies before the explosion? The only damage sources in my command is the spit itself and the explosion. I also make the creeper "invisible" upon your request.


    Mind if you show a little of what happened? In video.


    I went ahead and made a video for you:


    As I said in the video, I wasn't able to recreate the anamoly of the mob dying before the explosion. But as you can see somehow the code you gave me made it so the llama won't ever hit a mob.


    Am I doing anything wrong or what do you think is going on?


    I really appreciate all the help btw!

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on How to increase the damage of a Llama's spit?
    Quote from YMbrothers»

    I don't know how to explain, so I'll just give you the code.


    execute as @e[tag=sharp] at @s as @e[type=llama_spit,limit=1,sort=nearest] run tag @s add spit

    execute as @e[tag=spit] at @s run summon minecraft:area_effect_cloud ^ ^-0.5 ^0.5 {Duration:10,Tags:["spit_bomb"]}

    execute as @e[tag=spit_bomb] at @s if entity @e[distance=..3,nbt={HurtTime:7s}] run summon creeper ~ ~3000 ~ {ActiveEffect:[{Id:14,Amplifier:1,Duration:20,ShowParticles:false}],Fuse:3,ignited:1,Invulnerable:1,NoAI:1,DeathLootTable:"minecraft:empty",Silent:1,Tags:["spit_boom"]}

    execute as @e[tag=spit_boom] at @s run teleport @s ~ ~-1000 ~


    This time I did test it.


    It doesn't seem to work. The only thing extra I should do is have a Llama with the tag sharp right? In my project there will only ever be max 1 Llama alive at all times so there's no need to try to target a specific Llama btw. I tried this and now the spit just goes straight through other mobs. SOMETIMES the spit DOES hit, the mob immediatly dies and a little later an explosion happens. It's not consistent though and like I said the mob dies before the explosion even happens. Am I missing something?

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Can I stop Enderman from teleporting completely for a small period of time?

    I have this system where I make teams of mobs (2v2) attack each other by freezing their AI, hitting them with 2 snowballs (owned by the other teams mobs) and then unfreezing their AI to make them fight. I'm trying to get as many different mobs in this as I can.


    I'd really like to be able to add the Enderman to this roster but they teleport away immediatly when hit by a snowball (even with NoAI:1). Is there any way to prevent this from happening? Without double carpeting everything cause I need some freedom to create the terrain. So either completely make them lose the ability to teleport or only during the small window in which they are hit by the snowballs.

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on How to increase the damage of a Llama's spit?
    Quote from YMbrothers»


    If the invisible delay is the issue, then simply delay the explosion.

    So it's like, when it approaches an entity, summon an armor stand and an ignited creeper at y:-2, wait for like 10 ticks, then teleport the creeper upwards and kill the armor stand.


    Also, didn't know it has to be entity to entity, sorry bout that : p


    I don't really get what you mean, I have this as the code right now in a function:

    (I did remove the invisibility effect earlier because it didn't work)


    execute as @e[type=llama_spit] at @s run kill @e[tag=spit,distance=..2]
    execute at @e[tag=spit] if entity @e[type=llama,distance=7..] as @e[tag=spit] run summon creeper ~ ~ ~ {Silent:1,ExplosionRadius:3,Fuse:0,ignited:1}
    kill @e[tag=spit]
    execute as @e[type=llama_spit] at @s run summon minecraft:area_effect_cloud ~ ~ ~ {Duration:2,Tags:[spit]}

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on How to increase the damage of a Llama's spit?
    Quote from YMbrothers»

    Hmm... It feels a bit quiet here. Did you try the datapack I attached in the Spoiler?


    Excuse me, in the weekends I don't always have time to work on Minecraft ;). I tried it, and it works perfectly on a player. BUT the goal was never for the Llama to be stronger against players but against other mobs. I might not have been too clear about that.. So whilst this method is pretty brilliantly implemented and I wanna thank you for that, I can't use it unfortunately.

    Like I said before, the explosive spit (which I have working) actually fulfills the purpose quite nicely so I'm happy to settle for that. Only thing I don't like about it is that I can't make the Creeper completely invisible cause of invisibility effect lag. (I'm using a Creeper instead of TNT because I need the terrain to stay undamaged and I have /mobgrieving set to false anyway)

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on How to increase the damage of a Llama's spit?

    That's really OK, it's not your fault :P

    The exploding llama_spit is a great solution actually.

    Thanks a lot for the effort! If I may ask, why is it impossible? Is it because of the motion tag, the arrow or the llama_spit? Because if it IS possible with snowballs instead of llama_spit then that would help me out a lot as well. (the goal would be to make the snow golem's snowballs do damage to other mobs)

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on [request] Mob healthbar display for 1.13

    Hi :)
    I'd like to request a mod for 1.13 which persistenly shows the health of a mob. I'm making an arena style mini-game where the visual representation of the mob's health is quite essential. Here are a few examples I've found of implementations of such a mod for different versions.


    I don't really mind the style, as long as it's not a bossbar because I need it to be able to show the health of (at least) 8 mobs at a time. Above the head of a mob would be perfect. I need it to be visible at all times so not just when it's hit for 5 seconds or when the cursor is pointed at them (preferable when they're at full health as well). The mobs will be fighting each other so there's no player involved. Custom names should still be visible. If this is possible and someone is willing to make it I would be very grateful :).

    Posted in: Requests / Ideas For Mods
  • 0

    posted a message on How to increase the damage of a Llama's spit?
    Quote from YMbrothers»

    Well, that /execute store command has its flaws. If the store part is executed but they get nothing, it'll simply put a 0.

    I'll take a look at it after my mid-term exam.


    Much appreciated. And good luck on your exam!

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on How to increase the damage of a Llama's spit?
    Quote from YMbrothers»

    damage:5.0 should work.


    One possibility is that the llama spit hits before the arrow.


    If that's the case, simply kill the llama_spit after the arrow gets its Motion. The llama spit has its own particle effect.


    Wait a minute.. I tried it without killing the arrow when it's in the ground so I could see where it lands and the arrow doesn't follow the llama spit all that well.. It just takes it's own course and drops down almost immediatly, never even having a chance of hitting the target. Somehow the motion is not transferred over from the llama_spit to the arrow perfectly. I haven't changed anything from your code appart from deleting the kill arrow line. Do you maybe know how to fix it?

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Getting a zombie pigman to attack other mobs

    Hitting a zombie with a snowball as a player causes the zombie to attack the player. Hitting a zombie pigman with a snowball as a player does the same. When a zombie is hit by a snowball owned by a different zombie, the zombie attacks that zombie. A zombie pigman does not react the same. It does however attack other mobs when they attack him via other means. This is confusing to me, why does the zombie pigman not attack a zombie when that zombie hits it with a snowball but does attack when he melee attacks him? Is there another way to trigger the zombie pigman to attack a zombie?

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on How to increase the damage of a Llama's spit?
    Quote from YMbrothers»


    It should... be something like this:

    execute at @e[type=minecraft:llama_spit,tag=!sharp] run summon minecraft:arrow ~ ~ ~ {Tags:["llamaspit"],Motion:[0.0,0.0,0.0]}


    execute at @e[tag=llamaspit] run tag @e[type=llama_spit,tag=!sharp,distance=..1] add sharp


    execute as @e[tag=llamaspit] at @s if entity @e[distance=..2,tag=sharp] store result entity @s Motion[0] double 1 run data get entity @e[limit=1,sort=nearest,tag=sharp] Motion[0]


    execute as @e[tag=llamaspit] at @s if entity @e[distance=..2,tag=sharp] store result entity @s Motion[1] double 1 run data get entity @e[limit=1,sort=nearest,tag=sharp] Motion[1]


    execute as @e[tag=llamaspit] at @s if entity @e[distance=..2,tag=sharp] store result entity @s Motion[2] double 1 run data get entity @e[limit=1,sort=nearest,tag=sharp] Motion[2]


    kill @e[type=arrow,tag=llamaspit,nbt={inGround:1b}]


    All repeating. Give it a try.


    That works! An arrow is summoned in the same motion and flies with the llama_spit, the arrow just doesn't do any damage though. Is there an nbt tag that should be added? I tried adding damage:5.0 to the summoned arrow but it didn't have any effect.

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Trying to get the Health of certain mobs to display in the 'setdisplay sidebar' but names are UUID's
    Quote from Megacrafter107»

    Let's say you have an objective called "test"

    /scoreboard objectives add test dummy


    you can now do this:

    /scoreboard players set mc test 1


    You don't actually have to put a real player into the scoreboard players command. Instead, you can put any word you like in it and assign a value to it.

    In this example, "mc" is a fake player and I assigned the value 1 to its test object.

    Do:

    /scoreboard objectives setdisplay sidebar test


    and you will see the "mc" players value.


    Works like a charm, thanks again!

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