Jump to content

I need help with Minecraft Bedrock JSON

TheCoder2019

I am making a moderation pack for MC Bedrock, but when I try to combine the 

can_place_on

and the

keep_on_death{}}

components, the command syntax stays white and not gray, indicating incorrect JSON formatting. Can you help?

 

The command I am using:

/give @s barrier 1 0 {"can_place_on":{"blocks":["air"]},{"minecraft:keep_on_death":{}}}

Source: Item components – Official Minecraft Wiki (fandom.com)

 

EDIT: I was able to combine can_place_on and keep_on_death, can I combine item_lock with mode lock_in_slot?

/give @s barrier 1 0 {"can_place_on":{"blocks":["air"]},"keep_on_death":{}}

 

As Someone with the username “</TheCoder2019_”, my coding skills are atrocious.

Here are my specs:

Spoiler

 

MSI PRO-VLH H310M

Intel Core i3-8100 (Thanks, @Schnoz!)

GTX 1060 OC 3GB or Intel UHD 630

16GB (2x8) Cosair Vengeance LPX CL16 - 2400MHz

GAMDIAS Argus M1

 

An old friend of mine - Intel stock cooler (temps through the roof like 60 C under load)

 

 

Linux Apps you NEED!

Spoiler

tmux

dhcpd

git

 

 


 

 

 

 

 

 

 

Hi! I love RGB! Who doesn't? Karens that don't have colorful lights on their Facebook page

Link to comment
Share on other sites

Link to post
Share on other sites

On 5/17/2021 at 6:02 PM, TheCoder2019 said:

The command I am using:


/give @s barrier 1 0 {"can_place_on":{"blocks":["air"]},{"minecraft:keep_on_death":{}}}

 

Having no specific knowledge of what you are doing it looks like your syntax is messed up. If you were to form you command like this, you can see you have an extra curly brace.

{
	"can_place_on":{"blocks":["air"]},
	"minecraft:keep_on_death":{}
}
}

 

Link to comment
Share on other sites

Link to post
Share on other sites

9 hours ago, darkDOS said:

Having no specific knowledge of what you are doing it looks like your syntax is messed up. If you were to form you command like this, you can see you have an extra curly brace.


{
	"can_place_on":{"blocks":["air"]},
	"minecraft:keep_on_death":{}
}
}

 

In one line, can you tell me how to combine those components?

As Someone with the username “</TheCoder2019_”, my coding skills are atrocious.

Here are my specs:

Spoiler

 

MSI PRO-VLH H310M

Intel Core i3-8100 (Thanks, @Schnoz!)

GTX 1060 OC 3GB or Intel UHD 630

16GB (2x8) Cosair Vengeance LPX CL16 - 2400MHz

GAMDIAS Argus M1

 

An old friend of mine - Intel stock cooler (temps through the roof like 60 C under load)

 

 

Linux Apps you NEED!

Spoiler

tmux

dhcpd

git

 

 


 

 

 

 

 

 

 

Hi! I love RGB! Who doesn't? Karens that don't have colorful lights on their Facebook page

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×