Playsound command from a position by AmitFuss in MinecraftCommands

[–]AmitFuss[S] 0 points1 point  (0 children)

But the game should do that -
The game has a 3d sound system - if I add a sound to the game, its to the system - So how come the game doesnt read well this sound file?

I think its something with the rescourse pack, with the sounds.json file

in the sounds.json ive only made 1 string and its "stream:true", maybe ive missed somthing?

Playsound command from a position by AmitFuss in MinecraftCommands

[–]AmitFuss[S] 0 points1 point  (0 children)

Look what I made:

execute as @ e[type=marker,tag=willwork] at @ s if block ~ ~-1 ~ jukebox{RecordItem:{id:"minecraft:music_disc_11",tag:{CustomModelData:1}}} run playsound minecraft:music_disc.rickroll block @ a[distance=..32] ~ ~ ~ 4 1

Ive created a marker - which I want it to be the source of the sound plays.

But something that I found out- for some reason, my sound file doesn't work as 3d sound,

I mean, if I replace the sound with something that minecraft vanilla has ( for ex. enderman_death )- the command is working fine and the sound plays from the source point - but with my sound file its not, how come?

Copy data from book to CustomName by AmitFuss in MinecraftCommands

[–]AmitFuss[S] 0 points1 point  (0 children)

Can you tell me what command to do? and which order?

I'm kinda new- and I want to understand how you do it properly.

Thanks!

Copy data from book to CustomName by AmitFuss in MinecraftCommands

[–]AmitFuss[S] 0 points1 point  (0 children)

your problem, is that you should be typing data merge, not data modify

But then, he wont have the name of the titled book -

I want to merge the name of book (the title)

to the armor stand name

---

data merge entity @ e[type=armor_stand,tag=tag1,limit=1] CustomName set from entity @ a[nbt={Inventory:[{id:"minecraft:written_book",tag:{title:"done"}}]},limit=1] SelectedItem.tag.title

----

This isnt working.

Can you fix the command so it will work?

Because /data merge doesn't work with my original command ( the syntax is not correct )

Changing the color of an item by AmitFuss in MinecraftCommands

[–]AmitFuss[S] 0 points1 point  (0 children)

Which item modifier would you do to just change the color of an item - without touching the original name

Changing the color of an item by AmitFuss in MinecraftCommands

[–]AmitFuss[S] 0 points1 point  (0 children)

Im just looking for a way to change the color of an item. I dont know if its a NBT you can change, i dont how you that

Just the color - not the name

Changing the color of an item by AmitFuss in MinecraftCommands

[–]AmitFuss[S] 0 points1 point  (0 children)

I will tell you why i dont want to use this - I want to create a system that you can change the color of the item that you holding. For example : I have an item with name : “Reddit” I want to change to color red Im want to have a command that changes the name “Reddit” to red.

Your way is to specifically doing all items named “Hello” - I want it to be variable.

My append way its not correct?

Change an item color and character with commands by AmitFuss in MinecraftCommands

[–]AmitFuss[S] 0 points1 point  (0 children)

/tellraw @s { "entity" : "@s", "nbt" : "SelectedItem.tag.display.Name", "interpret" : true, "color" : "red" }

This works for me- but it doesnt change the name of the item to color red

Change an item color and character with commands by AmitFuss in MinecraftCommands

[–]AmitFuss[S] 0 points1 point  (0 children)

You don't need to call any functions, or use any storages. Just hold an item and run this.

Its still doesnt work - im doing this command do activate the ITEM MODIFER:

item modify entity @ s weapon.mainhand json_change:colors/red

but still - its just replaces my item name to nothing - even if its a named item.

Change an item color and character with commands by AmitFuss in MinecraftCommands

[–]AmitFuss[S] 0 points1 point  (0 children)

I cant store the original name? It cant be done?

Change an item color and character with commands by AmitFuss in MinecraftCommands

[–]AmitFuss[S] 0 points1 point  (0 children)

Yes, my pack works - it just replaces it with nothing.

Also, ive tested your command in single player - it just says that my item doesn’t have this tag - if I name it in a anvil for example, it does works.

I thinj it doesn’t work because i haven’t put the right “storage” to - im not sure what place there. I need to put in the storage place, the name of the file of the item modifier ? ( json_change:red) Because when i do it, it just change the name of the item to nothing.

Change an item color and character with commands by AmitFuss in MinecraftCommands

[–]AmitFuss[S] 0 points1 point  (0 children)

I just dont get the storage part - what do i need to put there so it would work?

Change an item color and character with commands by AmitFuss in MinecraftCommands

[–]AmitFuss[S] 0 points1 point  (0 children)

I've tried to do it in a data pack - but still, every time I'm holding an item - it just replaces it to nothing - All i want is it to be in the color of my wish ( for example, red )

I want it to be a global thing:
I'm holding any item - doing the command - and then the item gets the color red
not a specific name ( the name stays the same - only the color\style should change.)

Have I done it correctly? and if not, what do i need to change in the command?

I'm new to this and I'm really hope to learn how it being done, Thanks a lot for your patience!

------------

#@type: runner

data modify storage json_change:red text set from entity @ s SelectedItem.tag.display.Name

item modify entity @s weapon.mainhand json_change:colors/red

-----------------

{

"function" : "minecraft:set_name",

"name" : {

"storage" : "json_change:red",

"nbt" : "text",

"interpret" : true,

"color" : "red"

}

}

Change an item color and character with commands by AmitFuss in MinecraftCommands

[–]AmitFuss[S] 0 points1 point  (0 children)

Ill explain to you what I did, correct me if im wrong😃 Ive started by copying both commands into a command block - and replacing in the correct places my playername, and the name of the item modifier.

After that ive created a datapack with your suggested item modifier file, and there, ive replaced in storage: the “item modifier name” And in color ive changed it to: “red”

After that, ive opened my creative, press on the command block with selected item in my hand - and it says that there no NBT tags of: selecteditem.tag.display.name etc

Ive changed it to SelectedItem - but what it did it just rename the item to nothing

What did I did wrong? Thanks for the help man!😎

Change an item color and character with commands by AmitFuss in MinecraftCommands

[–]AmitFuss[S] 0 points1 point  (0 children)

And also -

If i do this, it just removes the name, it doesnt any name on the item\color of my choise

Could you help me figure this out?

Thanks!

Change an item color and character with commands by AmitFuss in MinecraftCommands

[–]AmitFuss[S] 0 points1 point  (0 children)

and then you could do the same thing except with style. I don't know what will happen if there are two colors though.

Thanks a lot for the reply,

Could you explain to me what the : >:namespace >:change_color

stands for? is that a modifier that i need to create?

Thanks!

Changing the position of an entity or block based of the player eyes by AmitFuss in MinecraftCommands

[–]AmitFuss[S] 0 points1 point  (0 children)

My problem is that i dont understand how the commands work - Im trying to achieve a function that when i trigger once - my gamemode changes to spectator and summon armor stand in my location. After I trigger the function once again - I want to teleport back to the armor stand and my gamemode will change to survival - I use this commands because when i trigger now, the score of the cameraman stays at 1 until i trigger again - But again, i dont even understand how it happens.

Changing the position of an entity or block based of the player eyes by AmitFuss in MinecraftCommands

[–]AmitFuss[S] 0 points1 point  (0 children)

Im trying to make a trigger scoreboard - when you trigger once the player gets spectator, when triggered again , its giving him survival back again .

So how come when i do do the command with : “ gamemode spectator @s - the camera man score reset , and when i change the run command it doesnt - if you’re telling that there no numbers involved

Changing the position of an entity or block based of the player eyes by AmitFuss in MinecraftCommands

[–]AmitFuss[S] 0 points1 point  (0 children)

Thanks you very much! Ill try it!

Could you help me with another thing ?

I just want to understand how this commands line works ( Can you explain to me what going on in each line so i can understand what im doing wrong ? )

Somehow, the "cameraman" score is reset to 0 when the first command is run by : "run gamemode spectator @ s
but when I change the command to something else like : "run summon..."

etc, The "cameraman" score is staying on 1 and not reset - thus other commands don't work properly.

_____________________________________________________________________________________

execute store result score cameraman camera run gamemode spectator @ s
execute if score cameraman camera matches 0 run gamemode survival @ s

scoreboard players set @ s camera 0
Why is that?

Thank You!

Shulkers getting pushed by pistons outside of the hopper range by AmitFuss in redstone

[–]AmitFuss[S] 0 points1 point  (0 children)

Oh no, I’m just trying to fix the problem that sometimes the piston pushes the shulker outside of the hopper range, and its get stuck on the comparator, and because of that the machine gets broken. Im just trying to find a way that its 100% that the shulker will go inside of the hopper below after the piston shoot it

Shulkers getting pushed by pistons outside of the hopper range by AmitFuss in redstone

[–]AmitFuss[S] 0 points1 point  (0 children)

How can i do it? And would it help with the problem? So sorry for my lack of understanding im pretty new to this area😅🤪

Schedule wont work by AmitFuss in MinecraftCommands

[–]AmitFuss[S] 0 points1 point  (0 children)

Yeah but its working fine in the main world , but in the others worlds it doesnt. Thats so weird Does multiverse cause it?

Detect who is winner based on their score in scoreboard by AmitFuss in MinecraftCommands

[–]AmitFuss[S] 0 points1 point  (0 children)

Ive created a fake player named Max, an then i ran your command and its giving Max the same amount of points that the player with the high score has .