Everything posted by DavidM
-
Can someone help me to get my forge to work
Delete Ultimate-Car-Mod-1.12.2.jar Custom-NPCs-Mod-1.12.2.jar and try launching the game again. Also, make sure you download the mods from CurseForge only.
-
[1.13.2] i still have a problem with the entity registration in a method
The uncheck warning is about unchecked generic operations (i.e. casts). Your compiler is telling you "this operation might go wrong". Read: https://stackoverflow.com/questions/1129795/what-is-suppresswarnings-unchecked-in-java
-
[1.13.2] how to create item
1. Stop using ItemBase. 2. Stop using static initializers. Also, you only need to store one reference to your item (you are currently storing it in the itemList and as a variable). 3. Specify the type when constructing the ArrayList.
-
How to add proxy (SideOnly.Client)?
If I am understanding your problem correctly, check the side of the event and only trigger the event if the side is client.
-
How do i make a block colorable exactly like the leather-armour?
It'll depends on how you want to achieve this. You could create 16 blocks, each matching a vanilla dye color. However, if you want to register all color variants as one block, you can store the color in the block's property, and just specify the color in the variants in the blockstates json. Other alternatives exist, such as how BonsaiTrees handles its coloring: https://github.com/thraaawn/BonsaiTrees/blob/master/src/main/java/org/dave/bonsaitrees/block/BlockBonsaiPot.java As for the crafting, you might have to create an IRecipe implementation.
-
1.12.2 Texture Not Loading
@SubscribeEvent public static void registerModels(ModelRegistryEvent event) { } 1. I assume that this should not be empty. As far as I could tell from your repo, you did not register the model of your block. 2. Your block also needs a model for its item form.
-
Can I make Tickable tileentities update some functionality every several ticks?
You need to know programming though.
-
Can I make Tickable tileentities update some functionality every several ticks?
1. If you need an example in order to understand "increment every tick and check if it reaches 5", then you should probably learn basic programming before trying to make a mod. It is a basic programming concept. 2. He is not giving you an example, but rather giving you a copy to copy/paste from, which is discouraged on this forum.
-
Some mods showing up, others not.
Where did you get the mods?
-
forge 1.12.2 server
1. What file did you download (what extension)? 2. Where did you download the file?
-
[1.13.2]Json load error
For one, in 1.13.2, use "" instead of "normal".
-
can I mod without doing the setup process?
AFAIK you need access to the command line in order to setup, test, git commit, and build your mod. You really should find a way to gain access to the command line, or developing mod would be very (and unnecessarily) difficult.
-
An anomalous error in my tile entity that is just there in the log and is totally weird
1. @Override has absolutely no effect on the running of your code. 2. Again, do not build your own way of serializing an ItemStack. There is already a built-in method. In addition, your way of serializing did not include the NBT attached to the ItemStack. Oops typo. I meant itemTag. Thanks for the correction.
-
An anomalous error in my tile entity that is just there in the log and is totally weird
1. Use ItemStack#serialize and ItemStack#deserialize to save your item in the altar. There is already built-in approaches to store inventory/itemstack to NBT. Don't reinvent the wheel. 2. itemTag is null, thus causing the error.
-
An anomalous error in my tile entity that is just there in the log and is totally weird
1. Indicate which line is line 108. 2. Add the @Override annotation to your methods. 3. Why are you calling loadFromNbt in your TileEntity#readFromNBT? The point of TileEntity#readFromNBT is to read the tile entity's data from the NBT. There is no need for creating another method.
-
[1.13.2] unFormattedComponentText not Equaling a String
Thanks for the clarification.
-
Working on updating IguanaTinkerTweaks to 1.12, but it uses ItemStack in multiple places. How should I go about replacing it?
ItemStack works fine for 1.12.2. You are probably not setting up your environment correctly.
-
Working on updating IguanaTinkerTweaks to 1.12, but it uses ItemStack in multiple places. How should I go about replacing it?
1. How is ItemStack deprecated? 2. There are already many remade versions of IguanaTinkerTweaks for 1.12.2, such as Tinkers' Tool Leveling and IguanaTweaks Reborn.
-
[1.13.2] unFormattedComponentText not Equaling a String
1. Use String#equals when possible. Since strings are not primitive types, str_1 == str_2 will return false even if both strings are the same value given that both strings does not point to the same object. 2. Checking an item's type with its name is not accurate, as an item's name can be changed. Check the registry name or use some other methods of checking instead.
-
[1.13.2] How to create Custom Creative Tabs
In 1.13.2, creative tab is named ItemGroup. You basically creates a class extending ItemGroup (registry name is passed in the constructor), and override ItemGroup#createIcon to return the ItemStack for the icon of your creative tab. The easiest way to add an item to your creative tab would be to pass the creative tab instance to your item properties via something like yourItemProperties.group(creativeTabInstance) .
-
Texture not showing
1. Structure your workspace properly with packages. 2. Stop using Item/BlockBase and IHasModel. Read Cadiboo's explanation on it.
-
Enchantments added to custum armor
No. These are examples that was taught by some (terrible) tutorials. 1. Do not abuse inheritance. Inheritance shouldn't be used just to "write less code". 2. After extending from ItemBase, you cannot extend from another (actually useful) class (ItemSword, etc). As for your error, show your code for the ArmorBase, ModItems, and BlockBase. Oops. My bad.
-
Enchantments added to custum armor
1. Stop using IHasModel. It is a pointless and terrible practice. 2. Stop using Item/Block/ArmorBase. They are called cargo cult programming and are terrible practices. 3. Stop using static initializers. 4. Send your crash log. 5. As for applying the potion effect, override Item#onArmorTick and add the effect to the player.
-
[1.13.2] Missing Required Library
Define "load up my mod". How are you loading up your mod? In the game or in another dev env as a dependency? Either way, please post your log.
-
[1.8.9] Render armour on player without item
He already showed you the code. 1. Stop using GLXX. Use GlStateManager instead. 2. Get the player's horizontal rotation and apply the rotation to your model with GlStateManager#rotate. This shouldn't be that hard.
IPS spam blocked by CleanTalk.