-
-
Notifications
You must be signed in to change notification settings - Fork 8
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
e5c6588
commit 955c1fa
Showing
39 changed files
with
805 additions
and
166 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
6 changes: 6 additions & 0 deletions
6
src/main/generation/generators/block/single/transmutation_interface.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,6 @@ | ||
{ | ||
"parent": "minecraft:block/cube_all", | ||
"textures": { | ||
"all": "projectexpansion:block/transmutation_interface" | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
src/main/generation/generators/blockstate/single/transmutation_interface.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,7 @@ | ||
{ | ||
"variants": { | ||
"": { | ||
"model": "projectexpansion:block/transmutation_interface" | ||
} | ||
} | ||
} |
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
6 changes: 6 additions & 0 deletions
6
src/main/generation/generators/item/single/infinite_fuel.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,6 @@ | ||
{ | ||
"parent": "item/handheld", | ||
"textures": { | ||
"layer0": "projectexpansion:item/infinite_fuel" | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
src/main/generation/generators/item/single/infinite_steak.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,6 @@ | ||
{ | ||
"parent": "item/handheld", | ||
"textures": { | ||
"layer0": "projectexpansion:item/infinite_steak" | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
src/main/generation/generators/item/single/transmutation_interface.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": "projectexpansion:block/transmutation_interface" | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,12 @@ | ||
{ | ||
"item.projectexpansion.arcane_tablet": "Arcane Tablet", | ||
"item.projectexpansion.final_star_shard": "Final Star Shard", | ||
"item.projectexpansion.final_star": "Final Star", | ||
"item.projectexpansion.final_star.tooltip": "This does nothing, it exists to show off." | ||
"item.projectexpansion.arcane_tablet": "Arcane Tablet", | ||
"item.projectexpansion.final_star_shard": "Final Star Shard", | ||
"item.projectexpansion.final_star": "Final Star", | ||
"item.projectexpansion.final_star.tooltip": "This does nothing, it exists to show off.", | ||
"item.projectexpansion.infinite_fuel": "Infinite Fuel", | ||
"item.projectexpansion.infinite_fuel.tooltip": "This item will not be consumed, fuel will be provided via your emc.", | ||
"item.projectexpansion.infinite_fuel.not_enough_emc": "You do not have enough emc to use this, you need %s.", | ||
"item.projectexpansion.infinite_steak": "Infinite Steak", | ||
"item.projectexpansion.infinite_steak.tooltip": "Infinite food via your emc.", | ||
"item.projectexpansion.infinite_steak.not_enough_emc": "You do not have enough emc to use this, you need %s." | ||
} |
19 changes: 19 additions & 0 deletions
19
src/main/generation/generators/loot_tables/single/transmutation_interface.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,19 @@ | ||
{ | ||
"type": "minecraft:block", | ||
"pools": [ | ||
{ | ||
"rolls": 1, | ||
"entries": [ | ||
{ | ||
"type": "minecraft:item", | ||
"name": "projectexpansion:transmutation_interface" | ||
} | ||
], | ||
"conditions": [ | ||
{ | ||
"condition": "minecraft:survives_explosion" | ||
} | ||
] | ||
} | ||
] | ||
} |
19 changes: 19 additions & 0 deletions
19
src/main/generation/generators/recipes/single/infinite_fuel.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,19 @@ | ||
{ | ||
"type": "minecraft:crafting_shaped", | ||
"pattern": [ | ||
"CCC", | ||
"CTC", | ||
"CCC" | ||
], | ||
"key": { | ||
"C": { | ||
"item": "minecraft:coal" | ||
}, | ||
"T": { | ||
"item": "projecte:transmutation_tablet" | ||
} | ||
}, | ||
"result": { | ||
"item": "projectexpansion:infinite_fuel" | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
src/main/generation/generators/recipes/single/infinite_steak.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,19 @@ | ||
{ | ||
"type": "minecraft:crafting_shaped", | ||
"pattern": [ | ||
"SSS", | ||
"STS", | ||
"SSS" | ||
], | ||
"key": { | ||
"S": { | ||
"item": "minecraft:cooked_beef" | ||
}, | ||
"T": { | ||
"item": "projecte:transmutation_tablet" | ||
} | ||
}, | ||
"result": { | ||
"item": "projectexpansion:infinite_steak" | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
src/main/generation/generators/recipes/single/transmutation_interface.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,22 @@ | ||
{ | ||
"type": "minecraft:crafting_shaped", | ||
"pattern": [ | ||
"EIE", | ||
"ILI", | ||
"EIE" | ||
], | ||
"key": { | ||
"L": { | ||
"item": "projectexpansion:emc_link" | ||
}, | ||
"I": { | ||
"item": "projectexpansion:emc_import" | ||
}, | ||
"E": { | ||
"item": "projectexpansion:emc_export" | ||
} | ||
}, | ||
"result": { | ||
"item": "projectexpansion:transmutation_interface" | ||
} | ||
} |
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
66 changes: 66 additions & 0 deletions
66
src/main/java/cool/furry/mc/forge/projectexpansion/block/BlockTransmutationInterface.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,66 @@ | ||
package cool.furry.mc.forge.projectexpansion.block; | ||
|
||
import cool.furry.mc.forge.projectexpansion.tile.TileTransmutationInterface; | ||
import cool.furry.mc.forge.projectexpansion.util.ColorStyle; | ||
import net.minecraft.block.Block; | ||
import net.minecraft.block.BlockState; | ||
import net.minecraft.block.material.Material; | ||
import net.minecraft.client.util.ITooltipFlag; | ||
import net.minecraft.entity.LivingEntity; | ||
import net.minecraft.entity.player.PlayerEntity; | ||
import net.minecraft.item.ItemStack; | ||
import net.minecraft.tileentity.TileEntity; | ||
import net.minecraft.util.ActionResultType; | ||
import net.minecraft.util.Hand; | ||
import net.minecraft.util.math.BlockPos; | ||
import net.minecraft.util.math.BlockRayTraceResult; | ||
import net.minecraft.util.text.ITextComponent; | ||
import net.minecraft.util.text.StringTextComponent; | ||
import net.minecraft.util.text.TranslationTextComponent; | ||
import net.minecraft.world.IBlockReader; | ||
import net.minecraft.world.World; | ||
import net.minecraftforge.api.distmarker.Dist; | ||
import net.minecraftforge.api.distmarker.OnlyIn; | ||
|
||
import javax.annotation.Nullable; | ||
import java.util.List; | ||
|
||
public class BlockTransmutationInterface extends Block { | ||
public BlockTransmutationInterface() { | ||
super(Block.Properties.create(Material.ROCK).hardnessAndResistance(5F)); | ||
} | ||
|
||
@Override | ||
public boolean hasTileEntity(BlockState state) { | ||
return true; | ||
} | ||
|
||
@Nullable | ||
@Override | ||
public TileEntity createTileEntity(BlockState state, IBlockReader world) { | ||
return new TileTransmutationInterface(); | ||
} | ||
|
||
@OnlyIn(Dist.CLIENT) | ||
@Override | ||
public void addInformation(ItemStack stack, @Nullable IBlockReader level, List<ITextComponent> list, ITooltipFlag flag) { | ||
super.addInformation(stack, level, list, flag); | ||
list.add(new TranslationTextComponent("block.projectexpansion.transmutation_interface.tooltip").setStyle(ColorStyle.GRAY)); | ||
} | ||
|
||
@Override | ||
public ActionResultType func_225533_a_(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockRayTraceResult ray) { | ||
if (world.isRemote) return ActionResultType.SUCCESS; | ||
TileEntity tile = world.getTileEntity(pos); | ||
if (tile instanceof TileTransmutationInterface) | ||
player.sendStatusMessage(new StringTextComponent(((TileTransmutationInterface) tile).ownerName), true); | ||
return super.func_225533_a_(state, world, pos, player, hand, ray); | ||
} | ||
|
||
@Override | ||
public void onBlockPlacedBy(World world, BlockPos pos, BlockState state, @Nullable LivingEntity livingEntity, ItemStack stack) { | ||
TileEntity tile = world.getTileEntity(pos); | ||
if (tile instanceof TileTransmutationInterface) | ||
((TileTransmutationInterface) tile).wasPlaced(livingEntity, stack); | ||
} | ||
} |
9 changes: 2 additions & 7 deletions
9
src/main/java/cool/furry/mc/forge/projectexpansion/init/Blocks.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 |
---|---|---|
@@ -1,23 +1,18 @@ | ||
package cool.furry.mc.forge.projectexpansion.init; | ||
|
||
import cool.furry.mc.forge.projectexpansion.Main; | ||
import cool.furry.mc.forge.projectexpansion.block.BlockArcaneTable; | ||
import cool.furry.mc.forge.projectexpansion.block.BlockEMCExport; | ||
import cool.furry.mc.forge.projectexpansion.block.BlockEMCImport; | ||
import cool.furry.mc.forge.projectexpansion.block.BlockEMCLink; | ||
import cool.furry.mc.forge.projectexpansion.block.*; | ||
import net.minecraft.block.Block; | ||
import net.minecraftforge.fml.RegistryObject; | ||
import net.minecraftforge.fml.common.Mod; | ||
import net.minecraftforge.registries.DeferredRegister; | ||
import net.minecraftforge.registries.ForgeRegistries; | ||
|
||
@SuppressWarnings("unused") | ||
@Mod.EventBusSubscriber(modid = Main.MOD_ID, bus = Mod.EventBusSubscriber.Bus.MOD) | ||
public class Blocks { | ||
public static final DeferredRegister<Block> Registry = DeferredRegister.create(ForgeRegistries.BLOCKS, Main.MOD_ID); | ||
|
||
public static final RegistryObject<BlockArcaneTable> ARCANE_TABLE = Registry.register("arcane_table", BlockArcaneTable::new); | ||
public static final RegistryObject<BlockEMCLink> EMC_LINK = Registry.register("emc_link", BlockEMCLink::new); | ||
public static final RegistryObject<BlockEMCExport> EMC_EXPORT = Registry.register("emc_export", BlockEMCExport::new); | ||
public static final RegistryObject<BlockEMCImport> EMC_IMPORT = Registry.register("emc_import", BlockEMCImport::new); | ||
public static final RegistryObject<BlockTransmutationInterface> TRANSMUTATION_INTERFACE = Registry.register("transmutation_interface", BlockTransmutationInterface::new); | ||
} |
19 changes: 9 additions & 10 deletions
19
src/main/java/cool/furry/mc/forge/projectexpansion/init/Items.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 |
---|---|---|
@@ -1,28 +1,27 @@ | ||
package cool.furry.mc.forge.projectexpansion.init; | ||
|
||
import cool.furry.mc.forge.projectexpansion.Main; | ||
import cool.furry.mc.forge.projectexpansion.item.ItemArcaneTablet; | ||
import cool.furry.mc.forge.projectexpansion.item.ItemFinalStar; | ||
import cool.furry.mc.forge.projectexpansion.item.ItemUpgrade; | ||
import cool.furry.mc.forge.projectexpansion.item.*; | ||
import net.minecraft.item.BlockItem; | ||
import net.minecraft.item.Item; | ||
import net.minecraft.item.Rarity; | ||
import net.minecraftforge.fml.RegistryObject; | ||
import net.minecraftforge.fml.common.Mod; | ||
import net.minecraftforge.registries.DeferredRegister; | ||
import net.minecraftforge.registries.ForgeRegistries; | ||
|
||
@SuppressWarnings("unused") | ||
@Mod.EventBusSubscriber(modid = Main.MOD_ID, bus = Mod.EventBusSubscriber.Bus.MOD) | ||
public class Items { | ||
public static final DeferredRegister<Item> Registry = DeferredRegister.create(ForgeRegistries.ITEMS, Main.MOD_ID); | ||
|
||
public static final RegistryObject<Item> ARCANE_TABLET = Registry.register("arcane_tablet", ItemArcaneTablet::new); | ||
public static final RegistryObject<Item> ARCANE_TABLE = Registry.register("arcane_table", () -> new BlockItem(Blocks.ARCANE_TABLE.get(), new Item.Properties().group(Main.group).rarity(Rarity.RARE))); | ||
public static final RegistryObject<Item> EMC_LINK = Registry.register("emc_link", () -> new BlockItem(Blocks.EMC_LINK.get(), new Item.Properties().group(Main.group))); | ||
public static final RegistryObject<BlockItem> ARCANE_TABLE = Registry.register("arcane_table", () -> new BlockItem(Blocks.ARCANE_TABLE.get(), new Item.Properties().group(Main.group).rarity(Rarity.RARE))); | ||
public static final RegistryObject<BlockItem> EMC_LINK = Registry.register("emc_link", () -> new BlockItem(Blocks.EMC_LINK.get(), new Item.Properties().group(Main.group))); | ||
; | ||
public static final RegistryObject<BlockItem> EMC_EXPORT = Registry.register("emc_export", () -> new BlockItem(Blocks.EMC_EXPORT.get(), new Item.Properties().group(Main.group))); | ||
public static final RegistryObject<BlockItem> EMC_IMPORT = Registry.register("emc_import", () -> new BlockItem(Blocks.EMC_IMPORT.get(), new Item.Properties().group(Main.group))); | ||
public static final RegistryObject<Item> FINAL_STAR_SHARD = Registry.register("final_star_shard", () -> new Item(new Item.Properties().maxStackSize(1).rarity(Rarity.RARE).group(Main.group))); | ||
public static final RegistryObject<Item> FINAL_STAR = Registry.register("final_star", ItemFinalStar::new); | ||
public static final RegistryObject<BlockItem> EMC_EXPORT = Registry.register("emc_export", () -> new BlockItem(Blocks.EMC_EXPORT.get(), new Item.Properties().group(Main.group))); | ||
public static final RegistryObject<BlockItem> EMC_Import = Registry.register("emc_import", () -> new BlockItem(Blocks.EMC_IMPORT.get(), new Item.Properties().group(Main.group))); | ||
public static final RegistryObject<Item> MATTER_UPGRADER = Registry.register("matter_upgrader", ItemUpgrade::new); | ||
public static final RegistryObject<Item> INFINITE_FUEL = Registry.register("infinite_fuel", ItemInfiniteFuel::new); | ||
public static final RegistryObject<Item> INFINITE_STEAK = Registry.register("infinite_steak", ItemInfiniteSteak::new); | ||
public static final RegistryObject<BlockItem> TRANSMUTATION_INTERFACE = Registry.register("transmutation_interface", () -> new BlockItem(Blocks.TRANSMUTATION_INTERFACE.get(), new Item.Properties().group(Main.group).rarity(Rarity.EPIC))); | ||
} |
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
Oops, something went wrong.