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.

Egietje

Forge Modder
  • Joined

  • Last visited

Everything posted by Egietje

  1. How should I do it then? I don't understand the IFactory stuff, do you know a good tutorial? and why should it be in ClientProxy? Where should I do it? preInit or init?
  2. I'm trying to add a mob, it is added but it is invisible and if I spawn it (/summon dgm.CheeseCow) it says Object succesfully summoned ans when I hit it my everything becomes red, how can I fix this/ render it? My code: Mainclass: package com.Egietje.degeweldigemod; import org.lwjgl.opengl.Display; import com.Egietje.degeweldigemod.handler.CheeseHandler; import com.Egietje.degeweldigemod.init.CheeseBlocks; import com.Egietje.degeweldigemod.init.CheeseItems; import com.Egietje.degeweldigemod.mobs.EntityCheeseCow; import com.Egietje.degeweldigemod.mobs.ModelCheeseCow; import com.Egietje.degeweldigemod.mobs.RenderCheeseCow; import com.Egietje.degeweldigemod.proxy.CommonProxy; import net.minecraft.client.renderer.entity.RenderManager; import net.minecraft.entity.EnumCreatureType; import net.minecraft.init.Biomes; import net.minecraft.world.biome.Biome; import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.fml.client.registry.RenderingRegistry; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.common.Mod.EventHandler; import net.minecraftforge.fml.common.Mod.Instance; import net.minecraftforge.fml.common.SidedProxy; import net.minecraftforge.fml.common.event.FMLInitializationEvent; import net.minecraftforge.fml.common.event.FMLPostInitializationEvent; import net.minecraftforge.fml.common.event.FMLPreInitializationEvent; import net.minecraftforge.fml.common.registry.EntityRegistry; import net.minecraftforge.fml.common.registry.GameRegistry; @Mod(modid = Reference.MODID, name = Reference.NAME, version = Reference.VERSION, acceptedMinecraftVersions = "[1.10]") public class DeGeweldigeMod { public static final CheeseTab tabCheeseStuff = new CheeseTab("tabCheeseStuff"); @SidedProxy(clientSide = Reference.CLIENTPROXY, serverSide = Reference.COMMONPROXY) public static CommonProxy proxy; @Instance(Reference.MODID) public static DeGeweldigeMod DGMInstance; @EventHandler public void preInit(FMLPreInitializationEvent event) { RenderingRegistry.registerEntityRenderingHandler(EntityCheeseCow.class, new RenderCheeseCow(new RenderManager(null, null), new ModelCheeseCow(), 0.5F)); registerModEntityWithEgg(EntityCheeseCow.class, "CheeseCow", 0x3F5505, 0x4E6414, 250, 8, 4, 4, EnumCreatureType.CREATURE, Biomes.PLAINS); new CheeseItems(); new CheeseBlocks(); new CheeseCraftingAndSmelting(); new CheeseAchievements(); Display.setTitle("DeGeweldigeMod - V2.1"); } @EventHandler public static void init(FMLInitializationEvent event) { GameRegistry.registerWorldGenerator(new CheeseGeneration(), 0); MinecraftForge.EVENT_BUS.register(new CheeseHandler()); } @EventHandler public static void postInit(FMLPostInitializationEvent event) { proxy.registerModels(); } public void registerModEntityWithEgg(Class entityClass, String entityName, int eggColor, int eggSpotsColor, int entityID, int chanceOfSpawning, int minGroup, int maxGroup, EnumCreatureType creatureType, Biome... biome) { EntityRegistry.registerModEntity(entityClass, entityName, entityID, this.DGMInstance, 80, 3, false); EntityRegistry.registerEgg(entityClass, eggColor, eggSpotsColor); EntityRegistry.addSpawn(entityClass, chanceOfSpawning, minGroup, maxGroup, creatureType, biome); } } EntityClass: package com.Egietje.degeweldigemod.mobs; import com.Egietje.degeweldigemod.init.CheeseItems; import javax.annotation.Nullable; import net.minecraft.block.Block; import net.minecraft.entity.EntityAgeable; import net.minecraft.entity.EntityLiving; import net.minecraft.entity.SharedMonsterAttributes; import net.minecraft.entity.ai.EntityAIFollowParent; import net.minecraft.entity.ai.EntityAILookIdle; import net.minecraft.entity.ai.EntityAIMate; import net.minecraft.entity.ai.EntityAIPanic; import net.minecraft.entity.ai.EntityAISwimming; import net.minecraft.entity.ai.EntityAITempt; import net.minecraft.entity.ai.EntityAIWander; import net.minecraft.entity.ai.EntityAIWatchClosest; import net.minecraft.entity.passive.EntityAnimal; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.init.Items; import net.minecraft.init.SoundEvents; import net.minecraft.item.ItemStack; import net.minecraft.util.EnumHand; import net.minecraft.util.ResourceLocation; import net.minecraft.util.SoundEvent; import net.minecraft.util.datafix.DataFixer; import net.minecraft.util.math.BlockPos; import net.minecraft.world.World; import com.Egietje.degeweldigemod.mobs.LootTableList; public class EntityCheeseCow extends EntityAnimal { public EntityCheeseCow(World worldIn) { super(worldIn); this.setSize(0.9F, 1.4F); } public static void func_189790_b(DataFixer p_189790_0_) { EntityLiving.func_189752_a(p_189790_0_, "CheeseCow"); } protected void initEntityAI() { this.tasks.addTask(0, new EntityAISwimming(this)); this.tasks.addTask(1, new EntityAIPanic(this, 2.0D)); this.tasks.addTask(2, new EntityAIMate(this, 1.0D)); this.tasks.addTask(3, new EntityAITempt(this, 1.25D, CheeseItems.CHEESE, false)); this.tasks.addTask(4, new EntityAIFollowParent(this, 1.25D)); this.tasks.addTask(5, new EntityAIWander(this, 1.0D)); this.tasks.addTask(6, new EntityAIWatchClosest(this, EntityPlayer.class, 6.0F)); this.tasks.addTask(7, new EntityAILookIdle(this)); } protected void applyEntityAttributes() { super.applyEntityAttributes(); this.getEntityAttribute(SharedMonsterAttributes.MAX_HEALTH).setBaseValue(10.0D); this.getEntityAttribute(SharedMonsterAttributes.MOVEMENT_SPEED).setBaseValue(0.20000000298023224D); } protected SoundEvent getAmbientSound() { return SoundEvents.ENTITY_COW_AMBIENT; } protected SoundEvent getHurtSound() { return SoundEvents.ENTITY_COW_HURT; } protected SoundEvent getDeathSound() { return SoundEvents.ENTITY_COW_DEATH; } protected void playStepSound(BlockPos pos, Block blockIn) { this.playSound(SoundEvents.ENTITY_COW_STEP, 0.15F, 1.0F); } protected float getSoundVolume() { return 0.4F; } @Nullable protected ResourceLocation getLootTable() { return LootTableList.ENTITIES_CHEESE_COW; } public boolean processInteract(EntityPlayer player, EnumHand hand, @Nullable ItemStack stack) { if (stack != null && !player.capabilities.isCreativeMode && !this.isChild()) { player.playSound(SoundEvents.ENTITY_COW_MILK, 1.0F, 1.0F); if (--stack.stackSize == 0) { player.setHeldItem(hand, new ItemStack(CheeseItems.CHEESE)); } else if (!player.inventory.addItemStackToInventory(new ItemStack(CheeseItems.CHEESE))) { player.dropItem(new ItemStack(CheeseItems.CHEESE), false); } return true; } else { return super.processInteract(player, hand, stack); } } public EntityCheeseCow createChild(EntityAgeable ageable) { return new EntityCheeseCow(this.worldObj); } public float getEyeHeight() { return this.isChild() ? this.height : 1.3F; } } ModelClass: package com.Egietje.degeweldigemod.mobs; import net.minecraft.client.model.ModelQuadruped; import net.minecraft.client.model.ModelRenderer; import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.SideOnly; @SideOnly(Side.CLIENT) public class ModelCheeseCow extends ModelQuadruped { public ModelCheeseCow() { super(12, 0.0F); this.head = new ModelRenderer(this, 0, 0); this.head.addBox(-4.0F, -4.0F, -6.0F, 8, 8, 6, 0.0F); this.head.setRotationPoint(0.0F, 4.0F, -8.0F); this.head.setTextureOffset(22, 0).addBox(-5.0F, -5.0F, -4.0F, 1, 3, 1, 0.0F); this.head.setTextureOffset(22, 0).addBox(4.0F, -5.0F, -4.0F, 1, 3, 1, 0.0F); this.body = new ModelRenderer(this, 18, 4); this.body.addBox(-6.0F, -10.0F, -7.0F, 12, 18, 10, 0.0F); this.body.setRotationPoint(0.0F, 5.0F, 2.0F); this.body.setTextureOffset(52, 0).addBox(-2.0F, 2.0F, -8.0F, 4, 6, 1); --this.leg1.rotationPointX; ++this.leg2.rotationPointX; this.leg1.rotationPointZ += 0.0F; this.leg2.rotationPointZ += 0.0F; --this.leg3.rotationPointX; ++this.leg4.rotationPointX; --this.leg3.rotationPointZ; --this.leg4.rotationPointZ; this.childZOffset += 2.0F; } RenderClass: package com.Egietje.degeweldigemod.mobs; import com.Egietje.degeweldigemod.Reference; import com.Egietje.degeweldigemod.mobs.EntityCheeseCow; import net.minecraft.client.model.ModelBase; import net.minecraft.client.renderer.entity.RenderLiving; import net.minecraft.client.renderer.entity.RenderManager; import net.minecraft.util.ResourceLocation; import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.SideOnly; @SideOnly(Side.CLIENT) public class RenderCheeseCow extends RenderLiving<EntityCheeseCow> { private static final ResourceLocation CHEESE_COW_TEXTURES = new ResourceLocation(Reference.MODID + ":textures/entity/cheesecow.png"); public RenderCheeseCow(RenderManager renderManagerIn, ModelBase modelBaseIn, float shadowSizeIn) { super(renderManagerIn, modelBaseIn, shadowSizeIn); } protected ResourceLocation getEntityTexture(EntityCheeseCow entity) { return CHEESE_COW_TEXTURES; } } LootTableClass: package com.Egietje.degeweldigemod.mobs; import java.util.Set; import com.Egietje.degeweldigemod.Reference; import com.google.common.collect.Sets; import net.minecraft.util.ResourceLocation; public class LootTableList { private static final Set<ResourceLocation> LOOT_TABLES = Sets.<ResourceLocation>newHashSet(); public static final ResourceLocation ENTITIES_CHEESE_COW = register(Reference.MODID + ":entities/cheese_cow"); private static ResourceLocation register(String id) { return register(new ResourceLocation("minecraft", id)); } public static ResourceLocation register(ResourceLocation id) { if (LOOT_TABLES.add(id)) { return id; } else { throw new IllegalArgumentException(id + " is already a registered built-in loot table"); } } }
  3. And, what do I need to put in instead of i?
  4. Only the for-loop?
  5. Here is the console from Eclipse: 2016-07-05 14:24:16,935 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream 2016-07-05 14:24:16,938 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream [14:24:17] [main/INFO] [GradleStart]: Extra: [] [14:24:17] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/Thomas/.gradle/caches/minecraft/assets, --assetIndex, 1.10, --accessToken{REDACTED}, --version, 1.10, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker] [14:24:17] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker [14:24:17] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker [14:24:17] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker [14:24:17] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker [14:24:17] [main/INFO] [FML]: Forge Mod Loader version 12.18.0.1986 for Minecraft 1.10 loading [14:24:17] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_77, running on Windows 10:amd64:10.0, installed at C:\Program Files\Java\jre1.8.0_77 [14:24:17] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation [14:24:17] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker [14:24:17] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin [14:24:17] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin [14:24:17] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [14:24:17] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker [14:24:17] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker [14:24:17] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [14:24:17] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [14:24:17] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper [14:24:17] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work! [14:24:18] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing [14:24:18] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper [14:24:18] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker [14:24:20] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker [14:24:20] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker [14:24:20] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker [14:24:20] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main} 2016-07-05 14:24:21,469 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream 2016-07-05 14:24:21,494 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream 2016-07-05 14:24:21,496 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream [14:24:22] [Client thread/INFO]: Setting user: Player281 [14:24:27] [Client thread/INFO]: LWJGL Version: 2.9.4 [14:24:29] [Client thread/INFO] [sTDOUT]: [net.minecraftforge.fml.client.SplashProgress:start:221]: ---- Minecraft Crash Report ---- // Who set us up the TNT? Time: 5-7-16 14:24 Description: Loading screen debug info This is just a prompt for computer specs to be printed. THIS IS NOT A ERROR A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- System Details -- Details: Minecraft Version: 1.10 Operating System: Windows 10 (amd64) version 10.0 Java Version: 1.8.0_77, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 812174672 bytes (774 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB) JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: Loaded coremods (and transformers): GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.5.0 NVIDIA 364.72' Renderer: 'GeForce GTX 750/PCIe/SSE2' [14:24:29] [Client thread/INFO] [FML]: MinecraftForge v12.18.0.1986 Initialized [14:24:29] [Client thread/INFO] [FML]: Replaced 233 ore recipes [14:24:30] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer [14:24:30] [Client thread/INFO] [FML]: Searching C:\Users\Thomas\Desktop\Coding\DeGeweldigeMod 1.10\run\mods for mods [14:24:30] [Client thread/ERROR] [FML]: The mcmod.info file in bin cannot be parsed as valid JSON. It will be ignored com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Expected ':' at line 11 column 67 at com.google.gson.internal.Streams.parse(Streams.java:56) ~[streams.class:?] at com.google.gson.JsonParser.parse(JsonParser.java:84) ~[JsonParser.class:?] at com.google.gson.JsonParser.parse(JsonParser.java:59) ~[JsonParser.class:?] at net.minecraftforge.fml.common.MetadataCollection.from(MetadataCollection.java:63) [MetadataCollection.class:?] at net.minecraftforge.fml.common.discovery.DirectoryDiscoverer.exploreFileSystem(DirectoryDiscoverer.java:76) [DirectoryDiscoverer.class:?] at net.minecraftforge.fml.common.discovery.DirectoryDiscoverer.discover(DirectoryDiscoverer.java:60) [DirectoryDiscoverer.class:?] at net.minecraftforge.fml.common.discovery.ContainerType.findMods(ContainerType.java:49) [ContainerType.class:?] at net.minecraftforge.fml.common.discovery.ModCandidate.explore(ModCandidate.java:78) [ModCandidate.class:?] at net.minecraftforge.fml.common.discovery.ModDiscoverer.identifyMods(ModDiscoverer.java:141) [ModDiscoverer.class:?] at net.minecraftforge.fml.common.Loader.identifyMods(Loader.java:380) [Loader.class:?] at net.minecraftforge.fml.common.Loader.loadMods(Loader.java:506) [Loader.class:?] at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:216) [FMLClientHandler.class:?] at net.minecraft.client.Minecraft.startGame(Minecraft.java:477) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:386) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_77] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_77] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_77] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_77] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_77] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_77] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_77] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_77] at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?] at GradleStart.main(GradleStart.java:26) [start/:?] Caused by: com.google.gson.stream.MalformedJsonException: Expected ':' at line 11 column 67 at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1505) ~[JsonReader.class:?] at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:519) ~[JsonReader.class:?] at com.google.gson.stream.JsonReader.peek(JsonReader.java:414) ~[JsonReader.class:?] at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:644) ~[TypeAdapters$25.class:?] at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:667) ~[TypeAdapters$25.class:?] at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:659) ~[TypeAdapters$25.class:?] at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:642) ~[TypeAdapters$25.class:?] at com.google.gson.internal.Streams.parse(Streams.java:44) ~[streams.class:?] ... 26 more [14:24:32] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load [14:24:32] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, dgm] at CLIENT [14:24:32] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, dgm] at SERVER [14:24:33] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:§6De§r§eGeweldige§r§6Mod§r [14:24:33] [Client thread/INFO] [FML]: Processing ObjectHolder annotations [14:24:33] [Client thread/INFO] [FML]: Found 423 ObjectHolder annotations [14:24:33] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations [14:24:33] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations [14:24:33] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0 [14:24:33] [Forge Version Check/INFO] [ForgeVersionCheck]: [Forge] Starting version check at http://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json [14:24:33] [Client thread/INFO] [FML]: Applying holder lookups [14:24:33] [Client thread/INFO] [FML]: Holder lookups applied [14:24:33] [Client thread/INFO] [FML]: Injecting itemstacks [14:24:33] [Client thread/INFO] [FML]: Itemstack injection complete [14:24:34] [Forge Version Check/INFO] [ForgeVersionCheck]: [Forge] Found status: BETA_OUTDATED Target: 12.18.0.2000 [14:24:39] [sound Library Loader/INFO]: Starting up SoundSystem... [14:24:40] [Thread-8/INFO]: Initializing LWJGL OpenAL [14:24:40] [Thread-8/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [14:24:40] [Thread-8/INFO]: OpenAL initialized. [14:24:40] [sound Library Loader/INFO]: Sound engine started [14:24:44] [Client thread/INFO] [FML]: Max texture size: 16384 [14:24:44] [Client thread/INFO]: Created: 16x16 textures-atlas
  6. So, I need to remove the for-loop?
  7. So if you join a game, once per (for example) 10 seconds?
  8. When do you want it to 'say' something in chat?
  9. For example: if a player has joined the game and you want it to say something, do this: @SubscribeEvent public void onPlayerJoin(PlayerLoggedInEvent event) { EntityPlayer player = event.player; player.addChatMessage(new TextComponentString("Welcome!")); } and if you want to get the playername in the message: @SubscribeEvent public void onPlayerJoin(PlayerLoggedInEvent event) { EntityPlayer player = event.player; player.addChatMessage(new TextComponentString("Welcome, " + player.getDisplayNameString())); }
  10. Look at the code at the top, I had that but it didn't work correctly
  11. Doesn't that delete my src?
  12. Eclipse neon (4.6)
  13. I can tomorrow give you a download of my code, if you want
  14. On my phone now, can't provide any code
  15. It isn't in my code, and it only crashes when I debug, not run
  16. package com.Egietje.degeweldigemod; import org.lwjgl.opengl.Display; import com.Egietje.degeweldigemod.handler.CheeseHandler; import com.Egietje.degeweldigemod.init.CheeseBlocks; import com.Egietje.degeweldigemod.init.CheeseItems; import com.Egietje.degeweldigemod.proxy.CommonProxy; import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.common.Mod.EventHandler; import net.minecraftforge.fml.common.Mod.Instance; import net.minecraftforge.fml.common.SidedProxy; import net.minecraftforge.fml.common.event.FMLInitializationEvent; import net.minecraftforge.fml.common.event.FMLPostInitializationEvent; import net.minecraftforge.fml.common.event.FMLPreInitializationEvent; import net.minecraftforge.fml.common.registry.GameRegistry; @Mod(modid = Reference.MODID, name = Reference.NAME, version = Reference.VERSION, acceptedMinecraftVersions = "[1.10]") public class DeGeweldigeMod { public static final CheeseTab tabCheeseStuff = new CheeseTab("tabCheeseStuff"); @SidedProxy(clientSide = Reference.CLIENTPROXY, serverSide = Reference.COMMONPROXY) public static CommonProxy proxy; @Instance(Reference.MODID) public static DeGeweldigeMod DGMInstance; @EventHandler public void preInit(FMLPreInitializationEvent event) { Display.setTitle("DeGeweldigeMod - V2.1"); } @EventHandler public static void init(FMLInitializationEvent event) { new CheeseItems(); new CheeseBlocks(); new CheeseCraftingAndSmelting(); new CheeseAchievements(); GameRegistry.registerWorldGenerator(new CheeseGeneration(), 0); MinecraftForge.EVENT_BUS.register(new CheeseHandler()); } @EventHandler public static void postInit(FMLPostInitializationEvent event) { proxy.registerModels(); } }
  17. I had that before, but it takes away as many items as the stacks you have, for example: I have 3 stacks of dirt, right-click the machine and it will take away 3 dirt from the stack I'm holding
  18. I don't see what you mean
  19. I want that if you right-click the block with a specific item, it takes 1 from the itemstack you're holding
  20. I don't want the slot to be empty, i want to remove 1 item from it

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.