Jump to content




Luaforge Pre2: Write Forge Mods In Lua!

java api lua

211 replies to this topic

#1 Tiin57

    Java Lunatic

  • Members
  • 1,412 posts
  • LocationIndiana, United States

Posted 27 October 2012 - 11:47 PM

Luaforge pre2 is for Minecraft 1.6.2!
Progress can be found at https://github.com/tiin57/luaforge

An example mod which adds a textureless block:
luamods/testmod/main.lua:
-- Block = luaforge.block.new(number blockID, luaforge.materials material)
block = luaforge.block.new(2019, luaforge.materials.rock)

-- luaforge.block.setCreativeTab(Block block, luaforge.creativetabs creativeTab)
luaforge.block.setCreativeTab(block, luaforge.creativetabs.tabRedstone)

-- luaforge.game.registerBlock(Block block, string name)
-- Note that this method's name parameter does not change the name displayed while ingame.
luaforge.game.registerBlock(block, "testblock")
luamods/testmod/luamod.info
modid:testmod
modname:Test Mod
version:1.0
authors:tiin57,another author, Yet another author
credits:tiin57 and this other guy
description:This is a test mod for Luaforge.
url:luaforge.info (Eventually)
updateurl:luaforge.info/updates (Again, WAIT)
logofile:NA
loadstate:beforeminecraft
All fields need to be present, even if blank.
At this point, there are several possibilities for the loadstate, but right now, the only one that allows you to do anything except some printing is "beforeminecraft".
luamod.info is very inflexible in terms of spacing.
{field}:{value}
You cannot have spaces anywhere except in the value.

Changelog:
pre2: Fixed networking, servers can now be set up!
pre1: Initial prerelease.

Downloads:
pre1: http://www.mediafire...aforge-pre1.jar
pre2: http://www.mediafire...aforge-pre2.jar

Please remember that this is just a proof-of-concept at this point, and the only methods are the ones documented above.

The server verification crash has been fixed; Luaforge servers can now be created! :D

#2 Sxw

  • Members
  • 306 posts
  • LocationWhenever, Wherever!

Posted 28 October 2012 - 12:12 AM

This seems amazing. I hope that it develops. /me wonders if it will let me make peripherals.

#3 Tiin57

    Java Lunatic

  • Members
  • 1,412 posts
  • LocationIndiana, United States

Posted 28 October 2012 - 12:14 AM

 Sxw, on 28 October 2012 - 12:12 AM, said:

This seems amazing. I hope that it develops. /me wonders if it will let me make peripherals.
We are creating a LuaForge API so that other modders can implement their mod APIs into LuaForge. Hopefully, this will include Computercraft.

#4 kei_k

  • New Members
  • 4 posts
  • LocationAuckland, New Zealand

Posted 28 October 2012 - 03:12 AM

will this till be cross-compatible with current non-lua forge mods?

#5 Dlcruz129

    What's a Lua?

  • Members
  • 1,423 posts

Posted 28 October 2012 - 04:17 AM

/me's head explodes.

#6 Klausar

  • Members
  • 110 posts

Posted 28 October 2012 - 05:55 AM

Dude, that's awesome!

#7 ROBdk97

  • Members
  • 18 posts
  • LocationGermany

Posted 28 October 2012 - 08:09 AM

Very nice

#8 BigSHinyToys

  • Members
  • 1,001 posts

Posted 28 October 2012 - 08:23 AM

this will be on my follow list cant wait.

#9 Tiin57

    Java Lunatic

  • Members
  • 1,412 posts
  • LocationIndiana, United States

Posted 28 October 2012 - 10:47 AM

 kei_k, on 28 October 2012 - 03:12 AM, said:

will this till be cross-compatible with current non-lua forge mods?
Yes, it will.

 dlcruz129, on 28 October 2012 - 04:17 AM, said:

/me's head explodes.

 Klausar, on 28 October 2012 - 05:55 AM, said:

Dude, that's awesome!

 ROisAWESOME, on 28 October 2012 - 08:09 AM, said:

Very nice

 BigSHinyToys, on 28 October 2012 - 08:23 AM, said:

this will be on my follow list cant wait.
Thanks for the support, guys! :D/>

#10 dus998

  • Members
  • 32 posts
  • LocationKansas

Posted 29 October 2012 - 12:01 AM

this is looking like it will be a good mod for lua devs, i myself is learning java to mod mc and i will try this out when it has a few more functions added

#11 Geforce Fan

  • Members
  • 846 posts
  • LocationMissouri, United States, America, Earth, Solar System, Milky Way, Universe 42B, Life Street, Multiverse, 4th Dimension

Posted 30 October 2012 - 02:11 AM

Lol you should make it so you can make them withthin ComputerCraft, then test them without exiting minecraft...

#12 PixelToast

  • Signature Abuser
  • 2,265 posts
  • Location3232235883

Posted 30 October 2012 - 03:25 AM

sounds epic :P/> :P/> :D/>

#13 Shazz

  • Members
  • 175 posts

Posted 30 October 2012 - 03:33 AM

That's a great idea (I know you didn't come up with it, I heard you talking about another similar project on IRC). But, I am definitely going to give this a try after you guys have added more functions and more documentation. Keep working on it!

#14 Sammich Lord

    IRC Addict

  • Members
  • 1,212 posts
  • LocationThe Sammich Kingdom

Posted 30 October 2012 - 06:29 AM

Might be cool.

#15 Keeree

  • New Members
  • 1 posts

Posted 30 October 2012 - 12:05 PM

Let's see this come to light. You know you got one beta-tester right here.

Java. Ugh. >.< Ain't touching that again.

#16 Tiin57

    Java Lunatic

  • Members
  • 1,412 posts
  • LocationIndiana, United States

Posted 30 October 2012 - 04:52 PM

 Shazz, on 30 October 2012 - 03:33 AM, said:

That's a great idea (I know you didn't come up with it, I heard you talking about another similar project on IRC). But, I am definitely going to give this a try after you guys have added more functions and more documentation. Keep working on it!
I did in fact come up with the idea of implementing Forge in Lua. In IRC, I was talking about LuaCraft, which is 1) completely different and 2) discontinued.

To all the rest; thanks a ton!
I will be on a hiatus for a bit. Samrg742 will update the wiki with progress.

#17 Mads

  • Members
  • 604 posts
  • LocationCopenhagen, Denmark

Posted 30 October 2012 - 07:31 PM

Urh... Minecraft should have been written in C++! Much easier to embed Lua.

#18 PixelToast

  • Signature Abuser
  • 2,265 posts
  • Location3232235883

Posted 01 November 2012 - 05:19 PM

 mad, on 30 October 2012 - 07:31 PM, said:

Urh... Minecraft should have been written in C++! Much easier to embed Lua.
yep, and much more efficient lua also >_>

#19 ardera

  • Members
  • 503 posts
  • LocationGermany

Posted 02 November 2012 - 02:57 AM

AWESOME!!!!!
/me is fainting

(Translated with Googleâ„¢)

#20 Tiin57

    Java Lunatic

  • Members
  • 1,412 posts
  • LocationIndiana, United States

Posted 02 November 2012 - 04:54 AM

I actually added a block.createBlock function last weekend. It is... somewhere in Jenkins.
Also, thanks for all the support!





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users