View Help Posts from our Discord server:
Join our Discord server to view them: Datapack Hub Discord
Json format for modifying an nbt under a list using the modify item command Commands, NBT/Components Ive been poking around trying to figure this issue out, since ive never used the modify command before. if anyone has a json that modifies a list for 1.20, it would be extremely helpful.how do i prevent players from picking up specific items through datapacks I'm a beginner, General, Other im trying to restrict players from picking up ender pearls and totems through datapacksTranslations through code/in a datapack I'm a beginner, Other Hello! I'm a complete beginner to datapacks, and I'm wondering if I can use code to generate translations, and they would be able to update at runtime. Is this possible, and if so, how?
edit: I want to dynamically update the translations for items, depending on what other items are in the inventory.
I know enough programming to be able to do this outside a datapack, the only problem is that I haven't used datapacksIs there an option to make this not generate on the water? I'm a beginner Need help with displaying scoreboards on screen anywhere I'm a beginner, General, Commands, Other I posted about this a few weeks ago but didnt get the answer i needed and i really need help. Im making a zelda datapack and i want to display a scoreboard next to my inventory like this guy that did it (see in the pic below) if anyone could help me that would be awesome. Thank you! đI can't understand predicate I'm a beginner, Predicates I can't quite understand predicate, I tried to learn it by doing the basic sneaking detection, it worked.
Now I wanted to make something by myself.
basically, if an entity hit something with a blase rod in it's hand, I want to give slowness 4 for 2 second on the targeted entity.
For now i tried a basic check. the command block tellraw to all player with the predicate as true "you are stun!"
But it doesn't work.
I don't understand if it is my rudimentary "check" or just the predicate itself. Im lost, I read the wiki 2 or 3 times in a row... I guess i don't understand how predicate workGrant custom recipe on advancement I'm a beginner, Commands, Advancements I am having a difficult time adding my custom recipes to the advancement rewards.
I have the reward set up:
"rewards": { "function": "grant" }
and the grant.mcfunction is as followed:
execute as @p run recipe give @s blank_discs:blank_disc_black
but when earning the advancement I do not obtain the recipeAdvancement grand custom recipe 1.21.3 I'm a beginner, Advancements { "display": { "icon": { "item": "minecraft:jukebox" }, "title": { "text": "Groovy" }, "description": { "text": "Now craft your own tunes!" }, "frame": "task", "show_toast": true "background": "minecraft:textures/block/note_block.png" }, "criteria": { "played_tune": { "trigger": "minecraft:item_used_on_block" "condition": "minecraft:match_tool", "predicate": { "predicates": { "minecraft:jukebox_playable": {} } }, "trigger": "minecraft:item_used_on_block" } }, "requirements": [ ["played_tune"] ], "rewards": { "recipes": [ "blank_discs:blank_disc_black" ] } }
I made this following this tutorial: https://www.youtube.com/watch?v=fNWyDDFBWX4
and getting some things from misode and the mc wiki
But the advancement tab "test" doesn't show up?Umm nbt for cold chicken and warm chicken. Predicates, Loot Tables My datapack makes chickens sometimes drop an egg when you kill them. But now i have to update them to all check the type of chicken.
I also want cold pig to maybe drop wool or leather
whats the nbt thing for itHow to check for an infinite potion effect Predicates, Loot Tables I want spiders to drop a potion if they naturally have a potion effect, but when i put the duration check it makes all spiders drop it no matter what.
{
"bonus_rolls": 0,
"conditions": [
{
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"minecraft:speed": {
"duration": {
"min": 99999,
"max": 10000000000000000
}
}
}
},
{
"condition": "minecraft:random_chance_with_enchanted_bonus",
"enchanted_chance": {
"type": "minecraft:linear",
"base": 0.900999,
"per_level_above_first": 0.001
},
"enchantment": "minecraft:looting",
"unenchanted_chance": 0.00899
}
],
"entries": [
{
"type": "minecraft:item",
"functions": [
{
"function": "minecraft:set_potion",
"id": "minecraft:swiftness"
}
],
"name": "minecraft:potion",
"weight": 6
}
],
"rolls": 1
},
how do i make it only drop if its an ifinite potion effectcustom model data not working (1.21.3) I'm a beginner, NBT/Components Title is self explanatory I believe.
I have followed multiple tutorials, but I seemingly can not get it to work.
pack is in the attachments - custom model data number is 6080001
I would prefer to hop on a call to do this but via chat is fine as well.
thank you in advance!IntelliJ plugin? Other I see the one for VS Code, and have used it in the past, but recently switched to IntelliJ fulltime for modpack development. Is there a plugin for datapack editing?how do you tag an player unless another player has that tag Commands how do you tag an player unless another player has that tagPlayer dead body Identify Commands, NBT/Components, Optimisation, Other making a dead body system and you can pick up them, the problem I having is if two people are wearing the same color, if you are carrying a body and walk over one that's the same color they stack
because it works on a tag based system I need a way to uniquely identify each body, but how do I do it so I don't have to write hundreds of functionstagging players Commands, NBT/Components what command would tag a player p1, unless they have any of the tags p1, p2, p3, p4, p5, p6, p7 or another player already has the tag p1Edit specific blocks in configures feature I'm a beginner, General, Worldgen I'm trying to find a way to change the warped_fungus feature to replace the bottom 3 blocks at the base of the trunk with a different block, how can I do this?how do we check if an ender chest was opened using statistics I'm a beginner, General, Commands, Advancements No descriptionEffect duration predicate Predicates, Loot Tables No descriptionget filled_map nbt data in mcfunction. Commands, NBT/Components To check the map in the players offhand I run:
data get entity @s Inventory[{Slot:-106b}]
Player has the following entity data: {count: 1 ,Slot: -106b, components: {"minecraft:map_id": 5}, id: "minecraft:filled_map"
But .minecraft/saves/<save_file>/data/map_5.dat
contains more information like:
- dimension: minecraft:overworld
- locked: 0
- scale: 4
- xCenter: -1088
- yCenter: -1088
Is there any way to get this information in a mcfunction?
Context, what I want to achieve:
When the player eats a chorus fruit, while holding a filled_map in the offhand,
=> teleport the player to the map's center.Detect when an item is eaten General, Commands How do i check when food is consumed and run a fucntion?Check if inventory and hotbar is full Commands, Advancements Hey so Im trying to create an advancement that constantly checks if the player has an empty slot or not. There is an advancement trigger that does that, though it also checks if the armor slots and the offhand slot also has an empty slot. That is what i want to exclude. I want to only check if the inventory or hotbar has an empty slot; if yes: then set a score to 1; if no: set a score to 0.How do I make all child advancements permanently visible (even if not completed) I'm a beginner, Advancements Basically Iâm looking to replicate this effect but I cannot find the answer in this datapacks code.
Advancements are displayed only 2 deep into the tree. I countered this by making an advancement thatâs completed on game tick on the end of the line but it looks ugly, is there a way to like hide it?How to replace some trees of certain type when growing? I'm a beginner I am wanting to make around 10% of trees grown by saplings be replaced with a structure block with a slightly modified tree inside
What I want to know is:
1. How to detect when any sapling grows
2. How to use random chance
3. Use structure blocks in a datapack (I know how to use them, but unsure how it works into datapacks)
Eventually I want this to work with world generation, but I figured saplings would be an easier place to start
P.S. I have no idea how events work, or how they trigger .mcfunctions (I was thinking of using a command to set the structure block)How to get commands to work per person in tick function Commands #Night Vision Goggles title @a times 0 20t 0 execute as @a if data entity @s Inventory[{id:"minecraft:carrot_on_a_stick",Slot:-106b,components:{"minecraft:custom_name":'{"color":"dark_green","italic":false,"text":"Night Vision Goggles"}'}}] run title @s title {"text":"a","font":"filter:fill","color":"#009105"} execute as @a if data entity @s Inventory[{id:"minecraft:carrot_on_a_stick",Slot:-106b,components:{"minecraft:custom_name":'{"color":"dark_green","italic":false,"text":"Night Vision Goggles"}'}}] run effect give @s night_vision 1 0 true execute as @a unless data entity @s Inventory[{id:"minecraft:carrot_on_a_stick",Slot:-106b,components:{"minecraft:custom_name":'{"color":"dark_green","italic":false,"text":"Night Vision Goggles"}'}}] run title @a reset execute as @a unless data entity @s Inventory[{id:"minecraft:carrot_on_a_stick",Slot:-106b,components:{"minecraft:custom_name":'{"color":"dark_green","italic":false,"text":"Night Vision Goggles"}'}}] run effect clear @a night_vision
I need these commands to work per person but currently if one person puts it in their offhand nothing happens, and everyone has to put in their offhand for it to work, how do I get it so it works per personwhy arent my recipies working? Recipes ive checked dthe og and it doesnt really even work therePrevent block placing General, NBT/Components Is there a component to stop a block from being placed. I tried !minecraft:can_place_on but that didnt seem to workhow to modify existing structures? NBT/Components made a nbt file and want to add it to a village, how would i go about doing that?
(this is a repost)how to modify existing structures?(in my case plains village) NBT/Components i made a nbt file and want to add it to a village, how would i go about doing that?Need help with schedule command I'm a beginner Im trying to a set a command block to air using the schedule command but nothing happens when I run the scheduleHow to make a campfire recipe with a custom item General, Recipes I have a "dough" item that is a poisonous potato with the texture of white dye.
how would i reference this item to use in a campfire?Base item for custom model General, NBT/Components are there any items i could use that have little to no functionality (not placeable, tradeable, few crafting recipes etc) that i can use as a base item an use a different model on?Custom potion as recipe output General, Recipes can i add a custom potion directly as the result of a recipe or would i have to use a knowledge bookHow to reference en entire item category (#flowers) for a recipe General, Recipes titledatapack not working anymore (solved) I'm a beginner i have a datapack for a server that changes the crafting table recipe, its not showing up when i put the materials in anymore,
The mcmeta file:
{
"pack": {
"description": "Paint Thinner Recipe Revamps",
"pack_format": 48
},
"filter": {
"block": [
{
"namespace": "minecraft",
"path": "recipe/crafting_table.json"
}
]
}
}
the crafting recipe.json
{
"type": "minecraft:crafting_shapeless",
"ingredients": [
"minecraft:leather",
"minecraft:leather",
"minecraft:leather",
"minecraft:iron_axe",
"minecraft:smithing_table",
"minecraft:iron_pickaxe",
"minecraft:iron_shovel",
"minecraft:shears"
],
"result": {
"id": "minecraft:crafting_table",
"count": 1
},
"group": "custom"
}What is the best blank item? Recipes Im tring to make a cosmetics datapack and want to find the best blank item is map a good one?Custom enchantment that can't be put on books? Enchantments Is there a way to modify a custom enchantment so that it shows up in the enchantment table when I place my item inside it, but not when you place a book inside it?title @a times 0 2t 0 is glitchy Commands the title times command seems to be very glitchy, even when its set to 2 ticks it will sometimes last forever or 5 secondsSorting System Alogirthm Commands So... I am actually done. I don't know how to do this one. At all. I did tried to create a sorting system, but only managed to create such with use of entities (which is HYPER bad for performance).
Anyone... can just take the time and suggest at least one good alternative?
Context: I need to sort the data by the integer value in Storages. So, for example, it looks like this on the input:
data merge storage ceevyte:tmp {quicksort:{main:{output:[], s_list:[], b_list:[], _list:[], list:[ {value:67,data:{test:8}}, {value:88,data:{test:9}}, {value:-88,data:{test:1}}, {value:1016,data:{test:10}}, {value:19,data:{test:6}}, {value:1,data:{test:4}}, {value:-45,data:{test:2}}, {value:11,data:{test:5}}, {value:0,data:{test:3}}, {value:34,data:{test:7}} ]}}}
And on the output, it should look like this:
data merge storage ceevyte:tmp {quicksort:{main:{output:[], s_list:[], b_list:[], _list:[], list:[ {value:-88,data:{test:1}}, {value:-45,data:{test:2}}, {value:0,data:{test:3}}, {value:1,data:{test:4}}, {value:11,data:{test:5}}, {value:19,data:{test:6}}, {value:34,data:{test:7}}, {value:67,data:{test:8}}, {value:88,data:{test:9}}, {value:1016,data:{test:10}} ]}}}
And I dont know how to do this. Just... please. I need help. Sorting is the BASE of everything tied up to pathfinding and... everything. I need to know how to implement this monstrocity.Is it possible to give the player the same vision as a creeper? Commands, Other where the players vision is green, i dont want it to be spectater thoughdata storage value check between values General, Commands I have a function that gives a random value between 1-100
execute store result storage anime_loot:values rand int 1 run random value 1..100
currently i just check the individual value and give item.
so for instance
execute if data storage anime_loot:values {rand: 1 } run give @s minecraft:diamond 1 execute if data storage anime_loot:values {rand :2 } run give @s minecraft:diamond 1 execute if data storage anime_loot:values {rand: 3 } run give @s minecraft:diamond 1 execute if data storage anime_loot:values {rand: 4 } run give @s minecraft:diamond 1 execute if data storage anime_loot:values {rand: 5 } run give @s minecraft:diamond 1 execute if data storage anime_loot:values {rand: 6 } run give @s minecraft:coal 1 execute if data storage anime_loot:values {rand: 7 } run give @s minecraft:coal 1 ...
is there a way to just have 'if value between 1-5 do x?
execute if data storage anime_loot:values {rand: 1..5 } run give @s minecraft:diamond 1
how do you spawn entity at random location(tp works too) Commands how do you spawn entity at random location(tp works too)DATAPACK MAKER Commands Hi guys, I want to hire someone who's from Asia to make a datapack converting command blocks and redstone into a datapack or a mod (Asia because I'm Asian too so the price will be more affordable) I don't know if this is the right channel to ask that, I'm sorry if I asked at the wrong oneSniffer loot table with modded items. I'm a beginner, Loot Tables Tried to make a datapack to add saplings from fruitsdelight to the sniffer loot pool. Can get it work. Tried loot_tables and loot_modifiers but sill wont work. can someone give it a try or help me out. I think a good way would be to make datapack that completely overrides the vanilla table and does a 50/50 split between two modded saplings.Pass macro to a function with schedule I'm a beginner, Commands Can I pass a macro to a function through schedule?
schedule function parkours:endproll{player:@s} 10t append
Sadly, doesn't work D:
(repost from rp-help lol)Level 4 OP permissions commands Other Anyone know any way to give command blocks/datapacks level 4 OP permissions on singleplayer? This is just for my testing worldHelp with teleporting Commands I need help to get these armor stands to teleport to the player like this, no mater where the player is looking, and I need it to rotate with the player execute as @e[tag=bluehold] at @p run tp @e[tag=bodyblue,tag=top] execute as @e[tag=bluehold] at @p run tp @e[tag=bodyblue,tag=legs]
here are the commands with the tags, I wasn't quite sure what to doInfintely Generating structure Worldgen How do I make Infinitely Generating Corridors and roomslocation check Predicates i dont understand why my location check doesnt workSteampunkesque tech mod idea I'm a beginner, NBT/Components very very in the idea phaseI would like to run a function when the dragon egg is thrown in the void I'm a beginner, Other this is what I have so far: /execute if entity @e[type=item,nbt={Item:{id:"minecraft:dragon_egg",count:1}}]
but I have no idea how to test if it's destroyed đ¤ˇââď¸Crafting Repairing Fix Recipes The image shows it all.. I made a custom tool based on the wooden axe recipe, but I realized that if you try to repair it, THIS happens.. Is there anything I can do to get rid of this?not able to spawn structers in datapack I'm a beginner, NBT/Components im not able to /spawn my structre(cant find it)(data pack attachment)changing weapon/player damage type (1.20.1) I'm a beginner, General is it possible to change a player's/weapon's damage type somehow? like when a player is holding a diamond sword they can do minecraft:on_fire damage with the sword to other entitiesFun Challenge for anyone who wants to try to make this body pickup system Commands, NBT/Components I am trying to make a system that allows you to right click body's and pick them up, I was trying to get them to lay horizontally of the player, but that is where it got hard, not sure how to do that with teleport, and with multiple players wearing the same color player makes it even more complicatedDatapack Help I'm a beginner I need to fix this datapackLooking For Help I'm a beginner Trying to figure out how to use players, can anyone help me with this in a vc? dm meload function I'm a beginner, General, Other I am very new to datapacks and wanted to make one with the load function. I have my load.json in minecraft/tags/funstions and my load.mcfunstion in namespace/function. In the load.json is:
{
"values": [
"namespace:load"
]
}
but when I do /reload nothing works. If I do /function then it all works.
Version:1.21.4I need help for making this texture work please I'm a beginner I want to use the texture in the image to work in my datapack pleasee (its probably a misspell) minecraft 1.21Explosions only damage certain blocks General I am making a minigame where I need explosions to not damage the map but still do damage and break certain blocks. Basically if the tnt were to go off in the image it should break the cobblestone and the oak planks but not hurt any other blocks.
How would i make the explosion do this?Creating a custom Enchantment Tag I'm a beginner I'm just wondering how I should go about making a custom enchantment tagIssue to execute the load.function file I'm a beginner Okay, first, i cannot find a good way to learn the basics of datapack. I have a decent command block background, but i struggle just to display a message at the load of my datapack. I suppose this is due to file path, it can't execute anything in the load.mcfunction. Im in Minecraft 1.21.4.How to make count down in datapacks? General, Commands What are some ways to create countdowns in Minecraft using data packs? I am talking about countdowns in integer form, with minutes and seconds separated by a colon (e.g., mm:ss).Overriding other datapacks loot tables Loot Tables So i'm making some datapacks to enhance my and my friends' vanilla experience, just for the sake of having something new and also i have fun making them. I'm making multiple packs which add different features each (for example, one adds new custom enchantments and another one adds new armors and items with new materials such as "ruby"), i'm using both the datapacks in the same world and i have the same loot table (like gold_ore) that override the vanilla loot table, but each datapack adds a different drop:
- The enchantments one adds "Smelt" that gives a gold ingot when mining gold ore;
- The gems pack adds "Gem Extractor" which makes gold ore drop a custom item that should be a gem when mined with a random chance
How do i make it so i can use both datapacks and still have both the enchantments work with different loot tables from each datapack so they don't override each other and one of them stops working?rock generating I'm a beginner, Worldgen is there any way to make this rocks?Question about inventory GUI click detection. General, Commands Another question related to the GUI: How do I detect clicks inside the inventory? This is for a vanilla map.How to make datapack anti-item drop? General, Commands It's been a long time now; I can't seem to remember how to use a datapack to prevent item dropping. I want to force the player to hold onto the items they have, and when they try to drop them, the items should reappear in their inventory in the same slot, with no items being dropped.Projectiles General, Commands Say I wanted to fire 4 arrows from a point, going out in 4 directions relative to where the point is facing. I tried doing it with math and summoned entities and I can't seem to figure out a real good optimised way of getting it. If anybody has experience or has done something like this before any help would be appreciatedmore damage Commands ok so basically, I'm making a datapack with some custom swords, im making it if you have one of them in your inventory and are below 6 hearts, you take 50% less damage, i also have another but its 30% more damage, anyway, ive got the detecting if you have it in your inventory and the 6 hearts, just how do i make them take less/more damage? thanks, im on 1.21Does tntExplodes game rule extend to /summon? General, Commands, Updating Does tntExplodes game rule extend to /summon? And do any of the game mode settings related to mobs, items, or ticks affect commands?i need help with my data pack I'm a beginner, Recipes i need to disable some recipes and for some one to chek it over to see if i have done this correctlyim cursed with datapacks Commands i hate to be that guy who makes ten thousand forums
but this keeps breaking
i dont know why but adding a predicate to my function made it stop doing every tick and i have no clue how to fix iti have no clue Commands a bit of a follow up to my last post
i have a function on a tick so it deletes whats on the armor slot when you go above y=192
but it just randomly deltes if i go in my inventory
also will not let me glide with the glider component for some reasonTicks General i cant for the life of me figure out why my tick.json doesnt work
i've run the function and the function works but the tick.json wontWhat's the easiest way to make a particle animation? Commands ^advancement condition Advancements I have an advancment (rare collector) when a player collects 5 specific 'Rare items'.
one advancement when a player collects a specific 15 'uncommon' items
and another advancement when a player collects 30 specific 'common' items.
I want to give another advancement when all three of these are done.
I couldn't work this out, is this possible, to trigger an advancement once a collection of advancements are made. if so how?How to remove amethyst clusters and lava lakes and such? Worldgen I want to remove amethyst clusters, lava lakes and springs and such in the overworld. I tried changing their 'chances' to 0 in the json but it just crashed my game. How would i remove them correctly?
I'm playing on version 1.20.1.Any way to give the player an effect so that the icon shows but the particles don't? Commands I'm trying to make a status effect appear for the player when they get within a certain range of an entity, but I only want the icon to show and not the particles. As far as I'm aware the only way to do this is with splash potions or area effect clouds, but the former makes a glass breaking noise and gives it to nearby players as well, and the latter the player needs to be in range for at least 5 ticks. Is there any easier way to do this or are those my only two options?Arrow Detection General, Commands I want to execute a command when an arrow with a specific tag is in the air. But Im clueless. (the arrow in the air when you shoot a bow, not a item)how could i store the coordinates of a chunk Commands followup question to my previous one, how could i store the coordinates of a chunk loaded with /forceloadArrow Air Detection General, Commands No descriptionCustom Item Predicate? General, Predicates, NBT/Components, Optimisation I have a custom item that is created and all is working fine.
execute if data storage cust_loot:values {rand: 1 } run give @s minecraft:player_head[minecraft:item_name='{"text":"Plushie #0001","color":"white"}',profile={id:[I;-1143981461,1067077518,-1346646829,972713079],properties:[{name:"textures",value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZjhhNDEzOGZkYmJiMjgwOTdkYzVkY2ZjM2Y4ODE5MjVlZGE5NjhjNjI3NGUxNjlkYzgyZWVkZTYzMzZmNSJ9fX0="}]}] 1
what i want to know is can i run a command that is more like
run give @s cust_loot:plushie_01
and it gives the user the item with the above values.
minecraft:player_head[minecraft:item_name='{"text":"Plushie #0001","color":"white"}',profile={id:[I;-1143981461,1067077518,-1346646829,972713079],properties:[{name:"textures",value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZjhhNDEzOGZkYmJiMjgwOTdkYzVkY2ZjM2Y4ODE5MjVlZGE5NjhjNjI3NGUxNjlkYzgyZWVkZTYzMzZmNSJ9fX0="}]}]
I assume we could do a check with predicates based on item name or soemthing but i'm not sure where to start any specific packs someone knows about that does this method if it's even possible?How to make /trust datapack Commands I want to make a /trust datapack, my main problem is how to stop me from damaging 1 player and not another, to get whos trusted i have
/execute if data entity @s {UUID:[I;]}
right now, which i can probably do something to if i get the damage thingDatapack is not showing up in the datapack list I'm a beginner, General, Loot Tables I am trying to make a datapack with custom fishing loot tables in specific biomes. However, the datapack does not show up in the list after putting the folder into the datapack folder. What do I need to do in order to fix this issue, and are there any other issues with the datapack?Get armorstand to where a player head Commands How do you make an armorstand where a player head of a person with a score, ex: score matches 1..when player dies summons armorstand where they died, why is it not working Commands, Other execute as @a if score @s corpse matches 1.. at @s run summon armor_stand ~ ~ ~ {ShowArms:1b,Invisible:1b,Invulnerable:1b,NoGravity:1b,ArmorItems:[{id:diamond_boots,Count:1},{id:"minecraft:diamond_leggings",Count:1},{id:"minecraft:diamond_chestplate",Count:1},{id:"minecraft:player_head",Count:1,Tag:{SkullOwner:"@s"}}]}
Configured Carver I'm a beginner Hi, I set the probability density equal to 1
But it didnt work
anyone know why ?why is this death detection for 1.21.4 not working Commands, NBT/Components execute as @a if score @s corpse matches 1.. run effect give TycerKirk minecraft:glowing infinite 255 false
/scoreboard objectives add corpse deathCount
also is there a better way to do itWhats causing this crash? Worldgen, Other https://bytebin.lucko.me/HOHfUL9UCLcreating scoreboards on datapack load I'm a beginner im struggling to have the datapack create scoreboards as its loaded, idk if the commands are wrong or the filepaths or something but ill share some screenshotsconditions for player choosing not working correctly I'm a beginner, Commands so i lost my code yesterday and tried coding back what i lost, but the heck!? @a[] conditions aren't working, like at all, when i write them in command they work so it can't be the command itself (tried with as @p or @e[type=wither] in the last execute in the attack command, but still didnt workHow to fix the crafting recipe not working properly I'm a beginner, Recipes When making a custom ingot in my datapack you also need 2 new items that are items with just custom model data and i works, but it also works with using the vanilla items. I have the same problem when upgrading a netherite sword to a better one and it accepts the vanilla smithing template and the vanailla netherite ingot :((
(The custom ingot resipe is in the picture - minecraft 1.21)Player Detection at Specific Coordinates I'm a beginner, Commands Hello, Iâm trying to create an item that could function like the Totem of Undying. Its purpose would be that if a player is at coordinates y = -100 (I don't care about the other coordinates), they would be teleported to the respawn point (for example, when they click on a bed). This would happen as long as the player is holding the item.
Is my reasoning correct that the first check would be to see if the player is at the right position?
And the second check would be to see if the player is holding the item?
Do you have a guide on the datapack hub wiki?How does /clone work from a technical perspective? General, Commands, Other How does /clone work from a technical perspective? When pasting to a coordinate, which point is the origin and pivot? Is it determined by the first command argument or the second? Or is it just an arbitrary algorithm deciding where to place the origin of the paste? It isn't very clear to me.Question about player launching General, Commands, Optimisation How do I launch players? Just a clean velocity applied to the playerâno other gimmicks. I want to boost them in a direction with a velocity, ideally using a vector.How to detect if a player dies? General, Commands, Optimisation, Other Are there ways to detect a player's death? One through player kills and one through the environment? I want to use it for custom kill effects in a PVP mini-game.Is there a way to retrieve an entities pitch and yaw via commands in text form? Commands Hi, I need to retrieve the pitch and yaw of a specific player in the chatHelp figuring out the best way to handle specific triggers for advancements General, Advancements Need help figuring out - giving an advancement to a player for giving another player a specific item, giving a player an advancement for having atleast a certain amount of hostile mobs within a certain distance of them
I'm using a mix of Misode's Advancement Generator and MCreator to put this together currently. I haven't really dabbled with Advancements or Datapacks much so I'm not sure what limits there are when it comes to this stuff, but I'm hoping to find help here!
I've attempted the first one already, but when trying to set it up, it allowed me to drop myself the item for the advancement at first, but it also gives the advancement to the person who picked it up rather than who threw it.
The second one, I'm wanting to make it so if there's atleast 15 hostile mobs around a player within like... 20 blocks, it would give an advancement. I'm feeling like I would need to use scoreboards or something for that one, but I'm not entirely sure. Though I know how to set such things up. I'm just lost on what would be the best way to handle this, if any.Ore Generation Help Worldgen I was wondering if is it possible to make a custom ore feature to spawn in every biome without creating a lot of modified biome files?Minecraft Quicksort Algorithm Optimisation Is there any way to optimize it further? I know for sure that using this much @e will cause some sort of lag, but I dont think my silly little brain will be able to make it work better. Any more fabulous brainiac that can fix my suffering? <:husk:1221078528448270346>Get the last trade Commands, Advancements Hello,
In my datapack, I have a custom villager, with custom trades.
I would like to test the trades made by the players.
More precisely, I want to know what the player has just bought from this villagers to enable stock and bank management in the linked chests.
I have the âWhat a Deal!â advancement in âminecraft:advancement/adventure/tradeâ to allow me to launch a function once the trade has been completed.
i just have to detect what has been bought from the villager.
do you have a solution ?
ThanksLoading more...