hello! SO i have item1 and block1. I want to make it so that item1 looses durability (set to 10 at the moment) when it hits block1. Here are my codes :
BLOCK1
package net.minecraft.src;
import net.minecraft.client.*;
import java.util.Map;
import java.util.Random;
public class M_DeathFog extends Block {
public M_DeathFog(int i, int j)
{
super(i, j, Material.wood);
}
public boolean isOpaqueCube()
{
return false;
}
public AxisAlignedBB getCollisionBoundingBoxFromPool(World world, int i, int j, int k)
{
return null;
}
public int getRenderType()
{
return 1;
}
public boolean renderAsNormalBlock()
{
return false;
}
Minecraft mc = ModLoader.getMinecraftInstance();
World world = mc.theWorld; //get the current world.
EntityPlayer player = mc.thePlayer; //get the player entity.
public void onEntityCollidedWithBlock(World world, int i, int j, int k, Entity entity)
{
if(mc.thePlayer.inventory.hasItem(mod_Metro.GasMask.shiftedIndex) && mc.thePlayer.inventory.hasItem(mod_Metro.Filters.shiftedIndex))
{
}
else
{
entity.attackEntityFrom(DamageSource.generic, 4);
}
}
}
Well, now you tell me XD I already made one set and was working on the second one... Toke me 2 hours for the first one, but now that I got the hang of it it only taking about 20-30 minutes...
Edit:
Was about to test the new textures but I keep getting this error:
Mods loaded: 2
ModLoader 1.2.5
mod_GlassCraft GlassCraft v2.2 for MC 1.1
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem.
--- BEGIN ERROR REPORT 9ba3c57d --------
Generated 4/25/12 1:56 PM
Minecraft: Minecraft 1.2.5
OS: Windows 7 (amd64) version 6.1
Java: 1.7.0_03, Oracle Corporation
VM: Java HotSpotâ„¢ 64-Bit Server VM (mixed mode), Oracle Corporation
LWJGL: 2.4.2
OpenGL: AMD M880G with ATI Mobility Radeon HD 4200 version 2.1.8796, ATI Technologies Inc.
java.lang.NoClassDefFoundError: CreativeAPI
at mod_GlassCraft.load(mod_GlassCraft.java:160)
at ModLoader.init(ModLoader.java:891)
at ModLoader.addAllRenderers(ModLoader.java:189)
at ahu.<init>(ahu.java:77)
at ahu.<clinit>(ahu.java:8)
at net.minecraft.client.Minecraft.a(SourceFile:273)
at net.minecraft.client.Minecraft.run(SourceFile:657)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: CreativeAPI
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 8 more
--- END ERROR REPORT 22ad0631 ----------
Edit 2:
Also, I got the 2.95 Download, but it is saying 2.2 o.o
Edit 3:
Well, I've done them all, and here are the results: Forgotten Lands Unofficial Texture Support
I'm not sure how they look, seeing as I can get GlassCraft to work and I only did the textures for the Blocks themselves...
Ahh.
EDIT 1 : You dont have the CreativeAPI installed.
EDIT 2 : I just forgot to change it... xP
EDIT 3 : Kk. Ill add it for 3.0
You know what... I think I will make the texture for this mod to work with the Forgotten Lands Texture pack (once I figure out how)... Mainly because, all the textures look to cheesy with it x.x
So expect about 6 different files from me (seeing as there is three different textures to choose from in the Texture Pack...)
Edit:
Um... is there a way to add the Texture for the new glass blocks without editing all the textures for Minecraft? because i'm only going to make the Glass for Forgotten Lands, seeing as the texture pack has many different choices for the pack itself... (3 Glass Textures options, 2 Mob options, 2 Endermen options, 2 SoulSand options, 3 Wooden Planks options, 2 Ore options, 2 Glowstone options, 3 Stone Bricks options, and 2 liquid options... So yeah, lots of different styles... o-o)
You might not want to make a texture pack for it at the moment. I will update it to 3.0 when it uses just one 'GlassCraft.png', like the Terrain.png or Items.png which will have everysingle one, on one png!
I really don't know. Sorry, I'm very tired right now, and there are probably a bunch of different, equally complicated ways you could go about doing it. :/ I may think of something and test it in the morning.
I've updated the mod officially now; either do that or back up your sources and then copy my new sources overtop of them.
Return true for the method canRespawnHere in your WorldProvider, and return the ID of the dimension in which you want to respawn for the respawnInDimension method in that same class.
thanks, thanks, and thanks lol
EDIT : If I made video tutorial(s) on how to install the mod and use it, will you add it to the main post?
TO MODDERS: Here is a pre-release of client version 1.5 for you until I finish updating the server. This version includes easy-to-add multiple biomes, a block replacement/removal hook, a right-click override for items, and some other things. Please only develop with this version; don't release anything on it until it becomes official sometime today or tomorrow.
You no longer need to do all that. Check in the download I posted above for the latest (developers') version of the API, which includes an incredibly simple way of adding multiple biomes to a dimension, just through your WorldProvider. (Look in WorldProviderBase for the new hooks.)
Perhaps you should use the same method for that, and then call minecraft.theWorld.setBlockWithNotify somewhere, converting the player's position to integers and using those as the coordinates for the house. You could possibly use the spawn coordinates instead. I guess you could even do the reverse and make the house part of the world generation, and then move the player over to it. I've never done something like that before, so I can't say for sure.
Hmm. How exactly would I use the 'Spawn'? And for the prerelease? How do i install it? Back up, clean, decompile, add?
EDIT : when i die, i respawn in my overworld, can I change that?
NEVERMIND. I fixed all my errors. Just one thing! How do I make it so that when I spawn in my dimension it will create a house around me with a chest and stuff?
... or, well, something like that. That code may not entirely work, actually. Make your mod_ class implement the ISpecialTeleportation interface and fill out the abstract methods if you use something like this.
Ok thanks bro, Ill try it later. And also, I have my overworld, and my extra dimension. Lets say Extra dimension = 1 and overwolrd =0. If I log out while in 1, when I log in, ill be at 1 coordinates but with 0 terrain. And if i go into portal it takes me to 0..CRASHES AT THIS LINE :
27 achievements
182 recipes
LWJGL Version: 2.4.2
ModLoader 1.2.5 Initializing...
Mod Initialized: mod_DimensionAPI 1.4 for MC 1.2.5
Mod Initialized: mod_Metro hi
Mod Loaded: mod_DimensionAPI 1.4 for MC 1.2.5
Mod Loaded: mod_Metro hi
Done.
Loading: net.java.games.input.OSXEnvironmentPlugin
java.lang.ClassCastException: net.minecraft.src.mod_Metro cannot be cast to net.minecraft.src.ISpecialTeleportation
at net.minecraft.src.mod_Metro.onTickInGame(mod_Metro.java:85)
at net.minecraft.src.ModLoader.onTick(ModLoader.java:1118)
at net.minecraft.src.EntityRendererProxy.updateCameraAndRender(EntityRendererProxy.java:21)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:922)
at net.minecraft.client.Minecraft.run(Minecraft.java:801)
at java.lang.Thread.run(Thread.java:680)
Stopping!
I made a conversation for all Tangent members. Hook me up on Skype - xxserubixx
Please leave a message, letting me know it's you and i'll invite you to the conversation.
I made a conversation for all Tangent members. Hook me up on Skype - xxserubixx
Please leave a message, letting me know it's you and i'll invite you to the conversation.
Higher resolutions on the videos would be nice. ALternitivly, make sure you say ex "Basemod colon" instead of just saying basemod and having us guess what sybol you used.
0
0
0
BLOCK1
0
Hmm. I have no clue how to do that D: haha. Do you code? Maybe you can helpp? BTW : I will release v0.1 this weekend!
0
Thanks But I dont even know how to start with porting graphics D:
0
0
Ahh.
EDIT 1 : You dont have the CreativeAPI installed.
EDIT 2 : I just forgot to change it... xP
EDIT 3 : Kk. Ill add it for 3.0
BTW. I LOVE THE TEXTURES
0
You might not want to make a texture pack for it at the moment. I will update it to 3.0 when it uses just one 'GlassCraft.png', like the Terrain.png or Items.png which will have everysingle one, on one png!
0
AWWW DAM*IT lol.
0
thanks, thanks, and thanks lol
EDIT : If I made video tutorial(s) on how to install the mod and use it, will you add it to the main post?
0
Hmm. How exactly would I use the 'Spawn'? And for the prerelease? How do i install it? Back up, clean, decompile, add?
EDIT : when i die, i respawn in my overworld, can I change that?
0
0
Ok thanks bro, Ill try it later. And also, I have my overworld, and my extra dimension. Lets say Extra dimension = 1 and overwolrd =0. If I log out while in 1, when I log in, ill be at 1 coordinates but with 0 terrain. And if i go into portal it takes me to 0..CRASHES AT THIS LINE :
ERROR :
0
Done
0
KK. And use 1080p