Probably works for 1.7 and 1.8 as well, but haven't tried it out
Disclaimer
This skript was not originally made by me, but a Skripter called Gyeryak,
who has unfortunately decided to unsurface due to personal conflicts.
However he gave me permission to post his skripts where I wanted as long as I stated him as the original maker.
Disclaimer
This skript was not originally made by me, but a Skripter called Gyeryak,
who has unfortunately decided to unsurface due to personal conflicts.
However he gave me permission to post his skripts where I wanted as long as I stated him as the original maker.
A skript originally created to give items in MythicMobs, but of course you can use it to whatever you need.
commands
/iitem <player> <item number> <amount> [<range>]
-> if range is not set, gives the exact amount.
If <range> is set, it gives a random amount between <amount> and <range>
/isetitem <item number>
alias: /isi
-> sets your current held item as the item number slot.
In the case where there is already an item in the specified slot, it will give the already stored item.
If you wish to change the already stored item to the held item add yes to the command like the following:
/Isetitem <item number> yes
/ii <item number>
-> just an easier way to get the item you want
/ilist [<page>]
-> with no page specified, it shows all items.
with the page specified, it shows 20 items corresponding to the page
Why is this for MythicMobs?
Well, of course you can use the skript to suit your needs, but there are 2 main reasons I had this skript made.
1. to give items using the command mechanic in MythicMobs without spamming the console.
2. to give drops within skills in MythicMobs so that I can customize drop distribution much diversely since I am not forced to use droptables.
3. store items much easily without using MythicMobs's items.yml
4. Make sure the player who has done the most damage gets the drops(using threattables + @Target)
How to use:
Code (Text):
Pig1:
Type: PIG
Display: '&fsome dumb pig'
Health: 100
Damage: 0
Modules:
ThreatTable: true
Skills:
- Skill{s=pig_death} @Target ~onDeath
Code (Text):
pig1_death:
Skills:
- command{c="iitem <target.name> 1001 1 5"} 0.6
- command{c="iitem <target.name> 1004 1"} 0.1 #some rare item
- command{c="iitem <target.name> 1004 1"} 0.001 #some ultra rare item
Any questions, bugs etc.
please post here
http://www.mythicmobs.net/index.php?threads/item-distributing-skript.2198/
Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft versions listed: 1.9, 1.10
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Spigot — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.
Iitems is a free Minecraft Java mod. Compatible with Minecraft 1.9, 1.10. Downloaded 191 times (via Spigot). Download it and open it directly in the game.