Everything posted by coolboy4531
-
Changing sun/moon texture in a dimension.
Alright, it doesn't work, I think the String version requires DimensionAPI or something. Any other suggestions?
-
Changing sun/moon texture in a dimension.
I'll try all of these, but I'm really not sure about the GL11 texturing.
-
Changing sun/moon texture in a dimension.
Trying to change the sun/moon texture like I used to a long time ago, but it doesn't work. Has the coding changed since? I used: public void getSunTexture() { return "/custom_sun.png"; } Placed the file inside "minecraft.jar" and inside minecraft.jar's "environment". All failed, can anyone help?
-
Mob spawning in custom dimension (too many)
this.spawnableCreatureList.add(new SpawnListEntry(Raptor.class, 1000, 1, 1)); this.spawnableCreatureList.add(new SpawnListEntry(Eotyrannus.class, 1000, 1, 1)); this.spawnableCreatureList.add(new SpawnListEntry(Triceratops.class, 1000, 1, 1)); this.spawnableCreatureList.add(new SpawnListEntry(Apatosaurus.class, 1000, 1, 1)); this.spawnableCreatureList.add(new SpawnListEntry(Obamadon.class, 1000, 1, 1)); [1000 is the spawn-rate] [since you made the spawn rate 1000, I think that may be the problem. Maybe you should make it like 5?] [1, 1 means minimum / maximum, it doesn't do anything about spawn rate]
-
Prevent player death and teleport them
You might want to make a method that gets called when the player gets hurt, find them on the MinecraftForge forum. I remember I did this once before, but I forgot. Once you get the method, and you define it as such: THIS IS NOT A COPY-PASTE CODE, IT WILL NOT WORK, THIS IS TELLING YOU WHAT IT DOES. //stuff public class PlayerTeleport extends EntityPlayer { public static EntityPlayer player; public PlayerTeleport(EntityPlayer entityplayer) { this.player = entityplayer; } public void onPlayerDeath(//Method method) //Find the method, insert it in with the player. { if (player.getHealth() <= 1 && !player.isDead) { //do stuff. } else if (player.getHealth() = 0 && player.isDead) { player.isDead = false; player.heal(10); //do stuff } else { return null; //do nothing. } } } //JUST AN EXAMPLE, DON'T TAKE THIS TOO SERIOUSLY AS REAL CODE.
-
Multiple Biomes in Dimension(Hear me out)
Still trying but you need multiple classes. As far as I know, you need a: ChunkProvider, which you should have. BiomeBase, class. ChunkManager, class. GenLayer, class. GenLayerBiomes, class. GenLayerBorders, class. GenLayerStream, class. WorldProvider, which you should have, in here register all the biomes, good luck.
-
How Render text on Blocks (Like the ones on top of players)
You can't add it into a block, the one on top of player isn't a block. In other words, The PLAYER isn't a block, it's an entity. You must add custom NBT tags or whatever the heck you want to the Entity/Block. I'm not sure if you can do it for a block or not.
-
Keep getting this error
You might want to give us your code, and it seems like the error is from your class not found. A few questions: 1) Are you sure you installed the mod correctly? 2) Are you sure that package includes the mod? 3) Are you sure that if you are using the in-game 'Eclipse' MC launcher you made sure the class had the right name? 4) Are you sure 'sonick.common.mod.TestMod' is the correct path? [On the top of TestMod.java, you must have] package sonick.common.mod; @Mod(modid = "TestMod", name = "TestMod", version = "v0.1") @NetworkMod(clientSideRequired = true, serverSideRequired = false) public class TestMod { //if you extend or implement add that. //then add stuff here }
-
Custom Music with PlayBackgroundMusicEvent {SOLVED}
- Custom Music with PlayBackgroundMusicEvent {SOLVED}
Sorry, but I'm not sure I get URL, does it mean like a weblink, or a location?- Auto Updating Mod {NOT SOLVED}
I'll think I'll pass on that for AWHILE.- [1.4.7] On Death (EntityPlayer)
Make a class named: EntityPlayer_Drops.class Add this, tested working. package YOUR.PACKAGE; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.Item; import net.minecraft.util.ChunkCoordinates; import net.minecraft.world.World; import net.minecraftforge.event.ForgeSubscribe; import net.minecraftforge.event.entity.player.PlayerDropsEvent; public class EntityPlayer_Drops extends EntityPlayer { public final int dropCount = 2; public final int item = Item.appleRed.itemID; public EntityPlayer_Drops(World world, int i, int j) { super(world); i = dropCount; j = item; } @ForgeSubscribe public void onPlayerDeath(PlayerDropsEvent event) { if (event.entityPlayer.getHealth() <= 0) //Checks if player is dead. { event.entityPlayer.dropItem(Item.appleRed.itemID, 2); //Field 1 : Item/Block, change above. Field 2: Drop Count, change above. } } @Override public boolean canCommandSenderUseCommand(int i, String s) { return false; } //Ignore, don't change. @Override public ChunkCoordinates getPlayerCoordinates() { return null; } //Ignore, don't change. @Override public void sendChatToPlayer(String s) { } //Ignore, don't change. }- Auto Updating Mod {NOT SOLVED}
I need help again LOL. Any ideas how to make my mod check for updates, or auto update? If so, please give me an example.- Custom Music with PlayBackgroundMusicEvent {SOLVED}
Can you show me an example?- How to change mob speed
Not sure if this does anything but here, copy paste it, replace your file. http://pastebin.com/Ap425djE- Custom Music with PlayBackgroundMusicEvent {SOLVED}
How do you do it in a certain dimension?- Custom Music with PlayBackgroundMusicEvent {SOLVED}
Any ideas how to use PlayBackgroundMusicEvent? I have a custom music already, but not sure how to use it.- How to change mob speed
May you please post your whole Entity file on pastebin.com So I can see what is the problem? Thanks- Sword blocking damage
Oh LOL, I mis-understood your question. I'm still not sure what you mean.- How to change mob speed
Did you put 0.50F or 0,50F? Did you have any errors? In your Entity Class where, put: public EntityYourEntity() { this.moveSpeed = 0.50F; }- Sword blocking damage
Add this in your ItemSword class. public ItemStack onItemRightClick(ItemStack itemstack, World world, EntityPlayer entityplayer) { itemstack.damageItem(1, entityplayer); }- Changing void color {UN-SOLVED}
Is it texture wise, or hard coded into Minecraft? If so, please tell me where to find it- Custom Sword Error.
I think in your sword class, you should put. public class ItemYOURSword extends ItemSword { } INSTEAD OF public class ItemYOURSword extends Item { }- Need help understanding Dimesions,Biomes,etc
BiomeGenForest*- WorldGeneration not generating..
In your main class add: public void generateSurface() { case 0: //generation stuff overworld case -1: //nether generation case 1: //the end generation } - Custom Music with PlayBackgroundMusicEvent {SOLVED}
IPS spam blocked by CleanTalk.
Important Information
By using this site, you agree to our Terms of Use.