Jump to content

HOW Can I make a tekkit classic plugin?


NonameSL

Recommended Posts

I thought that making a plugin like a normal bukkit plugin with configuring the build path with Tekkit.jar instead of the Bukkit jar, but the plugin is not working. I have two questions:

1. How can I make a tekkit classic plugin? Do I need to do anything special?

2. How can I get the Tekkit Materials?

Thanks in advance!

Link to comment
Share on other sites

  • 5 months later...

I tried to make a plugin for my small Tekkit Classic server with the normal 1.2.5 bukkit jar but it gives errors and doesn't enable(When I run it on vanilla 1.2.5 and it works fine). Any ideas as to why it does this?

Never mind I know why I get the error.... It is due to the fact that I have to use Java 6(Was using Java 8 -_-) Thanks

Link to comment
Share on other sites

I have made several Tekkit classic plugins (for the server), use the tekkit.jar server file as your api, that way you have access to the craftbukkit classes and the underlying minecraft ones too

 

as for accessing tekkit materials, i found its better to use the typeid's rather than the type , 

 

here are a few little tricks when working with plugins for tekkit servers 

 

 

 

How to get the tileentity of a block

CraftWorld world=(CraftWorld)block.getWorld();
tileEntity=world.getTileEntityAt(block.getX(),block.getY(),block.getZ());

if (tileEntity instanceof TileEnderChest){
    //this is a enderchest
}

how to change bukkit world into  minecraft world or worldserver

CraftWorld cw=(CraftWorld) world;
WorldServer ws=cw.getHandle();
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...