Hey i just want to set other Items as Fuel / Burnable
I thought it was easy to do in at the Plugin ItemConfig and i replaced following:
with thisCode:{ "category": "Resources", "condition": { "enabled": false, "max": 0.0, "repairable": false }, "displayDescription": { "english": "Extracted from animal carcass. Used as a raw material to make a bone blade, a bone awl, bone meal, or used to make glue.", "token": "item_desc_bone_fragments", "translated": "Extracted from animal carcass. Used as a raw material to make a bone blade, a bone awl, bone meal, or used to make glue." }, "displayName": { "english": "Bone Fragments", "token": "item_name_bone_fragments", "translated": "Bone Fragments" }, "itemid": -1405028248.0, "modules": [], "rarity": "Common", "shortname": "bone_fragments", "stackable": 10000.0 },
The Main Problem is, that this doesnt workCode:{ "category": "Resources", "condition": { "enabled": false, "max": 0.0, "repairable": false }, "displayDescription": { "english": "Extracted from animal carcass. Used as a raw material to make a bone blade, a bone awl, bone meal, or used to make glue.", "token": "item_desc_bone_fragments", "translated": "Extracted from animal carcass. Used as a raw material to make a bone blade, a bone awl, bone meal, or used to make glue." }, "displayName": { "english": "Bone Fragments", "token": "item_name_bone_fragments", "translated": "Bone Fragments" }, "itemid": -1405028248.0, "modules": [ { "byproductAmount": 1.0, "byproductChance": 0.0, "byproductItem": { "itemid": 1436001773.0, "shortname": "charcoal" }, "fuelAmount": 10.0, "type": "ItemModBurnable" } ], "rarity": "Common", "shortname": "bone_fragments", "stackable": 10000.0 },
I'll get this as Result:
Someone has an idea how to make other Items Burnable?Code:[Oxide] 10:32 PM [Info] Unloaded plugin ItemConfig v1.0.12 by Nogrod [Oxide] 10:32 PM [Info] Loaded plugin ItemConfig v1.0.12 by Nogrod [Oxide] 10:32 PM [Error] Failed to call hook 'OnServerInitialized' on plugin 'ItemConfig' (NullReferenceException: Object reference not set to an instance of an object) [Oxide] 10:32 PM [Debug] at Oxide.Plugins.ItemConfig.UpdateItem (.ItemDefinition definition, JSON.Object item) [0x00000] in <filename unknown>:0 at Oxide.Plugins.ItemConfig.UpdateItems () [0x00000] in <filename unknown>:0 at Oxide.Plugins.ItemConfig.OnServerInitialized () [0x00000] in <filename unknown>:0 at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&) at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 [Oxide] 10:32 PM [Warning] CallHook 'OnServerInitialized' on plugin 'ItemConfig' took: 560.5469ms [Oxide] 10:32 PM [Warning] CallHook 'OnPluginLoaded' on plugin 'Rust Core' took: 680.6641ms
For Example 2 Wood generates 1 Charcoal with this chance set to 0.5
My Idea is for example 1 Bone will generate 1 Animal Fat, i tried with itemid and shortname, but even the copied module out of wood into bone_fragments wont work. I hope someone could help me here
Solved Other items as fuel / burnables
Discussion in 'Plugin Requests' started by Lupox, May 5, 2015.
-
I'm not 100% sure
BUT
its client sided so you cannot change anything . -
I also thought about it hmm but that would be a pity ^^
-
Wulf Community Admin
-
Problem Solved, ItemConfig supports this now!