Everything posted by Abastro
-
Making a mob tameable
Show your current code for your entity. (+ Do you understand basic java? You should do that to make a mod)
-
[1.8] Dimensions, Generating A Structure Once (SOLVED)
Post your current code.
-
[1.8] [SOLVED] Ore Generation Questions
Please read Javadocs: * @param modGenerationWeight a weight to assign to this generator. Heavy weights tend to sink to the bottom of * list of world generators (i.e. they run later) So when you have bigger weight value, the generation is called later.
-
Making a mob tameable
1. Why do you have two models on the constructor? 2. You have private static final String __OBFID = "CL_00001036"; which means that you just copy-pasted minecraft base code. Don't do that i you cannot fully understand the code..
-
[1.7.10]Making Custom Tree grow with item of choice
Only do world.setBlockToAir(i, j, k); when treeChoice is 1 or 2 or 3. (How simple..)
-
[1.8] [UNSOLVED] Dropping an item from a block
Subscribe to BlockEvent#HarvestDropsEvent, and change the ArrayList<ItemStack> named 'drops' To change drops of a block. (It can be any block; But you should check if the block is 'the block' that you want.)
-
Block scanning
For 5 block radius, it is fine to search all blocks. For 16 visible blocks, combine raytracing and surface tracking method.
-
[1.8]Entity disappears after relogging
Does the symptom occurs every time you logs out and back in? + Don't register an entity globally. It can cause too many issues.
-
Reflection woes on 1.7.10
You should provide the actual instance, not the class, to get a value of a non-static field. So you need Tessellator.instance in the place*: f.getInt(*)
-
Get TileEntity values inside a getHarvestTool override function
If you are on 1.7.10, there is no appropriate way to do that, but there is also a roundabout route. You need these: 1. You can remove drop on BlockEvent#HarvestDropsEvent. 2. You can make breaking speed slow with PlayerEvent#BreakSpeed.
-
[forge-1.8-11.14.1.1334] CleanRoom Generator
I inspected it and only found out that the exception is impossible.. Can you debug it with some breakpoints?
-
Object[]s in Crafting Recipes
Oh so you are talking about that. Actually there is no difference between them, so that's a matter of choice.
-
[forge-1.8-11.14.1.1334] CleanRoom Generator
So is that 1.7 or 2.8? And surely, on public boolean chunkExists(int x, int z)
-
Object[]s in Crafting Recipes
Pros: can accept various parameters for the recipe, it gives more degree of freedom to the form of the recipe. Cons: High possibility of Illegal Argument Exception.
-
[forge-1.8-11.14.1.1334] CleanRoom Generator
1. What is your minecraft and forge version? 2. I think you should make it so that there is no chunk on the world.
-
[1.8] onItemLeftClick?
You should consider subscribing all the possible events, like block clicking and swinging, etc.
-
[1.8] onItemLeftClick?
I inspected to it and found no way to do that; Left clicking calls Minecraft#func_147116_af(), which directly leads to attacking an entity or breaking a block. So there is no simple method to do what you want..
-
Crash Report help
Post the whole crash report and possibly the whole log. You are missing what exception had occured, which is very important.
-
[forge-1.8-11.14.1.1334] CleanRoom Generator
The best method would be your own 'clean room' WorldType, which provides the IChunkProvider.
-
[1.7.10] [Solved] Getting a mod's config directory?
FMLPreInitializationEvent#getModConfigurationDirectory() gives the parent directory for the config. So you can find the another mod's configuration file there.
-
[1.7.10] How do I use apis?
Just set up the gradle dependency for that. See ForgeGradle section, it will help you a lot with gradle.
-
[1.8]Rendering with the Tessellator
In my attempt to use the GlStateManager I gave the player a permanent superman-pose disability. While I won't ask for a tutorial on using GlStateManager, how do you access the statemanager for a Tessellator and a WorldRenderer object? The vanilla code on this doesn't make much sense to me... You don't have to, and should not access the WorldRenderer object.. You need to put this before rendering yours: GlStateManager.pushMatrix(); and this after yours: GlStateManager.popMatrix();
-
[SOLVED][1.8] Solid to invisible toggleable block rendering
Then what about giving empty list of quads on getFaceQuads() and getGeneralQuads()?
-
[1.8](Unsolved)giving a player items on a block right click
Just use World#setBlockState with the original pos(BlockPos), you need not create new instance of blockpos copying that. Also for giving a player an item, here is a snippet of code from CommandGive: EntityItem entityitem = entityplayermp.dropPlayerItemWithRandomChoice(itemstack, false); entityitem.delayBeforeCanPickup = 0; entityitem.func_145797_a(entityplayermp.getCommandSenderName());
-
[1.8]Rendering with the Tessellator
Then just use GlStateManager to rotate it.
IPS spam blocked by CleanTalk.