Everything posted by Draco18s
-
[1.7.10] [1.12.2] Issues with Proxies
- [1.12.2] [SOLVED] Way to yield random item or block?
s/yield/reward- [1.12] .JSON Crafting Recipes Output #
Referenced Libraries -> Forge_xxxx.jar -> net.minecraft.assets.recipes- [1.12] .JSON Crafting Recipes Output #
"result": { "item": "morefuelsmod:pellet_fuel", "count": 9 } It's almost like I looked at a vanilla recipe...- How do I properly get the BlockState of a Block/Item?
Is there a metadata sensitive version of getMaxStackSize? No? There's your answer.- How do I properly get the BlockState of a Block/Item?
Yes, because its the same item.- How do I properly get the BlockState of a Block/Item?
For those, the default state is fine.- How do I properly get the BlockState of a Block/Item?
You shouldn't use getStateFromMeta. While that will probably work for most blocks (assuming you pass in the itemstack's metadata value), there's no real guarantee. You should use ItemBlock.getStateForPlacement (if I recall the method name correctly). Check the ItemBlock class.- [1.12.2] [solved] Getting Tile Entity block coords from a GUI class
Similarly, if you're not, they won't.- [Forge 1.12.2] Issues applying .getItemDropped
Well, getItemDropped returns the item dropped. It is not a method that you use to tell the Block class what item to drop. You're going to have to set up a setItemDropped method yourself.- [1.12.2] DimensionManager dimension registration seems insufficient for uniqueness confirmation
You can use the same DimensionType more than once.- [1.10.2] Allow Command on Server side only
"I want the client that enters this command to perform it on the server" Wot.- Using tintindex?
The values are the same. But you need to use the bitshifting if you want to handle it that way.- Using tintindex?
The tintIndex is the tint index, supplied by the model JSON The ItemStack is the item stack which will contain your NBT data The return value is the color multiplier represented as an integer (e.g. 0x0000FF for blue).- Send chat message to player
Its an interface. Right click -> Open Type Hierarchy- [1.12.2] [SOLVED] PlayerTickEvent calling faster after every player death?
You have no annotation on this method- [1.11] Adding a potion effect to a player
The correct way to answer was to tell him to not use that method and to instead use MobEffects.- [1.11] Adding a potion effect to a player
You know how Blocks.DIRT is a thing so you don't need to do Block.getBlockByID(1)? Potion effects work the same way.- [1.11] Adding a potion effect to a player
Bad modder, no cookie. Do not use hard coded IDs.- Smelting
- Smelting
Where the bollocks is your code that registers your blocks and items?- [1.12.2] [SOLVED] A* JUnit Tests + Performance improvements
- How to check if there are any invisible entities in the specific entity position and not to attack the invisibles?
Seriously? You bumped your thread... And didn't answer diebiesen07's question?- [1.11.2] Let mobs walk through leaves - weird pathing issue
No, just create your own leaf block and register it with the vanilla ID- GUI and Scoreboard Info [1.10.2]
This would: This code only runs client side (good, its in your client proxy) but this: Is server side only. Also, why are you not using Capabilities? - [1.12.2] [SOLVED] Way to yield random item or block?
IPS spam blocked by CleanTalk.
Important Information
By using this site, you agree to our Terms of Use.