Everything posted by Draco18s
-
[1.10.2] [SOLVED] "In" as a suffix in given parameters?
Oh I get why it's done, Lex. Minecraft has its limitations because of the decompile and deobf process. All I meant was that I, as a coder, wouldn't have chosen those names for my own functions.
-
[1.10.2] [SOLVED] "In" as a suffix in given parameters?
That only makes me think of How to Write Unmaintainable Code
-
[1.12] Cannot add ItemStack to Chest
https://github.com/Excaliburns/ModPractice/blob/master/src/main/java/items/HuskItem.java#L52 If (not client) then...
-
[1.12.2] Making a colored planks block
Well....let's see here... matches returns....if what's in the crafting grid matches the recipe getCraftingResult returns....the result of the recipe getRecipeOutput returns....the output item of the recipe (this will be the basic item with no knowledge of the grid, but you need to return something) getRemainingItems returns....the items remaining in the crafting grid after the result is taken canFit returns....if the recipe fits within a given grid (2x2, 3x3, etc) Look at some existing implementations to snaggle most of those methods already implemented. All you'd have to do is fluff up the getRecipeOutput method to grab the metadata you want from the items in the grid.
-
[1.12] Cannot add ItemStack to Chest
(On the single player integrated server, anyway)
-
[1.12.2] NullPointerException caused when accessing ArrayList in a packet
https://github.com/Excaliburns/ModPractice/blob/master/src/main/java/network/tutmodMessage.java#L43 When the packet is being reconstructed from the byte array...what is the value (and therefore its size) of itemsList? I'll give you a hint, it's specified in the zero-argument constructor.
-
1.12.2 player is null in AttachCapabilitiesEvent
You would have to look at the player's ToString method and find out.
-
1.12.2 player is null in AttachCapabilitiesEvent
The player isn't null. The object's ToString() method encountered a NPE while executing.
-
Minecraft Forge [1.10.2] - Durable Crafting Item (SOLVED)
You aren't using the methods without parameters so of course they're not deprecated.
-
'LivingDropsEvent'Problem ,How to set the drops twice as long?
(or you can set each stack's stacksize to double: virtually all drops are done via 1-size stacks, even in the case of dropping 3 or 5 items)
-
[1.12.2] Making a colored planks block
Because string comparison is awful. You will have to either: a) make a recipe for each variant b) create a new IRecipe implementation that gets the metadata of the dye and applies it to the recipe output.
-
[1.12] Applying own knock back to any item
BTW, it'll take a while to get accepted and you'll probably feel like you're being abused with needing to make changes. Its not personal.
-
[1.12.2] Making a colored planks block
if(entity instanceof EntityParrot) { ... }
-
[1.12] Cannot add ItemStack to Chest
You need to encode the information you want to send. ByteBufUtils will help.
-
[1.12] Cannot add ItemStack to Chest
https://github.com/Excaliburns/ModPractice/blob/master/src/main/java/network/tutmodMessage.java#L35-L43 And what, pray tell, did you expect to happen?
-
[SOLVED] Event for Items dropped by Dispenser?
You should be fine, it's just that if you wanted to override a behavior (e.g. making water buckets do something different) you'd have to remove the existing behavior.
-
[SOLVED] Event for Items dropped by Dispenser?
I think so. You're also removing any existing behavior for items you're adding behaviors for, yes? (If applicable) (Aside from the default "toss").
-
[SOLVED] Event for Items dropped by Dispenser?
The dispenser does not fire any event, of any kind, when it dispenses items. The BlockEvent class (and its subclasses) are for events like crops growing, blocks being placed, blocks being broken, etc. They are very specific (I do not believe that BlockEvent is used in any context except via its subclasses). Also, if you look at BlockDispenser and the dispense method, you'll see that no events are posted. If you want to change how the dispenser dispenses items, you can do that by adding and removing entries to the DISPENSE_BEHAVIOR_REGISTRY
-
[1.10.2] Server-side Gui Menus
Packets.
-
[1.12] Applying own knock back to any item
Snrk. Hardly. File a bug report. Better yet, make a Pull Request fixing the problem. https://github.com/MinecraftForge/MinecraftForge
-
[1.12] Crafting: Modded Item with any items
Custom IRecipe implementation should be able to do this.
-
mod I created is not showing up in mod list
That is NOT how you post code. You've made it bold for some inane reason and not used a code block (the button with <> on it).
-
[1.12.2] Making a colored planks block
Because you're using the base ItemBlock class which returns 0 in getMetadata()...
-
[1.12.2] Making a colored planks block
Learn how to read the log: Caused by: java.io.FileNotFoundException: multic:blockstates/colored_plank.json
-
[1.12.2]Grasscolor Override
I do not have an answer.
IPS spam blocked by CleanTalk.