OceanShark / Seagoingmanatee-s-Custom-Craft--edited-
pinv = player.getInventory() try { var fslot = pinv.getSlotContainingItem(265) //265 is iron ingot, removed the "Damage" part of the function since it's iron ingot var fquant = pinv.getItemInSlot(fslot).getQuantity() if (fslot != 1 && fquant >= 20) { if(pinv.getSlotContainingItem(272) != -1) //272 is stone sword { pinv.consumeItemAmount(265,20) //20 iron ingots pinv.consumeItem(272) // + 1 stone sword pinv.addItem(Item(267)) // = 1 iron sword } } } catch(e) {}
About this discovery
Public repository record indexed from GitHub. Explore verified star velocity metrics, source code repositories, and curated developer tool directories across the GitHubRepo ecosystem.