Everything posted by Draco18s
-
Use Orignial Minecraft Model and Texture for own Block/Item
In your json: "texture":"minecraft:stone"
-
Notify Player of Error without Closing Game
No, because the game cannot get into that state. Something went wrong.
-
[SOLVED] Crash when loading
Aaaand where is this being called from?
-
Custom Furnace is not smelting
Use the debugger. Set some breakpoints and figure it out.
-
[SOLVED] Crash when loading
/me looks for code /me does not find code /me cannot help
-
Custom Furnace is not smelting
I can't diagnose weird.
-
Custom Furnace is not smelting
I love how you have this flag: boolean flag = this.isBurning(); And then keep doing this: if(this.isBurning() || ... if(this.isBurning()) if(this.isBurning() && ... Also don't use IInventory, use ItemStackHandler and Capabilities instead. Also don't use ITileEntityProvider, override the hasTileEntity and getTileEntity methods present in the Block class. You haven't overridden shouldRefresh, which likely causes your TE to get deleted and recreated when your block changes from not-lit to lit (and back). This is because you went the dumb vanilla route of using two blocks instead of a block state property to store that particular value.
-
[1.12.2] Custom player inventory
Yes, but you can't screw that up if you're using ItemStackHandler. It's already implemented.
-
[1.12.2] Custom player inventory
I think you meant an ItemStackHandler
-
[1.12.2] Block Break Event Post [SOLVED]
You shouldn't be doing that anway.
-
[1.12.2] Block Break Event Post [SOLVED]
You need to remove the existing drops and add the new ones to the list.
-
[1.12] Client Side Only
"Locks don't stop thieves, so we should stop locking our doors."
-
[1.12.2] Block Break Event Post [SOLVED]
The method isn't static and it needs to be if you are registering it like that.
-
[1.12] Client Side Only
That's its job.
-
[1.12.2] Block Break Event Post [SOLVED]
How are you registering your event handler class?
-
[1.12] Client Side Only
Because of client side mods that allow cheating. e.g. X Ray mods. X Ray mods are cheating. X Ray mods are listed in the handshake so the server can say "oh hell no."
-
[1.12] Client Side Only
No, stop hacking.
-
Has forgeSrc been 100% completed for 1.12.2 yet?
There's two steps here. One's a machine step, and one's the human step. The part you talk about is the human step. The machine step organizes the classes into packages and renames the classes so that instead of a, ab, bz, and cf you have Minecraft, Block, ItemStack, and GuiContainer (these names, I believe, also come from MCP, but I'm not sure where in the process it occurs). It also renames all methods, fields, and parameters called SRG names. These look like func_12893_f, field_90237_c or paramWorldIn1. MCP then is a remap from those to human readable names, which are supplied via interacting with the MCPbot on IRC.
-
[HELP] The specified module could not be found
Oh yeah, just lie about what version you're using. That'll make everything better.
-
Prevent block from breaking but drop loot
You'll have to use Events for vanilla blocks. There is a BlockBreakEvent iirc, you'll need to subscribe to it and cancel it.
-
Prevent block from breaking but drop loot
https://github.com/Draco18s/ReasonableRealism/blob/1.12.1/src/main/java/com/draco18s/ores/block/ore/BlockHardOreBase.java#L177-L196
-
[1.12.2] Sending Localized Messages to a Player
Send the unlocalized text to the client and make the client translate it. That's the only way.
-
[1.12.2] AI (attack players and villagers)
Yes
-
[1.12.2] AI (attack players and villagers)
That is not what events are for. Events are "Hey! This thing happened! Does anyone want to do anything about it!?" Not "Do you want to do this thing?" If you want your entity to attack, you need to give it the AIMeleeAttack task (go look at EntityZombie).
-
[1.12.2] Chisel&Bits exports for block models [Solved]
Probably. Sure sounds that way.
IPS spam blocked by CleanTalk.