-
Posts
1830 -
Joined
-
Last visited
-
Days Won
12
Everything posted by DavidM
-
1. Personally, I don't see the point of extending EntityChicken in the first place, as I'm pretty sure "angry birds" behave very differently from chicken (unless you are planning to make it otherwise). If you are planning to override EntityChicken but change/override a significant amount of methods to change its behavior, I would suggest to just build a new mob from scratch instead. 2. Look in EntityChicken and see how the chicken handles it. Hint:
-
How many times have you tried blowing up your block with TNT? Does the block still not blow up throughout many tests? Resistance is multiplied by 3.0. Therefore, you should set the resistance value to desiredValue / 3. The code for Block#setResistance: /** * Sets the the blocks resistance to explosions. Returns the object for convenience in constructing. */ public Block setResistance(float resistance) { this.blockResistance = resistance * 3.0F; return this; }
-
How do i make a block colorable exactly like the leather-armour?
DavidM replied to Drachenbauer's topic in Modder Support
... Please, learn java. You wrote the constructor yourself; you define what goes in the parenthesis. In 1.12.2, tile entities must have a constructor that takes in no parameters. In 1.13.2, tile entities must have a constructor that takes in a TileEntityType. Create you constructor(s) accordingly. -
1. Stop using static initializers. 2. Stop using BlockBases. 3. Post the constructor of you BlockBase.
-
Crashes after start with newer version of forge
DavidM replied to Sciti's topic in Support & Bug Reports
The crash log should have changed. Post the new crash log with astral sorcery removed. -
Crashes after start with newer version of forge
DavidM replied to Sciti's topic in Support & Bug Reports
Are you using the newest version of astral sorcery? If the newest version of astral sorcery is still causing the crash, report the crash to the author of the mod. -
1. I'm assuming you typed "gradlew", which brings up the "info" of the gradlew file. If you are looking to set up your workspace, type "gradlew setupDecompWorkspace" followed by "gradlew eclipse". Entering "gradlew <something>" means running the "gradlew" file with "<something>" as argument(s); leaving "<something>" blank will show the default message (welcome message). 2. The tutorial you are following is terrible. I suggest you to drop it and follow other ones instead. Examples being: https://github.com/TheGreyGhost/MinecraftByExample/tree/master/src/main/java/minecraftbyexample
-
Try importing the annotation manually: import net.minecraftforge.common.config.Config; If that fails to import, it is likely that something went wrong during the setup of the workspace. In that case, try setting up the workspace again.
-
In fact, your problem can be solved easily with google. The first result on google for searching up “counter in java”: https://stackoverflow.com/questions/43900032/how-the-counter-works-very-basic-java You might want to learn to search on google effectively, as searching problems on google comes in handy when programming.
-
Google cannot read your mind and serve you with the perfect working code on a silver plate. Learn from the results on google and construct your own code. The concept of a counter is very straightforward; google should be more than enough to learn from. Rudeness is what you get for wanting to copy/paste working code without learning and failing to follow simple instructions.
-
How do i make a block colorable exactly like the leather-armour?
DavidM replied to Drachenbauer's topic in Modder Support
You create a class extending tile entity. You might want to look up the docs first though. -
Can you send a link to your repo? I suspect that you put the model json in the wrong place.
-
Also, if you are using version 1.13.2, the recipes folder moved to resources/data/modid/recipes. If this is not the case, then there is something wrong in your recipe json. The log should tell you what went wrong.
-
Post your log.
-
Items won't show in game after recreating a workspace
DavidM replied to Heckzagon's topic in Modder Support
You never add your registry handler class to the game’s event bus, so your registry handlers are never called. To fix the problem, annotate your registry handler class with @EventBusSubscriber. Apart from that, there are some bad practices in your code: Stop using ItemBase and BlockBase (abusing inheritance). Do not use static initializers (likely to cause unpredictable errors). Stop using IHasModel (all items and blocks have models, thus the IHasModel interface is unnecessary). The detailed reasons are listed here: http://www.minecraftforge.net/forum/topic/61757-common-issues-and-recommendations/ -
Why? Other people can’t figure out what went wrong if they cannot see your code. Moreover, you should only use reflection to find the method (EntityRenderer#loadShader in this case) once and store it in a static field, as reflections are very resource consuming.
-
I have an IBakedModel. I would like to render it in a GUI. What is the best way to approach this?
-
How do i make a block colorable exactly like the leather-armour?
DavidM replied to Drachenbauer's topic in Modder Support
IRecipe implementation.