Skip to content

Commit

Permalink
Teehee
Browse files Browse the repository at this point in the history
  • Loading branch information
enjarai committed Aug 24, 2024
1 parent 21450a0 commit 160d849
Show file tree
Hide file tree
Showing 3 changed files with 134 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/main/java/dev/enjarai/trickster/Trickster.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,13 @@
import net.fabricmc.fabric.api.command.v2.CommandRegistrationCallback;
import net.minecraft.entity.attribute.EntityAttributeModifier;
import net.minecraft.util.Identifier;
import nl.enjarai.cicada.api.conversation.ConversationManager;
import nl.enjarai.cicada.api.util.CicadaEntrypoint;
import nl.enjarai.cicada.api.util.JsonSource;
import nl.enjarai.cicada.api.util.ProperLogger;
import org.slf4j.Logger;

public class Trickster implements ModInitializer {
public class Trickster implements ModInitializer, CicadaEntrypoint {
// This logger is used to write text to the console and the log file.
// It is considered best practice to use your mod id as the logger's name.
// That way, it's clear which mod wrote info, warnings, and errors.
Expand Down Expand Up @@ -63,6 +66,15 @@ public void onInitialize() {
}
}

@Override
public void registerConversations(ConversationManager conversationManager) {
conversationManager.registerSource(
JsonSource.fromUrl("https://raw.githubusercontent.com/enjarai/trickster/master/src/main/resources/cicada/trickster/conversations.json")
.or(JsonSource.fromResource("cicada/trickster/conversations.json")),
LOGGER::info
);
}

public static Identifier id(String path) {
return Identifier.of(MOD_ID, path);
}
Expand Down
118 changes: 118 additions & 0 deletions src/main/resources/cicada/trickster/conversations.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
{
"mod_id": "trickster",

"conversations": {
"cicada:greetings": {
"lines": [
{
"order": 35,
"text": "Heya!! You ready for a good time? :3"
},
{
"condition": {
"type": "cicada:mod_participates",
"mod_id": "omnihopper"
},
"order": 51,
"text": "Hey hoppy mchopperface!! Is it just me, or are we the only good content mods around this place?"
},
{
"condition": {
"type": "cicada:mod_participates",
"mod_id": "omnihopper"
},
"order": 53,
"text": "You sure about that old man? Cause I sure don't see any! >:3"
},
{
"condition": {
"type": "cicada:mod_participates",
"mod_id": "omnihopper"
},
"order": 55,
"text": "Mmmm, nahhh, fuck those guys. ITS ONLY ME AND YOU GRANDPA!!!!"
}
]
},
"cicada:good_old_days": {
"lines": [
{
"order": 60,
"text": "I don't look back!! Only forward!!! LET US MARCH!!!!"
}
]
},

"trickster:hexcasting": {
"priority": {
"priority": 100
},
"condition": {
"type": "cicada:mod_loaded",
"mod_id": "hexcasting"
},
"lines": [
{
"order": 0,
"text": "Oh hi Hexcasting..."
},
{
"order": 10,
"text": "Wait..."
},
{
"order": 20,
"text": "WHAT!!!!"
},
{
"order": 30,
"text": "YOU ACTUALLY UPDATED??? OMG IM YOUR BIGGEST FAN CAN I HAVE AN AUTOGRAPH!!!!"
}
]
},
"do_a_barrel_roll:flight_sim": {
"lines": [
{
"order": 50,
"text": "Who needs a flight sim when you have.... MAGIC!!!!"
}
]
},
"trickster:math": {
"priority": {
"priority": 100
},
"lines": [
{
"order": 0,
"text": "I really hope you did your math homework!"
},
{
"order": 10,
"text": "Specifically vector math, you're gonna need it!!"
},
{
"order": 20,
"text": ">:3"
}
]
},

"cicada:christmas": {
"lines": [
{
"order": 15,
"text": "Christmas huh? TIME FOR PRESENTS!! :3"
}
]
},
"cicada:new_year": {
"lines": [
{
"order": 25,
"text": "HAPPY NEW YEAR!!!!!!! :DDDD"
}
]
}
}
}
3 changes: 3 additions & 0 deletions src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@
],
"cardinal-components-entity": [
"dev.enjarai.trickster.cca.ModEntityCumponents"
],
"cicada": [
"dev.enjarai.trickster.Trickster"
]
},
"custom": {
Expand Down

0 comments on commit 160d849

Please sign in to comment.