elllkere
-
Posts
16 -
Joined
-
Last visited
Posts posted by elllkere
-
-
37 minutes ago, Luis_ST said:
in your version it should be fireResistant and not immuneToFire,
try with fireResistanti gave you my screenshot when i attemping to write fireResistant
-
Just now, Luis_ST said:
then it's isImmuneToFire, but i don't know why
it`s function with bool return, i cant set it to true
-
-
2 hours ago, Luis_ST said:
post the line in your build.gradle file which looks like:
mappings channel: '***', version: '***'
mappings channel: 'snapshot', version: '20210309-1.16.5'
-
59 minutes ago, Luis_ST said:
which version and which mappings did you use?
i dont use mappings i event dont know what it is, i use Intelij IDEA with gradle.build from Forge MDK 1.16.5
-
On 1/1/2022 at 6:36 PM, Luis_ST said:
you don't need to set it, there is the fireResistant method in Item.Properties which you should called here:
there isn`t
-
3 minutes ago, Luis_ST said:
MCP mappings are the old one, the newer versions use the offical Mojang mappings (the offical Mappings contains the names of methods, fields and classes which mojnag use)
but my problem isn`t in the names, i cant set immuneFire to true because of private access
-
7 minutes ago, Luis_ST said:
it's called fireResistant in MCP mappings
What is MCP mappings
-
12 hours ago, Luis_ST said:
add it to your Item.Properties
immuneToFire is private i cant access to it
-
16 hours ago, Draco18s said:
What are you trying to make immune to fire? The axe? The player?
KILN_PICKAXE
-
21 minutes ago, Luis_ST said:
yes
What yes, i need to know where i can put this, because i tried to use it from new KilnPickaxe and it gives me error
-
I have a class
public class KilnPickaxe extends PickaxeItem { public KilnPickaxe(IItemTier tier, int attackDamageIn, float attackSpeedIn, Properties builder) { super(tier, attackDamageIn, attackSpeedIn, builder); } }
which is empty yet
And my register of itpublic static final RegistryObject<Item> KILN_PICKAXE = ITEMS.register("kiln_pickaxe", () -> new KilnPickaxe(ModItemTier.KILN, 0, -2, new Item.Properties().group(ModGroupTab.MAIN_GROUP)));
So where i can write isImmuneToFire = true ?
-
On 2/14/2021 at 4:11 PM, diesieben07 said:
Use a GlobalLootModifier. In there check if any of the dropped stacks is smeltable. To do this, you need an inventory (you can just use new Inventory(1)) and put the stack into it. Then call RecipeManager#getRecipe(IRecipeType.SMELTING, <inventory>, <world>). If that returns something, use IRecipe#getRecipeOutput to get the output (remember to copy it) and replace the dropped stack with it.
how to replace the dropped stack ?
-
I saw a lot of codes with FurnaceRecipes.instance().getSmeltingResult(stack) but i dont have the definition of instance(). Is this an addon or whatever ?
-
So is there a way to get what should drop from breaking a block in client side?
How to change isImmuneToFire from custom item tool? 1.16.5
in Modder Support
Posted
I found the other method which this.immuneToFire = true;
btw, how can i add the method manually to the Properties class if this file is read-only?