Everything posted by GotoLink
-
Forge 1.5.2 Server GUI Problem
Gui are client-side only, which means you can't reference it from a server file. Now check the tutorials, please.
-
Classloading problems. Loading from a ZIP.
With final ClassLoader loader = WikiLink.class.getClassLoader(); You get net.minecraft.launchwrapper.LaunchClassLoader, thus reading Minecraft.jar. You might want cpw.mods.fml.common.Loader instead.
-
Forge 1.5.2 Server GUI Problem
Check the Gui, and Packets, tutorials.
-
Help with base mod file
Use lower case for your package. Check the @SidedProxy parameters.
-
Who owns that wolf? [unSOLVED]
this.setOwner(par1EntityPlayer.getCommandSenderName()); This works. You did something wrong elsewhere.
-
Biome Removal/Addition
This method only affects the default world type array of biomes.
-
Mooshroom Mushrooms on back
I'd recommend reading the tutorials in the wiki. The basic ones give a way to separate the rendering with proxies.
-
Should I do mymod as a coremod or not
I meant ChunkDataEvent, which give you the chunk NBTTagCompound, thus you can read/write some values to it.
-
PacketHandler not receiving messages
I don't understand what you are trying to achieve with this... Anyway, both packet handlers have the same name, in the same package, but are different implementations. Sounds like trouble to me.
-
Should I do mymod as a coremod or not
Do option A. There are easy ways to do this. Use WorldSavedData and ChunkEvent, you wouldn't need your hashmap. Coremod would only bring world data corruption for no obvious advantages.
-
Mooshroom Mushrooms on back
Man, i see wrong code everywhere... :'( Let's begin with public RenderEnt(ModelEnt model, float f) { super(new ModelEnt(), 0.5F); model = (ModelEnt)mainModel; } that is one stupid constructor. Fix needed. then ((ModelQuadruped)this.mainModel).head.postRender(0.0625F); i am pretty sure your model isn't a ModelQuadruped, but who knows ? finally EntityRegistry.registerModEntity(EntityCreeperHeart.class, "CreeperHeart", 1, this, 80, 3, true); LanguageRegistry.instance().addStringLocalization("entity.CreeperHeart.name", "CreeperHeart"); RenderingRegistry.registerEntityRenderingHandler(EntityCreeperHeart.class, new RenderCreeperHeart(TutorialMod.CreeperHeart)); EntityRegistry.registerModEntity(EntityEnt.class, "Ent", 1, this, 40, 1, true); both entities have same id, and the rendering should only be registered on client side.
-
Issue
player.inventory.addItemStackToInventory(new ItemStack(Base.tankAir)); if (!player.inventory.addItemStackToInventory(new ItemStack(Base.tankAir))) ... You are giving it twice here. I'd recommend removing the first line.
-
Block placed event
You can use pendingTickListEntriesTreeSet field in WorldServer to get the blocks that will update next. Why do you need onNeighborBlockChange() ? This is mostly a redstone thing...
-
GuiSlot troublings
Write some code in. protected void drawSlot(int par1, int par2, int par3, int par4, Tessellator par5Tessellator) protected void drawBackground()
-
Forge Install problem, install.cmd not updating mcp correctly
Do the logs in mcp/logs give anything else ?
-
CCTV canEntityBeSeen
It is not null because world#clip(blockVec,entityVec) will give you the block#collisionRayTrace(World,int,int,int,Vec3,Vec3) You are going to need to define some orientation into your block, probably a view distance too, and make your own vectors calculation.
-
How can I change things in the render things from my model in the TileEntity
I am sure that having a non-void TileEntity can help
-
1.6.4 setBlock Not Working
Oh right, Mojang changed that with the "boat update". Then use moveStrafing
-
1.6.4 setBlock Not Working
To account for strafing, you could use moveForward /moveStrafing in EntityLivingBase...or the motionX.Z fields in Entity.
-
Ore rarity and ore dictionary
@diesieben07: I think you are confused. The OreRegisterEvent only concern the ore dictionary. This can't change other mods generation. I suggested this as a way to easily tell which ore is registered and make your own ore generation sensitive to other ores (like, lower chance if an "equivalent" ore is registered, etc.). I didn't mean to cancel anything with it.
-
Ore rarity and ore dictionary
Well actually, you can subscribe to the OreRegisterEvent and react to any registered ore however you want.
-
Give Item to player
Change if(par1World.isRemote) to if(!par1World.isRemote)
-
Sneaking attributes
What "effect" of sneaking ?
-
How to load different textures for one item / block?
In Item class, there is a method with IconRegister as argument. You can use it to #registerIcons(String).
-
Move "mods" folder
Set the game directory in a profile...
IPS spam blocked by CleanTalk.