Jump to content




Modmaker


  • You cannot reply to this topic
30 replies to this topic

#1 ComputerCraftFan11

  • Members
  • 771 posts
  • LocationHawaii

Posted 06 April 2012 - 07:55 AM

This is a program that i'm currently developing.

You put minecraft coder pack in "mcp" (folder in same directory as program)

If the program detects mcp is installed. It will give you options to make a mod
Some examples are block making.

When making a block, it will give you some options and stuff

So basically, this is a program that lets you make mods in a mod :)/>

Download

*coming soon*

Images

Spoiler

Installation

Drag this program and the "mcp" folder into /saves/yourworld/computers/computerid/ (if you can't see "mcp", make it) then drag the minecraft coder pack into "mcp". If it says:
MCP not installed! Pleased decompile MCP and put it in the mcp folder.
Then you didn't put mcp in the right place or you forgot to decompile it

How it works

The way this program works is simple. You put your minecraft coder pack inside mcp and the program will write files in "mcp/src/minecraft/net/minecraft/src" to do whatever you want. Blocks will generate pre-defined chunks of code into a newly made mod/block file.

#2 ComputerCraftFan11

  • Members
  • 771 posts
  • LocationHawaii

Posted 06 April 2012 - 06:52 PM

I need some testers

#3 Ian-Moone

    The Germ

  • New Members
  • 124 posts
  • LocationLiverpool (no I am not a Scouser Im form Holland)

Posted 06 April 2012 - 07:01 PM

im in
this sounds epic

#4 Wolvan

  • New Members
  • 384 posts
  • LocationIn the TARDIS

Posted 06 April 2012 - 07:23 PM

I help!

#5 ComputerCraftFan11

  • Members
  • 771 posts
  • LocationHawaii

Posted 06 April 2012 - 07:54 PM

K, this is the current code:
local path = "mcp/src/minecraft/net/minecraft/src";
local modname = ""
local start = [[
package net.minecraft.src;


public class mod_jBox extends BaseMod
{



public void load()
{

}

public void getVersion()
{
return "1.2.4"
}

}
]]

function top()
shell.run("clear")
print("Welcome to xXm0dzXx's Mod Maker!")
print("--------------------------------")
end

function blockmaker()
top()
write("Choose a block name: ")
blockclass = read()
write("Choose a block ID: ")
blockid = tonumber(read())
if blockid > 256 then
print("Block ID too high!")
sleep(3)
blockmaker()
else
end
end

function base()
top()
write("Enter mod name: mod_")
input = read()
modname = "mod_" ..input.. ".java"
if fs.exists(path.."/"..modname) then
print(modname.. " already exists! Would you like to modify that [y/n]?")
input = read()
if input == "y" then
menu()
else
shell.run("clear")
end
else
file = io.open(path.."/"..modname, "w")
file:write(start)
file:close()
print(modname.. " created!")
sleep(1)
menu()
end
end

function menu()
top()
if modname == "" then
print("[1] Create Base Files")
else
print("[1] Delete Base Files")
end
if modname == "" then
print("[2] Make New Block (CREATE BASE FILES FIRST)")
print("[X] Patch Mod (CREATE BASE FILES FIRST)")
print("[V] Custom Editor (CREATE BASE FILES FIRST)")
else
print("[2] Make New Block")
print("[X] Patch Mod (Run to make the mod work)")
print("[V] Custom Editor")
end
print("")
write("Selection: ")
input = read()
if input == "1" then
if modname == "" then
base()
else
fs.delete(path.. "/" ..modname)
top()
print("Deleted!")
end
elseif input == "2" then
if modname == "" then
menu()
else
blockmaker()
end
elseif input == "X" then
if modname == "" then
menu()
else
error("not done")
end
elseif input == "V" then
if modname == "" then
menu()
else
shell.run("edit", path.. "/" ..modname)
end
else
menu()
end
end




if fs.exists("mcp/src") then
menu()
else
print("MCP not installed! Pleased decompile MCP and put it in the mcp folder.")
end


I'm working on the block maker (don't use the patcher, its not done)

#6 Ian-Moone

    The Germ

  • New Members
  • 124 posts
  • LocationLiverpool (no I am not a Scouser Im form Holland)

Posted 06 April 2012 - 08:12 PM

thanks

#7 Wolvan

  • New Members
  • 384 posts
  • LocationIn the TARDIS

Posted 06 April 2012 - 11:49 PM

Is this a LUA CC Script?!? Epic! Stupid me! Sure it's an CC Script else it wouldn't be in the cc forums :P/>
''t

#8 libraryaddict

  • New Members
  • 195 posts

Posted 07 April 2012 - 10:26 PM

View PostWolvan, on 06 April 2012 - 11:49 PM, said:

Is this a LUA CC Script?!? Epic! Stupid me! Sure it's an CC Script else it wouldn't be in the cc forums :P/>
''t

idk..
Ive seen many stupid people..

#9 Noodle

  • Members
  • 989 posts
  • LocationSometime.

Posted 07 April 2012 - 10:53 PM

Reading your code.. Why do you do shell.run("clear") ??
You could term.clear()

#10 Noodle

  • Members
  • 989 posts
  • LocationSometime.

Posted 07 April 2012 - 10:54 PM

Error: modmaker:60: attempt to index ? (a nil value)

#11 Wolvan

  • New Members
  • 384 posts
  • LocationIn the TARDIS

Posted 08 April 2012 - 12:16 AM

View PostNoodle, on 07 April 2012 - 10:53 PM, said:

Reading your code.. Why do you do shell.run("clear") ??
You could term.clear()
I think because
shell.run("clear")
is shorter than
term.clear()
term.setCursorPos(1,1)


#12 cant_delete_account

  • Members
  • 484 posts

Posted 08 April 2012 - 10:27 PM

View PostNoodle, on 07 April 2012 - 10:53 PM, said:

Reading your code.. Why do you do shell.run("clear") ??
You could term.clear()
Does it really matter? No.
Anyway, cool program, I'll be trying this out when its done!

#13 ComputerCraftFan11

  • Members
  • 771 posts
  • LocationHawaii

Posted 09 April 2012 - 05:33 AM

public class mod_jBox extends BaseMod

Oops, forgot to make it change mod_name

#14 djblocksaway

    Epic Coderz

  • New Members
  • 397 posts
  • LocationAustralia

Posted 09 April 2012 - 08:41 AM

View PostWolvan, on 08 April 2012 - 12:16 AM, said:

View PostNoodle, on 07 April 2012 - 10:53 PM, said:

Reading your code.. Why do you do shell.run("clear") ??
You could term.clear()
I think because
shell.run("clear")
is shorter than
term.clear()
term.setCursorPos(1,1)
aha good point :P/>

#15 con2000

  • New Members
  • 28 posts

Posted 11 April 2012 - 10:10 PM

See This. What ComputerCraft Can do! :D/> :P/>

#16 Xtansia

  • Members
  • 492 posts
  • LocationNew Zealand

Posted 12 April 2012 - 12:45 AM

View Postcon2000, on 11 April 2012 - 10:10 PM, said:

See This. What ComputerCraft Can do! :D/> :P/>

Yeah,
Concatenate strings,
And write it to a file,
[/sarcasm]

#17 con2000

  • New Members
  • 28 posts

Posted 17 April 2012 - 01:44 AM

Thanks [/sarcasm] JK :)/>

#18 Wolvan

  • New Members
  • 384 posts
  • LocationIn the TARDIS

Posted 17 April 2012 - 07:20 AM

Too much sarcasm
[/sarcasm]

#19 yoskaz01

    Featured on Reddit!

  • New Members
  • 92 posts

Posted 17 April 2012 - 07:33 AM

don't want to ruin everyone's fun but what if the purpose of copying the entire Mcp dir to each of

the computer folders?

unless you are actually building the mod using your program why not just create the .Java files along with a .batch (windows) to copy the source to the actual MVP did and then rebuilrd.....

#20 Wolvan

  • New Members
  • 384 posts
  • LocationIn the TARDIS

Posted 17 April 2012 - 02:31 PM

I created a new version of it that doesn't require MCP to be installed in the folder. It uses a wizard (batch file) that I wrote to copy all files into the MCP dir
Spoiler






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users