GotoLink
Members-
Posts
2012 -
Joined
-
Last visited
-
Days Won
1
Everything posted by GotoLink
-
Creating an item, that has the function of a shield?
GotoLink replied to MikeZ's topic in Modder Support
Either use the event as coolboy suggested, there is a tutorial on the wiki, or override Item#onUpdate(ItemStack, World, Entity, int, boolean) in your item. The PotionEffect isn't going to work if you keep it on the client. -
[1.6.4] Item.registery error (Continued from previous post)
GotoLink replied to kenny2810's topic in Modder Support
Named registry were introduced in 1.7. 1.6.4 only use numerical id. The preferred method was Configuration#getItem. -
[1.6.4] Setting Player Inventory Slot Contents on Server Side
GotoLink replied to Abastro's topic in Modder Support
You don't need to manipulate the container. Just use the methods in InventoryPlayer. -
Extend Item. Item#setCreativeTab(CreativeTabs); Write spawning code inside Item#onItemUse(foo). Eventually use texture from vanilla spawn egg to make it look the same.
-
You might as well tell him to look at minecraft crafting recipe manager. That is the type of code one could use. sequituri was probably talking about your CLASSNAME "example". It doesn't contain any valuable code nor information. That kind of stuff : public class TheUltimateAnswer{ public static Object getSolution(Object allHumankindProblems){ //TODO: Think of something return 42; } }
-
See attribute modifiers.
-
GameData.itemRegistry.getObjectByName(String)
-
[SOLVED]Custom Bow enchantment system broken!
GotoLink replied to Sear_Heat's topic in Modder Support
Bow enchantments look for ItemBow. Extend that class and you should be fine. *Hint* Copy-paste = Baaad . Durability is based on the item damage value. -
You are supposed to write code, not expect it from a machine or other program. If you find it too hard, take a break and try something else.
-
[Solved] [1.7.2] Custom Entity does not have Attack Damage attribute
GotoLink replied to Mateiaru's topic in Modder Support
"Available" doesn't mean "used". The wolf damage value is hard-coded in its attack routine. public boolean attackEntityAsMob(Entity par1Entity) { int i = this.isTamed() ? 4 : 2; return par1Entity.attackEntityFrom(DamageSource.causeMobDamage(this), (float)i); } See EntityLivingBase#applyEntityAttributes() for the attributes actually registered in all "living" entities. EntityLiving only adds the "follow range" attribute. Only EntityMob and EntityPlayer register the "attack damage" attribute. -
....................... Learn how to use "for" loops. Don't follow a "tutorial" that doesn't explain the stuff.
-
World#getTileEntity(int, int, int) And opening your container from client side (key handler) is not going to work. You need to send a packet to the server and open the container on server side.
-
[Solved] [1.7.2] Custom Entity does not have Attack Damage attribute
GotoLink replied to Mateiaru's topic in Modder Support
And ? The thing about attributes is they are optional. If you want it for your entity, register it into the entity attribute map by overriding the entity attribute initialization. -
The burning time needs to be sync on the client to be drawn into the GUI. See ContainerFurnace.
-
TileEntity is related to a Block in the World. You can't have it in this HashMap from your Main class.
-
[SOLVED] [1.7.2]Forge fails to initialize the game
GotoLink replied to Chocolate_with's topic in Modder Support
What is your import for Material ? What is SampleBlock constructor ? -
[1.7.2] Custom Entity only attack when he sees you.
GotoLink replied to FLUFFY2's topic in Modder Support
You also need to remove the ai task when you don't want it to run. -
[Solved][1.7.2]Game Crash When Adding Items to Player's Inventory
GotoLink replied to blfngl's topic in Modder Support
And where jetInhaler is created. -
He is talking about buttons added to the inventory GUI, with a matching design like the icons for creative inventory. The only thing that Forge could do to ease the process would be to make GuiScreen.buttonList public.
-
So the question is when do you call the second constructor for CustomFood.
-
You shouldn't run cleanCache unless you switch from versions and want to get some free space.
-
gradlew setupDecompWorkspace --refresh-dependencies
-
RESOLVED [1.7.2] Multiple projects in IntelliJ IDEA
GotoLink replied to DiabolusNeil's topic in Modder Support
Follow LexManos tutorial till eclipse stuff happens, then import each mod as modules into intelliJ Idea from their build.gradle file. The gradlew idea command is useless, but you can use gradlew genIntelliJRuns to get basic run configurations. -
EntityRegistry.registerModEntity appends modid at the beginning of the mob name, you need the complete name to use into the mob spawner logic.
-
You are missing @SubscribeEvent, and you better use event.player, rather than Minecraft.thePlayer.