
SoggyMustache
Members-
Posts
61 -
Joined
-
Last visited
Everything posted by SoggyMustache
-
[1.9] Register entities with spawn egg
SoggyMustache replied to SoggyMustache's topic in Modder Support
I removed the global ids, Im not trying to sound rude but I just need to know how to add eggs to the entities -
[1.9] Register entities with spawn egg
SoggyMustache replied to SoggyMustache's topic in Modder Support
They spawn in fine I need them to have eggs as well -
I looked everywhere (I think) but I can't find anything on how to give my mobs spawn eggs I used this in 1.8 and it is telling me I need to change randomId to a string but that stilll doesnt make the egg work. package net.soggymustache.zawam.entity; import net.minecraft.entity.EntityList; import net.minecraftforge.fml.common.registry.EntityRegistry; import net.soggymustache.zawam.ZAWAMain; import net.soggymustache.zawam.entity.Warthog.EntityWarthog; public class Entity { public static int randomId; public static void ZAWAMain(){ registerEntity(); } public static void registerEntity(){ // createEntity(EntitySumatranRhinoceros.class, "SumatranRhinoceros", 0x424040, } public static void createEntity(Class entityClass, String entityName, int solidColor, int spotColor){ randomId = EntityRegistry.findGlobalUniqueEntityId(); EntityRegistry.registerGlobalEntityID(entityClass, entityName, randomId); EntityRegistry.registerModEntity(entityClass, entityName, randomId, ZAWAMain.modInstance, 42, 1, true); createEgg(randomId, solidColor, spotColor); } public static void createEgg(int randomId, int solidColor, int spotColor) { EntityList.entityEggs.put(String.valueOf(randomId), new EntityList.EntityEggInfo(randomId, solidColor, spotColor)); } }
-
[1.8] My mod lags the game after around 3 mins
SoggyMustache replied to SoggyMustache's topic in Modder Support
Here is all the code https://github.com/0SoggyMustache0/ZAWA please note I removed the models because I did not make them and the modelers dont want them stolen -
[1.8] My mod lags the game after around 3 mins
SoggyMustache replied to SoggyMustache's topic in Modder Support
What code do you want? -
As the title says my mod will randomly lag the game to the point where it is unplayable after around 3 mins. It isn't my PC because I have made plenty of mods before this one and they all worked fine. The main things in this mod is 1 biome, 1 new book GUI, and 15 new entities so far. If someone can help you will save me so much time!
-
Now the mod will build but it is broken inside eclipse [embed=425,349]http://i.imgur.com/H34g19k.png[/embed]
-
It was working but it just stopped I have no clue what happened could my computer have updated and messed it up?
-
My mod just stopped building. I stopped modding for a week and when I came back to it my mod it no longer builds.
-
I have this protected static final AxisAlignedBB ROAD_BARRIER_SIZE = new AxisAlignedBB(0.0625D, 0.0D, 0.0D, 0.9375D, 1.0D, 0.9375D); and below that I have public AxisAlignedBB getBoundingBox(IBlockState state, IBlockAccess source, BlockPos pos) { return ROAD_BARRIER_SIZE; } Without changing the size to something ridiculous is there a way to make it so you cant jump it.
-
I am trying to make a new block like a fence I looked in both the fence and wall class and I cant find anything helpful. I only found this boolean which doesnt work for me. What do I need to add to keep the block height normal but make it so you cant climb over it? public boolean isPassable(IBlockAccess worldIn, BlockPos pos) { return false; }
-
Here is the crash above is the code http://pastebin.com/n5NPdSRz
-
http://pastebin.com/jTfVuLNX
-
I used [embed=425,349] public AxisAlignedBB getBoundingBox(IBlockState state, IBlockAccess source, BlockPos pos) { return this.isDouble() ? FULL_BLOCK_AABB : (state.getValue(HALF) == BlockSlab.EnumBlockHalf.TOP ? AABB_TOP_HALF : AABB_BOTTOM_HALF); }[/embed] and I cant remember if the game just would'nt load or if it crashed when I placed the box but it did one of the two.
-
I am trying to make a block like a half slab but the class for the half slab has no info on the height does any one know what to do.
-
I updated my mod from 1.8 to 1.9 and since the .json was different I got the latest one from the apple but when ever I use " { "parent": "item/handheld", "textures": { "layer0": "modid:items/Fan" } } " the item is rendered like a sword when looked at
-
Never mind just adding it apparently made it work.
-
When I add "return null;" it errors and tells me it needs to be an object
-
Is this the method I need to override public void fall(float distance, float damageMultiplier) { }
-
I want to make a entitie I made not take any fall damage is there a method I cant find anything.
-
1: are you Cd-ing to the right folder when you type gradlew build 2: not all 1.8 code works for 1.9 I have had to change all mine so you probably need to also 3: if you are cd-ing in the right folder either reinstall java SE dev kit, re-type gradlew setupDecompWorkspace, or just make a new mod folder and transfer your code
-
Ok
-
I am working on a mod based off a different video game which has things in it that minecraft has and I want to override the minecraft item's .json with my model without making a resource pack. is this possible?
-
it won't let me use "this.setFireInfo" or am I just doing this horribly wrong.
-
Not sure what you mean?