View Help Posts from our Discord server:

Join our Discord server to view them: Datapack Hub Discord

Search
performance question Optimisation

is this command bad for performance? ive heard about nbt things being very bad for performance

execute as @a at @s run tag @e[type=#mounts_improved:all_mounts,nbt={Age:-24000},distance=..24] add bred it has to check every tick because im making it so all horse variants have set statistics except bred ones

summoning custom firework entity I'm a beginner, Commands, NBT/Components

I want to do this

  1. player gets a custom firework with a custom tag [tag1]
  2. when he uses it a firework entity summons with another tag [tag=2]
failure I'm a beginner, Worldgen
What is the preliminary surface level? Worldgen, Updating

Hey all. I'm currently manually updating Terralith to 1.21.10, as it's causing my server to crash. The log is complaining about a missing preliminary_surface_level value in the overworld noise settings file. Is this something I can safely just set to 0 without breaking anything?

No sound in consumable component Loot Tables, NBT/Components

Hello guys, I want to remove the sound from the consumable component, any ideas? I can't put minecraft:none or minecraft:empty, it throws an error:(

{
    "function": "minecraft:set_components",
    "entity": "this",
    "components": {
        "minecraft:consumable": {
            "consume_seconds": 2.5,
            "animation": "none",
            "sound": "minecraft:entity.player.teleport",
            "has_consume_particles": false
        },
        "minecraft:use_cooldown": {
            "seconds": 30,
            "cooldown_group": "ender_compass:cooldown"
        }
    }
}
is it possible to make the explosion bigger than 40 the explosion power 40? I'm a beginner, General, Commands

I want to make a tnt that explosion ist 1000x so big like the normal but I saw you can see the explosion power only until lv 40

i need help to make a consumble item I'm a beginner, Advancements

i need help here whats i got so far { "criteria": { "idk": { "trigger": "minecraft:consume_item", "conditions": { "item": { "items": "minecraft:echo_shard", "count": 1, "predicates": { "minecraft:custom_data": "{"custom_id": "warden_key"}" } } } } }, "requirements": [ [ "idk" ] ], "rewards": { "function": "warden_kingdom:key" }, "sends_telemetry_event": false }

any idea to make a portal I'm a beginner

Hello im just intrsted can i make a custom portals???

i need help to make a item that can teleport a player to a another dimension pls help I'm a beginner

i need a echo shard to right click and teleport to the custom dimension i made

Wath does the " * " mean? Commands

while I was coding I saw as a target selector a * does anyone know wath it does? (is it like @a only also offline people?)

How does the schedule command work? I'm a beginner, Commands

simply help me how can I revoke an advancement after 5 seconds

Wheat cant be bonemeal by a dispenser (behavior pack) I'm a beginner

im in bedrock 1.21.130, i just hope the js bedrock code is the same with java for this kind of scenario. Would appreciate any help

Recipes just not working Recipes

I literally tried everything to get these recipes to work...

datapack working with singleplayer but not with paper server I'm a beginner

Basically I have a function that teleports an entity and summons an entity but it sometimes works and sometimes doesn't, and sometimes it executes 3 times. i have no idea how to fix that, any ideas

Modified vanilla armors reduce instead of increase armor point Recipes, NBT/Components

I have modified vanilla iron armor set to give it slightly higher stats, however when fully equipped they seems to reduce armor point instead.

Scaffolding speed General, Commands

How can i make a player go faster through scaffolding, any attribuets I can change?

Breeze Rod that gives Blindness when held I'm a beginner, Commands

I've watched a lot of tutorials and have now been learning to code. I have vss code and everything, but I cant get it to work. I just want a gag breeze rod that makes you unable to move and blinds you, but has knockback 10.

Unable to make snow layers placeable on top of ice and packed ice Other

Hello. I'm trying to add ice and packed ice to the snow_layer_can_survive_on tag, with no success sadly. The image should show everything worth noting about the datapack I'm trying to use.

I need help getting a test biome/dimension to work in 1.21.10 Worldgen

Hello! I'm very new to creating data packs and I'm trying to get a grasp on more complex topics like worldgen.

I want to test out a custom biome just to see if I can even get it to work. Right now I have a folder structure that looks like this inside my "testbiome" datapack

data > testbiome > dimension > test_dimension.json

data > testbiome > worldgen > biome > test_biome.json

in the test_dimension.json file I have the code:

{ "type": "minecraft:overworld", "generator": { "type": "minecraft:noise", "settings": "minecraft:overworld", "biome_source": { "type": "minecraft:fixed", "biome": "testbiome:test_biome" } } }

In the test_biome.json file I have the code:

{ "has_precipitation": false, "temperature": 0.8, "downfall": 0.4, "effects": { "sky_color": 7907327, "fog_color": 12638463, "water_color": 4159204, "water_fog_color": 329011, "grass_color": 65280 }, "carvers": { "air": [], "liquid": [] }, "features": [], "creature_spawn_probability": 0.0, "spawners": {}, "spawn_costs": {} }

I thought this alone would be enough for me to create a custom dimension with different colored grass. However when I run the command

"/execute in testbiome:test_dimension run tp @s ~ ~ ~"

I get the error unknown dimension 'testbiome:test_dimension', even though I know the datapack is loaded and working (I loaded a test function and it is working).

So, if anyone with 1.21.10 worldgen experience could help me discover what I put incorrectly within the json files, or what I'm missing, I would really appreciate it. Thanks!

Feature generation at certain y levels Worldgen

recently, i have been working on a worldgn datapack. i wanted to have 2 types of trees: normal and windswept. The idea is that windswept trees generate above y = 128, and normal ones generate below y = 128. I cant get this to work though, as they just place in the air? i say this with a heavy heart, but at one point i even resorted to chatgpt, but it just made things worse. How can i get this to work?

I need help adding Raycasting to this O.S.C. datapack Other

If anyone can help me spawn the tnt above where I look instead of roughly where I look I would VERY much apreciate that

Is it possible to make another smithing table (with gui) I'm a beginner, General, Recipes

Hi. Im wondering if its possible for minecraft datapacks to make that. Another gui block like an smithing table.

I want make a second smithing table block like that has diff recipes from the smithing table. So is that possible guys?

Hey Guys, I remember there was this really cool minecraft particle generator General, Commands, NBT/Components, Other

So this is not exactly a question but its also a question so idk where to really ask it but 😭 I am making a datapack ||quite obviously || but to spice it up I was thinking of adding particles and I recall in the past, I used this website (which I found from this server) which generated particles in like proper shapes like spiral etc etc etc, a generator- based on graphing and stuff- NOW I FORGOT THE NAME šŸ’€ And been tryna search for it for like past 1 hour 😭 😭 if someone knows ab it can someone please tell

I remember it created like the whole mcfunction which had like an array of like tens or hundreds of particle commands on average and stuff to make it into a shape AH- I DONT REMEMBERRRR 😭

is it possible to give the Ice property to other blocks like stairs? I'm a beginner, Other

Wanting to make a stairs slippery but can't figure out how to do it I figured there has to be some way to do this but maybe it needs to be a mod or something

item durability change? Commands, NBT/Components

is it possible to combine the durability of an item with an scoreboard so that i made an rng score an add them with the durability and both gives a summ and thats the new durability

Detecting proper attacks Commands

hey, I am trying to make a wapon that triggers some effects, but I don't want the player to be spam click and abuse this effect. So I want it to apply only to hits with full hit bars (or whatever the name is). Is there a way to do that in 1.21.11-rc1?

methods of showing teammates Commands

I need a way for all people with the tag "Evil" to have some sort of visual indicator of their teammates. Non evil players should not be able to see this indicator. Same for other teams such as "Infected" or "Coven". Is there a clean and intuitive way to do this?

worldgen, custom biomes in a custom dimension I'm a beginner, Worldgen

hey i cant figure out how to make more than 2 biomes generate i am struggling w these parameters and i just cant figure this out

I wanna make specific features only spawn in certian biomes I'm a beginner, Worldgen

I am tinkering with molten vents (https://www.curseforge.com/minecraft/mc-mods/create-molten-vents) and I want to restrict the vents to certian biomes. I'd like to ask two questions:

1: How do I go about this?

2: Are their biome categories? For example, can I group all snowy biomes together?

Make hostiles passive to each other no matter the condition? I'm a beginner, Other

how would I make it where hostile mobs will not fight each other no matter what happens? Like a skeleton will not anger a zombie if it shot it. And would I have to edit each mob individually?

Creating a cooldown system Commands, NBT/Components

I know how to implement cooldown. The problem is that I have quite a lot of items. A gametime-based cooldown might be suitable for me, but I have problems handling the item in my left hand. How do I minimize the code for a single template item?

Custom Datapack Not Registering in Game I'm a beginner, Loot Tables, Recipes

My Datapack goals: Alters 5 mods. 4 of which are for mob loot tables (LT), and one which alters recipes (R). LT: Birds Nest - Overwrites existing pool to add an item from my own mod. Butchery - Overwrites an existing corpse's pool to include item referenced above. Exotic Birds - Overwrites existing pools to add an item from my own mod. Naturalist - Overwrites existing pools to add an item from my own mod.

R: Legendary Survival Overhaul - Adds two recipes for the mod's sewing table as alternatives to existing ones, which now uses my custom mod items

Extra Details: My custom modded items have different uses and are currently in their own separate mods

Future Plans: Similar loot table overwrites for Alex's Mobs, and to add loot tables entirely to the crows and penguins of Messenger Crow and World of Penguins respectively.

Potential for Release: Pending Approvals; My datapack will either release on its own, or be combined with the existing mods I have, to create a "one does all" effect.

hey how can i make a datapack that gives player OP I'm a beginner

i want to add to my friends server becouse it has another datapack that give special items that you can only get using the funcion command and i think its unfair that only he can use them #help

Custom loot tables not working on on mannequin entities I'm a beginner, Loot Tables, NBT/Components

I want to have the new mannequin entity to drop certain items from a loot table on my datapack, but when I summon the mannequin with the custom DeathLootTable set to the one in my datapack, the entity doesn't drop anything when killed. I've tested the loot table with a pig, and did drop as normal, so I think only mannequins are unable to drop items from a custom loot table. I've also tried summoning mannequins leashed so a post, but it did not work as well. Is there a way to modify the mannequin entity to be able to be leashed and have custom loot tables via my datapack?

World Gen docs request I'm a beginner

I cant find world gen docs for 1.21.10 could someone pls tell me in which versions changes in world gen occurred and gime some resources to learn from

my main goal is to make a end gen modification datapack

How can I use the XP bar as a mana bar in a datapack? I'm a beginner, Commands

I'm making a magic-themed datapack in Minecraft Java Edition (1.21.1), and I want to use the XP bar as a mana bar. I’m not sure how to control the XP bar correctly or how to link it with a scoreboard. If anyone knows a reliable way to: use XP levels or XP progress as a mana value update the XP bar based on a scoreboard reduce or increase mana during skills set a maximum mana value please tell me how to do it. Any examples or command snippets would be extremely helpful. Thanks in advance!

Trying to change a recipe and its doing nothing I'm a beginner, Recipes

Tried to remove the bookshelf and enchanting table recipe as well as change the tnt recipe, but its not changing anything in game

Set attribute to score Commands, NBT/Components

I need a command that sets the player's current score from a scoreboard to their scale attribute. I thought this was possible with '/execute store' but it doesn't seem to be

How can i detect that 3x3 area around player is Empty or not I'm a beginner, General

How can i detect that 5x5 area around player is Empty or not Without too many lines

execute as @a at @s positioned ~ ~ ~ unless block ~2 ~ ~ air run say BLOCK

Is there a way to disable item "bobbing"? Commands, NBT/Components

Whenever i modify item data the item "bobs" down and back up, which is kind of distracting. is there a way to change an item's components without this happening?

Removing a component from an item NBT/Components

I'm using the consumable component to make an item detect right clicks, but i need to disable it sometimes. Is there a way to remove specifically that component from the item?

Complex item recipes I'm a beginner, Recipes, NBT/Components

I had an idea to make the progression a bit harder for the minecraft server, opening the nether after a certain item is crafted, let's call it the orb.

The problem is, I want the orb to be crafted with 9 orb parts, which in turn require various vanilla items.

I know how to make a recipe for an orb part, but have no clue how to make the orb require the custom orb parts.

avoid data pack reload upon relog I'm a beginner, Commands

I set up this data pack for a challenge I'm doing where there's a 30 minute timer, and after it hit 30 minutes, I'd permit myself to obtain an advancement. And for a while, it worked exactly the way I wanted it to. However, somewhere along the way, something broke. One of the nice things I liked is that if I logged out and came back, it wouldn't reload and it would simply pick up from where it left off, so I could go into a creative world midway through and then come back a little later without it resetting. But now it doesn't do that. I suspect that now, relogging triggers the load function every time now. Is there a way for me to fix it?

Append nbt storage item, but using scoreboard data Commands, NBT/Components, Other

Hello, how can I get a scoreboard's score and put in into an nbt storage item? I'm looking for something like: data modify storage sbm1:storage inv_items append value {valve:1b,i:<scoreboard players get .inv_length saveData>}

Adding a Tag to an Existed Modded Biome I'm a beginner, Worldgen, NBT/Components

As the title shows, I want to add the #cobblemon:is_swamp tag to the biomesoplenty:wasteland biome, if I see an example how to do this I can use this as a base to add other tags to other biomes.

is there a way to remove the drowned spawn from ocean ruins? I'm a beginner, General, Worldgen, Other

I recently made a datapack where no overworld monsters can spawn naturally, but drowned keep spawning in oceans. Is there a way to remove that?

Multiblock structure not working General, Commands

No description

i forgot how the nbt for target was called I'm a beginner, General, Commands, NBT/Components

execute as @e[tag=GlobeInteract] at @s on target run data remove entity @s interaction version 1.21.10

How can I run a single command 1000 times? Commands

I want to use the summon tnt command 1000 times in a function is there another way instead of copy and paste the same command 1000 times? And is there a limit how many commands I can use in a single function?

How do i generate underwater structures? I'm a beginner, Worldgen

I have been reading the wiki trying to figure out how to generate structures underwater. Specifically I want to generate a structure underwater in a deep frozen ocean biome. but I can't seem to find a way to set it to do that.

Import JSON file into data storage I'm a beginner, General

Is it possible for me to put a .json in my datapack files and directly import that into data storage ingame?

Remove specific string from List in /data, without knowing where it is in said list Commands, NBT/Components, Other

I need to find a way to delete a specific string from a List stored in storage:"sbm1:storage", nbt:"inv_items". Problem is I don't know where it will be in the List nor what the List will look like at the moment, so I can't simply replace the whole List with a copy of itself minus the desired string.

Show List from storage in subtitle? Commands, NBT/Components, Other

I'm trying to make an inventory system that will utilize a list of strings (stored in storage) to determine which type of item is in which inventory spot.

I would like to have constant visual feedback on what is in this storage data, via the subtitle (since I can't put strings in scoreboard values), but I'm not sure how to do so.

I need something like... title @p subtitle (data get storage sbm1:storage inv_items)

Biome Music breaking my Minecraft world Other

I'm trying to add custom music to this biome, but when I try to join the world with it, Minecraft doesn't let me, because it can't find the sound file I specified. I don't know how to fix this...

The sound files are: assets/sbm1/sounds.json assets/sbm1/sounds/ambient_music.ogg

    "temperature": 0.8,
    "downfall": 0.4,
    "has_precipitation": true,
    "effects": {
        "sky_color": 0,
        "fog_color": 0,
        "water_color": 5303807,
        "water_fog_color": 5303807,
        "grass_color": 5620055,
        "foliage_color": 1879583,
        "music": [
            {
                "data": {
                    "sound": "sbm:ambient_music",
                    "max_delay": 0,
                    "min_delay": 1,
                    "replace_current_music": true
                },
                "weight": 1
            }
        ]
    },
    "spawners": {},
    "spawn_costs": {},
    "carvers": [],
    "features": []
}```
modify arrow damage? I'm a beginner

/summon arrow ~ ~ ~ {damage:0} how can I modify data of an arrow that already exists in a world to have 0 damage? I tried /data get but it doesn't show up in there

I'm working on my first datapack, but I have no idea what is going wrong I'm a beginner

It says its loaded if i do /datapack list but it doesnt work

I want to block players from mining under Y level 20 I'm a beginner, Other

do anyone want to help how to do this or have similar pack?

modify 1.21.8 to have caves until y0 Worldgen

Hi! I want to have the generation of 1.17 in caves with the new structures in adden. I've found this datapack but it makes some caves go into the void https://modrinth.com/datapack/no-generation-y?version=1.21.3

To be clear, in the surface I want the mountains and structures of the newer versions, in the caves I want the max height to be y0, to have the new structures and the deepslate

how to detect if any entity took damage? I'm a beginner, General

I basically want to detect if any entity took any damage (execute as @e) and if they did it'll run a function that damages them

how do i heal a skeleton horse with a command Commands

regen, instant health, instant damage and poison dont work (the harming potion works though)

summon command help I'm a beginner, General, Commands

execute as @s at @s align xz positioned ~0.5 ~ ~0.5 run summon armor_stand ~ ~1 ~

Which i use this command and summon armor stand [no gravity] then it does not spawn on a fixed y level of block [Y-cord.0]

detecting right and left click with one item I'm a beginner, General, Commands, NBT/Components

Im tryna make a portal gun, but rn its just about activating the raycast which i pretty much copied from the wiki. Ik how to do right click (with carrot on a stick for example, altho not sure if that is the best solution), but ive heard left click is not easy/possible to get, so if its not is there smth else thats practical and i can detect?

Bossbar help I'm a beginner, Commands, Optimisation

I want to set the bossbar value based on scoreboard whose value is between 1 to 100

to avoid this king of hardcore mess`

execute if entity @e[scores={progressPercent=0},tag=gz-a4-block] run bossbar set bossbar0 value 0
execute if entity @e[scores={progressPercent=1},tag=gz-a4-block] run bossbar set bossbar0 value 1
execute if entity @e[scores={progressPercent=2},tag=gz-a4-block] run bossbar set bossbar0 value 2
execute if entity @e[scores={progressPercent=3},tag=gz-a4-block] run bossbar set bossbar0 value 3
execute if entity @e[scores={progressPercent=4},tag=gz-a4-block] run bossbar set bossbar0 value 4```
How to detect cause of mob spawning Predicates, NBT/Components

Is there any way to detect how a mob was spawned? At the very least, just a way to detect if they were spawned naturally (as in just in the world, not from spawner blocks).

Hey! I am having issues with custom cave generation I'm a beginner, Worldgen

I am creating caves for a custom dimension in my datapack, but every cave below sea level is flooded with the default fluid and I am not sure how to fix this. From what I've read, it seems like aquifers may fix the issue, and I have aquifer generation set to true, but I do not know how to edit aquifer generation. If it makes a difference, the default fluid of my dimension is a solid block instead of water. This makes it look like cave generation completely stops below sea level like in the attached screenshot.

Dialog UI Help Other

Im trying to make the barrier in this dialog expand to fill the space. I told it to have a width of 128 and height of 128 but it just did this

How to make skeleton horses with skeletons on them spawn in soul sand valleys? Worldgen

i went to misode and then its biome generator and selected the preset soul sand valley but theres so many things in misode i dont know how to add a skeleton horse spawn

and when its done i dont know where to put it in my datapack, i assume in the minecraft folder just like how i overwritten a recipe but i dont know what to call the folder in the minecraft folder

Left click detection (in general) Commands

So I am trying to make a stealth system. Basically I will give a player invisibility but remove it when they do something involving left or right cliclking.

So eating food, or attacking with a weapon (regardless if they hit or not) removes the invisibility.

Any way to make this work? I looked at scoreboard paramters but there is only damage_dealt, which would only work when a player lands the hit.

Explorer map leading to custom structure 1.20.1 Loot Tables, Other

Salutations Tried adding a map that leads to a structure I created but the map is blank Used Misode's loot table generator

  "type": "minecraft:command",
  "pools": [
    {
      "rolls": 1,
      "entries": [
        {
          "type": "minecraft:item",
          "name": "minecraft:filled_map",
          "weight": 1,
          "functions": [
            {
              "function": "minecraft:exploration_map",
              "destination": "murderdrones:labs",
              "decoration": "banner_cyan",
              "zoom": 1,
              "skip_existing_chunks": false
            },
            {
              "function": "minecraft:set_lore",
              "lore": [
                "Cabin Fevel Labs Map"
              ]
            }
          ]
        }
      ]
    }
  ]
}```
how to make player take more damage by attacks I'm a beginner, General

so I'm trying to make a custom effect that makes the player take more damage whenever they get damaged by anything (falling, player attack, mobs attack, creeper. etc) and i was wondering if it was possible through attribute or not

Loop Help Commands

Currently trying to make a loop but it doesn't work properly

Roll1.mcfunction:

title @a times 0 140 0
execute as @a store result score @s lasttime.rolling run random value 8..30

#red
execute as @a[scores={lasttime.rolling=8}] run title @s title [{"color":"red","score":{"name":"@s","objective":"lasttime.rolling"}},{"color":"gray","text":" hours"}]

#yellow
execute as @a[scores={lasttime.rolling=9..16}] run title @s title [{"color":"yellow","score":{"name":"@s","objective":"lasttime.rolling"}},{"color":"gray","text":" hours"}]

#green
execute as @a[scores={lasttime.rolling=16..24}] run title @s title [{"color":"green","score":{"name":"@s","objective":"lasttime.rolling"}},{"color":"gray","text":" hours"}]

#dark green
execute as @a[scores={lasttime.rolling=24..}] run title @s title [{"color":"dark_green","score":{"name":"@s","objective":"lasttime.rolling"}},{"color":"gray","text":" hours"}]

#scheduling
execute if score scroll lasttime.count1 <= 50 lasttime.count1 run function lasttime:rolling/roll2
execute if score scroll lasttime.count1 <= 66 lasttime.count1 run schedule function lasttime:rolling/roll2 15t
execute if score scroll lasttime.count1 <= 85 lasttime.count1 run schedule function lasttime:rolling/roll2 1.5s
execute if score scroll lasttime.count1 <= 95 lasttime.count1 run schedule function lasttime:rolling/result 5s

#misc
execute at @s run playsound ui.button.click master @s ~ ~ ~
scoreboard players add scroll lasttime.count1 1

roll2.mcfunction

title @a times 0 140 0
execute as @a store result score @s lasttime.rolling run random value 8..30

#red
execute as @a[scores={lasttime.rolling=8}] run title @s title [{"color":"red","score":{"name":"@s","objective":"lasttime.rolling"}},{"color":"gray","text":" hours"}]

#yellow
execute as @a[scores={lasttime.rolling=9..16}] run title @s title [{"color":"yellow","score":{"name":"@s","objective":"lasttime.rolling"}},{"color":"gray","text":" hours"}]

#green
execute as @a[scores={lasttime.rolling=16..24}] run title @s title [{"color":"green","score":{"name":"@s","objective":"lasttime.rolling"}},{"color":"gray","text":" hours"}]

#dark green
execute as @a[scores={lasttime.rolling=24..}] run title @s title [{"color":"dark_green","score":{"name":"@s","objective":"lasttime.rolling"}},{"color":"gray","text":" hours"}]

#scheduling
execute if score scroll lasttime.count1 <= 50 lasttime.count1 run function lasttime:rolling/roll2
execute if score scroll lasttime.count1 <= 66 lasttime.count1 run schedule function lasttime:rolling/roll2 15t
execute if score scroll lasttime.count1 <= 85 lasttime.count1 run schedule function lasttime:rolling/roll2 1.5s
execute if score scroll lasttime.count1 <= 95 lasttime.count1 run schedule function lasttime:rolling/result 5s

#misc
execute at @s run playsound ui.button.click master @s ~ ~ ~
scoreboard players add scroll lasttime.count1 1

Currently don't have anything in result but my problem is that it doesn't slow down and for some reason, the scoreboard is showing in game but the "player" scroll isn't gaining anything

My nbt seems to be wrong 1.21.10 I'm a beginner, Commands, NBT/Components

nbt={SelectedItem:{id:"minecraft:diamond_pickaxe",count:1,components:{"minecraft:enchantments":{"silk_touch":1}}}}

How to check the armor trim pattern and its material? I'm a beginner, General, Commands

I am trying to make a datapack for version 1.21.10, where trims give powers (trim type = power, material = additional power boost), but after like 2 hours of research I have found nothing. I need to run a function if someone has this trim. Please, help. (I question other people only if I will never find an answer without them.)

my command isnt running V1.21.10 and i dont know why I'm a beginner, General, Commands, NBT/Components

execute as @e[tag=LB] at @s if entity @e[type=item,distance=..2,nbt={Item:{id:"minecraft:diamond_pickaxe",count:1,components:{"minecraft:enchantments":{"silk_touch":1}}}}] run setblock ~ ~1 ~ air

another problem with my Miku beam function I'm a beginner, Commands, Advancements

i recently made a post to fix my advancement not being detected but now, coding a bamboo stick to set a cooldown to it broke the advancement detecting it. sorry for bad English

No Stacking Potions NBT/Components, Updating, Other

This datapack made by AuraAcorn have many different features which my server members love but there's one that no one likes and is very glitchy , Stacking drinkable Potions to 16 I tried to examine the datapack to see where the code for it was kept , but failed , now I mostly find what I want in datapacks but this datapack is just a huge web of features , here's the datapack , now I know this is not the correct use of this channel but I need help plz

Possible to stop random rotation of structure when placed? Commands

As the title says, is it possible to stop my structure from rotating when placed? say if i want it to face a specific direction or even consistently face any one direction every time it is placed.

Curiosity: Change Loot table based on condition General

Can you change the loot table of a mob based on them being affected by a potion effect? For example, a cow that is poisoned will drop rotten flesh instead of beef.

Works In Singleplayer/Lan but not server Commands

I have a grave mechanic for a minigame that for some reason does not work properly on a server. Any ideas on a fix? Some parts of the code may not be relavent but im including them just in case Code found in seperate message cause character limit

Sorry this is a mess but I cant figure it out (This has been an issue for months)

Sup, how to get back into this stuff? I'm a beginner

I've quit datapack development a few years ago. I am only remember the stuff in 1.16. I know that macros, item modifiers, click detections and (not sure) player movement modification had been added in the new updates. Any suggestions/sources to catch up with the new stuff? I wanna make a pack now that I have the time.

How can I get the data from equipment.mainhand? General, Commands, NBT/Components

I know that SelectedItem exists, but I'm wondering how to get the data from equipment.mainhand, because the mannequin has equipment.mainhand, but for some reason the player still uses SelectedItem

Clear all items except with mending Commands

Hello guys, in another post i asked something similiar.

I have this command:

/clear @s *[!minecraft:enchantments~[{"minecraft:mending":1}]]

but in reality it clears all items except enchanted ones, but enchanted with any enchantment, Infinity, Power, Unbreaking, etc...

Am I missing something?

Predicate in item components? Commands

Hello guys, i want to clear all items without mending /clear @s *[!minecraft:enchantments={"minecraft:mending":1}] and that command works, but if the item have more enchantments like unbreaking, the item is cleared, how can i solve this?

Movement via Raycasting Other

Let's say wither storm want to suck u up , now can I make it so that the wither storm head will cast a ray at the entity and the entity will fly towards the head in the angle the ray was casted , is it possible as I wanna make crackers wither storm mod but as a datapack:))

how to add custom items to smithing transform recipe I'm a beginner, Recipes

how do i add a custom item if it has the same id as another item?

Finding and teleporting players to Structures Commands

Any idea's as to the best/most performance friendly way of finding a structure, check if a player is near that structure, and if there isnt a player there to teleport the player that triggered this function to that structure?

I'm new to this and some of my idea's may not work, but i'm trying what I can.. this takes place in a custom dimension that consists only of the custom structure, placed very frequently.

Currently considering teleporting the player randomly then searching for the nearby structure, saving the coords, check for another player near those coords within a radius, if no player is there it teleports them to it

or

1 structure is generated, and on load it detects that structures coords, then uses the place command to place as many as i need at a set distance from one another. Each structure coords would be known then and can search for players nearby

teleport between dimensions General, Commands

Hi there How do I teleport from Marker A in ex. overworld, to Marker B in ex. the end?

how can I execute operations on scoreboards with a number rather than a scoreboard General, Commands

so basically scoreboard players operation @s scoreboard_name *= 2

problems creating a datapack Commands

Hi, I'm new to creating datapacks and I have no idea how to create one. I asked chatgpt to help me make one, but Minecraft doesn't detect it. I don't know if anyone could help me.

spreadplayers command I'm a beginner, Commands

i wanna spread players within a specific Y level (between 120 and 145), but i can only choose under specific y level

$polymer:stack I'm a beginner, Other

In my server console I have this error message:

[01:27:54] [Netty Epoll Server IO #4/ERROR]: Failed to read value ({chickensfish:{rarity:0b}}): No key $polymer:stack in MapLike[{chickensfish:{rarity:0b}}]

This triggers every time I pick up an item with my custom data on it. This is an example of how my data is applied in a loot table in my datapack 'chickensfish':

{
              "function": "minecraft:set_components",
              "components": {
                "minecraft:custom_data": {
                  "chickensfish": {"rarity": 0}
                }
              }
            }

Is there anything I can do to prevent this error message?

my items are removed from my hand. I'm a beginner, Updating

No description

Why aren't my command blocks working but my other ones are? I'm a beginner, Commands, Other

I have some custom weapons, and they are loaded with pearls and forceload, but only one works. The other one doesnt for some reason, and only works when loaded by players. The one that doesnt work uses scoreboard/etc so maybe thats the issue? Please ping me here if you would be down to help me fix it, I can let you onto the server and show you the exact cmd blocks.

Pottery sherd loot table Loot Tables, Recipes

Hi there I'm making a datapack, and need blocks that can be used for custom recipes. Only issue is, i've run out. So I was thinking of removing pottery-sherds in their entirety (since no one uses them). So that they won't drop from any item, won't spawn in any chest etc. How would one go about this?

loot table of an armorstand Loot Tables

How can I make it so if an armorstand has arms, if it gets destroyed he keeps the ShowArms Tag. I changed the armorstand loot table in the minecraft folder in my datapack and it drops 2 armorstands both without the show arms tag: my loottable: { "type": "minecraft:entity", "pools": [ { "rolls": 1, "bonus_rolls": 0, "entries": [ { "type": "minecraft:item", "name": "minecraft:armor_stand", "functions": [ { "function": "minecraft:copy_components", "source": "this", "include": [ "minecraft:entity_data" ] } ] } ] } ] }

Advancment help I'm a beginner, General, Advancements

I want to create two advancements

1st whcih grants when a palyer walks 10 blokcs on any block 2nd which grants when a player tries to sleep in the nether [ie he right cliks on bed]

Trying to get a place feature to happen from jigsaw block Worldgen, NBT/Components

So basically im tring to have my structure extend its pillar to the first solid block hit.

So far I have the following setup:

template_pool/fortress/pillar.json { "name": "betterstructures:fortress/pillar", "fallback": "betterstructures:fortress/pillar", "elements": [ { "weight": 1, "element": { "element_type": "minecraft:feature_pool_element", "feature": "betterstructures:fortress/pillar", "projection": "rigid" } } ] }

placed_feature/fortress/pillar: { "feature": "betterstructures:fortress/pillar", "placement": [] }

configgured_feature/fortress/pillar: { "type": "minecraft:block_column", "config": { "direction": "down", "allowed_placement": { "type": "minecraft:matching_blocks", "blocks": ["minecraft:air"] }, "prioritize_tip": false, "layers": [ { "height": 64, "provider": { "type": "minecraft:weighted_state_provider", "entries": [ { "weight": 10, "data": { "Name": "minecraft:blackstone" } } ] } } ] } }

I included screenshots to show the jigsaw setup.

Also running /place feature betterstructures:fortress/pillar in game does function properly although it does stop 1 block before hitting the floor for some reason.

I hope this is clear, some help would really be appreciated.

Have a random number generator affect the amount of lives each individual player has. 1.16.4 I'm a beginner, General

I'm looking to assign a value between 2-6 to a lives scoreboard I have set up. I don't have access to the random command, and am currently using an overflow method for PRNG. I have gotten the RNG to work, but it applies to either one player, or the same value to all players. I'm looking for different values for each player.

Function argument as scoreboard reference Commands, Other

No description

Using Terralith Biomes in my loot table Predicates, Loot Tables

I am using the "minecraft:location_check" condition and would love to know if there is any way I could make it compatible with terralith biomes?

  "type": "minecraft:fishing",
  "random_sequence": "minecraft:gameplay/fishing",
  "pools": [
    {
      "bonus_rolls": 0.0,
      "entries": [
        {
          "type": "minecraft:loot_table",
          "conditions": [
            {
              "condition": "minecraft:location_check",
              "predicate": {
                "biomes": [
                    "minecraft:badlands",
                    "minecraft:wooded_badlands",
                    "minecraft:eroded_badlands"
                ]
              }
            }
          ],
          "value": "chickensfish:badlands/root",
          "weight": 1
        },

As soon as I add terralith:ancient_sands to the list, the loot table, no longer works : (

Loading more...