This plugin adds procedures enable to create custom damage source
1.4.0 Update:
Procedures:
Added extended "Spawn Entity Procedure"
Examples:
This procedure enables spawning entities with modifying their parameters
Features:
Local Variables:
damage source variable
Procedures:
Add modifiers to a damage source variable
Create custom damage source
Create custom damage source by source entity
Create custom damage source by immediate source entity of source entity
Create damage source
Create damage source by source entity
Create damage source by immediate source entity of source entity
Get UUID of entity
Spawn entity
Deal damage to entity
Get entity from UUID
Spawn entity (extended procedure)
How to use:
- Create a new damage source variable
- Set the damage type and the modifiers as shown in the image
- Use a Deal Damage Procedure to entity (The procedure added by this plugin)
Information:
This plugin supports Forge 1.16.5, 1.18.2, 1.19.2 and Fabric 1.19.2
MCreator version need to be 2022.3 or above
Attachment | Size |
---|---|
Damage Source Plugin 1.4.430.99 KB | 30.99 KB |
Comments
And this is why you should make Support for 1.18.2 so you can use the Deal Damage Procedure (not with the translateable text.)
Or you could make exactly the same Procedure Block like the Deal Damage but with the Damage Source and add it seperatly instead of replacing the normal Deal Damage Procedure.
an error happens when i add "bypass_enchantments" modifier:
> Task :compileJava FAILED
C:\Users\*****\MCreatorWorkspaces\project_drakeborn_tweaks\src\main\java\sakeplays\projectdrakeborntweaks\procedures\WoundedWingsOnEffectActiveTickProcedure.java:40: error: cannot find symbol
woundedWingsDamageDeal = woundedWingsDamageDeal.bypassEnchantments();
^
symbol: method bypassEnchantments()
location: variable woundedWingsDamageDeal of type DamageSource
1 error
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileJava'.
> Compilation failed; see the compiler error output for details.
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 2s
Thank you for the wonderful mod , I've been waiting for it for so long , but i I have a problem in 1.16.5 forge ,
i installed the plugin , when i use "open screen gui " procedure It shows me an error , when i remove the pluge , the procedure work properly , this is the error message shown below .
> Task :compileJava FAILED
ure.java:88: error: cannot find symbol LevelAccessor world = (LevelAccessor) dependencies.get("world");
^
symbol: class LevelAccessor
location: class net.mcreator.handcuffes.procedures.OpenguiProcedure
ure.java:88: error: cannot find symbol LevelAccessor world = (LevelAccessor) dependencies.get("world");
^
symbol: class LevelAccessor
location: class net.mcreator.handcuffes.procedures.OpenguiProcedure
2 errors
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileJava'.
> Compilation failed; see the compiler error output for details.
Hey umm I think there is something wrong with the "Create damage source of # by source entity" when ran under a "Entity attacked" procedure as it keeps crashing my game for some reason. Mind checking it out to make sure it's just an issue on my side?
https://user-images.githubusercontent.com/94686352/211932252-a597393e-83ca-4d03-9c1a-d7a331919825.png
Hello! I'm a bit of a simpleton, can you explain how exactly this plugin works and how to use it in-depth?
I know you gave some instructions in the bottom, but I really want to understand how this plugin ticks because the current explanation is too vague for my tiny little head to wrap around. Or I'm too tired. Thanks in advance!
Well done!