ComponentBlocker
Moved
Total Downloads: 2,275 - First Release: Oct 18, 2015 - Last Update: Feb 4, 2017
- 5/5, 11 likes
-
Calytic Community Admin Community Mod
-
Calytic Community Admin Community Mod
Calytic updated ComponentBlocker with a new update entry:
0.0.43
-
Am I able to remove crude oil barrels using this? I've removed the crude oil itself, but the barrels still spawn. Am I also able top remove the airdrop plane? Am I able to remove other world-generated things, such as power lines and power pylons.
If I can remove these things, how do I do it?
I'm making a medieval-era server and the above just don't fit. -
Calytic Community Admin Community Mod
Yes, you can remove oil barrels and airdrops.
You can go up to an entity in game and press F5. That will give you the prefab name, you can then use that name (or a shortened version) to block the entity.
For example:
Code:/blocker oil_barrel /blocker cargo_plane
-
I noticed yesterday that to block the cargo plane I must use the full path to the prefab. A shortened version (like the example you gave) did not work.
Also, the server fails to start and gives a NullRefException if the Supply Drop is blocked. (Works fine while the server is running though.)
Just this morning someone one my server revealed a blueprint, and the console gave this message. The player never said anything so I'm not sure if they saw anything wrong on their end:
Code:[Oxide] 7:15 AM [Error] Failed to call hook 'OnBlueprintReveal' on plugin 'ComponentBlocker v0.0.42' (NullReferenceException: Object reference not set to an instance of an object) [Oxide] 7:15 AM [Debug] at Oxide.Plugins.ComponentBlocker.CheckItem (.Item item) [0x00000] in <filename unknown>:0 at Oxide.Plugins.ComponentBlocker.OnBlueprintReveal (.Item item, .Item revealed, .BasePlayer player) [0x00000] in <filename unknown>:0 at Oxide.Plugins.ComponentBlocker.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (System.Reflection.MethodInfo method, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hookname, System.Object[] args) [0x00000] in <filename unknown>:0
EDIT: Just tested it myself. When a blueprint for a blocked item is produced, you do not get the blueprint fragments returned and the above error gets displayed in the console.Last edited by a moderator: Nov 4, 2015 -
Calytic Community Admin Community Mod
Calytic updated ComponentBlocker with a new update entry:
0.0.44
-
Calytic Community Admin Community Mod
-
Is it possible to only block an item from being crafted, but still let the item be looted from airdrops ?
-
Calytic Community Admin Community Mod
-
-
Attached Files:
-
-
[Oxide] 2:43 PM [Warning] 'ComponentBlocker v0.0.44' plugin is using deprecated hook: OnItemPickup
-
Calytic Community Admin Community Mod
Calytic updated ComponentBlocker with a new update entry:
0.0.46
-
Hi Calytic and thanks for your plugin!
I've one question.
Some of my players are telling me that they don't have BP fragments (or BP book, etc) in return when they try to reveal one.
Is it a bug?
Thanks! -
I'm getting this error after updating to the new version.
[Oxide] 2:49 AM [Error] Failed to call hook 'OnCollectiblePickup' on plugin 'ComponentBlocker v0.0.46' (InvalidCastException: Cannot cast from source type to destination type.) -
Calytic Community Admin Community Mod
Calytic updated ComponentBlocker with a new update entry:
0.0.47
[DOUBLEPOST=1449289723][/DOUBLEPOST]
Code:/blocker explosives
-
Thanks I'll check!
-
[Oxide] 7:59 PM [Warning] 'ComponentBlocker v0.0.44' plugin is using deprecated hook: OnItemPickup
-
-