MCCustomCreation [Custom Items With Custom Abilities]
BETA-v1.1.0A plugin which lets you create custom abilities for items without writing a single line of code!
BETA-v1.1.0latestLists & GenericsSep 17, 2022 · Added Generic node type. A generic node is a node which recieves a value of a type which is the same as the one needed. (for example if the required value for an action is a String, then the type of the generic node will then be String). · Added the List node. · Added the Get Item From List By Index parameter. · Added the Custom Display Node interface. · Added the GetAllNodes andGetNodesByType functions in NodesHandler · Fixed adding nodes from another plugin wouldnt be able to be saved. · Fixed EventInstance not being saved and retrieved correctly. · Fixed Change Sign For Player action. · Fixed sign inputted String adding empty lines as spaces. · Changed previous unimplemented list nodes to be working now. any node that used a list before this update wont be usuable now. How to add a custom generic node: Code (Java): package me.example.plugin ; import Nodes.IGenericNode ; import Nodes.IParameter ; // note that a generic node can be any returning node, for this example we use parameter public class ExampleGeneric implements IGenericNode, IParameter { // usually you would want to save the generic type private Class returnType ; // constructor for cloning mostly. Can be helpful for custom GUIs public ExampleGeneric ( Class genericType ) { this. returnType = genericType ; } @Override public boolean onGenericChosen ( Class aClass ) { // This is when the type of the generic is chosen, // some preparation can be made here. this. returnType = aClass ; return true ; } @Override public IGenericNode cloneGeneric ( ) { return new ExampleGeneric ( this. returnType ) ; } @Override public Class getGenericType ( ) { // for this example the generic type and return type are the same // this is not always the case! // (for example lists which their return type is array but the generic is the component type) return this. returnType ; } @Override public void setGenericType ( Class aClass ) { // for this example the generic type and return type are the same // this is not always the case! // (for example lists which their return type is array but the generic is the component type) this. returnType = aClass ; } @Override public String getDisplayTitle ( ) { // the display title of the node in the Display GUI. // Sometimes generic nodes have weird displays, so this is to override it. return "Example Generic For Type " +returnType. getSimpleName ( ) ; } @Override public Object getParameter ( Object... objects ) { // note that the objects are the same type as the saved returnType return "Example generic: " +objects [ 0 ]. toString ( ) ; } @Override public Class getReturnType ( ) { // for this example the generic type and return type are the same // this is not always the case! // (for example lists which their return type is array but the generic is the component type) return this. returnType ; } @Override public String getKey ( ) { return "EXAMPLE_GENERIC" ; } @Override public String getDescription ( ) { return "An example for generic" ; } @Override public Class [ ] getReceivedTypes ( ) { // this is where we use the saved returnType, // we set the wanted value in the onGenericChosen function // and here we use it to declare which types should be received return new Class [ ] {returnType } ; } @Override public String [ ] getReceivedTypesDescriptions ( ) { return new String [ ] { "The example generic" } ; } }BETA-v1.0.5Bug fix #0Aug 17, 2022 Fixed an error with config on first initializeBETA-v1.0.4Node BlacklistAug 15, 2022 Added the Node Blacklist setting in the config. Any node listed in the blacklist, won't be registered by the plugin.BETA-v1.0.3Persistent Data ContainerAug 11, 2022 Added PDC functions- set, get and remove. Added onApply and onRemove creation events.BETA-v1.0.2Aug 7, 2022
Similar projects
Plugin →Let Me Despawn
Improves performance by tweaking mob despawn rules. Say bye to pesky unintentional persistent mobs.
25MSueta
JourneyMap
Real-time map used for mapping in-game or your browser as you explore.
14.7MSueta
Emotecraft
Create your own emotes in Minecraft.
7.5MSueta
Simple Tpa
A simple tpa plugin which sends requests
5.4MSueta
Common Network
Forge and Fabric Unified Networking Solution
3.9MSueta
Set Home
A lightweight plugin for players to set their homes.
3.8MSueta