
Everything posted by Cadiboo
-
[1.12.2] Syncing Energy Capability on ItemStacks
Update, I've got it to work, but I want the server to sync the ItemStacks NBT more often, does anyone know what method I should use to achieve this? this is pseudo code of what I'm trying to achieve public void onUpdate(ItemStack stack, World worldIn, Entity entityIn, int itemSlot, boolean isSelected) { if(energy.getEnergyStored() != prevEnergyStored) entityIn.connection.sendPacket(UPDATE_NBT); }
-
[1.12.2] Syncing Energy Capability on ItemStacks
I am setting my NBT in my getShareTag correctly, and the NBT should just work (deserialise/read automagically) client side. Am I missing something?
-
1.12 problem with collision boxes and obj models
I assume you have to override getBoundingBox in Block
-
Modifier System
Your probably going to want to use Capabilities, they are well documented. Here's the rundown https://gist.github.com/williewillus/c8dc2a1e7963b57ef436c699f25a710d
-
[Solved]How to get players hand during break speed event?
Other events usually have a getHand() method
-
[Solved]How to get players hand during break speed event?
whats wrong with Try it before saying it doesn't work You also didn't post your EntityUtil.getActiveItemStack method
-
[Solved]How to get players hand during break speed event?
what are you trying to do???
-
[1.13] Using MCP to deobfuscate source code
They're on MCPBot, you can even add & change them if you want
-
Saving Data With The World (NBT)
Also, you probably want all your methods to be static unless you are registering your EventHandler (in preInit)
-
[1.12.2] Syncing Energy Capability on ItemStacks
I’ve got an Item that has an energy capability that writes its energy amount to not every time it updates (is this the way I should be doing it?) but when energy is added to it by other items in my inventory (Actually Additions Batteries) the energy only updates on the server, not the client. If I drop the item and pick it up again or put it into another inventory (chest, furnace, generator etc) the energy updates to the right amount. However moving it around in my own inventory or using the item doesn’t update the energy. My code: https://github.com/Cadiboo/WIPTech/blob/master/src/main/java/cadiboo/wiptech/item/ItemEnergy.java > https://github.com/Cadiboo/WIPTech/blob/master/src/main/java/cadiboo/wiptech/item/ItemGun.java > https://github.com/Cadiboo/WIPTech/blob/master/src/main/java/cadiboo/wiptech/item/ItemRailgun113.java Provider https://github.com/Cadiboo/WIPTech/tree/master/src/main/java/cadiboo/wiptech/provider (ModularWeaponProvider & ModularWeaponProvider113) neither works What am I doing wrong/ should I be doing differently?
-
[1.13] Using MCP to deobfuscate source code
Hi, I'm currently trying to look at how 1.13 handles its' furnace recipes (JSON!) and need to know how to use MCP to deobfuscate the latest snapshot's source code. I have tried a number of tutorials to use MCP, but it seems that since forge's existence direct use of MCP has dwindled almost out of existence. If anybody has this knowledge, it would be greatly appreciated if you could share it. A number of other people @Exsolutus, @MDW01 have expressed interest in the source code, and jabelar, Draco18s & diesieben07 have expressed interest about the workings of 1.13. I am trying to understand how to use https://github.com/MinecraftForge/MCPConfig in conjunction with MCP. Here is my latest attempt if it helps anyone
-
[SOLVED] [1.12.2] Entity (Projectile) Rendering - Dislocating Entity Problem
Thats the solution. A lot of code is apparently handled specifically if the entity extends arrow, so you pretty much have to extend it. My current code that works perfectly
-
[SOLVED] [1.12.2] Create Custom Projectile (similar to arrow)
Fixed everything a long time ago. Here are my current classes if it helps anyone. Entity Class https://github.com/Cadiboo/WIPTech/blob/master/src/main/java/cadiboo/wiptech/entity/projectile/EntityParamagneticProjectile113.java Entity Init https://github.com/Cadiboo/WIPTech/blob/3e6764e8ad5e441971c25e5e01ca6e15cef91eef/src/main/java/cadiboo/wiptech/init/Entities.java#L1-L121 Entity Registration https://github.com/Cadiboo/WIPTech/blob/3e6764e8ad5e441971c25e5e01ca6e15cef91eef/src/main/java/cadiboo/wiptech/handler/EventSubscriber.java#L37-L41 Entity Renderer Registration https://github.com/Cadiboo/WIPTech/blob/daa1f8985122ad526231771ed97c9f3eda34423b/src/main/java/cadiboo/wiptech/client/EventSubscriber.java#L101-L104
-
[SOLVED] [1.12.2] Custom model isn't rendering
Can I recommend BlockBench? http://blockbench.net
-
Mod Rejection??
1) Please post your log in a spoiler (click the eye icon when posting), not as an attachment 2) Thats a vanilla log, please make sure you posted the correct log & are running forge
-
[1.12.2] Blockstate file not found
for (int i = 0; i < Blocks.BLOCKS.length; i++) { event.getRegistry().register(new ItemBlock(Blocks.BLOCKS).setRegistryName(Blocks.BLOCKS.getRegistryName())); } from my code so for your code it would be event.getRegistry().register(new ItemBlock(Blocks.testBlock).setRegistryName(Blocks.testBlock.getRegistryName()));
-
[1.12.2] Blockstate file not found
please show your itemBlock registration code (and any creative tab registration code if you have it)
-
[1.12.2] Blockstate file not found
- [1.12.2] Blockstate file not found
Can you use /setblock to place it? If so, Are you registering an ItemBlock for your block?- [1.12.2] Blockstate file not found
setRegistryName(name); setRegistryName(new ResourceLocation(Reference.MODID, name));- [1.12.2] Blockstate file not found
And your testblock class- [1.12.2] Blockstate file not found
Can you post your main mod class?- [1.12.2] Blockstate file not found
Also a GitHub link is very helpful if you have one, it allows you and us to see errors that might jump out at you on another platform- [1.12.2] Blockstate file not found
Try deleting then recreating your resources directory. DON'T JUST PASTE your files back in, recreate every file & folder from scratch, or copy minecraft's version inside and delete everything you don't need. I had an issue where I had some very small problem with my lang file and had to do this- Crash on world new world creation
com.feed_the_beast.ftbutilities this mod is responsible. https://en.wikipedia.org/wiki/Stack_overflow#Infinite_recursion - [1.12.2] Blockstate file not found
IPS spam blocked by CleanTalk.
Important Information
By using this site, you agree to our Terms of Use.