Questions tagged [minecraft-java-edition]

A 3D exploration and survival sandbox game, based in large generated worlds made of blocks. This tag is for the Java-based edition of Minecraft for PCs. For other editions of the game, please use the tag specific to that edition, e.g. [minecraft-bedrock-edition]

Filter by
Sorted by
Tagged with
2
votes
1answer
50 views

How do I use /data modify in Minecraft 1.13.2?

Prior to Minecraft 1.13, the command /entitydata could be used to set the data on an entity. However in 1.13 this command got removed and merged into the /data command, according to the Minecraft Wiki....
4
votes
1answer
135 views

How would you copy a player's inventory into a double chest?

I am on a multiplayer Minecraft realm in 1.16 and I was wondering if there was any way to set a chest's Items to a player's entire Inventory including the offhand and armor slots. Using data modify &...
1
vote
2answers
39 views

Minecraft Reset Spawn

I recently messed up my world spawnpoint with the command /setworldspawn. Now, all my compasses are broken, pointing at that spot. I'd used them in various places to show direction, in accordance to ...
2
votes
0answers
29 views

Hiding team colors in usernames

I'm working on a minigame in Minecraft that is built upon not knowing what role other people are (kind of like a social deduction game). However, since teams are required for the game to function, a ...
0
votes
1answer
52 views

How can I hold down in Minecraft whilst tabbed out?

Is there any way I could hold down the mouse button whilst being tabbed out? My goal is to be able to have multiple windows running at the same time on 1 PC, all of them holding down W and LMB.
1
vote
0answers
27 views

Trying to make a sign give me diamonds if i press it with 64 stone [duplicate]

I'm trying to use this command to give me the sign with the right "click" command: /give @p minecraft:oak_sign{BlockEntityTag:{Text1:"{\"text\":\"ex\", \"...
1
vote
1answer
32 views

Execute condition positioned doesnt work

I'm trying to test if an entity is positionned at a very specific coordinate to then and only then tag itself and others. Here's the command: execute as @e[type=minecraft:armor_stand,tag=pillar_first,...
0
votes
0answers
39 views

Why is my /clone command not working?

So, I built a spaceship and now I want it to fly into the air one block at a time using command blocks. When I go to run the clock inside, it says Succesfully cloned 45 blocks, like you can see in ...
1
vote
1answer
39 views

Using /data to copy items from a player to a chest

Im trying to copy a players inventory to a chest upon death but noticed that it only copies the hotbar and the first two rows of the inventory. Command: /data modify block ~ ~ ~ Items set from entity @...
3
votes
1answer
167 views

Can mobs spawn on string?

I made a modern house and mobs spawn on the roof, will string stop mobs from spawning or will I just have to light it up?
1
vote
1answer
25 views

Removing attribute modifiers on dropped items

Just a quick question: what path would I use to remove all attribute modifiers from a dropped item? ive used with no avail: Item.tag.AttributeModifiers Item.AttributeModifiers AttributeModifiers ...
-1
votes
1answer
36 views

How do I add a tagname on a entity in Minecraft?

I'm making a mc map and I want a zombiefied piglin walking over some blocks. I found out how to make him move, but I need a tagname for him, so it would only affect him and not the other piglins. How ...
-1
votes
1answer
48 views

Is there a way to find the location of minecraft players through the console? [duplicate]

I have a server and would like to now if it is possible to print the X,Y,Z coordinates of a player, and how to do this.
0
votes
1answer
31 views

What is the maximum number of tags a mob can have?

In minecraft 1.16.1, If you run this command two times: /tag @p add test you will get a message that says, Target either already has the tag or has too many tags. So that means i know there is a ...
0
votes
0answers
18 views

Change the name of Server console

Is there a way to change the name Server to something else, so when I announce something from the server console it could be from a name rather than just Server e.g. this - [God] hello world. instead ...
1
vote
1answer
66 views

How to create compact “silent” 1-time use redstone trigger?

Background I've recently found how to create a 1-time use trigger using a piston (must be pointing up) which pushes a redstone block: The piston was too loud, so I'm currently using a hopper with 1 ...
-1
votes
2answers
86 views

Is it possible to make a wooden pickaxe break bedrock with commands?

So i'm trying to do different kinds of pickaxes and axes, and I don't now a way to change the blocks that a pickaxe can break. Like how do i to make a diamond pickaxe break bedrock. if possible teach ...
2
votes
1answer
65 views

Why do the less than(<) and more than(>) symbols don't work?

Im trying to make an minecraft map and i really need to check for an scoreboard, like, if your score is below a certain amount, it runs a certain command, but the less than(<) symbol doesn't seem ...
-4
votes
3answers
158 views

Why can't I craft a notch apple now?

I put eight gold blocks and an apple in a crafting table, but no notch apple appeared. Why is this so? I thought it was always there.
-1
votes
1answer
30 views

How to make a modified mob spawn randomly on the map?

I'm doing a RPG in minecraft with some friends but we don't know how to make a modified mob spawn randomly on the map. We have a mob, and we have set it’s name, attributes, and other data. But we don’...
1
vote
1answer
48 views

Removing a specific trade from a villager (minecraft 1.16)

I'm trying to make it so that when a villager runs out of stock of a specific trade, it removes that trade from the villager. I'm stuck at the part where I remove the trade. So far I can only wipe the ...
4
votes
1answer
89 views

How to change an item's attack damage?

I'm doing a RPG in minecraft with some friends but we don't know how to modify the sword damage with commands, we have already tried this command... /give @p minecraft:diamond_sword{AttributeModifiers:...
2
votes
1answer
88 views

How to stop Items from despawning?

I searched up how to do this several times and I could only find ways to spawn items that cannot be picked up, and if it was a tutorial about stopping item despawning, it would still despawn after ...
2
votes
0answers
36 views

How can I specify only NBT in the /clear command, not an item?

A unique quirk about the /clear command is that it can clear items from the player's cursor, i.e. the one that is picked up and moving from slot to slot. Using this and conditional command blocks, I ...
3
votes
1answer
95 views

When you cure a zombie-villager, do they retain their levels/mastery?

I have leveled a set of villagers in my world, and now I want to lower the cost of the purchases by zombifying, then subsequently curing them. However, I don't want to waste time and emeralds if they ...
0
votes
0answers
23 views

Custom predicates for custom items in Minecraft don't work

I have created a custom resource pack and model using Blockbench, now I want to have a custom texture for a gold nugget with certain custommodeldata but when I enable the resource pack and load in ...
3
votes
0answers
59 views

Is there any way to find somebody's else Minecraft Coordinates without any plugin/mod and them knowing?

Basically, long story short, I'm playing on a server where griefing is allowed, and somebody griefed me and started making fun of me. I want revenge. The griefer posted a lot of images of his base in ...
1
vote
0answers
40 views

How to detect the death of a mob (minecraft 1.16)?

I am making a custom adventure map and there is an evoker bossfight (named "lunatic cultist"). I wanted to check when it died, but none of the tutorials I found actually worked (probably ...
0
votes
1answer
31 views

How do I place specific blocks on another specific block in 1.12?

I want to make a parkour map so when you finish a level it gives you a stone button that can be placed on a block. I've tried to use the following command: /give @p minecraft:stone_button {CanPlaceOn:[...
0
votes
2answers
68 views

What is the server command to give my named wolf more health in Minecraft version 1.16

What would the Minecraft Server/cheat command be to give a wolf more health. I know that you can make a named wolf invincible, but I'd prefer to just increase the wolf's health.
5
votes
1answer
109 views

What is destroyed when resummoning/respawning the Ender Dragon?

I'm coming back to Minecraft after a long absence, and pursuing new objectives and opportunities. I've read that one can respawn the Ender Dragon, and I'd like to do this at some point. In order to ...
-1
votes
1answer
23 views

Is there a way to use relative commands in NBT tags?

I know you can use ~ to tell your current location, but when i do this: /summon minecraft:cow ~ ~2 ~ {Leash:{X:36,Y:82,Z:-434},NoAI:1,Age:-25000,Silent:1} and i replace the X,Y,Z with relative ...
2
votes
1answer
51 views

How can I make a fast RAM output bus with no moving parts?

I'm currently creating a CPU in Minecraft just to prove to myself that I can. As part of it, I have 16 bytes of RAM, made with vertical one-block-wide tileable RS-NOR latches. I currently have this (...
2
votes
1answer
71 views

Is there a way to be the 'creator' of an iron golem when you summon it with a command?

When you create an iron golem manually (4 iron blocks with a pumpkin on top), it automatically labels you as its creator, and will not attack when you hit it. However, using the /summon iron_golem ...
2
votes
2answers
88 views

Can we place directional blocks backwards in Minecraft?

I'm more interested in Java Edition. Feel free to include Bedrock for prosperity, but please be explicit about which edition you're referring to. I'm trying to place a piston. But, in my situation, I'...
-2
votes
2answers
183 views

How do i make a command block delay in minecraft 1.16 [duplicate]

I have tried multiple things that were used in earlier versions but they no longer work as commands have changed a lot so I was wondering how I can delay them for my adventure map
-2
votes
2answers
80 views

Making a single character immortal in a minecraft server

I am setting up a Minecraft server which will feature a single player who is very averse to dying. Does anyone know of a way to have a forge-modded survival server where a single character is immortal,...
-2
votes
1answer
107 views

How dangerous are Minecraft mods?

Inspired by this question about the security risks of gaming mods in general, which was in turn inspired by this question about the security risks of Skyrim mods specifically, I have a question of my ...
0
votes
0answers
71 views

Minecraft: Java Edition stuck on download

So, I currently have Minecraft: Windows 10 Edition installed on my computer, and I wanted to play the Java Edition as well. But once I was finally able to actually get the java launcher to work, the ...
1
vote
1answer
61 views

Execute as selector if nearest entity has a tag

I want to execute a command to an armor stand if the nearest pig has a specific tag. The commands that I have tried so far... execute as @e[type=armor_stand] at @s if entity @e[type=pig,limit=1,sort=...
1
vote
0answers
83 views

Allowing functions to go through in a world with no cheats [duplicate]

So, I'm currently having a problem with a datapack I'm making, in a part of it, there's a tellraw that will summon an item at the player's position, and take points from a scoreboard, basically a shop....
0
votes
0answers
19 views

How do you change your Minecraft username on my Server [duplicate]

I have my own Minecraft server and I am an OP. My question is simple, how do I change my username/chat messages to say something like <[ADMIN] CarterCoding> Hello!
9
votes
1answer
1k views

What is the starting value of saturation?

When you spawn in a new world do you have the max 20 points of saturation? Pretty basic question but I can't seem to find the answer anywhere
0
votes
1answer
76 views

Place a lever on only emerald blocks [duplicate]

I've done this before, but I have forgotten how to do it. I tried every command but nothing is working, and I was trying to be quick. Is there a way to do this in Minecraft 1.16?
0
votes
0answers
56 views

Checking a chest for a specific item

I've been watching video tutorials for using command blocks and browsed a bit on here before forming this question. I've been trying to make a shop where a player puts a few emeralds, let's say 8, in ...
0
votes
2answers
66 views

redstone item splitter drops all items into 1 hopper

I am trying to replicate this design. So far, I am making a copy of it, block to block, in my survival and creative worlds. They both lead to 1 result - all items are getting sent to 1 channel. In his ...
1
vote
1answer
55 views

Need help in command to remove item from inventory

I have a small server with my friends, and we want to remove mending from play. I was thinking it will be easy now to just place a command block which looks on players inventory and removes ...
1
vote
1answer
539 views

How do you use Minecraft 1.16's Hex Color Codes in a lang file for Resourcepacks?

Before reading... this has nothing to do with How do you use colored fonts in .lang files? When minecraft 1.16 was released.. They allowed the ability to use full hex color codes to color chat and ...
2
votes
0answers
30 views

How can I join multiple teams with different rules?

I want an Iron Golem, Zombie A, and Zombie B to be on a same team so they wouldn't attack each other but I want Zombie B to have a no collision rule. If I let Zombie B join another team with a ...
0
votes
1answer
47 views

Minecraft crashing on startup in Ubuntu

I recently installed Ubuntu 20.04 instead of Windows for various reasons and I installed Minecraft. When I open it and run version 1.8.9 it crashes almost instantly. This is the error I get when ...