15 posts
Location
Germany
Posted 08 September 2012 - 01:06 PM
Hello I like to see a CC Peripheral and TurtleUpgrades tutorial because im stuck with my Upgrade and don't have a clue why it dosn't work.
I'm sure many other ppl have the same problem or just don't know how to Program ther own Upgrades and Peripherals.
Best regards Chain
515 posts
Location
Australia
Posted 09 September 2012 - 03:13 PM
15 posts
Location
Germany
Posted 09 September 2012 - 08:19 PM
I already read this. And I meant a full tutorial.
2447 posts
Posted 09 September 2012 - 09:13 PM
To be honest with only a tiny bit of Java knowledge you should be able to manage. First, learn to make a Minecraft mod using Tile Entities - then the rest will follow.
15 posts
Location
Germany
Posted 10 September 2012 - 10:48 AM
To be honest with only a tiny bit of Java knowledge you should be able to manage. First, learn to make a Minecraft mod using Tile Entities - then the rest will follow.
I wanted to make a Turtle Upgrade, and according to the post there isn't a Tile Entity needed. And I've already written the code. But my turtle just dont show up. I did write all the stuff the same way as "Apeture Sience Turtle Upgrades", I decompiled his classes and used them as reference but it just dont work.
2447 posts
Posted 10 September 2012 - 10:52 AM
To be honest with only a tiny bit of Java knowledge you should be able to manage. First, learn to make a Minecraft mod using Tile Entities - then the rest will follow.
I wanted to make a Turtle Upgrade, and according to the post there isn't a Tile Entity needed. And I've already written the code. But my turtle just dont show up. I did write all the stuff the same way as "Apeture Sience Turtle Upgrades", I decompiled his classes and used them as reference but it just dont work.
Did you register the upgrade?
510 posts
Posted 10 September 2012 - 10:55 AM
And if you did, did you change the ids?
15 posts
Location
Germany
Posted 10 September 2012 - 12:42 PM
yes I did both.
here are 2 snippets from the classes.
mod_DetectingTurtles Class:
public void load() {
// TODO Auto-generated method stub
ModLoader.setInGameHook(this, true, true);
TurtleDetecting tDetecting = new TurtleDetecting();
System.out.println(tDetecting);
try {
TurtleAPI.registerUpgrade(tDetecting);
} catch (Exception e) {
System.out.println("Failed to register Upgrade!");
}
System.out.println("Successfully registered the Upgrade!");
}
TurtleDetecting Class:
public class TurtleDetecting implements ITurtleUpgrade {
@Override
public int getUpgradeID() {
// TODO Auto-generated method stub
return 166;
}
@Override
public String getAdjective() {
// TODO Auto-generated method stub
return "Detecting";
}
@Override
public TurtleUpgradeType getType() {
// TODO Auto-generated method stub
return TurtleUpgradeType.Peripheral;
}
@Override
public ItemStack getCraftingItem() {
// TODO Auto-generated method stub
return new ItemStack(Item.feather);
}