I want to make custom weapons, tools and armour with a datapack. I want to start with basic extra items like steel armour, ..., and I want to give it slightly higher durability than iron. Is this possible with fairly simple commands? I don't know if this is a duplicate, but I didn't find anything that answered my question.
I have a Minecraft 1.8.1 vanilla server and would like to reward certain users. I would like to /give some users a 99999/99999 durability renamed Diamond Pickaxe (with all enchantments on it). How do I use commands to change/repair the durability of items? If possible, using only one command and use /give.
Form within a block I'm using drupal_get_form('event_signup_form') to embed my custom form inside a block. The form is being rendered as intended, but submitting the form triggers nothing.  The form function itself is called event_signup_form($form, &amp;$form_state) and the submit function is called event_signup_form_submit($form, &amp;$form_state) but it's not being called.  I am using  to show the form:  function event_block_view($delta = '') { $blocks = array(); if ($delta ...) { $blocks['content'] = drupal_render(drupal_get_form('event_signup_form')); } }   I managed to get this working - here is how (stub):  function hook_block_view($delta = '') { $blocks['content'] = drupal_render(drupal_get_form('event_signup_form')); }  function event_signup_form() { // Register form submit handler, same goes for validation handler $form['#submit'][] = 'event_signup_form_submit';  return $form; }  function event_signup_form_submit($form, &amp;$form_state) { // This is now triggered } Generating a unique machine id Attributive nouns vs. of-genitive I would be very grateful for some advice on how to decide whether to use an attributive noun or the "of genitive" (periphrastic genitive).  It seems to me that an attributive noun is generally preferable, except when it leads to ambiguity, often due to the combination of several modifiers with mixed dependent relationships.  Additionally, the of-genitive, when used stand-alone, seems to impart a more formal tone, a higher register.  Simple examples (preferred first, less-preferred second):  The department secretary vs. the secretary of the department.  But:  The excellent secretary of the department vs. the excellent department secretary.  Any additional guidelines would be most welcome. I was wondering why a laser beam diverges. If all the photons are in the same direction, I would imagine that it would stay that way over a long distance. I am aware that a perfectly collimated beam with no divergence cannot be created due to diffraction, but I am looking for an explanation based on  photons rather than wave physics. How do you prove the follwing $|\sqrt[n]{x}-\sqrt[n]{y}| \le \sqrt[n]{|x-y|}$ how do you prove this inequality? $|\sqrt[n]{x}-\sqrt[n]{y}| \le \sqrt[n]{|x-y|}$ At first glance I thought the triangle inequality would be useful but it's not form what I see. If I raise everything to the power of n I get the following: Possibility 1 (n uneven) : $|x + ... -y| \le |x-y|$ I guess I would have to prove that ... $\le$ 0 but I don't know how to do that. Possibility 2 (n even) : $|x + ... +y| \le |x-y|$ Same as above but now I have to prove that ... $\le$ -y. Am I even on the right track here? Any help would be appreciated. Thanks in advance. How do I tell which point-and-shoot cameras take good low light photos? Max length for HTML How to restrict the maximum number of characters that can be entered into an HTML &lt;textarea&gt;? I'm looking for a cross-browser solution. Rubbing eggplants in salt Parameterize an SQL IN clause Evaluate forecasting ability of GARCH models with RMSE and MAE understanding "mount" as a concept in the OS I want to understand what mounting is. It is used in different contexts and situations and I can't find resources which:   Describe the mount concept Explain the actions taken by the computer/OS/utility when a mount is performed How and in which situations mount is used Which features in the Linux mount command are of frequent use and some examples   ( I hear mount applied to diverse entities directories, flash drives, network card, etc ) As you can see on this screenshot of 's Guake he has a startup message of ASCII art when he opens it, and that's what I'd like to do, can someone help me? As a new user on a site, what's the best way to ensure your question will be positively received? It seems that a number of the statistical packages that I use wrap these two concepts together. However, I'm wondering if there are different assumptions or data 'formalities' that must be true to use one over the other. A real example would be incredibly useful. What follows if we fail to reject the null hypothesis? What conclusions can we draw if $p&gt;\alpha$? Does not rejecting the $H_0$ mean anything? Can someone help me elucidate the definition of "income" from a tax perspective? More specifically, if Joe is paid for his work in avocados instead of dollars, then would Joe be exempt from paying any income tax for the year? Or would the value of avocados earned for the year be translated into dollars which would then be considered Joe's annual income? If so, what guidelines would one use to make this translation? (Make the assumption that Joe does not sell the avocados (for dollars) at a later date and either eats them or trades them for other real property)  What if he was paid in gold instead of avocados? Story where the main character learns to perceive time out of order from the aliens I read a story several years ago in which aliens come make first contact with Earth, and a bunch of scientists set to work trying to establish communication with them in various fields. The main character is a linguist and her team is working to try to figure out their written language, which doesn't have any sort of linear structure and can be read starting from any place.  It contains some explanation of quantum physics as an analogy for how they view time.  In the end, it turns out that the aliens don't perceive time in a linear fashion, and sort of see the future on equal terms with the past, etc. The main character learns to see time this way by studying their language, and the story is interspersed with her talking about what her child is going to do / is doing / has done.  I think I read it in a science fiction magazine but I'm not sure about this part. Why is the determinant the volume of a parallelepiped in any dimensions? For $n = 2$, I can visualize that the determinant $n \times n$ matrix is the area of the parallelograms by actually calculating the area by coordinates.  But how can one easily realize that it is true for any dimensions? Which method performs better: .Any() vs .Count() > 0? in the System.Linq namespace, we can now extend our  to have the  and  extension methods.  I was told recently that if i want to check that a collection contains 1 or more items inside it, I should use the .Any() extension method instead of the .Count() &gt; 0 extension method because the .Count() extension method has to iterate through all the items.  Secondly, some collections have a property (not an extension method) that is Count or Length. Would it be better to use those, instead of .Any() or .Count() ?  yea / nae ? Does Gentle Repose work on a Circle of Spore Druid's Fungal Infestation Ability? The Circle of Spores Druid feature Fungal Infestation states:  If a beast or humanoid that is Small or Medium dies within 10 feet of you, you can use your reaction to animate it, causing it to stand up immediately with 1 hit point. The creature uses the zombie statistics. It remains animate for 1 hour, after which time it collapses and dies.  Circle of Spore druids also gain access to the  spell, which states:  You touch a corpse or other remains. For the duration, the target is protected from decay and can’t become undead. The spell also effectively extends the time limit on raising the target from the dead, since days spent under the influence of this spell don’t count against the time limit of spells such as raise dead.  There seem to be some good arguments that they cannot work together:  First, Gentle Repose states the target cannot become undead, which would seem to preclude Gentle Repose working on a fungally infested creature that appears to be in some sense raised from the dead. Second, gentle repose states you touch a corpse or other remains - one could argue that using the zombie statistics, the fungally infested entity is neither a corpse or remains, but an undead zombie.  However, there are also some reasonable arguments that they could work together:  First, the Fungal Infestation does not say that the creature is undead or a zombie, but that it uses the statistics of a zombie, which might leave room for a RAW interpretation that the features could work together (for example, it could be considered a fungally infested corpse or fungally raised remains). Second, Gentle Repose says that it extends the time limit of raising the target from the dead and makes reference to spells like Raise Dead, which in flavour are similar to what happens with Fungal Infestation.  RAW, can a player cast gentle repose on a zombie created by Fungal Infestation?