To make the item nearly unbreakable use: /give @p minecraft:YOURITEM 1 0 {ench: [ {id:34,lvl:1000}]} And to make it self-repairing use: /give @p minecraft:YOURITEM 1 0 {ench: [ {id:70,lvl:1}]} (another option is using both enchants at once) Or, if you want to make all items unbreakable, just give each player a ton of Mending books. Of course, none of your items will disappear if you type in this command, and you cant focus it on one item only. If you preorder a special airline meal (e.g. Calculating probabilities from d6 dice pool (Degenesis rules for botches and triggers). I'll post the whole command, then go bit by bit with it. How can I change the durability of items using commands? How would one approach doing that? We're a community of 3.9 million creative members sharing everything Minecraft since 2010! Here is a list of all entitys: are you trying to see if a player crafts a certain item then replace it with an unbreakable version? Its incredibly frustrating having to play Minecraft on a server and being griefed all the time. First of all you have to do it with cheats on, then you have to do this command /give [playername] [item/tool] [amount] 0 {Unbreakable:1} so for example if you want a 3 diamond swords and your username is thatNickdude (my username) you would do /give thatNickdude diamond_sword 3 0 {Unbreakable:1} (small) give me ideas (I can make you a TEXTURE PACK). How can this new ban on drag possibly be considered constitutional? I will help you with everything. - Arqade It looks like you haven't mentioned what version you're playing on. A mending tool will repair itself little by little every time you collect experience, but I'm not sure why the unbreakable tag isn't working. [duplicate], We've added a "Necessary cookies only" option to the cookie consent popup, Screenshot of the Week #85 [Submissions Closed - Vote Now!]. An unbreakable item will not lose durability. Where does this (supposedly) Gibson quote come from? use itemMeta.setUnbreakable (true); #6 chochoco4777, Jun 16, 2021 SkillCode MasqueOu said: Hi there! (1.16.4, 1.12.2, 1.8.9, etc.) Make sure your item is the only one in the distance so it works. he is trying to add unbreakable to every tool the person crafts not specific tools he gives, what he wants is when somebody makes a wooden hoe he want it to be unbreakable. In 1.8.x the method is this Code (Java): ItemMeta. . To do this you would need a few command blocks for each item you want to make unbreakable. /rg flag name of region pvp deny this prevents players from damaging other players in that area. Then, create tools with the CanDestroy tag to allow players to destroy certain blocks, if needed. He wants every tool crafted to be unbreakable. You might be thinking of items in item frames so that theyre unbreakable, but thats not what I mean. Arqade is a question and answer site for passionate videogamers on all platforms. Step 3: Place seeds on the farmland in order to replace block above. Why do small African island nations perform better than African continental nations, considering democracy and human development? rev2023.3.3.43278. Okay, I registered, it gives me items, but those are not unbreakable. ._3-SW6hQX6gXK9G4FM74obr{display:inline-block;vertical-align:text-bottom;width:16px;height:16px;font-size:16px;line-height:16px} What sort of strategies would a medieval military use against a fantasy giant? {Name:"\ is the set up for whatever you want your title to be. We're a community of 3.9 million creative members sharing everything Minecraft since 2010! To make a totally indestructible item use this: (another option is using both enchants at once). Could someone tell me if I suck at commands and got it all wrong, or if I just got some of it wrong? ._3Qx5bBCG_O8wVZee9J-KyJ{border-top:1px solid var(--newCommunityTheme-widgetColors-lineColor);margin-top:16px;padding-top:16px}._3Qx5bBCG_O8wVZee9J-KyJ ._2NbKFI9n3wPM76pgfAPEsN{margin:0;padding:0}._3Qx5bBCG_O8wVZee9J-KyJ ._2NbKFI9n3wPM76pgfAPEsN ._2btz68cXFBI3RWcfSNwbmJ{font-family:Noto Sans,Arial,sans-serif;font-size:14px;font-weight:400;line-height:21px;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;margin:8px 0}._3Qx5bBCG_O8wVZee9J-KyJ ._2NbKFI9n3wPM76pgfAPEsN ._2btz68cXFBI3RWcfSNwbmJ.QgBK4ECuqpeR2umRjYcP2{opacity:.4}._3Qx5bBCG_O8wVZee9J-KyJ ._2NbKFI9n3wPM76pgfAPEsN ._2btz68cXFBI3RWcfSNwbmJ label{font-size:12px;font-weight:500;line-height:16px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}._3Qx5bBCG_O8wVZee9J-KyJ ._2NbKFI9n3wPM76pgfAPEsN ._2btz68cXFBI3RWcfSNwbmJ label svg{fill:currentColor;height:20px;margin-right:4px;width:20px;-ms-flex:0 0 auto;flex:0 0 auto}._3Qx5bBCG_O8wVZee9J-KyJ ._4OtOUaGIjjp2cNJMUxme_{-ms-flex-pack:justify;justify-content:space-between}._3Qx5bBCG_O8wVZee9J-KyJ ._4OtOUaGIjjp2cNJMUxme_ svg{display:inline-block;height:12px;width:12px}._2b2iJtPCDQ6eKanYDf3Jho{-ms-flex:0 0 auto;flex:0 0 auto}._4OtOUaGIjjp2cNJMUxme_{padding:0 12px}._1ra1vBLrjtHjhYDZ_gOy8F{font-family:Noto Sans,Arial,sans-serif;font-size:12px;letter-spacing:unset;line-height:16px;text-transform:unset;--textColor:var(--newCommunityTheme-widgetColors-sidebarWidgetTextColor);--textColorHover:var(--newCommunityTheme-widgetColors-sidebarWidgetTextColorShaded80);font-size:10px;font-weight:700;letter-spacing:.5px;line-height:12px;text-transform:uppercase;color:var(--textColor);fill:var(--textColor);opacity:1}._1ra1vBLrjtHjhYDZ_gOy8F._2UlgIO1LIFVpT30ItAtPfb{--textColor:var(--newRedditTheme-widgetColors-sidebarWidgetTextColor);--textColorHover:var(--newRedditTheme-widgetColors-sidebarWidgetTextColorShaded80)}._1ra1vBLrjtHjhYDZ_gOy8F:active,._1ra1vBLrjtHjhYDZ_gOy8F:hover{color:var(--textColorHover);fill:var(--textColorHover)}._1ra1vBLrjtHjhYDZ_gOy8F:disabled,._1ra1vBLrjtHjhYDZ_gOy8F[data-disabled],._1ra1vBLrjtHjhYDZ_gOy8F[disabled]{opacity:.5;cursor:not-allowed}._3a4fkgD25f5G-b0Y8wVIBe{margin-right:8px} @keyframes ibDwUVR1CAykturOgqOS5{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}._3LwT7hgGcSjmJ7ng7drAuq{--sizePx:0;font-size:4px;position:relative;text-indent:-9999em;border-radius:50%;border:4px solid var(--newCommunityTheme-bodyTextAlpha20);border-left-color:var(--newCommunityTheme-body);transform:translateZ(0);animation:ibDwUVR1CAykturOgqOS5 1.1s linear infinite}._3LwT7hgGcSjmJ7ng7drAuq,._3LwT7hgGcSjmJ7ng7drAuq:after{width:var(--sizePx);height:var(--sizePx)}._3LwT7hgGcSjmJ7ng7drAuq:after{border-radius:50%}._3LwT7hgGcSjmJ7ng7drAuq._2qr28EeyPvBWAsPKl-KuWN{margin:0 auto} In this video your find #UdisenMinecraftVanillaGuides and #UdisenMinecraft and #Udisen and as usual. Or, if you want to make all items unbreakable, just give each player a ton of Mending books. Youll understand this bit better once I tell you what else you can do. What's the difference between a power rail and a signal line? The command is: /give (yourname) minecraft:diamond_pickaxe 1 0 {Unbreakable:1} You can change: *The text after the colons in minecraft:diamond_sword to any block or item in the game *The 1 after the minecraft:diamond_sword bit can be changed to give you any amount of the unbreaking picaxes in one command setItemMeta( Itemmeta); Item should be: ItemStack Item = event [/edit].getPlayer.getItemInHand if that's what your aiming for UniqueNameDen, Mar 16, 2015 #5 Offline Rowinvd ItemMeta meta = bow.getItemMeta (); meta.spigot ().setUnbreakable (true); How does enchantment combining with an anvil work? Minecraft | Sons Of The Forest Build Hacks & Ideas! Your only option is to build everything thats been blown up from scratch again. Now, onto the commands you can use with World Guard. MCC (Minecraft Cool Contraptions) E1 VILLAGERSIMS?? ._3Z6MIaeww5ZxzFqWHAEUxa{margin-top:8px}._3Z6MIaeww5ZxzFqWHAEUxa ._3EpRuHW1VpLFcj-lugsvP_{color:inherit}._3Z6MIaeww5ZxzFqWHAEUxa svg._31U86fGhtxsxdGmOUf3KOM{color:inherit;fill:inherit;padding-right:8px}._3Z6MIaeww5ZxzFqWHAEUxa ._2mk9m3mkUAeEGtGQLNCVsJ{font-family:Noto Sans,Arial,sans-serif;font-size:14px;font-weight:400;line-height:18px;color:inherit} awesomeianman is a player and cannot be changed. setUnbreakable( value); But in 1.9+ (I think) this method has been removed, you should check the NMS. How do you take away a certain amount items from a player and then give back an item? i do know that he can give indestructible items but to allow friends to do this without giving them access to commands would be easiest done like this. BE: data: int: int Specifies the item data value of the given item (s). Is it blast-proof too? Connect and share knowledge within a single location that is structured and easy to search. Change the distance if needed. They will be marked as position one and two, and youll mark the first with your want in hand and right-clicking and then position two by left-clicking. Using a comparator, run these commands when a player is found: Here is my layout: By accepting all cookies, you agree to our use of cookies to deliver and maintain our services and site, improve the quality of Reddit, personalize Reddit content and advertising, and measure the effectiveness of advertising. boolean .s5ap8yh1b4ZfwxvHizW3f{color:var(--newCommunityTheme-metaText);padding-top:5px}.s5ap8yh1b4ZfwxvHizW3f._19JhaP1slDQqu2XgT3vVS0{color:#ea0027} 2010 - 2023 Cyprezz LLC. Related Solutions Note these { brackets are not the same set of brackets that come after iron_sword{. All Employed Villagers and Their Job Professions. Put a , comma after the \""} so that you can move onto the Enchantments:[{ command. Site design / logo 2023 Stack Exchange Inc; user contributions licensed under CC BY-SA. Bulk update symbol size units from mm to map units in rule-based symbology. How can this new ban on drag possibly be considered constitutional? getItemMeta(). In Bedrock Edition, it should be between 1 and 32767 (inclusive). In this case it is sharpness. A dialog box will appear, asking where you want to save the file, and what to name it. What I mean by unbreakable items is that they cant disappear when you die or that you cant drop them when you die, and that they dont have a durability limit so that you can always keep using the same one. eg: Unbreakable, Efficiency X and Fortune X? Besides, not being able to break items in item frames would be pretty useless. Learn more about Stack Overflow the company, and our products. This is how you make unbreakable items. Parameters: unbreakable - true if set unbreakable. Thats the first step on How to Make Blocks Unbreakable in Minecraft. Connect and share knowledge within a single location that is structured and easy to search. ._1EPynDYoibfs7nDggdH7Gq{margin-bottom:8px;position:relative}._1EPynDYoibfs7nDggdH7Gq._3-0c12FCnHoLz34dQVveax{max-height:63px;overflow:hidden}._1zPvgKHteTOub9dKkvrOl4{font-family:Noto Sans,Arial,sans-serif;font-size:14px;line-height:21px;font-weight:400;word-wrap:break-word}._1dp4_svQVkkuV143AIEKsf{-ms-flex-align:baseline;align-items:baseline;background-color:var(--newCommunityTheme-body);bottom:-2px;display:-ms-flexbox;display:flex;-ms-flex-flow:row nowrap;flex-flow:row nowrap;padding-left:2px;position:absolute;right:-8px}._5VBcBVybCfosCzMJlXzC3{font-family:Noto Sans,Arial,sans-serif;font-size:14px;font-weight:400;line-height:21px;color:var(--newCommunityTheme-bodyText)}._3YNtuKT-Is6XUBvdluRTyI{position:relative;background-color:0;color:var(--newCommunityTheme-metaText);fill:var(--newCommunityTheme-metaText);border:0;padding:0 8px}._3YNtuKT-Is6XUBvdluRTyI:before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;border-radius:9999px;background:var(--newCommunityTheme-metaText);opacity:0}._3YNtuKT-Is6XUBvdluRTyI:hover:before{opacity:.08}._3YNtuKT-Is6XUBvdluRTyI:focus{outline:none}._3YNtuKT-Is6XUBvdluRTyI:focus:before{opacity:.16}._3YNtuKT-Is6XUBvdluRTyI._2Z_0gYdq8Wr3FulRLZXC3e:before,._3YNtuKT-Is6XUBvdluRTyI:active:before{opacity:.24}._3YNtuKT-Is6XUBvdluRTyI:disabled,._3YNtuKT-Is6XUBvdluRTyI[data-disabled],._3YNtuKT-Is6XUBvdluRTyI[disabled]{cursor:not-allowed;filter:grayscale(1);background:none;color:var(--newCommunityTheme-metaTextAlpha50);fill:var(--newCommunityTheme-metaTextAlpha50)}._2ZTVnRPqdyKo1dA7Q7i4EL{transition:all .1s linear 0s}.k51Bu_pyEfHQF6AAhaKfS{transition:none}._2qi_L6gKnhyJ0ZxPmwbDFK{transition:all .1s linear 0s;display:block;background-color:var(--newCommunityTheme-field);border-radius:4px;padding:8px;margin-bottom:12px;margin-top:8px;border:1px solid var(--newCommunityTheme-canvas);cursor:pointer}._2qi_L6gKnhyJ0ZxPmwbDFK:focus{outline:none}._2qi_L6gKnhyJ0ZxPmwbDFK:hover{border:1px solid var(--newCommunityTheme-button)}._2qi_L6gKnhyJ0ZxPmwbDFK._3GG6tRGPPJiejLqt2AZfh4{transition:none;border:1px solid var(--newCommunityTheme-button)}.IzSmZckfdQu5YP9qCsdWO{cursor:pointer;transition:all .1s linear 0s}.IzSmZckfdQu5YP9qCsdWO ._1EPynDYoibfs7nDggdH7Gq{border:1px solid transparent;border-radius:4px;transition:all .1s linear 0s}.IzSmZckfdQu5YP9qCsdWO:hover ._1EPynDYoibfs7nDggdH7Gq{border:1px solid var(--newCommunityTheme-button);padding:4px}._1YvJWALkJ8iKZxUU53TeNO{font-size:12px;font-weight:700;line-height:16px;color:var(--newCommunityTheme-button)}._3adDzm8E3q64yWtEcs5XU7{display:-ms-flexbox;display:flex}._3adDzm8E3q64yWtEcs5XU7 ._3jyKpErOrdUDMh0RFq5V6f{-ms-flex:100%;flex:100%}._3adDzm8E3q64yWtEcs5XU7 .dqhlvajEe-qyxij0jNsi0{color:var(--newCommunityTheme-button)}._3adDzm8E3q64yWtEcs5XU7 ._12nHw-MGuz_r1dQx5YPM2v,._3adDzm8E3q64yWtEcs5XU7 .dqhlvajEe-qyxij0jNsi0{font-size:12px;font-weight:700;line-height:16px;cursor:pointer;-ms-flex-item-align:end;align-self:flex-end;-webkit-user-select:none;-ms-user-select:none;user-select:none}._3adDzm8E3q64yWtEcs5XU7 ._12nHw-MGuz_r1dQx5YPM2v{color:var(--newCommunityTheme-button);margin-right:8px;color:var(--newCommunityTheme-errorText)}._3zTJ9t4vNwm1NrIaZ35NS6{font-family:Noto Sans,Arial,sans-serif;font-size:14px;line-height:21px;font-weight:400;word-wrap:break-word;width:100%;padding:0;border:none;background-color:transparent;resize:none;outline:none;cursor:pointer;color:var(--newRedditTheme-bodyText)}._2JIiUcAdp9rIhjEbIjcuQ-{resize:none;cursor:auto}._2I2LpaEhGCzQ9inJMwliNO,._42Nh7O6pFcqnA6OZd3bOK{display:inline-block;margin-left:4px;vertical-align:middle}._42Nh7O6pFcqnA6OZd3bOK{fill:var(--newCommunityTheme-button);color:var(--newCommunityTheme-button);height:16px;width:16px;margin-bottom:2px} :https://youtu.be/G8UIhDwMtRwHow To Fix Failed to Authenticate Your Connection Hypixel! Where is your item stored? You can also change the area selection shape, but you can read about that in the WorldEdit files. However, escape rooms are usually made with bedrock only, which is a naturally unbreakable block in Minecraft survival mode. Have an issue/problem with Minecraft? Notice the [ after the Lore: this is to separate the lore lines on your item. { = the start of the command process of the item and } = the end of the command process. ], Give player item(s) when player hits X amount of deaths, how to make setblock a command block with a command that is executed at a certain player. How can I do that with command blocks? That's the first step on How to Make Blocks Unbreakable in Minecraft. I misunderstood what the OP was asking. ._1LHxa-yaHJwrPK8kuyv_Y4{width:100%}._1LHxa-yaHJwrPK8kuyv_Y4:hover ._31L3r0EWsU0weoMZvEJcUA{display:none}._1LHxa-yaHJwrPK8kuyv_Y4 ._31L3r0EWsU0weoMZvEJcUA,._1LHxa-yaHJwrPK8kuyv_Y4:hover ._11Zy7Yp4S1ZArNqhUQ0jZW{display:block}._1LHxa-yaHJwrPK8kuyv_Y4 ._11Zy7Yp4S1ZArNqhUQ0jZW{display:none} Share You can go above 5 which is the highest in a survival mode with an enchanting table. Recovering from a blunder I made while emailing a professor, Minimising the environmental effects of my dyson brain. @BACONISDABEST2COOL4U that's great, so is this an acceptable answer? In this case it's 5 making it Sharpness 5. The best answers are voted up and rise to the top, Not the answer you're looking for? Unbreaking works by picking a random integer between 0 and the level of Unbreaking you have (inclusive), and if it's not 0, the tool will not take damage. The Lore ends after the \""} make sure you start the {Name: with a bracket and end the \""} with a bracket so it ends the command for display. /give @p minecraft:diamond_pickaxe 1 0 {CanDestroy:[minecraft:wheat]} This allows you to stop players from breaking blocks while allowing certain blocks to be destroyed. 1.16.5: I've tried to mess with /data but I'm just too stupid to understand it. 11 comments. After add a , comma. yes, I do want to make when a player crafts a diamond_sword then gets replaced with an unbreakable version and I need it to make it happen with all tools. Maybe having a command block that makes the activator's hand have the mending enchant? In the large "Download Recommended" box, click on the small MDK box. How can I explain to my manager that a project he wishes to undertake cannot be performed by the team? Visit https://files.minecraftforge.net and make sure the version selected is the version for which you want to create a mod. I do not take any responsibility for any kind of viruses and malwares. Sorry about what i said earlier after looking at it there is a completely different problem you have yes you can't make a player unbreakable but also you can't use entity data at all for diamond sword because it isn't an entity. If you really love my content, please consider subscribing! ._12xlue8dQ1odPw1J81FIGQ{display:inline-block;vertical-align:middle}