Adding a New Keyword

Posted:
12 Apr 2020, 21:53
by pipsqueak
I'm working on adding my custom cube to Forge and was curious where new keywords are defined? I don't want to have to copy and paste large blocks of code that describe behavior over and over again.
Re: Adding a New Keyword

Posted:
12 Apr 2020, 23:42
by friarsol
It depends on what the keyword is doing. But its all in Java code.
Re: Adding a New Keyword

Posted:
13 Apr 2020, 20:09
by pipsqueak
I know enough Java to be dangerous. Let's say I had an action word, Corrupt, which meant "Put a corruption counter on a non-Swamp land you control. It becomes a Swamp." Where would I define that? I'm happy to look at other examples, I don't need a walkthrough, I just need to know where to look.
Re: Adding a New Keyword

Posted:
14 Apr 2020, 01:20
by friarsol
Re: Adding a New Keyword

Posted:
14 Apr 2020, 04:23
by pipsqueak
Interesting. So given that those files are not in my local version of forge, I assume I need to fork the github repo and rebuild it locally? Just making sure I don't go off in the wrong direction here.
Re: Adding a New Keyword

Posted:
15 Apr 2020, 01:05
by friarsol
pipsqueak wrote:Interesting. So given that those files are not in my local version of forge, I assume I need to fork the github repo and rebuild it locally? Just making sure I don't go off in the wrong direction here.
Yep. Definitely need the codebase to add keywords.