Help Sign In/Register

Minecraft Forums

Advanced Search
  • News
  • Rules
  • Forum
  • Chat
  • Mods
  • Maps
  • Resource Packs
  • MC Station
  • Free Minecraft Server Hosting
Desktop View
  • Home
  • Member List
  • dalor_homer's Profile
  • Send Private Message
  • View dalor_homer's Profile
  • dalor_homer
  • Registered Member
  • Member for 2 years, 2 months, and 22 days
    Last active Sat, Aug, 13 2022 23:05:10
  • 0 Followers
  • 262 Total Posts
  • 64 Thanks
  • Member
  • Posts
  • Threads
  • Reputation
  • Comments
  • Received
  • Given
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • Next
  • View dalor_homer's Profile

    1

    Dec 22, 2021
    dalor_homer posted a message on Count block

    You can use the clone command to do that :


    execute store result score @s BLOCK run clone 0 0 0 100 256 100 0 0 0 filtered minecraft:oak_button force


    But there is a limit to how many blocks you can clone.

    Posted in: Commands, Command Blocks and Functions
  • View dalor_homer's Profile

    1

    Oct 21, 2021
    dalor_homer posted a message on Villager counter

    You can do that in only one command :

    execute store result score NUM VillagerNum run execute if entity @e[type=minecraft:villager,distance=..60]
    Posted in: Commands, Command Blocks and Functions
  • View dalor_homer's Profile

    1

    Oct 4, 2021
    dalor_homer posted a message on how to delete nbt Tags ?? 1.16.5 [SOLVED]
    tag @e[distance=..15,nbt={Tags:["inlove"]}] remove inlove
    Posted in: Commands, Command Blocks and Functions
  • View dalor_homer's Profile

    1

    Aug 24, 2021
    dalor_homer posted a message on Can someone please explain to me how do " ^ ^ ^ " work in commands?

    ^ ^ ^ is about your point of view, for exemple, ^ ^1 ^1 aims at 1 block away and 1 block above your point of view. Note that it start at your feet, if you want iit to start at your eyes, you have to add "execute anchored eyes run [command]"

    Posted in: Commands, Command Blocks and Functions
  • View dalor_homer's Profile

    1

    Aug 12, 2021
    dalor_homer posted a message on How to detect when a player enters into an area

    If you want to know which player has left the area, you can add a tag to all players who are in the area, and check every tick if they still are in :


    add tag if player is in the area :
    
    /tag @a[x=10,y=10,z=60,dx=20,dy=20,dz=70] add in_area
    
    detect if the player has left the area :
    
    /execute as @a[tag=in_area] unless entity @s[x=10,y=10,z=60,dx=20,dy=20,dz=70] run say "not in area"
    
    and don't forget to detag players who are not in the area :
    
    /execute as @a[tag=in_area] unless entity @s[x=10,y=10,z=60,dx=20,dy=20,dz=70] run tag @s remove in_area
    Posted in: Commands, Command Blocks and Functions
  • View dalor_homer's Profile

    1

    Aug 11, 2021
    dalor_homer posted a message on Command for: Giving money if on team not working?

    Oh well, in that case, you can write :


    scoreboard players add @p[team=[teamName]] cash 350
    Posted in: Commands, Command Blocks and Functions
  • View dalor_homer's Profile

    1

    Aug 11, 2021
    dalor_homer posted a message on Command for: Giving money if on team not working?

    You can even just write :


    scoreboard players add @a[team=member] cash 350
    Posted in: Commands, Command Blocks and Functions
  • View dalor_homer's Profile

    1

    Aug 7, 2021
    dalor_homer posted a message on Help with adding an entity family to a datapack

    You have to tell it where to find silent.json


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


    just like when you have to run a function.

    Posted in: Commands, Command Blocks and Functions
  • View dalor_homer's Profile

    1

    Jun 14, 2021
    dalor_homer posted a message on Syncronize Bossbar with Scoreboard

    It's because in the repeat command block, @s mean nothing. @s mean "the entity who run the command" and here, it's the command block who run the command, and it doesn't have a scoreboard. For your scoreboard, you have to change the @s to @p (nearest player) or your minecraft name.

    Posted in: Commands, Command Blocks and Functions
  • View dalor_homer's Profile

    1

    Jun 14, 2021
    dalor_homer posted a message on Syncronize Bossbar with Scoreboard

    You just have to do this :


    execute store result bossbar [bossbar_name] value run scoreboard players get @s Quest1
    Posted in: Commands, Command Blocks and Functions
  • To post a comment, please login.
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • Next
  • View eglaios's Profile

    1

    May 24, 2020
    eglaios posted a message on Add block in a shulker inside an enderchest with command block

    I'm in exam time right now but this question will be fast to answer :


    in 1.15 and older, you can not modify player data, because the game does not support that, as you figured out (I didn't studied 1.16 yet). It's somewhat annoying because in order to modify ender items, you have to modify the player's data.


    The only thing that can modify enderchest is the replace function : /replaceitem, for example, although you can only modify an enderchest slot, but not the content of an item already inside.



    Looks like you can not do what you want...

    ...But that's not the case! B)


    I see you are testing the shulker box in the enderchest's slot #0. So, here are 5 commands that will solve your problem :

    execute at @a run setblock ~ 0 ~ minecraft:shulker_box
    execute as @a at @s run data modify block ~ 0 ~ Items set from entity @s EnderItems[{Slot:0b}].tag.BlockEntityTag.Items
    execute at @a run data modify block ~ 0 ~ Items append value {id:"minecraft:stone",Count:1,Slot:5b}
    execute as @a at @s run loot replace entity @s enderchest.0 1 mine ~ 0 ~
    execute at @a run clone ~ 0 ~1 ~ ~0 ~1 ~ 0 ~


    Here's a bit how it works :

    • The first command setblocks a shulker box at player position, but layer 0
    • The second copies the items in the enderchest (slot 0b)'s shulker box into the placed shulker box
    • The third adds a stone into the new shulker box
    • The fourth "loots" the shulker box into the enderchest's slot 0b (meaning it replaces the slot by what you get when mining the shulker box, so the one with added stone)
    • The fifth replaces the shulker box (clones the layer-0 block type so changing nothing, no matter in what dimension / modified world)

    You just have to modify the third command by your needs.


    So no, you can not directly modify the content in a shulker box placed into an enderchest.

    However, you can copy the shulker box in the world, modify it, then put it back into enderchest, which works fine (must test if 2 players are at the same coords)


    I guess it's shulker time for me : I also used shulker loot trick for a potion stacker datapack and a friend's sethome-eggs datapack

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

Social Media

Services

Sign In

Help

Advertise

Resources

Terms of Service

Privacy Policy

Our Communities

  • MMO-Champion
  • HearthPwn
  • Minecraft Forum
  • Overframe
  • MTG Salvation
  • DiabloFans

MOBAFire Network

  • MOBAFire.com
  • Leaguespy.gg
  • CounterStats.net
  • Teamfight Tactics
  • WildRiftFire.com
  • RuneterraFire.com
  • SMITEFire.com
  • DOTAFire.com
  • ArtifactFire.com
  • HeroesFire.com
  • VaingloryFire.com
  • MMORPG.com

© 2022 Magic Find, Inc. All rights reserved.

Mobile View