View Help Posts from our Discord server:
Join our Discord server to view them: Datapack Hub Discord
Prevent using enderchest for specific items? I'm a beginner, Commands Hi, i am making a SMP and i want to have the dragonegg reachable for everyone.
How can I prevent players from putting a dragonegg in their enderchest?Specific entity selection Commands I'm trying to select a random armor stand to move to for a maze generator. Right now I'm running into the issue where it's able to select an armor stand at a diagonal or the second floor up.
execute at @s as @e[type=minecraft:armor_stand,tag=node,tag=!visited,distance=3.5..8,sort=random,limit=1] store success storage maze Return int 1 run function boc_structures:maze_forward
This is the currently line of code that's trying to select the next armor stand to go toHey, I need help with a Datapack Crafting Recipe! I'm a beginner, Recipes I'm trying to see if I can make a custom recipe that when the item is crafted, removes the crafted item and runs this command:
give @s echo_shard[custom_name=[{"text":"Court Glass","italic":false,"color":"aqua"}],lore=[[{"text":"A Powerful Relic created by The Judge to summon his Horde.","italic":false,"color":"aqua"}]],rarity=epic,enchantment_glint_override=true,attribute_modifiers=[{type:armor,amount:30,slot:offhand,operation:add_value,id:"1752538665237"},{type:armor_toughness,amount:20,slot:offhand,operation:add_value,id:"1752538665238"},{type:max_health,amount:40,slot:offhand,operation:add_value,id:"1752538665239"}],food={nutrition:0,saturation:0,can_always_eat:1b},consumable={consume_seconds:1000000,animation:spyglass,has_consume_particles:0b},unbreakable={},tooltip_display={hidden_components:[enchantments,unbreakable]},custom_data={"heroic":"court_glass"}]Hey, I need help with a Datapack! I'm a beginner, Commands I'm trying to create a datapack that makes an item named Judge's Emblem give regeneration to someone within 5 blocks as long as they have the team "Judge" and I can't figure it out.Advancement Count on corner of advancements? I'm a beginner, Advancements Hello, I want to make an advancement have a count thing on the corner of it(I'm not sure what to call it), but I'm not sure how to do that. I'm assuming it has something to do with the requirement but I've never used that component so any help would be appreciated. Thanks! (btw I would like the number as a score)Wanting To Change Husk Spawning Conditions I'm a beginner, Predicates, Worldgen I've made a post similar to this earlier, however, I wanted to keep this all in one place here. I want to change how Husks spawn on the SMP I play on. One of the solutions I came up with is changing the fact that husks can spawn in desert pyramids, the problem is that I never noticed how small desert pyramids really were, so even though it is still an option I think I want to do something better. Just allowing Husks to spawn in the desert no matter what, as in Husks can spawn in if there are blocks above it and if the block isn't sand. I have already figured out how to make them drop sand, but I would like change this other feature. Please provide guidance in this matter; I know this is a significant request. Thank you so much for all the help I've received and will receive.Error in loot table and world gen data I'm a beginner, Loot Tables, Worldgen I'm attempting to make sand renewable by modifying husk loot tables and allowing them to spawn in pyramid structure boxes, similar to guardians; however, neither approach is working. This is part of a datapack making more things renewable, so I am trying to make it so if husks get killed by a skeleton they drop the relic disc. I don't know what I've done wrong, however.
,fake player combat system Predicates i want to simulate player combat, this means i need to detect when a player hurts another player and get the exact damage they have been dealt, store the last hitter, etc.. without actually killing players (so after being hurt i will apply the instant health effect) im on v 1.21.7In need of help regarding an advancement based datapack I'm a beginner, Advancements Hello, im trying to make a datapack for my server where,(where players have lives, each player has 2 lives) when a player dies to mobs, they can respawn fine and dont lose nothing , if they die to other players, they lose a life and if they die to players again, they die forevr.
my datapack seems to not work π¦Attribute modifiers on armor override other armor pieces when applied via Smithing Table I'm a beginner, Recipes So I wanted to make netherite armor more OP for endgame and added attribute modifiers like maxHP, safe fall distance, more armor and so on.
Equipping any piece gives me the correct stats but equipping another piece only gives me stats from that piece but not the combined values.
The recipes for every armor piece look like this:
{ "type": "minecraft:smithing_transform", "base": "minecraft:netherite_chestplate", "addition": [ "minecraft:dragon_egg" ], "template": "minecraft:dragon_breath", "result": { "id": "minecraft:netherite_chestplate", "components": { "minecraft:unbreakable": {}, "minecraft:custom_data": { "holy": true }, "minecraft:attribute_modifiers": [ { "type": "minecraft:armor", "id": "stolz:holy", "amount": 8.5, "operation": "add_value", "slot": "chest" }, { "type": "minecraft:armor_toughness", "id": "stolz:holy", "amount": 3, "operation": "add_value", "slot": "chest" }, { "type": "minecraft:knockback_resistance", "id": "stolz:holy", "amount": 0.1, "operation": "add_value", "slot": "chest" }, { "type": "minecraft:max_health", "id": "stolz:holy", "amount": 5, "operation": "add_value", "slot": "chest" }, { "type": "minecraft:burning_time", "id": "stolz:holy", "amount": -0.2, "operation": "add_multiplied_base", "slot": "chest" }, { "type": "minecraft:fall_damage_multiplier", "id": "stolz:holy", "amount": -0.1, "operation": "add_multiplied_base", "slot": "chest" } ], "minecraft:stored_enchantments": { "stolz:protection_plus": 1 } }, "count": 1 } }
Scoreboard not working I'm a beginner, General, Commands I wanted to make a scoreboard where when you mine a block(for example dirt) it adds one score to the scoreboard, but when I tested it using the minecraft.broken:minecraft.dirt criteria and it failed to work. Then I tried the minecraft.mined:minecraft.dirt criteria and it still did not work. I tried it on a fresh world and I'm not sure what the problem is. Thanks!what are these blocks? (Test Blocks) What they do? I'm a beginner, General, Commands, Other A way to Apply Item Modifier with a Recipe Recipes Is there a way to apply an Item Modifier with a Recipe?How Do I Detect if the Player is Looking At an Entity? I'm a beginner, Commands Like the title says, I've already got a command, but I'm not sure how to give it a range limit. The command is:
execute as @a at @s positioned ^ ^ ^-1 facing entity @e[tag=Look] eyes positioned ^ ^ ^1 if entity @s[distance=..1] run title @s actionbar "This Works!"
Advancement not running Advancements I have a probelm, tha advancement that I want to use for my project, doesn't run for everything, it detects most blocks that I need, but not these:
calibrated sculk sensor,
sculk shreecker,
bell,
deepslate wall.
I don't know what to do! My knowledge of advancements is very limited
json { "criteria": { "placed_block": { "trigger": "minecraft:placed_block", "conditions": { "blocks": [ "minecraft:calibrated_sculk_sensor", "minecraft:sculk_shrieker", "minecraft:bell", "minecraft:deepslate_wall" ] } } }, "rewards": { "function": "e:util/unit/raycast/advancement_trigger" } }
/playsound Commands, Other is it possible to play a sound that is not tied to a location and can be heard in a specific area? if not, can it be heard further away from its anchor point?Execute if entity is there is always coming back as true when no player is around. Commands execute positioned -1552 48 -1376 if entity @e[type=minecraft:elder_guardian,distance=..40] run scoreboard players set #monument cleared 0 execute positioned -1552 48 -1376 unless entity @e[type=minecraft:elder_guardian,distance=..40] run scoreboard players set #monument cleared 1 execute if score #monument cleared matches 0 run say Β§cThe Monument has not been cleared. execute if score #monument cleared matches 1 run say Β§aThe Monument has cleared.
This is my code. I'm force loading the area before I run these checks, but somehow it's being able to run the first command despite there clearly being 3 elder guardian's in the area.entity death trigger command Commands Is it possible to summon specific mobs that when they die, they trigger a command/function?
I'm hoping this is possible to not have to check every tick whether or not certain mobs are alive.Can too many operations or scoreboards cause lag? I'm a beginner, Commands I'm about to write about 960 commands on adding ~975 scoreboards all to one so I just want to be safe. Thanks!1.20.6 Aternos Fabric Datapack I'm a beginner, Other I downloaded a datapack that supposedly converts rotten flesh to leather for use on my 1.20.6 Aternos server, and for some reason it doesn't seem to work and I wanted to troubleshoot it
Is there a certain way i should edit the json files or something to make it work?
Datapack: https://modrinth.com/datapack/rotten-flesh-to-leather
Here was the log relevant to it:
[main/ERROR]: Parsing error loading recipe crafting:browndye_smelt com.google.gson.JsonParseException: Not a JSON object: "minecraft:brown_dye" at knot/com.mojang.serialization.DataResult$Error.getOrThrow(DataResult.java:275) ~[datafixerupper-7.0.14.jar:?] at knot/net.minecraft.class_1863.method_20705(class_1863.java:62) ~[server-intermediary.jar:?] at knot/net.minecraft.class_1863.method_18788(class_1863.java:35) ~[server-intermediary.jar:?] at knot/net.minecraft.class_4080.method_18790(class_4080.java:13) ~[server-intermediary.jar:?] at java.base/java.util.concurrent.CompletableFuture$UniAccept.tryFire(CompletableFuture.java:718) ~[?:?] at java.base/java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:482) ~[?:?] at knot/net.minecraft.class_4014.method_18365(class_4014.java:69) ~[server-intermediary.jar:?] at knot/net.minecraft.class_156.method_43498(class_156.java:993) [server-intermediary.jar:?] at knot/net.minecraft.class_156.method_43499(class_156.java:981) [server-intermediary.jar:?] at knot/net.minecraft.server.Main.main(Main.java:182) [server-intermediary.jar:?] at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:480) [fabric-loader-0.16.14.jar:?] at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74) [fabric-loader-0.16.14.jar:?] at net.fabricmc.loader.impl.launch.knot.KnotServer.main(KnotServer.java:23) [fabric-loader-0.16.14.jar:?] at net.fabricmc.loader.impl.launch.server.FabricServerLauncher.main(FabricServerLauncher.java:69) [fabric-loader-0.16.14.jar:?] [main/ERROR]: Parsing error loading recipe crafting:leather_smoke com.google.gson.JsonParseException: Not a JSON object: "minecraft:leather" at knot/com.mojang.serialization.DataResult$Error.getOrThrow(DataResult.java:275) ~[datafixerupper-7.0.14.jar:?] at knot/net.minecraft.class_1863.method_20705(class_1863.java:62) ~[server-intermediary.jar:?] at knot/net.minecraft.class_1863.method_18788(class_1863.java:35) ~[server-intermediary.jar:?] at knot/net.minecraft.class_4080.method_18790(class_4080.java:13) ~[server-intermediary.jar:?] at java.base/java.util.concurrent.CompletableFuture$UniAccept.tryFire(CompletableFuture.java:718) ~[?:?] at java.base/java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:482) ~[?:?] at knot/net.minecraft.class_4014.method_18365(class_4014.java:69) ~[server-intermediary.jar:?] at knot/net.minecraft.class_156.method_43498(class_156.java:993) [server-intermediary.jar:?] at knot/net.minecraft.class_156.method_43499(class_156.java:981) [server-intermediary.jar:?] at knot/net.minecraft.server.Main.main(Main.java:182) [server-intermediary.jar:?] at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:480) [fabric-loader-0.16.14.jar:?] at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74) [fabric-loader-0.16.14.jar:?] at net.fabricmc.loader.impl.launch.knot.KnotServer.main(KnotServer.java:23) [fabric-loader-0.16.14.jar:?] at net.fabricmc.loader.impl.launch.server.FabricServerLauncher.main(FabricServerLauncher.java:69) [fabric-loader-0.16.14.jar:?]
How performant are Macros if you supply the data from a controlled Storage that only has bare min Commands, Optimisation That is the entire question, in the title.How to schedule a function while retaining context? Commands, NBT/Components I'm making a waypoint datapack that uses end gateways to acheive teleportation. When the player wants to teleport, the datapack spawns a gateway above them, sets its destination nbt data to that of the players stored waypoint, and then teleports the player into the gateway. the problem im having is destroying the portal after teleportation. if i add a line to destroy the portal in the same function that creates it then the player is not teleported. but if i try to schedule it to be broken a second later it also doesnt work. i think this is because when you schedule a function it is run at world spawn? heres the logic for creating the gateway:
tp ~ 100.5 ~ setblock ~ 100 ~ minecraft:end_gateway{exit_portal: [I; 0, 0, 0], ExactTeleport:1b} execute store result block ~ 100 ~ exit_portal[0] int 1 run data get storage cords X execute store result block ~ 100 ~ exit_portal[1] int 1 run data get storage cords Y execute store result block ~ 100 ~ exit_portal[2] int 1 run data get storage cords Z
Forcleoad General When forceloading, how many ticks is the place loadedexample datapack for spawning a structure at a fixed location I'm a beginner Does someone have a data pack that spawns a saved structure at a fixed location? I need some kind of example as a starting point to further develop.Trying to make a loottable with raw NBT data. I'm a beginner, Loot Tables, NBT/Components I made a bunch of custom items via command blocks. For example:
give @p iron_chestplate[custom_name=[{"text":"ΙͺΚα΄Ι΄ α΄Κα΄Ρα΄α΄Κα΄α΄α΄","italic":false,"bold":true,"color":"white"},{"text":" ","italic":false,"bold":true,"color":"yellow"},{"text":"β","italic":false,"color":"gray"}],lore=[[{"text":"α΄α΄α΄α΄α΄Ι΄ α΄Κα΄Ρα΄α΄Κα΄α΄α΄","bold":true,"color":"gray"}],[{"text":"α΄Κα΄α΄α΄α΄α΄Ιͺα΄Ι΄ ΙͺΙͺ","bold":true,"color":"light_purple"}]],enchantment_glint_override=false,enchantments={protection:2},tooltip_display={hidden_components:[enchantments]}]
I want to convert this over to a loottable so I can roll this items randomly, but so far I have been having difficulty. I would really prefer to use the raw NBT data above over manually re-doing everything, as I have about 20 items like this that I would also need to translate over.
In the end, if I need to reformat it I will, but I wanted to see if the knowledgeable people in this server could help alleviate my issue. Thanks for reading!shulker box recipe I'm a beginner, Recipes i want to make a new recipefor the shulker box
d d d
d w d
d d d
d=dye
w=wool
i want to do it with every color.
i tried to do it with chatgpt as this is the first time for me to try something like that. i play on 1.21 java with fabric, also i play the norisk client if that changes something. the datapack i made with chatgpt is in the list (screenshot) but its gray and not working. if it helps i can send you the files. if you need more screenshots or more info feel free to askIs there a way to run the setblock command as if you placed the block yourself I'm a beginner, Commands without needing a lot of if block
checks.
(With setblock normally)How do I allow blocks/buttons to be placed in adventure mode? (1.21.7) I'm a beginner, Commands I have checked many reddit posts and after copy and pasting the commands to check it doesn't work? Did Minecraft change anything?Checking how many blocks broken I'm a beginner, Advancements Hi there! It's been a while since I've written datapacks, and I'm hoping to create one that gives an advancement when the player breaks a certain number of blocks as a milestone. I appreciate any help!Periodically check I'm a beginner, Optimisation I'm trying to make sure my datapack is as light as possible on the server and not have it checking every tick. How would I go about having it only check for certain conditions periodically instead of every tick?Regenerating Structures Commands I'm trying to generate an Ocean Monument in a fixed location, however each time I generate it I want the Monument to be different from the last.
I tried usingboth the place command /place structure monument
and using Jigsaw blocks, but both methods generate the exact same structure each time.
Can someone point me in the right direction of how I can solve this?Sus Stew Randomization I'm a beginner, Commands Is there a way to randomize what attribute is given by a summoned sus stew without creating a loot table of all the sus stews for the command to call from?Custom action in text component Updating Hi there π
As i updated my minigames on 1.21.7, i saw this new tip (screen). I don't really understand what it means (if theses "custom events" are datapacks ones, modded, etc.) or if it could be interesting for my games, could someone give me some examples or complete explanation for this ?
Just for information, as i'm non english native, i don't understand the "payload" concept in this case even after traductionHow to check for custom_data for ingridients in custom recipe Commands, Recipes, NBT/Components Basically what i want is to check if an echo shard used in crafting recipe has custom data, and i don`t understand how to do it. I can already output an item with custom data as a crafting result, but i don't understand how to check if inputted item has custom datais there a way to induce the powdered snow gradient on a player with commands? Commands i want to use it for a datapackHow to generate a cod spawner give command ? I'm a beginner, Commands, NBT/Components I tried this but I don't know how it's work : /minecraft:give crizyx minecraft:spawner[minecraft:block_entity_data={SpawnData:{entity:{id:"minecraft:cod"}}}]
how can i prevent item destruction in a custom ui? Other i made a custom ui checking if a slot in the chest minecart has a certain item with a custom data in it and if not, replacing it with the item(execute unless data entity @e[limit=1,type=chest_minecart,tag=forge_ui] {Items:[{Slot:0b,id:"minecraft:stick",tag:forge_ui}]} run item replace entity @e[type=chest_minecart,tag=forge_ui,limit=1] container.0 with stick[custom_data={forge_ui:1},item_model="namespace:empty"])
and then clearing any item that has that custom data from all player. the problem is that if a player has an item in the cursor spot and they click on one of these items, it'll get replaced with the stick. how do i prevent that? i thought of storing the uuid of the player opening the chest along with the components, id, and count of the item in that slot and then giving an item with the same components, id, and count to the player using the uuid but i cant store strings in storage and i dont want to store every possible component path for every possible slot. anyone got a more elegant solution?How do you display easily changible text in an actionbar? I'm a beginner I want to display something I can treat as a variable that I can set to strings. I originally thought of storage but I don't know how to display itWay to change a player crouching size in minecraft General, Advancements, NBT/Components Without affecting normal size, and if it uses an advancement to check, it must be instantaneous (I don't want clunky and noticeable growth. I basically just want to remove crouching from the game, but keep it as a feature for toggling stuff)Advancement Making Not Working Advancements I am making a small little datapack, I haven't made one in a while so I'm testing some things out and teaching myself again. For some reason though this advancement in tdp/advancements/test/root.json isn't loading, but everything else is. Could I have some help? What should be happening is when you kill a cow you get this achievement, but I have tried several things and it doesn't work.Trial Vault Not Activating When Genrated I'm a beginner, General, Loot Tables, Worldgen Sorry this is my 3rd post in a short amount of time, In the world which i create my structures in i can /place my trial_outpost structure and the trial vault works like normal. But if i copy and paste the exaxt same data pack into a new world then the vaults wont generate loot.
/setblock ~ ~1 ~ minecraft:vault{config:{key_item:{id:"minecraft:trial_key",count:1},loot_table:"extraloot:trial_outpost/outpost_vault"}}
First Photo is /data get block from a /placed structure in the world where I create the structures (These Vaults Work)
Secound Photo is /data get block from a / placed structure in a new world (These Vaults dont work)Make Cows Attack Players Commands, NBT/Components Hello, I am trying to make a data pack that makes cows attack players, but I can't figure out a way to make passive mobs hostile. I tried using this command: /damage @s 1 minecraft:mob_attack by @e[type=cow, limit=1, sort=nearest] from @e[type=cow, limit=1, sort=nearest] but it just immediately damaged me instead of the cow targeting meTrial Spawner Loot Table [1.21.5] I'm a beginner, Commands, Loot Tables The Command to place the spawner I'm using is
setblock ~ ~1 ~ trial_spawner{normal_config:{loot_tables_to_eject:["extraloot:trial_outpost/outpost_spawner"]}}
My Spawner Loot Table is
{ "type": "minecraft:chest", "pools": [ { "rolls": 1, "entries": [ { "type": "minecraft:item", "name": "minecraft:trial_key", "weight": 1, "functions": [] } ] } ] }
The Spawner Drops Nothing Does Anyone Know why?Advancement Background (1.21) Advancements The background for my custom advancements just doesn't work.
It's just a minecraft texture file, not any custom texutre file so I don't know what's wrong.Problem with converting datapack folder to .Zip file. I'm a beginner, Recipes I'm having a problem with converting the file of my datapack in a .zip file so I can publish it on planet Minecraft. the problem is that the datapack works fine when it's a folder, but it does not work at all once, I turn it into a .zip file. It won't go in in the datapack section in the create world part and once I drag it into the datapack section of the files and play it does not work ether. It looks like its a problem with the metadata.Custom Craftings Issue Recipes I'm making a datapack for my server with friends and I wanted to make the diamond and netherite stuff harder to craft, so i started making custom recipes.
I figured out how to replace vanilla craftings and how to make my own replacing them, but here comes the issue.
Some of my recipes work and some don't and I have no idea why this is happening.
The diamond_shovel works in-game no problem, but the pickaxe doesn't work (it isn't because of the abc diamond_blocks, Even if it was all one letter it still doesn't work)
The thing is diamond_sword and diamond_boots work just fine, so I'm not sure but it's maybe of the letters in pattern touching? because it also doesnt work with axe or hoe when I tried
Version 1.21Lists in data NBT/Components, Other So I have a list in an item, I can get it with /data which returns [1,2,3] how would I get a certain value in that list from a numberTag system I'm a beginner, General, Commands For context I am in version 1.20.1
I am looking to make a tag system using command blocks where 1 or multiple players are set as taggers and they can run around and hit runners making them into taggers and the tagger that got the runner back into a runner. What would be the best way of going about this and making it function with primarily command blocks?Jigsaw wont generate road from town center I'm a beginner, General, Worldgen, Other Im not sure why the town center jigsaw wont spawn a road
My roads template pool is
{ "name": "builds:testvillage/roads", "fallback": "minecraft:empty", "elements": [ { "weight": 1, "element": { "element_type": "minecraft:single_pool_element", "projection": "terrain_matching", "location": "builds:testvillage/roads/straight", "processors": "minecraft:empty" } } ] }
My Village Structure File is
{ "type": "minecraft:jigsaw", "biomes": [ "minecraft:plains" ], "step": "surface_structures", "terrain_adaptation": "none", "spawn_overrides": {}, "start_pool": "builds:testvillage/towncenters", "size": 10, "start_height": { "absolute": 0 }, "project_start_to_heightmap": "WORLD_SURFACE_WG", "max_distance_from_center": 1, "use_expansion_hack": false, "pool_aliases": [] }
My Town Centers Template Pool is
{ "name": "builds:testvillage/towncenters", "fallback": "minecraft:empty", "elements": [ { "weight": 1, "element": { "element_type": "minecraft:single_pool_element", "projection": "rigid", "location": "builds:testvillage/towncenters/center_tree", "processors": "minecraft:empty" } } ] }
My Files are set up
data βββ builds βββ structure β βββ testvillage β βββ roads β β βββ straight.nbt β βββ towncenters β βββ center_tree.nbt βββ worldgen βββ structure β βββ testvillage.json βββ structure_set β βββ testvillage.json βββ template_pool βββ testvillage βββ roads.json βββ towncenters.json
How to set entity motion from scoreboard value? I'm a beginner, General, Commands i tried this but its not working:
execute store result entity @s Motion[0] int 1000 run scoreboard players get @s MotionX
(it is called as a bat not player and MotionX is not 0)How to make Repeating rooms with precise gaps between them within world generation? Worldgen I am trying to basically create rooms exactly in coordinates of 0 1024 2048 etc etc but I need to check if you are in a structure or place structure wouldnt work, is there a way?Is there a way to copy entire nbt of a storage into a mob? Commands, NBT/Components I am trying to basically create a dynamic way of "carrying" mobs, and I will first store their entire nbt in a storage and then reapply, it, I am able to get the summon off, but not the NBT, as I need to specify a part of the Path, how would I go about doing that?Lose durability but with respect to unbreaking enchantment NBT/Components, Enchantments Good day! I have a custom mining enchantment that mines in a 3x3x3. I got it setup and ready to go and now I'm working on balancing its aspects.
Right now, when I mine blocks, it only deducts 1 durability loss which is a normal vanilla thing, that's expected. But now I want it to dynamically deduct durability depending on how many blocks it broke.
I could do a recursion 26 times and deduct durability by 1 every loop, but how do I make it so that it respects the tool's enchantments, for this case, the unbreaking enchantment, to go through the unbreaking chances first before it applies the final deduction points to the tool?How to store entity type in a storage Commands, NBT/Components I am trying to create smth that would let me store the entity type in a storage so I can use a macro to summon in same type of entity, Is there any way for it? In entity data, type is never mentionedNeed help I'm a beginner, Commands Right now I am creating a sword that increases the player's strength and speed attributes after a hit streak, when the player takes damage this streak restarts, the problem is that I want to create a tag that prevents the streak from restarting, I am using the command βexecute if itemsβ but I can't find a solution. (Version 1.21.6)is it possible to reduce arm and leg motion for large scaled players? General just like the title says, latest versionHow to stopsound creeper explosion? I'm a beginner, General, Commands i am experimenting with player motion and im doing it with creepers
I am trying to make player cannot see creepers (i know that for particles i will need rp) but i cant write command that stopsound creeper explosion and accually worksCan i detect if player tried to jump while he is riding mob? I'm a beginner, General, Commands I want to player be able stop riding mob(shift) and jump from it (space) but idk if it is possible to detect if player jump while riding mob?I wanted to remove ore vein... I'm a beginner, Worldgen why is it happenHow can I generate custom structures in the overworld? Worldgen Hi guys! I used to create worldgen datapacks a few years ago and now im pretty sure time has changed and I was wondering if there are any helpful guides or videos that can help me thru this. (I used to do them in 1. 18 i think but im sure the format has changed. Im making them at 1.21 now) cheeers!Custome crafting recipe datapack stopped working for some reason and I have no idea why. I'm a beginner, Recipes I was making a datapack that once I got help from one of the official helpers was working fine. however, once I tried to make it so the Vanila crating recipe for the item didn't exits and went to test it the recipe the whole datapack just stopped working however the datapack is still installed on the world just it's not working.Team Name Displayed under username I'm a beginner, Commands How do I get the Team Name to display under a players username?
team add adep_mech {"setdisplay":"below_name","displayName":"Adeptus Mechanicus","color":"#FF0000","text":"Adeptus Mechanicus"}
I have a feeling that's not going to work how I want.i am making a datapack and this part of the code isnt working how i want it to Commands Minecraft Custome crafting recipe datapack not working I'm a beginner, Recipes I was making a custom crafting recipe for Minecraft with misode and its not working, I did everything right on misode (I think) and I was using a template on https://www.patreon.com/posts/template-data-1-106137679 for 1.21 and I dragged my data pack file into the place I need to drag it in the file and added the finish template file into Minecraft but it didn't work. the tutorial I was following: https://www.youtube.com/watch?v=kJDsTihw3UQ&t=238sCustom structure generation, ancient city Worldgen my updated structure loads just fine, but the entire city is now above a lava lake
All I did was add something bellow the main structure
Anyone knows how can i fix it?Treasure map Other Map i added doesn't point to a structure its just blank and gives my current location.how to make feature like ore vein? I'm a beginner, Worldgen i made ore chunk but i wanna make it like copper vein or iron veinExecutes command after crafting a recipe I'm a beginner, Commands, Recipes Hi, I am very new to datapack making, and i want to make a crafting table recipe that executes "/effect" commands on the player. Is it possible? If not, is there any workarounds?
The recipe here is the thing that works on vannila crafting table.
Thanks in advance!How to detect where the player places a certain block? General, Commands, Advancements, Other I want to detect where the player places a certain block, like stone. Currently, I use the advancement system with condition minecraft:block_state_property
, but I can't get the position of the placed block in the reward functions by using ~ ~ ~
. Is there any method I can get the position?Ensure execution at position of placed block? Commands, Advancements When using an advancement to listen to a block placement like so:
json { "criteria": { "place_block": { "trigger": "minecraft:placed_block", "conditions": { "location": [ { "condition": "minecraft:location_check", "predicate": { "block": { "blocks": "minecraft:diamond_block" } } } ] } } }, "requirements": [ [ "place_block" ] ], "rewards": { "function": "foo:bar" } }
The function bar
gets executed as and at the player. Is there a built-in way to execute said function as/at the block?
If not, what's the best way to ensure execution at the block?
Is it just to perform a raycast function with ^ ^ ^
?Trying to Detect On Attacker with the damage command. I'm a beginner, Commands Sorry if the title is confusing, but I'm trying to make it apply a tag to an attacker that is specified in a /damage command. For example, if a mob would attack me and pop my totem, they would gain a tag to eventually be killed, but I'm wondering why it doesn't work when the enemy is damaging the player when they're specified in a /damage command, like: /damage [Player] 999 minecraft:mob_attack [Mob]
. But it doesn't seem to register the mob as the attacker for the command applying the tag.Minecraft Custome crafting recipe datapack not working. I'm a beginner, Recipes No descriptionhi I'm a beginner No descriptionPlayer Area of Effect I'm a beginner, Commands How would I go about giving a player an area of effect bonus with a data pack?
Example: One group of players would have a regeneration effect to anyone within 3 blocks radius of them.Predicate to check if y < -63 Predicates Hello, im super new to datapacks and i need help making some predicates. I need one to check if the player is below y=-63, one to check if the player is from -63 to 319, and one to check if they are above 319Datapack won't work I'm a beginner, Other I started making a datapack for 1.21.6 about reviving in hardcore when you die but it doesn't want to work if someone can help me understand why it doesn't want to workModifying the creative dimension v.1.2.3 datapack to support the Trinkets [fabric] mod I'm a beginner, Other There is a datapack called Creative dimension which is available on Modrinth. The modrinth page has a link to a 1.20-1.20.2 version that is found here: https://github.com/KawaMood/creative_dimension/tree/for_1.20_to_1.20.2. I'm seeking a way to modify this datapack to include the back slot of the Trinkets mod that you can put a backpack from the Travelers backpacks mod into. This is to stop players from taking items out of the creative dimension into the survival world. I have located a function at creative_dimension-for_1.20_to_1.20.2/data/pk_cr_di/functions/player/not_in_creative_dimension/restore_player_inventroy.mcfunction which seems to copy items from a chest back into the players inventory when leaving the dimension. I need help finding the function which moves the players items to the chest and modifying both functions to accommodate for the Trinkets mod slot for the backpack. If you can find a fabric mod or datapack which already does this same thing, that would also work.Help find and delete a recipe in the Forbidden mod Recipes Help find and delete a recipe in the Forbidden mod
Image
I deleted Reiept myself via datapack, but the Creation derivatives remained
jei:/create_dragons_plus/sandpaper_polishing/forbidden_arcanus/darkstone_using_deployer
I looked for this in Dragon Plus and Incant Industries and Creation Connected
jei:/create_dragons_plus/sandpaper_polishing/forbidden_arcanus/darkstone
jei:/create_dragons_plus/sandpaper_polishing/forbidden_arcanus/darkstone_as_sandingPredicate check if this entity is not this entity General, Commands, Predicates, Other E.g. execute as @a at @s positioned ~-5 ~-1 ~-5 if entity @a[dx=9,dy=100,dz=9,predicate=not_this]
This should succeed if there is an entity in the cubic volume that is not the runner of the commandhiding what blocks can item can break I'm a beginner, Commands im making a chainsaw that can break wood faster than netherite, so i did the following
/give @p iron_sword[can_break=[{blocks:"#mineable/axe"}],tool={can_destroy_blocks_in_creative:false,default_mining_speed:1,damage_per_block:1,rules:[{speed:20,correct_for_drops:true,blocks:"#mineable/axe"}]},food={nutrition:0,saturation:0,can_always_eat:true},consumable={consume_seconds:700000,has_consume_particles:false}]
but it gives me this giant list, any idea on how i can hide it?how to make sure that existing mobs wont despawn Commands how to make sure that existing mobs wont despawnis there a way to check if someone doesnt have multiple tags in one command? I'm a beginner, Commands title, I'm just wondering if you can do it in one command instead of having to do like execute as @a[tags=!x] run execute as @s...Watermark General, Commands, Other Hey, ive recently released a few Minecraft maps, each uses /title actionbar command for a watermark... People are constantly trying to find new ways to remove this watermark - simplest way being: a repeating command block with actionbar set to ""...
Any ideas on any other way to make a watermark thats not possible to remove, or even a way to detect someone removed it?
Thanks!Shedule function with parameters Commands is there a way to schedule a function with parameters ?
schedule function {x: 1, y:2, z: 3} 20tfor some reason the data pack gives potion effects when it shouldn't give those I'm a beginner this is the code i used scoreboard players add @e[tag=warrior] warriors_might 0
scoreboard players enable @e[tag=warrior] warriors_might
execute as @a[tag=warrior,scores={warriors_might=-0..}] at @p[tag=warrior] run effect give @p[tag=warrior] strength 2 2 true
execute as @a[tag=warrior,scores={warriors_might=-0..}] at @p[tag=warrior] run effect give @p[tag=warrior] resistance 2 0 true
execute as @a[tag=warrior,scores={warriors_might=-3..}] at @p[tag=warrior] run effect give @p[tag=warrior] strength 2 3 true
execute as @a[tag=warrior,scores={warriors_might=-3..}] at @p[tag=warrior] run effect give @p[tag=warrior] resistance 2 1 true
execute as @a[tag=warrior,scores={warriors_might=-8..}] at @p[tag=warrior] run effect give @p[tag=warrior] strength 2 4 true
execute as @a[tag=warrior,scores={warriors_might=-8..}] at @p[tag=warrior] run effect give @p[tag=warrior] resistance 2 2 true
and it gives the one that should only get used on 8 kills?Copying Hand Item To Head Item Data General, Commands I've got a custom head that is equippable using a carrot on a stick and clicking (1.20.6) is my version, but I want to copy the hand items attributes, now yes it's a loottable but what if while I wear the helmet it takes damage, or it's somehow enchanted, I need that to be copied so I can take it on and off without data loss, any thoughts? Is there like a execute store replace?scheduling function with parameters Commands is there a way to schedule a function with parameters ?
schedule function {x: 1, y:2, z: 3} 20tDialogs getting the inputs from form to execute then a command NBT/Components, Other I'm trying first to get back the inputswhy does my data pack give one level higher affect then its meant to? I'm a beginner heres the code i used
scoreboard players enable @e[tag=warrior] warriors_might
execute as @a[scores={warriors_might=0..}] at @p[tag=warrior] run effect give @p[tag=warrior] strength infinite 3 true
execute as @a[scores={warriors_might=0..}] at @p[tag=warrior] run effect give @p[tag=warrior] resistance infinite 1 true
scoreboard objectives add warriors_might dummy
tag add warrior and i have my user name in there i am just not saying it since it was made by me when i was like 8 or somethingTurn item intk totem and vice versa NBT/Components I want skmeone to hold a shield but make the shiled act as a totem upon death. I also want this for a golden apple. I was thinkjng of turning the totem into a consumable but j dont know how tk change the texture if a specific totem without affecting every totem. The totem has a specific and unique name, if that helpsAdding a custom room to the trial chambers Worldgen I am trying to make a datapack that adds a new relief(the faces in the trial chamber) and a room behind it
I managed to add the custom relief just fine, but I can't get the other room to load
Would love some help!How to write it? I'm a beginner, Commands, NBT/Components I think I know how to make a stack limiting system but I have no idea how to write it.
Can someone help me?What is the name of copper vein feature Worldgen I cannot find itHow could I make my biosphere datapack copy the right terrain? Commands, Worldgen, Optimisation Hello everyone!
So I wanted to make a datapack that would make biospheres a thing again but more varied (if anyone remembers that old mod).
I started making it by making a dimension that only generates structures that consist of two armorstands, one is teleported to the overworld and is used to load a glass sphere using a structure block to encase a piece of the terrain.
Then that glass sphere is saved via a structure block and then loaded in the empty dimension, resulting in a floating glass sphere that has stuff inside it. The problem is when I got this to work the most of the time the spheres had the same piece of terrain.
Probably because all the armor stands were named the same (one was call something like marker, the other sphere_maker, since they were generated by structures, and there was no way to differentiate between the pairs). I also did everything that was needed to make the thing work (I forceloaded and unloaded chunks, I killed the armor_stand after use, etc.), it was working but not well.
Dos anyone have any idea about how could I make this datapack work? There must be something that I didn't think about.Custom Enchant Not working Loot Tables, Enchantments the enchant is for hoe's and im trying to make it give a fortune effect heres my json file for wheatElytra propellant/thruster Commands What's the best way, or even the way, to make elytras thrust forward at will, without having the player right click a firework.
I also don't wanna use any player motion libraries, and preferably have the "thruster" not show any particles nor make any sounds.
## My Initial plan was (If you don't wanna read it you may skip and answer)
Dynamically changing gravity depending on the player's pitch, I have created an approximate formula to calculate the appropriate gravity to set for a gliding player, in which it would thrust it in the direction it's facing with the maximum would-be motion possible. And it worked nicely for an approximate.
(would-be motion as in the motion exerted by a firework)
The issue is, the formula collapses completely when the pitch is negative, in other words, the player is looking above the xz plane. Because apparently minecraft doesn't handle going down with a downward gravity the same way it handles going up with upward gravity; if you're doing the latter, you'd kinda like.. fly up as if you weren't using an elytra, no part of your vertical motion is turned into horizontal one as an elytra would do naturally, so yeah that like, ruined the whole plan kinda. So I'm unsure on what to do.Make a sound follow the player Commands, Other I want a sound to be constantly anchored to the player, so if he moves it doesn't lower the volumecustom font image Other hey, i'm trying to have a custom font to display a single image. The image scale is 1024x1024 and it's store at assets\minecraft\textures\font
and i have a json file name default.json who is stored at assets\minecraft\font\icon.png
and who's containing :
json { "providers": [ { "type": "bitmap", "file": "minecraft:font/icon.png", "ascent": 0, "height": 1024, "chars": [ "\uE001" ] } ] }
but when i try to do /tellraw @a {"text":"\uE001"}
i have a white scare. what did i do wrong ?Playing sound across dimensions Commands, Other Without having to re-run the command. I assume it is one of the arguments like master. Is there a list of what these do?Entity movement General, Commands My cousin wanted me to make a gamemode in minecraft, which is basically game "The Hunter: Call of the wild". I've made some 3d models of animals. I wanted to teleport the 3d model to for example pig, and i don't know how to detect if the pig is moving. Could you also help me with not making the 3d model's teleportation so choppy? And, how to leave the pig's hitbox, but replace it's ai with zombie'sLoading more...