-
Posts
1689 -
Joined
-
Last visited
-
Days Won
1
Everything posted by SanAndreaP
-
Forge Mod Loader version 5.2.2.684 Update Forge.
-
There's no such method called noClip(). However, there is a field called like that. Just set it to true in your entity constructor.
-
Your Instance annotation must have the same modID as the @Mod annotation. So use the modid variable you declared also for the @Instance.
-
can I see your main class? Seems like your instance field is null.
-
Thanks. And, i actually should not. ItemStack has a constructor without quantity that automatically sets it to 1. Oh, didn't know that. Well then not
-
after player.inventory.addItemStackToInventory(new ItemStack(ObscuraCraft.icamera)); use this: player.inventoryContainer.detectAndSendChanges(); It sends the changes you made in the players inventory on the server to the client. Also you should define a quantity in your ItemStack like this: new ItemStack(ObscuraCraft.icamera, 1)
-
Custom Sound "(The system cannot find the path specified)"
SanAndreaP replied to Zetal's topic in Modder Support
You are referencing to a path of your local file system. You have to reference to a path within the minecraft.jar / classpath. So instead of using: new File(mc.mcDataDir, "resources/sounds/spec/levelup.ogg") you use YourMainModClass.class.getResource("/resources/sounds/spec/levelup.ogg") -
ModLoader.getUniqueEntityId() I said don't use ModLoader D: Also the ID is mod-unique, meaning you don't need to rely on any method. Just use 0 for your first entity, 1 for your second one, 2 for your third one and so on. nvm, I didn't saw your edit. Looks good to me.
-
Reobfuscate causes FATAL ERROR: ClassNotFoundException
SanAndreaP replied to ValeryDubrava's topic in Modder Support
No it's not: "scala" does not support jvm-1.6 target, it is out of date. Ignoring I had the problem on my linux machine, too. Update scala and you should be fine. -
1. Instead of using registerGlobalEntityID, use registerModEntity. The parameters are: entity class, entity name, mod-specific ID (beginning at 0, increase it by 1 for each entity which come afterwards), your mod instance (the field with the @Instance annotation), tracking range (I usually have this to 128), update frequency (I use 1 for sending an update each tick), send velocity updates (true on mobile entities as mobs or arrows, false on stationary entites which won't usually move around) 2. Don't use ModLoader as you will run into problems with dedicated servers. Look into the class and use the methods called by the ModLoader-method 3. You probably call registerRenderers() before you initialize your items / blocks. Do it afterwards.
-
can I see your folder structure inside your ZIP? I guess, you set it up wrong: MyModName.zip |- tutorial |- mod_tutorial.class |- WorldProviderShrine.class |- probably anything else NOTE: the folder structure inside your zip must be equal to the package definition at the very top in the class file. For example you have the crashing class Particle, the package definition inside it is package myPackage.mySubPackage;, then in your ZIP, the class file must be located as following: MyMod.zip/myPackage/mySubPackage/Particle.class
-
import net.minecraft.tileentity.TileEntity; public class TileEntity extends TileEntity { public int var = 1; } Why do you name your main TileEntity class the same as the vanilla one? It doesn't look good and causes confusion. But whatever, the problem is this: import net.minecraft.tileentity.TileEntity; public class SubTileEntity extends TileEntity { Your import looks wrong. You need to import YOURPACKAGE.YOURSUBPACKAGE.TileEntity not net.minecraft.tileentity.TileEntity. Again, if you would have named your class different, you would have seen this.
-
What's the error? Code for the RawLambChopFood class?
-
ForgeModLoader-client-0.log?
-
public final static Item Amethyst = new Amethyst(6325).setUnlocalizedName("amethyst"); } Why is there a bracket? You close the class definition here...
-
We can't until we see the full class...
-
[SOLVED]Entity not rendering/not detecting collision
SanAndreaP replied to battlefield's topic in Modder Support
Wow, thanks! This really helped me c: heh, it's like a bit outdated Anyway, you need only the registerModEntity now. The registerGlobalEntityID isn't needed anymore and also I don't recommend to use it, because it has an ID limitation of max. 256 IDs. -
get lost in which way? Disappearing or data isn't saved or what?
-
crash on start up with forge 7.8.0.691
SanAndreaP replied to FVbico's topic in Support & Bug Reports
I suggest you test this with Forge-only installed, If it's still crashing, it may be a Forge bug, if not, then install one mod at a time and test again until it crashes. -
Terrafirmacraft crashing error while working with leather
SanAndreaP replied to sim181's topic in Support & Bug Reports
at TFC.Handlers.CraftingHandler.onCrafting(CraftingHandler.java:24) Not a forge issue. Contact the modders of TerraFirmaCraft about the bug, it's theirs. -
Did you add the case statement I gave you before?
-
getRequiredPermissionLevel() doesnt work?
SanAndreaP replied to M3gaFr3ak's topic in Support & Bug Reports
I used the method canCommandSenderUseCommand. Return true if you want the command to be used always (even with command blocks). If you only want the Player to have access, check if the ICommandSender parameter is an instance of EntityPlayer. -
Oh, then that's the one. I just saw the PR, which got pulled. (seems like I have to update Forge, again ) Nuh, wait D: Do you use the LATEST Forge?
-
There's a new feature in the newest Forge, which splits the first- and third-person-view: Add case EQUIPPED_FIRST_PERSON: below case EQUIPPED: