• 0

    posted a message on HELP WANTED!!! NEED PROBLEM SOLVERS!!!

    Here's the situation:


    I'm confined in a 30x30 world (Nether Included). I've been to the nether, but I need to access nether wart & soul which is 45 blocks away from me, outside the border. With this nether wart I can make potions of weakness (I already have access to Blaze rods).

    - The biome I am in is a swamp, so there's no sand and no TNT.

    - The world is 1.18


    Obviously there is ways to get outside the border and break blocks, but I'm not super sure how to do this.

    I'd appreciate any help on trying to solve this issue! Thank you!

    Posted in: Survival Mode
  • 0

    posted a message on Help with adding an entity family to a datapack

    Hey guys! Thanks for getting back to me, unfortunately, both of your suggestions didn't work. I tried:

    execute as @e[type=#silent] run say hi

    execute if entity @e[type=#silent] run say hi

    execute as @e[type=#acmc:silent] run say hi

    execute if entity @e[type=#acmc:silent] run say hi

    execute as @e[type=#minecraft:silent] run say hi

    execute if entity @e[type=#minecraft:silent] run say hi


    Straight up nothing appears in chat. Crazy Dave, when I put the commands in a cmd block, nothing get's outputted. Could the problem be perhaps something to do with how I've arranged all the files in my data pack folder?

    Thanks!

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Help with adding an entity family to a datapack

    Hi everyone! I'm really struggling with adding an entity family to a data pack I'm creating. The attached file is the datapack format I've got. Everything seems to be working, functions included, accept for when I try and target the entity family, with /execute.

    The entity "cow" has been added to the list. however when I run

    /execute as @e[type=#silent] run say hi

    Even when I'm standing right in front of a cow, nothing is output into the chat.

    I would appreciate any help on this 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

    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
  • To post a comment, please .