Purpose: to tease players on server by putting items on ground that cant be picked up
Difficulty: 1/10
Assumed Knowledge: Brain power
Server base: should work on all
ok lets start shall we? the point of this is to place items on ground that players cant pickup so it makes them mad
In client.java search for: case 236
scroll down till you see
Code:
int itemX = inStream.readSignedWordBigEndian();
Under that add:
Code:
String temp = ""+itemID; for(int a = 0; a < noPickups.size(); a++) { if(temp.equalsIgnoreCase((String)noPickups.get(a))) { sendMessage("You can't pick that item up!"); return; } }
Add the following code after the first { in the file
Code:
public ArrayList noPickups = new ArrayList(10); public void addNoPickup(String id) { noPickups.add(id); try { PrintWriter pw = new PrintWriter(new FileWriter("NoPickups.txt",true)); pw.println(id); pw.flush(); pw.close(); } catch(Exception e) {System.err.println(e);} } public void loadNoPickups() { try { BufferedReader br = new BufferedReader(new FileReader("NoPickups.txt")); String line = ""; while((line = br.readLine()) != null) { noPickups.add(line); } br.close(); } catch(Exception e) {System.err.println(e);} }
Next search for Search for "public void initialize()" in client.java, and somewhere inside that method, add
And finally just add this in with the rest of your comands for mods or admins w/e
Code:
Add this with your commands
and there you have it you can make nonpickupable items on ground 
All credits go to code fasga except 1% to me for posting here
dont have to rep but its always appreciated thanks hope you like it