-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5a5076d
commit ef5b026
Showing
34 changed files
with
1,718 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
src/generated/resources/assets/anvilcraft/models/item/tesla_tower.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"parent": "anvilcraft:block/tesla_tower_overall" | ||
} |
54 changes: 54 additions & 0 deletions
54
src/generated/resources/data/anvilcraft/advancement/recipes/misc/tesla_tower.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
{ | ||
"parent": "minecraft:recipes/root", | ||
"criteria": { | ||
"has_circuit_board": { | ||
"conditions": { | ||
"items": [ | ||
{ | ||
"items": "anvilcraft:circuit_board" | ||
} | ||
] | ||
}, | ||
"trigger": "minecraft:inventory_changed" | ||
}, | ||
"has_the_recipe": { | ||
"conditions": { | ||
"recipe": "anvilcraft:tesla_tower" | ||
}, | ||
"trigger": "minecraft:recipe_unlocked" | ||
}, | ||
"has_topaz_block": { | ||
"conditions": { | ||
"items": [ | ||
{ | ||
"items": "anvilcraft:topaz_block" | ||
} | ||
] | ||
}, | ||
"trigger": "minecraft:inventory_changed" | ||
}, | ||
"has_transmission_pole": { | ||
"conditions": { | ||
"items": [ | ||
{ | ||
"items": "anvilcraft:transmission_pole" | ||
} | ||
] | ||
}, | ||
"trigger": "minecraft:inventory_changed" | ||
} | ||
}, | ||
"requirements": [ | ||
[ | ||
"has_the_recipe", | ||
"has_circuit_board", | ||
"has_transmission_pole", | ||
"has_topaz_block" | ||
] | ||
], | ||
"rewards": { | ||
"recipes": [ | ||
"anvilcraft:tesla_tower" | ||
] | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
src/generated/resources/data/anvilcraft/loot_table/blocks/tesla_tower.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"type": "minecraft:block", | ||
"pools": [ | ||
{ | ||
"bonus_rolls": 0.0, | ||
"conditions": [ | ||
{ | ||
"condition": "minecraft:survives_explosion" | ||
} | ||
], | ||
"entries": [ | ||
{ | ||
"type": "minecraft:item", | ||
"conditions": [ | ||
{ | ||
"block": "anvilcraft:tesla_tower", | ||
"condition": "minecraft:block_state_property", | ||
"properties": { | ||
"half": "bottom" | ||
} | ||
} | ||
], | ||
"name": "anvilcraft:tesla_tower" | ||
} | ||
], | ||
"rolls": 1.0 | ||
} | ||
], | ||
"random_sequence": "anvilcraft:blocks/tesla_tower" | ||
} |
27 changes: 27 additions & 0 deletions
27
src/generated/resources/data/anvilcraft/recipe/tesla_tower.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"type": "minecraft:crafting_shaped", | ||
"category": "misc", | ||
"key": { | ||
"A": { | ||
"item": "anvilcraft:royal_steel_ingot" | ||
}, | ||
"B": { | ||
"item": "anvilcraft:topaz_block" | ||
}, | ||
"C": { | ||
"item": "anvilcraft:transmission_pole" | ||
}, | ||
"D": { | ||
"item": "anvilcraft:circuit_board" | ||
} | ||
}, | ||
"pattern": [ | ||
"ABA", | ||
"ACA", | ||
"ADA" | ||
], | ||
"result": { | ||
"count": 1, | ||
"id": "anvilcraft:tesla_tower" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
src/main/java/dev/dubhe/anvilcraft/api/taslatower/HasCustomNameFilter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package dev.dubhe.anvilcraft.api.taslatower; | ||
|
||
import lombok.Getter; | ||
import net.minecraft.network.chat.Component; | ||
import net.minecraft.world.entity.LivingEntity; | ||
|
||
public class HasCustomNameFilter extends TeslaFilter{ | ||
@Getter | ||
private final String id = "HasCustomNameFilter"; | ||
|
||
@Override | ||
public boolean match(LivingEntity entity, String arg) { return entity.getCustomName() != null;} | ||
|
||
@Override | ||
public Component title() { | ||
return Component.translatable("screen.anvilcraft.tesla_tower.filter.has_custom_name"); | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
src/main/java/dev/dubhe/anvilcraft/api/taslatower/IsBabyFriendlyFilter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package dev.dubhe.anvilcraft.api.taslatower; | ||
|
||
import lombok.Getter; | ||
import net.minecraft.network.chat.Component; | ||
import net.minecraft.world.entity.LivingEntity; | ||
import net.minecraft.world.entity.animal.Animal; | ||
|
||
public class IsBabyFriendlyFilter extends TeslaFilter{ | ||
@Getter | ||
private final String id = "IsBabyFriendlyFilter"; | ||
|
||
@Override | ||
public boolean match(LivingEntity entity, String arg) { | ||
return entity.getType().getCategory().isFriendly() && entity instanceof Animal animal && animal.isBaby(); | ||
} | ||
|
||
@Override | ||
public Component title() { | ||
return Component.translatable("screen.anvilcraft.tesla_tower.filter.is_baby_friendly"); | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
src/main/java/dev/dubhe/anvilcraft/api/taslatower/IsEntityIdFilter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package dev.dubhe.anvilcraft.api.taslatower; | ||
|
||
import lombok.Getter; | ||
import net.minecraft.network.chat.Component; | ||
import net.minecraft.world.entity.LivingEntity; | ||
|
||
public class IsEntityIdFilter extends TeslaFilter{ | ||
@Getter | ||
private final String id = "IsEntityIdFilter"; | ||
|
||
@Override | ||
public boolean match(LivingEntity entity, String arg) { return entity.getType().getDescriptionId().equals(arg); } | ||
|
||
@Override | ||
public boolean needArg() { return true; } | ||
|
||
@Override | ||
public Component title() { | ||
return Component.translatable("screen.anvilcraft.tesla_tower.filter.is_entity_id"); | ||
} | ||
|
||
@Override | ||
public String tooltip(String arg) { | ||
return arg; | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
src/main/java/dev/dubhe/anvilcraft/api/taslatower/IsFriendlyFilter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package dev.dubhe.anvilcraft.api.taslatower; | ||
|
||
import lombok.Getter; | ||
import net.minecraft.network.chat.Component; | ||
import net.minecraft.world.entity.LivingEntity; | ||
|
||
public class IsFriendlyFilter extends TeslaFilter{ | ||
@Getter | ||
private final String id = "IsFriendlyFilter"; | ||
|
||
@Override | ||
public boolean match(LivingEntity entity, String arg) { return entity.getType().getCategory().isFriendly();} | ||
|
||
@Override | ||
public Component title() { | ||
return Component.translatable("screen.anvilcraft.tesla_tower.filter.is_friendly"); | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
src/main/java/dev/dubhe/anvilcraft/api/taslatower/IsOnVehicleFilter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package dev.dubhe.anvilcraft.api.taslatower; | ||
|
||
import lombok.Getter; | ||
import net.minecraft.network.chat.Component; | ||
import net.minecraft.world.entity.LivingEntity; | ||
|
||
public class IsOnVehicleFilter extends TeslaFilter{ | ||
@Getter | ||
private final String id = "IsOnVehicleFilter"; | ||
|
||
@Override | ||
public boolean match(LivingEntity entity, String arg) { return entity.getVehicle() != null;} | ||
|
||
@Override | ||
public Component title() { | ||
return Component.translatable("screen.anvilcraft.tesla_tower.filter.is_on_vehicle"); | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
src/main/java/dev/dubhe/anvilcraft/api/taslatower/IsPetFilter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package dev.dubhe.anvilcraft.api.taslatower; | ||
|
||
import lombok.Getter; | ||
import net.minecraft.network.chat.Component; | ||
import net.minecraft.world.entity.LivingEntity; | ||
import net.minecraft.world.entity.TamableAnimal; | ||
|
||
public class IsPetFilter extends TeslaFilter{ | ||
@Getter | ||
private final String id = "IsPetFilter"; | ||
|
||
@Override | ||
public boolean match(LivingEntity entity, String arg) { | ||
return entity instanceof TamableAnimal tamableAnimal && tamableAnimal.getOwner() != null; | ||
} | ||
|
||
@Override | ||
public Component title() { | ||
return Component.translatable("screen.anvilcraft.tesla_tower.filter.is_pet"); | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
src/main/java/dev/dubhe/anvilcraft/api/taslatower/IsPlayerFilter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package dev.dubhe.anvilcraft.api.taslatower; | ||
|
||
import lombok.Getter; | ||
import net.minecraft.network.chat.Component; | ||
import net.minecraft.world.entity.LivingEntity; | ||
import net.minecraft.world.entity.player.Player; | ||
|
||
public class IsPlayerFilter extends TeslaFilter{ | ||
@Getter | ||
private final String id = "IsPlayerFilter"; | ||
|
||
@Override | ||
public boolean match(LivingEntity entity, String arg) { | ||
return entity instanceof Player; | ||
} | ||
|
||
@Override | ||
public Component title() { | ||
return Component.translatable("screen.anvilcraft.tesla_tower.filter.is_player"); | ||
} | ||
} |
Oops, something went wrong.