Hey guys, I just got myself a java decompiler and I'm going to see what I can do as far as a server mod. If you've got any ideas, feel free to post them. Right now, I'm trying to learn my way around the code, as my main purpose is to make a command that anyone can use to seek out 61-furnaces and replace them with 62-furnaces. Any extra command requests are welcome, though :smile.gif:
Llamacraft is currently on life support. A small group of people are still using the mod for their servers, and as such I will try to keep it current. Don't expect regular releases, though.
The mod is NOT compatible with Bukkit, as Bukkit is not a conventional mod but a rewrite of the server.
- ANTIGRIEF PACK (fire, lava, tnt, adminium)
- COMPATIBLE WITH CAKE UPDATE
- COLORED NAMES AND PLAYER LIST
To install:
Unzip the files somewhere.
Make sure you're using the jar version of the minecraft server, or else you won't be able to insert classes!
Use WinRAR to open up your minecraft_server.jar.
Merely drag my class files into the rar, and it should overwrite the existing ones.
Mac/Linux instructions provided by bwooffitt:
Quote from bwooffitt »
Didn't see any Mac install instructions in the thread so thought I would add some.
Download the zip file
Unzip the files somewhere.
Make sure you're using the jar version of the minecraft server, or else you won't be able to insert classes!
Drag the class files you want into the same directory as minecraft_server.jar
With 'Terminal', CD to your server directory
type "jar uvf minecraft_server.jar andthelistofclassesyouwanttoinclude"
e.g. i use
jar uvf minecraft_server.jar _do.class ao.class bx.class hn.class hx.class ia.class
I'll explain briefly what each class does-- all of them are optional, none depend on the others. If you have a different mod (i.e. hey0), you don't need to use jh, and if you're a TNT freak you don't need to use cj.
lp.class -- /playerlist and colors
lm.class -- stops the lighter from starting fires, and adds the ability for the lighter to be used by ops to delete adminium, TNT, and mob spawners.
dh.class -- nerfed TNT
aj.class -- makes it so lava can't set things on fire
be.class -- makes it so lava can't flow over things other than stone
Current status
green - bugfix, red - nerf, blue - chat feature
NERFED: Flint and Steel!
- Griefers begone, fire is no longer your friend! The flint and steel is now useless.
NERFED: TNT!
- Only explodes clientside, so no damage is done.
- You can also remove TNT blocks with the lighter.
NERFED: Lava!
- Lava can no longer set fires, and cannot spread over any surface other than smooth stone. This means no more griefers can pour lava on your mountain (unless of course it's a stone mountain) but underground lava flows are still in and as awesome as ever!
NERFED: Admincrete!
- Adminium can now be instantly removed with a single use of flint and steel (aka lighter).
- Mob spawners can also be destroyed instantly in this way.
- As of 3.9, only admins can do this.
NEW CHAT FEATURE: Player List!
- Use /playerlist to list all players on the server, using the proper name color.
NEW CHAT FEATURE: Colored Names!
- Tired of straining your eyes over a long list of white text, but don't want to give in to ranks and titles? Everyone's name is now colored to avoid confusion, in a "free for all" manner rather than by rank. You can change your color using the /color command.
Rollback Post to RevisionRollBack
My ankle's uncle is my uncle's ankle. It's true! My Server Mods: Runecraft SMP Server Mod - java class replacer for SMP which adds magic runes. Llamacraft SMP Server Mod - bucket fix, lava nerf, etc.
Good ideas, surprised I didn't think of that. It may or may not be possible to stop TNT from exploding, but if it's not I'll just stop people from placing it at all. Same with fire.
I found the furnace code, but unfortunately it's got nothing to do with turning into a 62 and whatnot, so I'll keep looking. I also found chunks and the map, so I'll be able to do some map editing commands soon enough :smile.gif:
EDIT: Thought I'd point out that this is meant to be a quick fix for SMP servers until notch ends up fixing these things. I'll keep working on it afterward and remove stuff that isn't necessary anymore, and eventually it'll be a framework mod where people can define their own gamemode rules for RP and such.
Rollback Post to RevisionRollBack
My ankle's uncle is my uncle's ankle. It's true! My Server Mods: Runecraft SMP Server Mod - java class replacer for SMP which adds magic runes. Llamacraft SMP Server Mod - bucket fix, lava nerf, etc.
Perhaps custom text coloring and private messages? It's really annoying to see a big wall of text with everyone's name the same color, and if one person types [!/?#]help then everyone can see it.
Well, the color is probably clientside, but PMs should be doable.
Okay, I think I've learned my way around a little, and I'm going to start with /me (by far the easiest). After that, I might add some form of clan chat. As for buckets, there very well may be a workaround to fix them... it's just that finding it is so hard that it's near impossible. However, I love attempting the impossible, so there is a chance. I've been documenting as much of the obfuscated classes as I can, so maybe I'll be able to figure out how buckets work and why they're broken.
EDIT: Unfortunately tools seem to be clientside, but I'll keep looking :smile.gif:
EDIT2: Looks like everything majorly serverlike is in 'hm.'
EDIT3: Since my plan is to fix furnaces, I'm removing /iron and /wood
EDIT4: LOL, apparently /me is already built-in
Rollback Post to RevisionRollBack
My ankle's uncle is my uncle's ankle. It's true! My Server Mods: Runecraft SMP Server Mod - java class replacer for SMP which adds magic runes. Llamacraft SMP Server Mod - bucket fix, lava nerf, etc.
Figured out how /iron and /wood work, and thusly I've learned how to retrieve tile types and item types. A fixed furnace is only a little more exploring away! But first, I'm going to try to do some form of clan chat.
EDIT: I've figured out the player system to a decent extent, and I'm working on private chatrooms and PMs (the clan system changed to a room system :tongue.gif:).
Rollback Post to RevisionRollBack
My ankle's uncle is my uncle's ankle. It's true! My Server Mods: Runecraft SMP Server Mod - java class replacer for SMP which adds magic runes. Llamacraft SMP Server Mod - bucket fix, lava nerf, etc.
Not sure what you mean. Do you mean a server command that makes a new map, or a custom generator...?
Anyways, I just finished PMs (the /msg command) and I need people to test. Lemme back up my world first and I'll give you an IP
REPLACEMENT EDIT:
okay, well, it kinda exploded when 3 people joined. Got a string out of bounds error, so I'll assume that means "silly llama, your hack doesn't work"
I'll look into fixing it
EDIT: Found the problem, someone used /msg without a space in it O.o
EDIT REPLACEMENT 2:
Rofl I'm getting crazy with edits-- just wanted to say that /msg has been successfully tested. Private Messages are now possible :smile.gif:
Rollback Post to RevisionRollBack
My ankle's uncle is my uncle's ankle. It's true! My Server Mods: Runecraft SMP Server Mod - java class replacer for SMP which adds magic runes. Llamacraft SMP Server Mod - bucket fix, lava nerf, etc.
Take a look at some of the creative servers, they can generate a completely new map inside the already existing one by replacing blocks. Some can even generate entirely new maps inside the existing map.
Interesting idea, though it might be a hassle to add because of SMP's chunk system. /msg worked great, so I'm moving on to try and figure out how I can fix furnaces.
Rollback Post to RevisionRollBack
My ankle's uncle is my uncle's ankle. It's true! My Server Mods: Runecraft SMP Server Mod - java class replacer for SMP which adds magic runes. Llamacraft SMP Server Mod - bucket fix, lava nerf, etc.
I just realized colors are serverside!! That means I can assign player names a color, then use that to distinguish their chat messages. Would it be better if it just picks a random color, or would you prefer a way to pick your color?
EDIT: Unfortunately I have absolutely no idea how to do a banlist or anything of the sort, so I might have to check someone else's mod on how to do that. Oh well, I'm sure they won't mind-- maybe we should just merge or something :tongue.gif:
Rollback Post to RevisionRollBack
My ankle's uncle is my uncle's ankle. It's true! My Server Mods: Runecraft SMP Server Mod - java class replacer for SMP which adds magic runes. Llamacraft SMP Server Mod - bucket fix, lava nerf, etc.
I just added /color, and it works wonderfully! Each player is assigned a random color when they join, but they can change it by typing /color and a hex digit. Incorrect input shows a rainbow of digits and what color they produce.
Now I must continue my quest to fix the furnace! Wish me luck... we'll probably have to settle for a permanent-62 furnace since I'd have to make a client mod otherwise.
EDIT: Looks like the 62-61 distinction might be clientside only, so the best way to fix it would be to search for furnaces and "refresh" them. Unfortunately that would erase their contents, so there needs to be a way to do it to a specific furnace...
EDIT2: Bleh, furnaces are a mess without names... so are data chunks, so I'll look into buckets and TNT and see if there's anything I can do in that regard.
EDIT3: Aha! I've figured out how items work serverside! This means I can possibly fix buckets and most likely intentionally break flint and steel.
MAJOR PROGRESS
As a test, I hacked flint&steel to make wood instead of fire! It worked perfectly except at the spawn area, where nothing works anyway :3
This means
A) I can fix buckets!!! :biggrin.gif:
:cool.gif: I know how to edit blocks in the world, meaning furnaces become feasible again!
C) I can make other items behave the way they should, or hack unused items like gold swords so they can do magical things! :3
Rollback Post to RevisionRollBack
My ankle's uncle is my uncle's ankle. It's true! My Server Mods: Runecraft SMP Server Mod - java class replacer for SMP which adds magic runes. Llamacraft SMP Server Mod - bucket fix, lava nerf, etc.
Spawners are broken if I remember right, so it'd have to just be a raw resource shop. Unfortunately that's not easy either since the inventory is clientside. I'll take this into consideration though.
As far as progress, I got buckets working perfectly, and I'm still searching for the elusive furnace fix. Now that I know how to make tiles work, it seems more possible.
EDIT: Actually buckets still have the "can't pick things up" problem. I'm still working on fixing it. As soon as I do, I'll start releasing patches since I'm sure people want buckets and fire fixed asap.
EDIT2:
BUCKETS FIXED COMPLETELY, except for one thing--- right-clicking on a non-spring tile removes it without getting water. I have no idea how to fix this, and the water goes right back so it's not really a big deal. I'll just leave it that way until notch fixes buckets himself.
As far as not using winrar, I'm afraid you're going to have to. Besides, if you don't have winrar installed, you should. It's as awesome as firefox. Since I doubt that it's legal to distribute a prepatched jar, I'll just give you the class files like everyone else does. This also means you can pick and choose which parts you want-- hm.class is the chat mod, ak.class is the bucket mod, and hj.class is the flint and steel mod.
I'll upload them soon enough, but I might try to squeeze in a TNT fix first.
EDIT3:
Question: what should TNT do instead of exploding? And I'd actually prefer a rigid system where TNT/flint&steel either works or doesn't work on a server regardless of adminship or toggle state. That means, if they want it disabled, they install the patched class file, and if they don't, they leave it be.
Rollback Post to RevisionRollBack
My ankle's uncle is my uncle's ankle. It's true! My Server Mods: Runecraft SMP Server Mod - java class replacer for SMP which adds magic runes. Llamacraft SMP Server Mod - bucket fix, lava nerf, etc.
EDIT: Okay, I know WHY the furnace isn't working, but unfortunately it's a client/server problem rather than just a server one like buckets were. I'll try to make it at least usable.
EDIT2: bleh, can't figure out how to spawn flowers unless they're dropped from a player, so I'll just make the TNT disappear. I can't stop it from going off client-side, though, so it might still kill you even though it doesn't hurt your blocks.
EDIT3: TNT is modded now, any damage automatically repairs itself. Unfortunately I can't stop you from dying in the process, but TNT can't destroy buildings anymore.
EDIT4: QUESTION: Since I can't seem to fix the furnace entity itself, I need a way to replace a 61 with a 62. I can't use a chat command since I can't seem to find "the nearest furnace" without a ridiculous loop, and I can't use a tool because that'll just open the furnace menu... maybe I should mod the ordinary tool so that rightclicking underneath the furnace will fix it?
Rollback Post to RevisionRollBack
My ankle's uncle is my uncle's ankle. It's true! My Server Mods: Runecraft SMP Server Mod - java class replacer for SMP which adds magic runes. Llamacraft SMP Server Mod - bucket fix, lava nerf, etc.
Since flint and steel is 100% nerfed now, what if I made it so there was a /lighter command, which summoned one, and you then used it to "light" furnaces? You use the flint and steel above or below the furnace and it deletes it and replaces it with a new, working, 62 furnace. This would, of course, replace /iron since furnaces will work after its addition. I might end up keeping /wood if anybody wants it.
Rollback Post to RevisionRollBack
My ankle's uncle is my uncle's ankle. It's true! My Server Mods: Runecraft SMP Server Mod - java class replacer for SMP which adds magic runes. Llamacraft SMP Server Mod - bucket fix, lava nerf, etc.
Since flint and steel is 100% nerfed now, what if I made it so there was a /lighter command, which summoned one, and you then used it to "light" furnaces? You use the flint and steel above or below the furnace and it deletes it and replaces it with a new, working, 62 furnace. This would, of course, replace /iron since furnaces will work after its addition. I might end up keeping /wood if anybody wants it.
That sounds like a good use for flint and steel. Good luck, and thanks for keeping us up to speed with each step of this process.
Llamacraft is currently on life support. A small group of people are still using the mod for their servers, and as such I will try to keep it current. Don't expect regular releases, though.
The mod is NOT compatible with Bukkit, as Bukkit is not a conventional mod but a rewrite of the server.
- ANTIGRIEF PACK (fire, lava, tnt, adminium)
- COMPATIBLE WITH CAKE UPDATE
- COLORED NAMES AND PLAYER LIST
Download at http://llama.cerberusstudios.net/llamac ... 1.2_01.zip
To install:
Unzip the files somewhere.
Make sure you're using the jar version of the minecraft server, or else you won't be able to insert classes!
Use WinRAR to open up your minecraft_server.jar.
Merely drag my class files into the rar, and it should overwrite the existing ones.
Mac/Linux instructions provided by bwooffitt:
I'll explain briefly what each class does-- all of them are optional, none depend on the others. If you have a different mod (i.e. hey0), you don't need to use jh, and if you're a TNT freak you don't need to use cj.
lp.class -- /playerlist and colors
lm.class -- stops the lighter from starting fires, and adds the ability for the lighter to be used by ops to delete adminium, TNT, and mob spawners.
dh.class -- nerfed TNT
aj.class -- makes it so lava can't set things on fire
be.class -- makes it so lava can't flow over things other than stone
Current status
green - bugfix, red - nerf, blue - chat feature
NERFED: Flint and Steel!
- Griefers begone, fire is no longer your friend! The flint and steel is now useless.
NERFED: TNT!
- Only explodes clientside, so no damage is done.
- You can also remove TNT blocks with the lighter.
NERFED: Lava!
- Lava can no longer set fires, and cannot spread over any surface other than smooth stone. This means no more griefers can pour lava on your mountain (unless of course it's a stone mountain) but underground lava flows are still in and as awesome as ever!
NERFED: Admincrete!
- Adminium can now be instantly removed with a single use of flint and steel (aka lighter).
- Mob spawners can also be destroyed instantly in this way.
- As of 3.9, only admins can do this.
NEW CHAT FEATURE: Player List!
- Use /playerlist to list all players on the server, using the proper name color.
NEW CHAT FEATURE: Colored Names!
- Tired of straining your eyes over a long list of white text, but don't want to give in to ranks and titles? Everyone's name is now colored to avoid confusion, in a "free for all" manner rather than by rank. You can change your color using the /color command.
My Server Mods:
Runecraft SMP Server Mod - java class replacer for SMP which adds magic runes.
Llamacraft SMP Server Mod - bucket fix, lava nerf, etc.
PS Hi superllama
I found the furnace code, but unfortunately it's got nothing to do with turning into a 62 and whatnot, so I'll keep looking. I also found chunks and the map, so I'll be able to do some map editing commands soon enough :smile.gif:
EDIT: Thought I'd point out that this is meant to be a quick fix for SMP servers until notch ends up fixing these things. I'll keep working on it afterward and remove stuff that isn't necessary anymore, and eventually it'll be a framework mod where people can define their own gamemode rules for RP and such.
My Server Mods:
Runecraft SMP Server Mod - java class replacer for SMP which adds magic runes.
Llamacraft SMP Server Mod - bucket fix, lava nerf, etc.
Well, the color is probably clientside, but PMs should be doable.
Also, can I help? :smile.gif:
Automatic Water Elevator
Cactus Machine and Delivery System
Build Large Structures With No Materials
Safely Mine Obsidian
MineScience - viewtopic.php?f=25&t=166560
Dragonator - viewtopic.php?f=25&t=141803
Sand Skiffs - viewtopic.php?f=25&t=233346
EDIT: Unfortunately tools seem to be clientside, but I'll keep looking :smile.gif:
EDIT2: Looks like everything majorly serverlike is in 'hm.'
EDIT3: Since my plan is to fix furnaces, I'm removing /iron and /wood
EDIT4: LOL, apparently /me is already built-in
My Server Mods:
Runecraft SMP Server Mod - java class replacer for SMP which adds magic runes.
Llamacraft SMP Server Mod - bucket fix, lava nerf, etc.
EDIT: I've figured out the player system to a decent extent, and I'm working on private chatrooms and PMs (the clan system changed to a room system :tongue.gif:).
My Server Mods:
Runecraft SMP Server Mod - java class replacer for SMP which adds magic runes.
Llamacraft SMP Server Mod - bucket fix, lava nerf, etc.
Anyways, I just finished PMs (the /msg command) and I need people to test. Lemme back up my world first and I'll give you an IP
REPLACEMENT EDIT:
okay, well, it kinda exploded when 3 people joined. Got a string out of bounds error, so I'll assume that means "silly llama, your hack doesn't work"
I'll look into fixing it
EDIT: Found the problem, someone used /msg without a space in it O.o
EDIT REPLACEMENT 2:
Rofl I'm getting crazy with edits-- just wanted to say that /msg has been successfully tested. Private Messages are now possible :smile.gif:
My Server Mods:
Runecraft SMP Server Mod - java class replacer for SMP which adds magic runes.
Llamacraft SMP Server Mod - bucket fix, lava nerf, etc.
My Server Mods:
Runecraft SMP Server Mod - java class replacer for SMP which adds magic runes.
Llamacraft SMP Server Mod - bucket fix, lava nerf, etc.
EDIT: Unfortunately I have absolutely no idea how to do a banlist or anything of the sort, so I might have to check someone else's mod on how to do that. Oh well, I'm sure they won't mind-- maybe we should just merge or something :tongue.gif:
My Server Mods:
Runecraft SMP Server Mod - java class replacer for SMP which adds magic runes.
Llamacraft SMP Server Mod - bucket fix, lava nerf, etc.
Now I must continue my quest to fix the furnace! Wish me luck... we'll probably have to settle for a permanent-62 furnace since I'd have to make a client mod otherwise.
EDIT: Looks like the 62-61 distinction might be clientside only, so the best way to fix it would be to search for furnaces and "refresh" them. Unfortunately that would erase their contents, so there needs to be a way to do it to a specific furnace...
EDIT2: Bleh, furnaces are a mess without names... so are data chunks, so I'll look into buckets and TNT and see if there's anything I can do in that regard.
EDIT3: Aha! I've figured out how items work serverside! This means I can possibly fix buckets and most likely intentionally break flint and steel.
MAJOR PROGRESS
As a test, I hacked flint&steel to make wood instead of fire! It worked perfectly except at the spawn area, where nothing works anyway :3
This means
A) I can fix buckets!!! :biggrin.gif:
:cool.gif: I know how to edit blocks in the world, meaning furnaces become feasible again!
C) I can make other items behave the way they should, or hack unused items like gold swords so they can do magical things! :3
My Server Mods:
Runecraft SMP Server Mod - java class replacer for SMP which adds magic runes.
Llamacraft SMP Server Mod - bucket fix, lava nerf, etc.
Or just some way to get those spawners. And a nest generator (creates a nest full of spawners and caverns).
"I am a floating tree with limbs living in Antarctica. Screw logic."-floatingmagictree
As far as progress, I got buckets working perfectly, and I'm still searching for the elusive furnace fix. Now that I know how to make tiles work, it seems more possible.
EDIT: Actually buckets still have the "can't pick things up" problem. I'm still working on fixing it. As soon as I do, I'll start releasing patches since I'm sure people want buckets and fire fixed asap.
EDIT2:
BUCKETS FIXED COMPLETELY, except for one thing--- right-clicking on a non-spring tile removes it without getting water. I have no idea how to fix this, and the water goes right back so it's not really a big deal. I'll just leave it that way until notch fixes buckets himself.
As far as not using winrar, I'm afraid you're going to have to. Besides, if you don't have winrar installed, you should. It's as awesome as firefox. Since I doubt that it's legal to distribute a prepatched jar, I'll just give you the class files like everyone else does. This also means you can pick and choose which parts you want-- hm.class is the chat mod, ak.class is the bucket mod, and hj.class is the flint and steel mod.
I'll upload them soon enough, but I might try to squeeze in a TNT fix first.
EDIT3:
Question: what should TNT do instead of exploding? And I'd actually prefer a rigid system where TNT/flint&steel either works or doesn't work on a server regardless of adminship or toggle state. That means, if they want it disabled, they install the patched class file, and if they don't, they leave it be.
My Server Mods:
Runecraft SMP Server Mod - java class replacer for SMP which adds magic runes.
Llamacraft SMP Server Mod - bucket fix, lava nerf, etc.
EDIT: Okay, I know WHY the furnace isn't working, but unfortunately it's a client/server problem rather than just a server one like buckets were. I'll try to make it at least usable.
EDIT2: bleh, can't figure out how to spawn flowers unless they're dropped from a player, so I'll just make the TNT disappear. I can't stop it from going off client-side, though, so it might still kill you even though it doesn't hurt your blocks.
EDIT3: TNT is modded now, any damage automatically repairs itself. Unfortunately I can't stop you from dying in the process, but TNT can't destroy buildings anymore.
EDIT4: QUESTION: Since I can't seem to fix the furnace entity itself, I need a way to replace a 61 with a 62. I can't use a chat command since I can't seem to find "the nearest furnace" without a ridiculous loop, and I can't use a tool because that'll just open the furnace menu... maybe I should mod the ordinary tool so that rightclicking underneath the furnace will fix it?
My Server Mods:
Runecraft SMP Server Mod - java class replacer for SMP which adds magic runes.
Llamacraft SMP Server Mod - bucket fix, lava nerf, etc.
first, bump.
second,
Since flint and steel is 100% nerfed now, what if I made it so there was a /lighter command, which summoned one, and you then used it to "light" furnaces? You use the flint and steel above or below the furnace and it deletes it and replaces it with a new, working, 62 furnace. This would, of course, replace /iron since furnaces will work after its addition. I might end up keeping /wood if anybody wants it.
My Server Mods:
Runecraft SMP Server Mod - java class replacer for SMP which adds magic runes.
Llamacraft SMP Server Mod - bucket fix, lava nerf, etc.
That sounds like a good use for flint and steel. Good luck, and thanks for keeping us up to speed with each step of this process.