Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
PinkGoosik committed Mar 11, 2024
1 parent 71d4259 commit 51dc132
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ enchantments, world features and structures, and other stuff.
For example some of the features will help you grow a garden and some are gonna propose you a challenge.

#### [Discord Server](https://discord.gg/DcemWeskeZ) | [Modrinth Page](https://modrinth.com/mod/artifality) | [CurseForge Page](https://curseforge.com/minecraft/mc-mods/artifality)

![artifality artifacts](https://cdn.modrinth.com/data/cached_images/8046057e674997c27a503a7bf48582db81295fbf.png)
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
package artifality.block.entity;

import artifality.item.base.ArtifactItem;
import artifality.registry.ArtifalityBlockEntities;
import artifality.registry.ArtifalityItems;
import net.minecraft.block.Block;
import net.minecraft.block.BlockState;
import net.minecraft.block.entity.BlockEntity;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NbtCompound;
import net.minecraft.network.listener.ClientPlayPacketListener;
Expand All @@ -13,14 +15,24 @@
import net.minecraft.registry.Registries;
import net.minecraft.util.Identifier;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.random.Random;
import org.jetbrains.annotations.Nullable;

import java.util.ArrayList;

public class TradingPedestalBlockEntity extends BlockEntity {
public ItemStack sellingItem = ArtifalityItems.BALLOON.getDefaultStack();
public ItemStack sellingItem;
public ItemStack chargeItem = new ItemStack(ArtifalityItems.LUNAR_CRYSTAL, 10);

public TradingPedestalBlockEntity(BlockPos pos, BlockState state) {
super(ArtifalityBlockEntities.TRADING_PEDESTAL, pos, state);

ArrayList<Item> items = new ArrayList<>();

for(Item item : ArtifalityItems.ITEMS.values()) {
if(item instanceof ArtifactItem) items.add(item);
}
sellingItem = items.get(Random.create().nextInt(items.size())).getDefaultStack();
}

@Override
Expand Down

0 comments on commit 51dc132

Please sign in to comment.