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
-1 votes
2 answers
307 views

What is the easiest and fastest way to spawn ghasts on the Nether roof?

Basically, I have the following set up in the nether roof. (Version: 1.19) I made an 8x8 nether rack platform, and it goes up by about 100 blocks. The biome is the Nether wastes. Will this eventually ...
Phil's user avatar
  • 195
1 vote
0 answers
126 views

How can I replace only a certain percentage of a region?

In WorldEdit, you can do something like //replace stone 20%air,80%stone, but I want the inverse. I want a region that has a lot of block types replace only the 20% of the region with another. This can ...
Alvaro203204's user avatar
1 vote
0 answers
22 views

Create custom block

I created a 3d placeable item (a printer) with blockbench and I would like to make sure that I want to place it as if it were a player's head, i.e. that based on how you are turned, the item "...
PXL_Fl4me's user avatar
1 vote
1 answer
986 views

How to force a resource pack on a world?

I have a world I want to distribute to the public but I need to give it a resource pack so I can retexture stuff without downloading it. Simplified: How can I force a resource pack so they don't have ...
TheyCallMeFatbird's user avatar
-2 votes
2 answers
67 views

How can I see the value of randInt(0,18), what do they mean by that description?

I'm trying to understand the description of "Mobs that spawn with enchanted equipment have higher levels of enchantments.". But which level are they talking about, what is the percentage ...
ʈɦɘ ʙɑɕʞ's user avatar
1 vote
1 answer
64 views

Detecting when an armor stand gets hit

I am creating a datapack which requires the use of armor stands. However, the main issue here is that I don't know how to detect when an armor stand gets hit. Most mobs, including the armor stand, ...
WarpPrime's user avatar
  • 1,777
4 votes
2 answers
842 views

How can I make this circuit that detects the number 5 more compact?

For an adventure map, I'm building a library room with a hidden piston door that opens when you enter the correct 4-digit passcode. The passcode will be implemented by inserting books into the right ...
Quack E. Duck's user avatar
0 votes
0 answers
28 views

Adding a name property to a command [duplicate]

I'm trying to add {name:"Rifle"} to this command: /item replace entity pandafish321 hotbar.2 with minecraft:crossbow{ChargedProjectiles:[{id:"minecraft:arrow",Count:1b}],Charged:1b}...
Jonas Kvam's user avatar
1 vote
1 answer
69 views

How can I spawn an entire preconfigured room using Command Blocks/Armor Stands?

I was trying to make a room/dungeon, then use command blocks to spawn that room at a certain location, using Armor Stands. I know I can use the /clone command but how would I specify what rotations so ...
MoonFall's user avatar
0 votes
2 answers
128 views

How to make a command block activate by reaching a specific coordinate in Minecraft 1.20.1

For example, if you are in -52 -60 35 and if you go to -52 -60 50 you get sent back to -52 -60 35. I tried this: /execute if entity @p[distance:..5] run tp @p -52 -60 35 How can you make a command ...
Mohammed Adly's user avatar
2 votes
1 answer
165 views

Minecraft flying machine not going back

I'm trying to make a bamboo farm after a tutorial, but I got stuck on one important thing. I can't make the flying machine go back to where it left off. If I choose according to the tutorial for the ...
odo's user avatar
  • 71
-1 votes
1 answer
70 views

Minecraft Command to trigger a command(s) when i'm on a specific block

So I'm trying to make a horror map and there is this one block I want that if you are on that block, it triggers a command and doesn't trigger again unless i set it up again. I looked it up and couldn'...
Patrico -'s user avatar
4 votes
1 answer
56 views

Using Interactions to cycle Mob Spawner entities (Minecraft 23w31a)

The idea I'm attempting (via data pack) to use an interaction (tagged MobSpawner) to cycle through a "list" of different mobs when it's right-clicked, but only after having been right-...
0xEARTH's user avatar
  • 996
3 votes
1 answer
178 views

How do I attach 2 buttons to 2 piston doors?

I want to put 2 buttons on 2 piston hidden door and i can't succeed. It works only with one buttons. How can i create a circuit to open the door from all parts. I attach photo to see more easy what i ...
odo's user avatar
  • 71
-2 votes
1 answer
45 views

Why did my items Dissapear [closed]

Yesterday When I logged on to my world. I wanted to make a supermarket, which I made yesterday and then I filled up items on the slabs and then sometime afterward. It disappears on its own. This was ...
Ankita Varma's user avatar
0 votes
1 answer
43 views

Summon flying ender_pearl

We know: If a player uses /summon minecraft:ender_pearl It summons a ender pearl that falls from the player coordinates to the ground (best way to see: fly in creative mod)e. How do I let the pearl ...
McBlock's user avatar
  • 47
0 votes
1 answer
164 views

Clearing out large areas with command blocks

What command would you use to clear out a large area relative to the player that doesn't go down but up? I've tried one but it would clear the stone down to bedrock. Also is there a way to make it ...
MrMonmer's user avatar
2 votes
1 answer
419 views

How to build a 6-blocks piston extender in 1.20+ Java Edition?

I have been searching for online tutorial to build a 6-blocks piston extender in 1.20 Minecraft Java Edition. The closest one that I have found is this one which is 5 blocks. ...
Johnson's user avatar
  • 21
0 votes
1 answer
48 views

Give player item once they run out?

I want to use command blocks to give a player an item (in this case cgm:advanced_bullet) every time they run out of that same item. I've tried using this series of commands: execute as @a if data ...
N_Dracorex's user avatar
-1 votes
1 answer
88 views

I need to put some text after scoreboard value on sign

I want to put 'seconds' after the scoreboard value, but it appears on the next line or there is no text at all. Command: /data merge block ~ ~3 ~ {front_text:{messages:['["",{"text"...
Dudunkin's user avatar
5 votes
0 answers
351 views

How do I read a Minecraft crash log to determine the root of the issue?

So I'm trying to help a friend join a modded Minecraft server with me. things would load in well and she would appear in game, but then after 5 minutes the game would crash and spit out a crash report....
toxicwar's user avatar
1 vote
1 answer
142 views

What does "^ ^ ^" mean in a command? [duplicate]

I watched a video about particle designing in Minecraft. And there they used ^ ^ ^ or ^[number] ^[number] ^[number] instead of ~ ~ ~ or ~[number] ~[number] ~[number]. And now I wonder what this does. (...
McBlock's user avatar
  • 47
2 votes
1 answer
106 views

Tick.mcfunction file spontaneously gets disabled. How to fix?

I was coding my first Minecraft data pack, and everything was working perfectly for the first bit. After some time of coding, the tick file seemed to entirely stop working. I checked in the tick.json ...
Korogue's user avatar
  • 382
1 vote
2 answers
434 views

How do I make pillagers to stop spawning?

Yesterday I started a fresh world and after setting up a small base I saw a pillager outpost near it. Is there any way of getting them to stop respawning? I was thinking on simply destroying the ...
Artzaint's user avatar
1 vote
1 answer
166 views

Can you hold right-click to place blocks in a line in Java Edition?

In Bedrock Edition, if you hold down the right mouse button when placing blocks, it places them in a line no matter how you move your mouse. It stays to one line and keeps placing in a row or column ...
Ember9653's user avatar
2 votes
1 answer
169 views

How to spawn item/block/entity at player death point?

I am working on a Minecraft "Mini-"Game and want a command that makes an entity (like a zombie) spawn at the death point of a player.
McBlock's user avatar
  • 47
0 votes
1 answer
50 views

Will Minecraft LAN with friend work if he does not have the same mods? [duplicate]

The mods that I don't change the structure of the world or add other significant changes, they just increase my fps. Will LAN work if my friend does not have the same mod installed?
AgentSyntax's user avatar
1 vote
0 answers
34 views

I would like to use a multiplayer map in singleplayer. I downloaded it and followed many online guides, but the world never appears in singleplayer

Some time ago, I downloaded a world from Aternos, but I can't open it in singleplayer despite the use of many online guides. Here is a screenshot of the folders I've got from Aternos: Let me know if ...
ThatMan's user avatar
  • 11
0 votes
0 answers
50 views

Is there any way I can make villagers buy items from me?

I'd like to role-play running a store inside a village. Is there any way I can set out some items for sale, and have villagers come buy them from me?
yukiyuri's user avatar
0 votes
1 answer
87 views

Can players spawn on glass blocks in Minecraft? [closed]

I know that mobs can't spawn on glass blocks as can be seen from this question and answer. But what about players? If I have my spawn area covered in glass blocks, will I be able to spawn on them?
Shaun Roselt's user avatar
-1 votes
1 answer
56 views

Can players spawn on carpets in Minecraft? [closed]

I'm planning a spawn area for my world and I want to use carpets for the floor, but can players spawn on carpets? A similar question was asked for mobs spawning on carpets, but what about players? ...
Shaun Roselt's user avatar
0 votes
0 answers
46 views

Minecraft item filter that is changable

So I want to have a item filter that I can change using a button, so basically like a regular item filter and then I input a new item the old one will be burned or sent into a container, I have tried ...
Ace mavie Acemavie's user avatar
0 votes
0 answers
139 views

I can't download Minecraft Java despite many attempts

I used to play both Bedrock and Java, and modded Java Minecraft on my Imac, I had this Microsoft account to buy Minecraft in the first place. Now that I switched to a Windows 10 laptop, and logged ...
TatGuyTBS's user avatar
0 votes
0 answers
44 views

Why won't my custom ore feature generate?

I have a custom feature defined in a datapack, as shown below. Whenever I change the field Name from minecraft:cyan_wool to minecraft:lapis_ore, the lapis blobs show up during world generation. ...
Axel Reynolds's user avatar
1 vote
0 answers
42 views

How to log values to Minecraft server terminal?

I need to get some values from my game and into a text format that I can copy/paste outside of Minecraft. I believe the only way to do this is though the terminal but I'm unsure. The values are stored ...
Daniel D's user avatar
0 votes
1 answer
35 views

How do I make an item change colours in Minecraft with only one texture?

I want to make an item use a single greyed out texture to be any colour, much like leather armour. I would do this with OptiFine but I don't know if it supports that or how I would even do that. All I ...
Vito M's user avatar
  • 1
1 vote
0 answers
32 views

Is there an inexpensive method of applying effects to a player based on an item in their inventory?

I'm running a server for a group of friends with a significant number of custom items which give an effect when in the player's inventory (NOT just when held, which minecraft supports natively). ...
Corsaka's user avatar
  • 3,668
-2 votes
1 answer
38 views

How can I detect if player is holding only 1 item?

Basically, I am making a Minecraft map, and I want to detect if player is holding exactly one empty bottle. I tried to add Count:1b but it didn't work. My command: /execute if entity @a[distance=..2,...
Dudunkin's user avatar
0 votes
0 answers
25 views

Minecraft Java 1.19.4: How to get the items in multiple hopper minecarts to end up in one double chest?

I am trying to make a storage system for my cocoa beans for cases I drop when harvesting so I don't necessarily have to go towards them to pick them up if they don't automatically go into my inventory....
leguchi's user avatar
  • 201
1 vote
1 answer
53 views

How to change NBT values based on those values?

I have an arrow who's motion I want to scale up so that it moves faster but still moves in the same direction. However, all I can figure out is how to set it to a single, unchanging value with /...
Jonathan Lenhart's user avatar
1 vote
1 answer
50 views

Is there a way of only allowing a particular player to use a particular tool or item in Minecraft adventure mode?

I want to know if there is a way of only allowing particular players to use specific items in Minecraft Adventure mode? My idea is to create an adventure mode Map, and I want to have classes. So only ...
tom cheif's user avatar
-2 votes
1 answer
566 views

Can Creeper spawn on Netherrack in 1.20.1?

I want to build a Gunpowder farm and wanted to know if Creeper can spawn on Netherrack.
Lulu's user avatar
  • 1
1 vote
2 answers
44 views

How to get a Command Block to fire once upon triggered effect

I am trying to activate an effect on a player when the player steps on a given block, in this case Skulk Catalysts. Rather than target the closest player to the command block executing the command, I ...
Souboku's user avatar
  • 11
1 vote
1 answer
112 views

How tall should the slime minion fence be?

So in Hypiexl Skyblock, I want to make a slime minion. But I'm not sure how high the surrounding fences should be to prevent the slimes from escaping or suffocating in the blocks above it. The wiki ...
DialFrost's user avatar
  • 1,376
2 votes
0 answers
83 views

Minecraft scoreboard calculations with offline players

I am trying to build a ranking system for teams on my server using only vanilla commands (i.e. /team, /scoreboard, etc). I have multiple mini games that will have a scoreboard objective to track the ...
Jacob Kelley's user avatar
2 votes
0 answers
31 views

How can I use selectors when getting data from a storage?

How can I get use a selector when using /data get or /execute store success ...? My storage looks like this: { 0: [ {"Player1": 0}, {"Player2": 1} ], 1: [ {&...
Dany's user avatar
  • 21
1 vote
1 answer
51 views

How do I make mutually exclusive mob drops in Minecraft?

So I would like to implement something where an entity, when killed, drops one and only one item from its list of mob drops. Changing the probabilities of each mob drop to (1/number of possible mob ...
The Empty String Photographer's user avatar
0 votes
1 answer
34 views

How to give score when standing on a specific block and remove it when not standing on it

I have two commands: execute as @a[team=Thief] at @s run execute unless block ~ ~-1 ~ target run scoreboard players set @s krycie 0 execute as @a[team=Thief] run execute as @s at @s if block ~ ~-1 ~ ...
NotKatsuro 3's user avatar
1 vote
1 answer
304 views

Is it still possible to see where mobs can spawn by pressing F7 in Minecraft?

In my Minecraft world, I am trying to figure out where mobs can't spawn (mainly to make my nearby village safe, as I plan to trade with them), but I my personal computer's browser isn't working, and ...
TimMcYeah's user avatar
  • 814
0 votes
1 answer
47 views

How to make a "If a player steps on X: Z: do this"?

I'm trying to make a game where if @s steps on X: ? Z:? add to objective "LevelMade" (Levelmade is an objective where it goes up the more you progress, in this case -- goes up from coords.) ...
TheyCallMeFatbird's user avatar