• 0

    posted a message on Need help with moving function from 1.14.4 to 1.16.1

    ok, so it was woking for a while but then it screwed up again. idk why.



    tag @e[type=zombie] add Seefar
    tag @e[type=spider] add Seefar
    tag @e[type=creeper] add Seefar
    tag @e[type=skeleton] add Seefar
    
    execute as @e[tag=Seefar] if entity @s[tag=!Target] at @s run attribute @s minecraft:generic.follow_range base set 200
    execute as @e[tag=Seefar] if entity @s[tag=!Target] at @s run summon snowball ~ ~4 ~ {Tags:["Snowball"],Item:{id:"minecraft:spruce_button",Count:1b}}
    
    execute as @e[tag=Snowball] at @s run data modify entity @s Owner set from entity @r UUID
    
    execute as @e[tag=Seefar] if entity @s[tag=!Target] at @s run tag @s add Target

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Help with making spiders throw webs

    Now, I'm running this in 1.16, so I dont need to worry about the first problem?

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Help with making spiders throw webs

    Thanks so much for this awesome response, I'll give it a go fixing up my code today.

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Help with making spiders throw webs

    Hi everyone! I'm trying to make spiders be able to throw webs.

    This is as far as I've gotten and it doesn't really work:

    scoreboard players remove Count Timer 1
    execute if score Count Timer matches 0 run scoreboard players set Count Timer 20
    execute as @e[type=spider] at @s if score Count Timer matches 1 run summon falling_block ~ ~1 ~ {BlockState:{Name:"minecraft:cobweb"},Time:200,Tags:["Web"],NoGravity:0}
    execute as @e[type=spider] at @s if score Count Timer matches 1 run data modify entity @e[tag=Web,limit=1,sort=nearest] Motion set from entity @s Motion
    execute as @e[tag=Web] run data modify entity @s Motion[1] set value 0.2

    Here, I am trying to make the webs motion, match the spider's motion, and have the Y motion of the web at a higher value, so the web flings into the air. For some reason, the web just teleports up, and then falls down every second. I'm super confused why,


    I would appreciate any help thanks!

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Need help with moving function from 1.14.4 to 1.16.1

    Yassss thx so much. I'll try out the command later.

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Need help with moving function from 1.14.4 to 1.16.1

    Yeah ik, but I do it anyways cause I often forget to put in at @s in the command. It's just a habit ig.

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Need help with moving function from 1.14.4 to 1.16.1

    Hi everyone! I'm trying to make a datapack for 1.16 that makes all mobs in any part of the world be able to target the player this is my function:

    tag @e[type=zombie] add Seefar
    tag @e[type=spider] add Seefar
    tag @e[type=creeper] add Seefar
    tag @e[type=skeleton] add Seefar
    
    execute as @e[tag=Seefar] if entity @s[tag=!Target] at @s run data merge entity @s {Attributes:[{Name:generic.followRange,Base:150}]}
    execute as @e[tag=Seefar] if entity @s[tag=!Target] at @s run summon snowball ~ ~2.5 ~ {Tags:["Snowball"],Item:{id:"minecraft:spruce_button",Count:1b}}
    
    execute as @e[tag=Snowball] at @s run data modify entity @s owner.M set from entity @p UUIDMost
    execute as @e[tag=Snowball] at @s run data modify entity @s owner.L set from entity @p UUIDLeast
    
    execute as @e[tag=Seefar] if entity @s[tag=!Target] at @s run tag @s add Target

    It was working fine when I created it in my 1.14.4 world but when I copied the data pack across to 1.16 it stopped working. I have no idea why. I would appreciate any help thanks!

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Help with, how far mobs can see / hear 1.15

    Is there any way of replacing the UUIDL and most with a target selector? Eg: @p

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Help with, how far mobs can see / hear 1.15

    Ok. That shouldn't be a problem. Thanks for your help!


    Soz I should have done a bit more research, I just assumed ownerName was a data tag cause it says it is on MCStacker.


    Thanks again!

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on How can I detect the number of experience points I have?

    I recommend you take a look at the Minecraft wiki page


    You can quite literally "set" your xp lvl to something


    https://minecraft.gamepedia.com/Commands/experience

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on How do I detect if a block is mined?

    A better way, in my opinion, would be to replace the entity data of the mined block (as an item before it is picked up). You can do this by running this command:


    execute as @e[type=Item,nbt=nbt={Item:{id:"minecraft:diamond_block"}}]] run data merge entity @s {Item:{tag:{CanPlaceOn:["minecraft:air","minecraft:stone"]}}}
    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Help with, how far mobs can see / hear 1.15

    Hi everyone! I'm trying to create an Ultra-Hardcore Minecraft data pack, where one of the features is mobs can see players from super far away, the thinking is that that way mobs are continuously coming towards the player. However, I have struggled to find a way to do this, I have tried using atributemodifiers "genericFollow range" or whatever, but found that this only affects how far mobs can see players, once they are already agro at the player.


    And so i tried the usual method of trying to agro mobs towards a player, I used this command;


    execute as @r at @e[type=minecraft:creeper] run summon minecraft:snowball ~ ~2.5 ~ {ownerName:"BluePC1"}

    Unfortunately, that didn't work either, I have no idea why. The snowballs were summoned and the mobs took damage, but they didn't become agro toward me.


    What is the best way of making mobs see far? Is what I'm trying to do the correct system? If so what am I doing wrong that makes the command not work properly?


    Thanks for your help,

    BluePC1

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on execute command from two entity positions?
    Quote from Megacrafter107»

    I don't think it can be done directly but you can do this by summoning an armor stand at the position of the first player and copying the Y coordinate of the second player to the armor stand. So it would go something like this:

    /execute at <player1> run summon armor_stand ~ ~ ~ {Tags:["temp"],NoGravity:1,Marker:1,Invisible:1}


    and to move the armor stand to the Y level of the second player:

    /execute as @e[tag=temp] store result entity @s Pos[1] double 1 run data get entity <player2> Pos[1]

    and that's basically it. You can now execute as the armor stand and summon the particles:

    /execute at @e[tag=temp] run particle cloud ~ ~ ~ 0.5 0.5 0.5 0.05 1


    Hiya, thanks for getting back to me, that super helpful infomation. Just out of interest, what does the "double 1" mean in the store command? Everything else makes sence.

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on execute command from two entity positions?

    Hi everyone!


    I'm trying to execute a command to that the X and Z point in relative to one entity and the Y cwd is reletive to another. Eg, sudo code;


    execute as Player1 at @s x and z as Player2 at @s y run partical miencraft:flame blahh blahh blahh


    is this possible to do?

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on How to make wither Skulls have bigger explosions?

    Hi everyone I trying to find the nbt tag to make wither skulls make bigger explosions on collision...

    But I am struggling. Anyone have any idea?


    Thanks.

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