Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

coolboy4531

Members
  • Joined

  • Last visited

Everything posted by coolboy4531

  1. Alright, it doesn't work, I think the String version requires DimensionAPI or something. Any other suggestions?
  2. I'll try all of these, but I'm really not sure about the GL11 texturing.
  3. 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?
  4. 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]
  5. 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.
  6. 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.
  7. 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.
  8. 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 }
  9. Sorry, but I'm not sure I get URL, does it mean like a weblink, or a location?
  10. I'll think I'll pass on that for AWHILE.
  11. 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. }
  12. 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.
  13. Not sure if this does anything but here, copy paste it, replace your file. http://pastebin.com/Ap425djE
  14. How do you do it in a certain dimension?
  15. Any ideas how to use PlayBackgroundMusicEvent? I have a custom music already, but not sure how to use it.
  16. May you please post your whole Entity file on pastebin.com So I can see what is the problem? Thanks
  17. Oh LOL, I mis-understood your question. I'm still not sure what you mean.
  18. 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; }
  19. Add this in your ItemSword class. public ItemStack onItemRightClick(ItemStack itemstack, World world, EntityPlayer entityplayer) { itemstack.damageItem(1, entityplayer); }
  20. Is it texture wise, or hard coded into Minecraft? If so, please tell me where to find it
  21. I think in your sword class, you should put. public class ItemYOURSword extends ItemSword { } INSTEAD OF public class ItemYOURSword extends Item { }
  22. In your main class add: public void generateSurface() { case 0: //generation stuff overworld case -1: //nether generation case 1: //the end generation }

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.