View Help Posts from our Discord server:

Join our Discord server to view them: Datapack Hub Discord

Search
Blocking a certain advancement path I'm a beginner, Advancements Hello! I've been trying to block the main advancements path of a mod but can't get it to work I tried blocking all advancements but that causes crashes due to the mod relying on advancements to work Here is the mod's folder structure: https://github.com/Aizistral-Studios/Enigmatic-Legacy/tree/1.20.X/src/main/resources/data/enigmaticlegacy/advancements Here, I block recipes, book and main (this works): json { "namespace": "enigmatic_legacy", "path": "advancements/.*" } Here, I try to block only main (this does not): json { "namespace": "enigmatic_legacy", "path": "advancements/main/.*" } is there a way to add durability to an armor piece that you're wearing? Commands I am looking for a command that adds durability to the elytra in a players chest slot, but I can't find the solution I'm looking for.[Bookshelf] Raycast command result always outputs 1 Commands No descriptionGet a player head Commands, NBT/Components https://namemc.com/skin/7e3c84ef1342fb4d /give @p player_head[profile={name:"https://namemc.com/skin/7e3c84ef1342fb4d"}] 1 <-- does not worki need some help with a command where you throwing a snow ball and it summons a fire ball I'm a beginner, General, Commands i need some help with a command where you throwing a snow ball and it summons a fire ball but i want it to only work with a snow ball with a nameWatermark 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!Villagers spawning in a structure I'm a beginner, Worldgen I used a structure block with the entity feature enabled, yet the villager didn't transfer over, is it possible to make it so a villager does spawn in a structure?Components within an item model NBT/Components Hi so I recently saw a way to make custom blocks with item displays and player heads, however i do not want to use said playerheads to place down these block. Rather a spawn egg with an item model, is it even possible to include components within the item model components. Or would i have to use something else?how to check if a player collides with/touches a mob and run a command from there? I'm a beginner, General ,Structures will be generated within 1000x1000 blocks of the spawn point. I'm a beginner, Worldgen No descriptionstructure says it generated when nothing is there. I'm a beginner, Worldgen i have made a datapack for minecraft that makes an illager castle spawn into the world. all the structure files are saved and in the datapack. when i locate it in a world, nothing. when i use the /place command, nothing, but it does say it was successful. what are some possible issues i may be having.Code for Capturing Flags is Wrong? I'm a beginner, Other No descriptionUnderground Firefly Bush Sounds I'm a beginner, Predicates Hi all. Playing in 1.21.5. I'm pretty new to datapacks, and I've been trying to research how I would make firefly bushes still emit their ambient sounds even while they are underground and have solid blocks above them. Also how to remove the specificity of it needing to be nighttime. Basically, I want firefly bushes to be able to make their ambient sounds in the below situation. Any help or even just letting me know if this is possible would help me a great deal. Thank you!Incorrect command? I'm a beginner, Other execute if score #timer ctf_timer matches ..47999 run execute as @a[team=red, x=0..2000] run tp @s -10 ~ ~ It says the 0..2000 part has an error with the .2000.Creating a villager entity I'm a beginner, Worldgen, Other Is it possible to create an entity which spawns in a custom structure and it has the same functions as a villager but it's humanoid with a player model?Datapacks as mods? Other I've seen alot of datapacks available as fabric mods. Is there and easy way to convert datapacks to mods or is it a way for datapacks to run like mods. Or is it simply just a mod and a datapack doing the same thing despite being different?How to dynamically generate NBT path names? General, NBT/Components For example if I wanted store this info (it would be generated throughout the gameplay): json { Sell: { session1: {name:Equinox, gametime:311119, diamonds_sold: 26, money_earned: 260}, session2: {name:Steve, gametime:400000, diamonds_sold: 1, money_earned: 10}, ... } } When Steve sells 1 diamond, this info would be stored into a session, and his name along with some other data would be stored. I'm not sure how to store the players name dynamically. I also need to store scoreboard values. The session names need to be named differently also every time (session1, session2, ...)Removing the sun in a dimension I'm a beginner, Worldgen Is this possible with it's own dimension type?How would I detect whether an entity is possibly "viewable" by the player? General, Commands, Predicates, NBT/Components Hello! I'd love to know if it's possible to detect when there isn't a wall between the player and a certain entity and the player could in theory turn to look at the entity. Things I've tried: > I first thought of using a type-specific looking at predicate and just run it facing the entity, but of course that didn't work as the looking at predicate is an entity property so just running the test facing the entity wont actually change the player's property. (at least thats what i think is happening) > > Then I thought to save the players rotation, rotate the player so they're facing the entity, run the test, then rotate them back. That is really buggy and ugly though even if run like once every 10 ticks. Any ideas would be amazing!Is there a max amount of custom biomes a datapack can have? I'm a beginner, General My datapack may require a mass amount of custom biomes and was wondering if there was a limit.Generate a map with a marker for any structure. I'm a beginner, Worldgen, Other I want to basically generate a treasure map style map but instead of buried treasure I want it to point to the nearest specific structure or POI. Is this possible with datapacks and if so how would I do it or could someone make it for me?Biome Merging I'm a beginner, Worldgen How do I make it so 2 biomes can spawn in a custom dimension, for some reason I can't find this anywhere in the wiki unless Im missing itPrevent oceans and rivers from generating as massive land biomes I'm a beginner hello, i'm working on project and i removed some of the unwanted biomes from the dimension file (only water biomes are rivers, oceans and frozen oceans) and despite not editing anything else in the dimension file said biomes can now generate as big as an average land biome, how to fix this?Dialog Formatting Help Other Im trying to make the extra info section have line breaks between each set of info like this: Default Alignment : Good Role Color : White Role Value : 5 Role Id : 1 I dont want to make them separate sections of the body because if i do that they have a large gap between each oneHow to put aj item_display on mob? Commands, Other Recently I've been trying to make a datapack with custom mob and for that I'm using Animated java. I tried to spawn item_display and the /ride it on mob that I need but it works only for the first item display, then I've tried to tp item_display to the nearest mob with the tag, but it works only for the first item_display too. Now I don't know what to do. I'd be very grateful if you could answer me! Mc version: 1.21.5Pack not recognizing custom structure General, Worldgen, Other No descriptionVoid death Commands Hi, I would like to make an immediately void death, I tried /kill @a[y=-64] but it doesn't work, can someone help me please?A pre-made world inside a custom dimension I'm a beginner, General, Worldgen, Other Is there a way to make a custom dimension that isn't generated but is a pre-made world?Any way to detect active dialog? Commands, Other Hello! Is there any way to detect if the player has a specific dialog active?heal player by a specific amount Commands is there a way to heal the player by a specific amount? cause I dont want to use instan_healing which has a set amount of hp. I tried using data data modify entity @s Health set value 1 while being full health and it said "unable to modify player data". I guess you just cant modify player nbt like this, but who knows. maybe this does work in some way.How to check if it is daytime with an enchantment? Predicates, Enchantments I was using Time check but realized it doesnt reset the time daily, so I can only check for the first 10 minutesRestricting movement when entity is looked at (1.21.6) I'm a beginner, General, Commands (1.21.6) In a datapack, I have been trying to create a system where when a player with a certain tag (tag1) looks at another entity, they would be unable to move (which would likely be done through modifying movement_speed and jump_strength attributes), and then when they are not being looked at, they can move as normal. I am mainly having trouble with modifying the attributes of an entity that was looked at, and then resetting them to normal once they are not looked at. The current way that I am testing it is through this: execute as @a[tag=tag1] at @s anchored eyes facing entity @e[tag=!dead,tag=!tag1] feet positioned ^ ^ ^1 rotated as @s positioned ^ ^ ^-1 if entity @s[distance=..1.8] run execute at @a[tag=tag1] as @e[tag=!tag1,distance=..5] run effect give @s glowing 1 1 (my plan here was to replace it with a command that gives a tag, and another function constantly running that sets attributes to entities with that tag) execute as @a[tag=tag1] at @s anchored eyes facing entity @e[tag=!dead,tag=!tag1] feet positioned ^ ^ ^1 rotated as @s positioned ^ ^ ^-1 if entity @s[distance=1.8..] run execute at @a[tag=tag1] run tellraw @a "line of sight disconnected" (my plan here was to replace it with removing of a tag, and running a function that resets the attributes back to normal to those without the tag) The main problem with this is that effects are given to all within the radius of the first command, not just the entity being looked at (although it is only activated when an entity is being looked at) The way I'm going about this could be totally wrong, and I'm fine rewriting it all for a better system, as long as it works.Dimension Help I'm a beginner, Worldgen, Other While making a dimension using a tutorial, it crashed a lot upon world creation, however when I put the overworld preset it no longer crashed, but now everything is all the same block and biome.How do I make land always generate below sea level with worldgen I'm a beginner, Worldgen I'm trying to make a datapack that adds a new dimension that is underwater. How do I make it so all land generates fully below the sea level?How to override minecraft loot tables for dungeons? I'm a beginner, Loot Tables I have created a folder in the format /data/minecraft/loot_tables/chests/simple_dungeon.json, but it doesn't result in dungeon chests having the custom loot. It works for the other json files in the same folder, so I'm wondering how to fix this.the schedule command does not work I'm a beginner As the arrow is shot from a bow, I am trying to schedule a function to run 1s after the arrow is detected. This does not work thoughstore dialog text input Other hello i want to make dialog with text input then store the input somewhere but the porblem is if player does not have permission to run the commands then i cannot run specific command to store the inputEasy General So i have a paper server where i code my plugin and i want to know if there is a way to do /reload on paperHow do I disable a modded Structure using a datapack? I'm a beginner, General I just finished creating a structure datapack and now I want to create a datapack that can disable modded structures from generatingTeleport Sword I'm a beginner, Commands I'm trying to make a sword where when you right click it you teleport forward 8 blocks in the direction you're looking, but I have 2 problems, the first of which is I can't figure out how to prevent players from teleporting through walls, or going inside of blocks, and the second of which is how I would go about adding a cooldown to teleporting for 4 seconds.Enchantments Enchantments I have never tried adding custom enchantments, and was wondering the there is a page in the wiki for it? I want to make an bow that is enchanted with an enchantment that makes it shoot fireballs instead of arrows (but still uses arrows from your inventory), and summons a lightening bolt upon impactHow many times does this datapack run its functions? General, NBT/Components Hi, I have this datapack on our SMP and it seems to be responsible for a significant part of the server load. Would someone be able to tell me what it's doing? I suspect it's running the tick.mcfunction frequently, perhaps multiple times per second? https://modrinth.com/datapack/outroninja-forever-young/version/1.21-1.1.0detect non player entity death I'm a beginner, Commands My goal is to create an area on the floor, and detect if an entity within this area dies and summon another mob in its place. I have no idea how to detect if a mob died and how to summon another mob where the mob diedHow to keep a dialog screen open even if the player leaves the world? Commands I am trying to have a choice screen that is mandatory, that goes to another screen, but that of dialogs, I need people to be able to navigate between and at the end choose before starting, but when they leave the world/server it breaks everything and I cant find a proper way of opening the dialog again which either doesnt work on pause and server.Detecting Backwars Movement - 1.20.6 Advancements, Predicates Hey, so I am wanting to create.a sword that when you hold the backspace key you dash forwards and if I recall that was made possible in 1.20.5? How do I do that easily and efficiently lag wise? I want the player to hold it for 6 ticks then run ability.Help on infinite dungeon generation I'm a beginner, Commands, Worldgen, NBT/Components Right now, I'm trying to create a custom dungeon that generates infinitely. Previously, I used jigsaw blocks to connect the rooms, but they have a limited levels. I've seen others use armor stands and commands to connect and generate the levels, which also allows for capabilities like collision detection, but I haven't found any tutorials or code explaining how to do it. Is there any guidance I can get, or is there an easy-to-interpret datapack I could look at?How to check if mule is moving? I'm a beginner i wanted to make stamina for them but there is no scoreboard that can track distance traveled on them unlike for horsesHow to detect note block use when using advancements 1.21.4 I'm a beginner, General, Advancements I'm making as advancement for using every note block but im not sure how to do it this is what a currently have { "display": { "icon": { "id": "minecraft:note_block" }, "title": "D", "description": "Ts", "frame": "task", "show_toast": true, "announce_to_chat": true, "hidden": false }, "parent": "minecraft:husbandry/root", "criteria": { "used_note_block": { "trigger": "minecraft:item_used_on_block", "conditions": { "location": [ { "condition": "minecraft:block_state_property", "block": "minecraft:note_block" } ] } } } }How would i convert a base 10 integer into its hex code? Commands, NBT/Components, Other Hi! I was wondering whether it's possible to convert a value like 4095 into 0x000fff. Whenever I store hexadecimals in a storage, they of course, get converted into integers, but I'm trying to use a macro to insert this color into a text component, which uses hexadecimal. I'm on 1.21.5 btw and if you need any more info just ask!How Does Kasane Teto make a dimension which isn't just flat... Worldgen <:husk:1221078528448270346>Crafting Copper Armor kicks me? I'm a beginner, Recipes, NBT/Components, Other I created a data pack which allows you to craft copper armour and a 'beacon chestplate'. I tried crafting copper armour to see if it works and it kicked me from my server with the attached message. I havent tested this in single player. Any help is appreciated ๐Ÿ™‚How can i store the item id from the offhand in a storage? Commands I kindof feel stupid asking this.. but i cant seem to get it together ๐Ÿ˜„ This is what i got: data modify storage minecraft:test block set from entity @s Inventory[{Slot:-106b}].idWay to directly get the player's inputs NBT/Components, Other ^ <=1.21.4Item exchange using a block General, Advancements, Predicates, Recipes Basically when the player is inside a loom I want certain items to be transmuted into banners with otherwise the same data so that they can be designed with patterns and then turned back when the player exits the loom inventory. However I only know how to check when they open the inventory and originally I didn't mind and was just going to have it then create a raycast that checks if the player is still looking at a loom, and then when they weren't it would turn the stuff back into normal items. But if the player is out of the inventory and looking at the loom they can still place the items and I don't want that.better bundle General, Other hey guys, so i do not develop data packs but i have a question about existing one im using a mod/datapack called "better bundle" by nico4play, and in description it says that this mod will increase bundle size to 27 stacks of items, instead of only one, but it doesnt seem to work, i can still only put 1 stack of items in there also it says if i hold a bundle in my off hand and main hand is empty, when clicked on a chest it will insert contents of a bundle into that chest, but it also doesnt work tried to do /reload but still the same im playing on a fabric server (im an admin) on version 1.21.5Paletted Permutations of Equipment Textures General, Other Is there a reason this won't work? If so how could I fix it/what could I do? { "sources": [ { "type": "paletted_permutations", "textures": [ "minecraft:entity/equipment/llama_body/striped_carpet" ], "palette_key": "minecraft:entity/equipment/llama_body/color/palette", "permutations": { "blue": "minecraft:entity/equipment/llama_body/color/blue", "green": "minecraft:entity/equipment/llama_body/color/green" } } ] }is it possible to achieve something similar to macros in 1.19? General, Commands, Other Basically I was asked by a friend to make a datapack for 1.19.4 that adds a "tp wand" thet let's you set tp coordinates and then tp to them... And I just realized that macro wasn't a thing in 1.19How to lower the durability of the armour Iโ€™m wearing Commands ABest way to place a trail of blocks behind the player? I'm a beginner, General, Optimisation Hello! I'm currently trying to figure out a fix to something that's bugged me for a while. In my datapack, I have a feature that places blocks behind a player. To figure out where to place the block, I am just using North, South, East, and West directions: If facing North -> place the block ~ ~ ~0.5 If facing South -> place the block ~ ~ ~-0.5 If facing East -> place the block ~-0.5 ~ ~ If facing West -> place the block ~0.5 ~ ~ The reason I did it his way is because I've intentionally limited the movement of the player to only go in north, south, east, and west positions. What's happening here is functionally like snake, where there is a constant trail following the player. After some trial and error, I found 0.5 to be the best. If the number is too low, the blocks prevent the player from moving forward. If the number is too high, the problem gets worse. The error happens when 0.5 blocks behind them is a different block. Essentially it places an extra block, as shown in the first image. It should look like the second image. I'm not sure the best way to go about fixing my issue here. There are multiple solutions, but I'm searching for the best one. My current idea is to store the player's X and Z, then floor the numbers to get the exact block. When placing the blocks behind the player, I can possibly make some kind of value predicate that determines if it is acceptable to place the block. I'm sure there's a better solution, though. I appreciate any help ๐Ÿ˜„Removing the Attack Damage and Speed from an item I'm a beginner Whats the best way to remove that so it just shows the item name and the lore? I dont want all the "when in main hand stuff"RC and LC detection General, Advancements, NBT/Components, Updating Starting with RC, I want to check when someone is holding down right click, and perform an action every tick while he is holding, while still allowing the player to interact with other stuff as normal (which removes the use of interactions and carrots on sticks). I tried modifying items with the consumable component and the using item advancement, but the advancement only trigger once every 3 ticks because that's how fast the mouse automatically clicks when you hold right click. Is there a way to make it run every tick while you are pressing the right click button, while being able to interact with the environment and hold any item? I thought of adding the blocking component (not sure what it was called, but it brought back 1.8 blocking with sword). Would this work perhaps?predicate for held item and sneaking not working? Predicates It works fine when i only do it for the sneaking, but it isnt working after i added the custom data checkCan you stop the end fountain from spawning? I'm a beginner, Commands, Worldgen I made a custom end island and phase 2 to the ender dragon fight that starts after you kill the original dragon. But the end fountain spawns after you kill it (so you could just leave without having to fight phase 2). Is there a way I can stop it from spawning or move it's spawn location to somewhere else?Structure generating one block in the ground Worldgen i genuinely have no clue why it's doing this, heres the structure json { "biomes": ["jungle", "bamboo_jungle", "sparse_jungle"], "liquid_settings": "ignore_waterlogging", "spawn_overrides": {}, "type": "minecraft:jigsaw", "start_pool": "ddp:jungle_hold/jungle_hold", "size": 7, "terrain_adaptation":"beard_thin", "step": "surface_structures", "project_start_to_heightmap": "WORLD_SURFACE_WG", "start_height": {"type":"constant","value":{"absolute":2}}, "max_distance_from_center": 116, "use_expansion_hack": false }MY zombified piglins are not attacking I'm a beginner i made various variants of the zombified piglins, and i made them to attack the player even if the player didn't attack the piglin, but it only works when i summon the piglin with commands, or with an egg, this is the command that i used in the piglin's file: execute if entity @s[distance=..25] as @e[type=minecraft:zombified_piglin,distance=..25] run data modify entity @s AngryAt set from entity @p[distance=..25] UUIDCustom Enchants Not Working I'm a beginner, Commands, Enchantments IDK why its not working can someone help meMaking mobs angry at everyone I'm a beginner So my goal is to summon iron golems with a certain tag, and these golems will be angry at everymob. What have right know is : I summon the iron golems execute at @p[tag=pending_action] run summon iron_golem ^2 ^ ^ {Tags:["summoned"]} then, in tick : execute as @e[tag=summoned] at @s run data modify entity @s AngryAt set from entity @n[type=!player, tag=!summoned, distance=..30] UUID But for some reasons I don't really understand, after killing a mob, they kinda stay stuck and don't do anythingAlternatives to scoreboards? I'm a beginner, Commands, Predicates Hello fellow datapackers, I was wondering if there are any alternatives to selecting a specific player to run a function on and the only way I know right now is scoreboards. I have realised many issues because i want to select the player that pressed a button to activate the command block that activates the function but when i add the score to the player who presses the button i use @p but if there is someone closer to the command block it will select them and i do not want that. Another problem I have is writing execute as @a if scoreโ€ฆ because my entire function just wants to run on that player once and only that player who has the score but i find it very annoying to having to paste in the first half of the command every time i want to run a command on that player. I am looking for a potentially better/less laggy solution to this and I was wondering if i could use predicates or execute store but i have absolutely no experience in these 2 things and i need help please. I apologise if my post is hard to read because i am not great at english and i am sleepy right now.enchantment to stop items from being enchanted I'm a beginner, Enchantments is it possible to make an enchantment that when applied to an item it stops any further enchantment from being applied to it ??I have made a recipe and I have a /give command from mcstacker how can I set the recipe I'm a beginner, Commands, Recipes um how to turn this command /give @p evoker_spawn_egg[entity_data={id:"minecraft:armor_stand",NoGravity:1b,Silent:1b,Invulnerable:1b,ShowArms:1b,Invisible:1b,PersistenceRequired:1b,Tags:["main_craft","need_block"],equipment:{head:{id:"minecraft:paper",count:1,components:{"minecraft:item_model":"template:main_craft"}}}},item_model="template:main_craft",item_name="Nexus Altar",rarity="epic"] 1 to a reward in a recipeany way to detect opening a book? General, Advancements, Predicates i tried using the use item advancement but it doesnt triggerZone Effect Armor Commands I would like to know how i could adapt this command block chain into a datapack for 1.21.4 : repeating:scoreboard players set @a ZoneEffect 0 ; chain conditional:execute as @a store success score @s ZoneEffect if items entity @s armor.chest minecraft:diamond_chestplate[trim={pattern:eye,material:redstone,show_in_tooltip:false},custom_name='["",{"text":"Deadeye","italic":false,"color":"dark_blue"}]',lore=['["",{"text":"The Dream of the grand:","italic":false},{"text":"aaaaaaaa","italic":false,"obfuscated":true}]'],enchantment_glint_override=true,unbreakable={show_in_tooltip:false}] ; chain conditional:execute as @a[scores={ZoneEffect=1..}] at @s run effect give @e[distance=..10,type=!player] minecraft:wither 2 0 true ; chain conditional:execute as @a[scores={ZoneEffect=1..}] at @s run particle minecraft:soul ~ ~1 ~ 0.3 0.3 0.3 0.01 10 forceRemoving custom data component from an item while respecting the stack count Commands, NBT/Components I was trying to make it so that players with a specific tag can eat golden apples faster. I was doing so by running an item modifier like so: execute if items entity @s weapon.mainhand minecraft:golden_apple run item modify entity @s weapon.mainhand ssiege:make_fast which works great, and respects item count. However, I'm not sure how to turn these back into regular golden apples. I was using execute if items entity @s weapon.mainhand minecraft:golden_apple run item modify entity @s weapon.mainhand {function:"minecraft:set_components",components:{"minecraft:consumable":{},"minecraft:custom_data":{}}} , but this creates golden apples with an empty custom data component, which are no longer stackable with normal gapples. I alternatively tried item replace instead of item modify but that didn't seem to respect the stack count (set to 1 golden apple)Help me I'm a beginner, Commands, Advancements, NBT/Components Hello, I'm trying to upgrade the datapack from version 1.20.1 to version 1.21.1 but something is not working for me.Island structures help I'm a beginner, Worldgen how do i properly make island structuresBeginner here: Apply Attribute Modifier to all specified Items? I'm a beginner, NBT/Components I'm making a mod, and I want specific "modules" to be disableable with removing certain datapacks. One of these modules will make it so all Golden Armor pieces have an Attribute Modifier. Any help is appreciated :DI created a custom_model_data for the bedrock, it works but my original texture of the original bedr General, Commands I created a custom_model_data for the bedrock, it works but my original texture of the original bedrock is buggedIm trying to make a command that saves the users last death cordinates but I'm a beginner, General, Commands, NBT/Components the scoreboard just saves the number 3 command: execute as @a at @s if entity @s[nbt={Health:0f}] store result score @s deathPos run data get entity @s PosDistance raycast innacurate General, Commands, Advancements, Updating If I teleport myself exactly 3.29999 blocks away from another player, and I hit them while standing still, the raycast gives 3 blocks away, which is perfectly accurate (since a player's hitbox is .3 blocks wide). However, if I do this while in motion, e.g. moving right/left or a jump while hitting, it gives abnormal results like 3.7 (impossible since the player's entity interaction range attribute is 3.0). I used execute if entity @a[distance=3.1..] run say distance incorrect and it said. This is in a single player world using a mod that allows you to spawn fake players, so there are no other players in the world. The function is activated by an advancement. I'm assuming the bug is caused because the player moves 1 tick extra before the advancement triggers. Any ideas on how the bug is caused and how to fix it would be appreciated!advancement wont run function I'm a beginner, Advancements i made an advancement that detectes whenever the player has crafted the custom recipe which is as follows { "parent": "minecraft:recipes/root", "criteria": { "has_the_recipe": { "conditions": { "recipe_id": "crafting:draft" }, "trigger": "minecraft:recipe_crafted" }, "has_ingredients": { "trigger": "minecraft:inventory_changed", "conditions": { "items": [ { "items": [ "minecraft:amethyst_block", "minecraft:amethyst_block", "minecraft:blaze_rod", "minecraft:netherite_ingot", "gold_block", "minecraft:wither_skeleton_skull" ] } ] } } }, "requirements": [ [ "has_the_recipe", "has_ingredients" ] ], "rewards": { "function": "crow:staff/ss", "recipes": [] } } but, no matter how much i craft it, the function at the end doesnt run. the function works with the command /function but otherwise, theres no way to run itI followed a helpers instructions and made my structure smaller, it is now 112 by 70 by 112. I'm a beginner, General my problem is that even though the structure is in the drop down, it says it cant be located. I also have my code up if you need to look at i.Jigsaw block not activating naturally. I'm a beginner, General, Worldgen I am making a naturally generated structure with the help of datapacks. One of the jigsaw blocks are not firing unless I go in and click "GENERATE". Is there a reason the block is not activating on its own, but does work flawlessly when I interact with it?why is this command not fully working? (1.8)* I'm a beginner, Commands /summon MinecartCommandBlock ~ ~ ~ {TileEntityData:{Command:"/tp @p 0 100 0"}} the prefilled command is not appearingHow to execute a function as the hurt entity General, Advancements { "criteria": { "hit_with_guardian_scythe": { "trigger": "minecraft:player_hurt_entity", "conditions": { "player": { "equipment": { "mainhand": { "items": "minecraft:netherite_axe" } } }, "entity": {} } } }, "requirements": [ [ "hit_with_guardian_scythe" ] ], "rewards": { "function": "jestem.cool_weapons:guardian_scythe/on_hit" } }Preventing Blocks from turning into Dirt I'm a beginner I would like to prevent podzol and mycelium from turning into dirt when another layer of those blocks or a barrel are placed on top of them. Iโ€™m hoping to do this without freezing or turning off the block updates for the entire world.is there a way to update my datapack from 1.21 to 1.21.4 without spending ages on doing it Updating is there like a website or something because i searched for one and it only went up to like 1.21my command is broken Commands i was working on my minecraft map but i summand a villiger and the villiger isent villigering /summon villager ~ ~ ~ {NoGravity:1b,Invulnerable:1b,CustomNameVisible:1b,PersistenceRequired:1b,CustomName:"Bobby",VillagerData:{profession:"minecraft:librarian"},Offers:{Recipes:[{buy:{id:"minecraft:tnt",count:5},sell:{id:"minecraft:diamond",count:10}}]}} its not a librien it has no trades but it is named Bobby and it doesent have any gravityHow to detect what is the text of a sign 1.19.3 I'm a beginner, General, Commands, NBT/Components How to see what text is on a sign to like tell a command block what that text teleport that player like type any username and click a button and teleport himRegistering the new Dialog Menu feature in 1.21.6 General, Other https://minecraft.wiki/w/Dialog According to the wiki, dialogs go under data//dialog. Still, the game doesn't register any dialogs I create, but when I move the folder under the Minecraft namespace, it registers, but all of my customizations do not show up. It is just an empty menu with a button to exit. What do I need to do to add custom dialog menus? Is there more that I need to do to my pack to allow custom dialog or do I just have a dialog folder and add dialog menus?Tweaking Ore Generation I'm a beginner, Worldgen Hello fellow Datapackers. I am fairly new to making datapacks. I am more familiar with normal playing as well as ideas and similar. To jump to my question. I am trying to tweak overall generation of ores in Minecraft. It used to be simple, mod or two and all was done, now I have to drive it through datapacks. Basically, I am looking for someone who can explain to me if it's possible to alter generation of Deepslate layer, Stone layer and basically add noisy layers of granite, andesite and diorite as well as changing how ores are spawning. For example, I want coal ore to spawn more comonnly in certain biomes (wet biomes) and similar stuff. Any idea or lead would be highly appreciated as my testing data packs are failing to load and it frustrates me after so many tries. I have come only so far to basically learn how data pack structure looks like and used some online tools but none of them works inteded way.My structure seems to be placed, but no blocks are placed in. I'm a beginner, Worldgen I'm learning how to generate jigsaw structures so that I can generate dungeons for my project. I'm working in 1.21.5, with data pack version 71. As a first step, I've just been trying to get a single structure to generate into the world. I've followed the Minecraft Wiki's documentation on structure generation and as far as I can tell, I have the four key files to generate a structure (included in a follow-up post): structures/foo.nbt, worldgen/structure/foo.json, worldgen/structure_set/foo.json, and worldgen/template_pool/foo.json. As a preliminary test I just tried placing the structure with /place structure, which successfully autocompletes to find my files and the game says has been successfully placed, but nothing actually gets placed into the world. I also tried generating a world with the datapack included to see if for whatever reason it would successfully place them during world gen, but that also didn't work; however, the /locate command can find the structure in the world, but teleporting there shows that nothing has actually been placed at that location. (It also is not being placed at the bottom of the world, I checked). I thought that the NBT file itself might be empty, but it does have data inside. I couldn't say whether it's corrupted or not though, I can't interpret NBT binaries. Re-saving the structure and replacing the NBT structure file did not fix the issue, though. At this point I'm not sure what could be going wrong, I've all but copied the tutorial files from the Minecraft Wiki's tutorial on custom structures (https://minecraft.wiki/w/Tutorial:Custom_structures) and nothing will generate. I'm hoping someone can point out what is probably some obvious mistake for this noob. -_- Thanks in advance for any help!What's the most efficient way to prevent an area from being destroyed? Commands, Optimisation Good day! I'm currently working on a minigame where I want players to place blocks while at the same time prevent them from breaking the map blocks. Right now, my current method is to clone the area and constantly check whether those two areas match and only re-clone the area if they're a mismatch. Issue is it heavily lags my game, a lot of red spikes in the TPS section in the debug screen which I expected. I'm asking if there's a better way to do this and make it less laggy?Matching partial data General, Commands, Advancements, NBT/Components Helloo! Is there a way to match partial custom_data instead of exactly matching it? I'm talking about i.e. in item model definitions or advancements, when you specify an item's custom data, you have to exactly specify it. If the item has any extra keys it will not match and will not trigger anything. Any help is appreciated! (I'm on 1.21.5 btw if it matters)Void World with Structures Worldgen I've been working on it for a couple months now. I'd like to make a void world with structures, but the structures keep generating at the bottom of the world and cut off. I managed to get the plains village to work, but I'd like help getting the other villages (pictured is a savannah village), and specifically igloos with basements to generate at y= 0 instead of the bottom of the world. I'd appreciate help, but I really just want it to work, so if you think you can do it DM me and I'll send what I have to you. I'd pay like $20 bucks to get this working.Using macros for repeated code worth it? General, Commands ---This is not necessarily a direct question but more of a general discussion.--- Is using a macro to replace repeated lines of code worth it? Although this won't always work depending on your scenario, it might clean up or abstract your code further. But I know macros must be recompiled every time, so using a lot of them is not ideal. For example: This line of code in my datapack is used very often: execute as @a if score @s playerid = $temp payeeid. This allows you to find a player, if you input a player id into $temp. I can use a macro to abstract this: find_payee $execute as @a if score @s playerid = $temp_payee_id payeeid run $(action) set_payee_id json function justin:find_payee {"action":"scoreboard players set $bool_payee_found payeeid 1"} "Action" is what will be added on to the end of the macro above.Why it is no working? I'm a beginner it is called in another function at ~ 4 ~modifying player's current health I'm a beginner, Commands I want to modify the current health of the player, but /data modify entity @s Health set value 15.0f doesn't seem to work. The idea I came up with is a bit wacky, it'd be modifying the max health of the player to the value I want the current health to be, then increase the max health again to its original value Is there a better way to do this ?Custom biome Worldgen I've never really touched on the worldgen side of datapacks and I want to make a biome that is the exact same as the meadows (as in foliage color) but it has thick fog. I don't need it to generate naturally because this is for a map. How would I go about doing this?help me make a custom item_model texture please General Can someone help me with this? the tutorials I'm watching on YouTube aren't workingWill datapacks made in 1.21.5 work for 1.21.6? Updating I know datapack syntax changed a lot in previous versions. Are there any significant changes going into 1.21.6 or will datapacks from 1.21.5 still work?

Loading more...