Weird facts I want to know

A place to talk to other users about the mod.
Post Reply
SforzandoCF
Posts: 1
Joined: Wed Mar 27, 2024 12:22 pm

Weird facts I want to know

Post by SforzandoCF »

I'm working on a BTW version for Minecraft 1.19.2 (Forge/Fabric), and I wanted to know some weird things. First of all, the wiki doesn't say how much durability the firestarters have. Does anyone know?
User avatar
EpicAaron
Posts: 532
Joined: Sat Jun 09, 2012 9:08 am

Re: Weird facts I want to know

Post by EpicAaron »

The wiki is getting pretty darn good!

https://wiki.btwce.com/index.php?title=Firestarter

If you need specific data from the code, someone on the discord may be willing to look into that for you.
User avatar
EpicAaron
Posts: 532
Joined: Sat Jun 09, 2012 9:08 am

Re: Weird facts I want to know

Post by EpicAaron »

I took a look. Here is the constructor for primitive fire starters:
Spoiler
Show

Code: Select all

    public FCItemFireStarterPrimitive( int iItemID, int iMaxUses, float fExhaustionPerUse, float fBaseChance, float fMaxChance, float fChanceIncreasePerUse )
    {
        super( iItemID, iMaxUses, fExhaustionPerUse );
        
    	m_fBaseChance = fBaseChance;
        m_fMaxChance = fMaxChance;
        m_fChanceIncreasePerUse = fChanceIncreasePerUse;
        
        SetBuoyant();
    	SetFurnaceBurnTime( FCEnumFurnaceBurnTime.SHAFT );    	
    }
And here is the bow drill and plow being created. Second int is uses, and then MaxChance and IncreasePerUse determine about how long you have to go before getting a fire going.
Spoiler
Show

Code: Select all

		fcItemFireStarterSticks = new FCItemFireStarterPrimitive(
				parseID("fcItemFireStarterSticksID"), 250, 0.05F, -0.1F, 0.1F, 0.001F).
				SetFilterableProperties(Item.m_iFilterable_Narrow).	    	
				setUnlocalizedName("fcItemFireStarterSticks");

		fcItemFireStarterBow = new FCItemFireStarterPrimitive(parseID("fcItemFireStarterBowID"), 
				250, 0.025F, -0.1F, 0.1F, 0.004F).setUnlocalizedName("fcItemFireStarterBow");
BTW Community Server Discord: https://discord.gg/arZpuYW
Spoiler
Show
Image
Post Reply